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 EDF38429E27 for ; Sat, 24 Dec 2011 20:15:53 -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 sayqKsXTXeui for ; Sat, 24 Dec 2011 20:15:52 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 49C22429E29 for ; Sat, 24 Dec 2011 20:15:46 -0800 (PST) Received: by wibhq2 with SMTP id hq2so4722824wib.26 for ; Sat, 24 Dec 2011 20:15:43 -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=L55ejy2cluWKfrpItMtg/es2ayDSjsw3HY4JqyMVGJU=; b=eXiW+AXpZr0LHH8pKEHlYA+oyD4cB7JL5KGZgmk2OBFrDzZOhQnZ6B60s1lG+z75U0 MZsrAamwwFnC/PRjLm09o0K0ESW8Gddups0dWpiQNUY/etQbqgRNrVvsuQCjccsYdSOM ZQjS9MNcCId3Y6VaDIkpdRChI5ss/PMLCq+j8= Received: by 10.180.107.134 with SMTP id hc6mr41615869wib.21.1324786543802; Sat, 24 Dec 2011 20:15:43 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id fk3sm19522077wbb.10.2011.12.24.20.15.42 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 24 Dec 2011 20:15:43 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH 2/4] emacs: reindent `notmuch-hello' function Date: Sun, 25 Dec 2011 08:14:53 +0400 Message-Id: <1324786495-14221-2-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1324786495-14221-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1324786495-14221-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: Sun, 25 Dec 2011 04:15:54 -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 eb08a09..fa33500 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -493,34 +493,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-search-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