From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4D695429E2E for ; Fri, 23 Sep 2011 11:57:54 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 dzrLXh33oicA for ; Fri, 23 Sep 2011 11:57:53 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0C505429E26 for ; Fri, 23 Sep 2011 11:57:50 -0700 (PDT) Received: by mail-fx0-f53.google.com with SMTP id 2so4098681fxh.26 for ; Fri, 23 Sep 2011 11:57:50 -0700 (PDT) Received: by 10.223.44.89 with SMTP id z25mr5523044fae.42.1316804270642; Fri, 23 Sep 2011 11:57:50 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id f10sm11984257fac.14.2011.09.23.11.57.48 (version=SSLv3 cipher=OTHER); Fri, 23 Sep 2011 11:57:49 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH RESEND 2/2] emacs: Make saving new saved searches append, not prepend Date: Fri, 23 Sep 2011 21:57:38 +0300 Message-Id: <3adf76032013969bf26c56d25de68ebad5b8445b.1316803382.git.jani@nikula.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: In-Reply-To: References: 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: Fri, 23 Sep 2011 18:57:54 -0000 Append new saved searches at the end of saved searches rather than insert in front. Signed-off-by: Jani Nikula --- 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 6c8e265..dc34ebe 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -188,8 +188,8 @@ Typically \",\" in the US and UK and \".\" in Europe." collect elem)) ;; Add the new one. (customize-save-variable 'notmuch-saved-searches - (push (cons name search) - notmuch-saved-searches)) + (add-to-list 'notmuch-saved-searches + (cons name search) t)) (message "Saved '%s' as '%s'." search name) (notmuch-hello-update))) -- 1.7.4.1