Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 95F0940B972 for ; Mon, 26 Jul 2010 19:41:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.801 X-Spam-Level: * X-Spam-Status: No, score=1.801 tagged_above=-999 required=5 tests=[BAYES_50=0.8, FSL_HELO_NON_FQDN_1=0.001, HELO_NO_DOMAIN=1] autolearn=no Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uMFo-ptgOoWf for ; Mon, 26 Jul 2010 19:41:48 -0700 (PDT) Received: from cp20 (cp20.secserverpros.com [67.220.217.187]) by olra.theworths.org (Postfix) with ESMTP id B086440B96E for ; Mon, 26 Jul 2010 19:41:48 -0700 (PDT) Received: from 61-30-10-70.static.tfn.net.tw ([61.30.10.70] helo=anar.kanru.info) by cp20 with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OdZIR-00035v-5v for notmuch@notmuchmail.org; Tue, 27 Jul 2010 01:49:31 +0000 Received: from kanru by anar.kanru.info with local (Exim 4.72) (envelope-from ) id 1OdZIF-0002Mq-Lx; Tue, 27 Jul 2010 09:49:19 +0800 From: Kan-Ru Chen To: notmuch@notmuchmail.org Subject: [PATCH 1/2] emacs: notmuch-hello: Avoid going to end-of-line in search box Date: Tue, 27 Jul 2010 09:48:44 +0800 Message-Id: <1280195325-9066-2-git-send-email-kanru@kanru.info> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1280195325-9066-1-git-send-email-kanru@kanru.info> References: <1280195325-9066-1-git-send-email-kanru@kanru.info> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp20 X-AntiAbuse: Original Domain - notmuchmail.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - kanru.info X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2010 02:41:59 -0000 widget-end-of-line checks eolp to decide whether C-e in a fixed size field should go to the end of the text in the field or the end of the field itself. So put a trailing white space to pad the search field. Previous behavior: Search: [text _] Now: Search: [text_ ] --- emacs/notmuch-hello.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index f8ae332..6ef03bb 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -416,10 +416,10 @@ Complete list of currently available key bindings: ;; Leave some space at the start and end of the ;; search boxes. :size (max 8 (- (window-width) notmuch-hello-indent - (length "Search: "))) + (length "Search: ") 1 )) :action (lambda (widget &rest ignore) (notmuch-hello-search (widget-value widget)))) - (widget-insert "\n") + (widget-insert " \n") (when notmuch-hello-recent-searches (widget-insert "\nRecent searches: ") -- 1.7.1