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 81EB2431FBC for ; Thu, 11 Feb 2010 04:19:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.741 X-Spam-Level: X-Spam-Status: No, score=-0.741 tagged_above=-999 required=5 tests=[AWL=-0.001, BAYES_20=-0.74] autolearn=ham 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 3A8pIb7tobiW for ; Thu, 11 Feb 2010 04:19:39 -0800 (PST) Received: from mail-fx0-f212.google.com (mail-fx0-f212.google.com [209.85.220.212]) by olra.theworths.org (Postfix) with ESMTP id 7AA03431FAE for ; Thu, 11 Feb 2010 04:19:39 -0800 (PST) Received: by fxm4 with SMTP id 4so1088058fxm.0 for ; Thu, 11 Feb 2010 04:19:38 -0800 (PST) Received: by 10.223.47.28 with SMTP id l28mr2107467faf.74.1265890778436; Thu, 11 Feb 2010 04:19:38 -0800 (PST) Received: from aw.hh.sledj.net (host83-217-165-81.dsl.vispa.com [83.217.165.81]) by mx.google.com with ESMTPS id 35sm3639529fkt.10.2010.02.11.04.19.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Feb 2010 04:19:37 -0800 (PST) Received: by aw.hh.sledj.net (Postfix, from userid 1000) id CF8BC3A088; Thu, 11 Feb 2010 12:19:19 +0000 (GMT) From: David Edmondson To: notmuch@notmuchmail.org Date: Thu, 11 Feb 2010 12:19:12 +0000 Message-Id: <1265890752-26242-1-git-send-email-dme@dme.org> X-Mailer: git-send-email 1.6.6.1 Subject: [notmuch] [PATCH] notmuch.el: Prefix arg inverts the sort order of notmuch-search. 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: Thu, 11 Feb 2010 12:19:40 -0000 --- notmuch.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 8f50abe..de9ddf8 100644 --- a/notmuch.el +++ b/notmuch.el @@ -1398,7 +1398,8 @@ characters as well as `_.+-'. (defun notmuch-search (query &optional oldest-first) "Run \"notmuch search\" with the given query string and display results." (interactive "sNotmuch search: ") - (let ((buffer (get-buffer-create (concat "*notmuch-search-" query "*")))) + (let ((buffer (get-buffer-create (concat "*notmuch-search-" query "*"))) + (oldest-first (if current-prefix-arg (not oldest-first) oldest-first))) (switch-to-buffer buffer) (notmuch-search-mode) (set 'notmuch-search-query-string query) -- 1.6.6.1