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 B0BC7429E43 for ; Fri, 23 Dec 2011 19:48:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 PnTLfQ0T7UBT for ; Fri, 23 Dec 2011 19:48:05 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 87765429E3D for ; Fri, 23 Dec 2011 19:48:03 -0800 (PST) Received: by wgbds13 with SMTP id ds13so14931710wgb.2 for ; Fri, 23 Dec 2011 19:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=zeRY411+RfvF/iQyQ1YKbWQWXtx6KuXM6QqUJ3L1bgk=; b=dxFEfJGApmhokYXsIKv0pseYakCBrBhRxvbfsUtJZ8GFDGwUbb4ilFwEUPSlrcUZWR Pmr2UQKK31jyck9eq8G2MIIOnmcbL+sMmKYzm+BsBEfwvZgJUmeUtVdGlaXJS1cgf4xb PVKT4hAKn2bc4gmxSzpCoRRaf3TaqWYR1N36I= Received: by 10.227.198.19 with SMTP id em19mr20697737wbb.14.1324698482349; Fri, 23 Dec 2011 19:48:02 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id fy5sm36936302wib.7.2011.12.23.19.48.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Dec 2011 19:48:01 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH 2/3] emacs: reindent `notmuch-hello' function Date: Sat, 24 Dec 2011 07:47:15 +0400 Message-Id: <1324698436-8532-2-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1324698436-8532-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1324698436-8532-1-git-send-email-dmitry.kurochkin@gmail.com> 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: Sat, 24 Dec 2011 03:48:07 -0000 Reindent `notmuch-hello' function after the search history changes. --- emacs/notmuch-hello.el | 56 ++++++++++++++++++++++++------------------------ 1 files changed, 28 insertions(+), 28 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index ba34ac5..0922821 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -520,34 +520,34 @@ Complete list of currently available key bindings: (let ((start (point))) (loop for i from 1 to notmuch-hello-recent-searches-max for search in notmuch-query-history do - (let ((widget-symbol (intern (format "notmuch-hello-search-%d" i)))) - (set widget-symbol - (widget-create 'editable-field - ;; Don't let the search boxes be - ;; less than 8 characters wide. - :size (max 8 - (- (window-width) - ;; Leave some space - ;; at the start and - ;; end of the - ;; boxes. - (* 2 notmuch-hello-indent) - ;; 1 for the space - ;; before the - ;; `[save]' button. 6 - ;; for the `[save]' - ;; button. - 1 6)) - :action (lambda (widget &rest ignore) - (notmuch-hello-search (widget-value widget))) - search)) - (widget-insert " ") - (widget-create 'push-button - :notify (lambda (widget &rest ignore) - (notmuch-hello-add-saved-search widget)) - :notmuch-saved-search-widget widget-symbol - "save")) - (widget-insert "\n")) + (let ((widget-symbol (intern (format "notmuch-hello-search-%d" i)))) + (set widget-symbol + (widget-create 'editable-field + ;; Don't let the search boxes be + ;; less than 8 characters wide. + :size (max 8 + (- (window-width) + ;; Leave some space + ;; at the start and + ;; end of the + ;; boxes. + (* 2 notmuch-hello-indent) + ;; 1 for the space + ;; before the + ;; `[save]' button. 6 + ;; for the `[save]' + ;; button. + 1 6)) + :action (lambda (widget &rest ignore) + (notmuch-hello-search (widget-value widget))) + search)) + (widget-insert " ") + (widget-create 'push-button + :notify (lambda (widget &rest ignore) + (notmuch-hello-add-saved-search widget)) + :notmuch-saved-search-widget widget-symbol + "save")) + (widget-insert "\n")) (indent-rigidly start (point) notmuch-hello-indent))) (when alltags-alist -- 1.7.7.3