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 88B73431FAF for ; Mon, 3 Jun 2013 10:56:46 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 2jfY719kZQAD for ; Mon, 3 Jun 2013 10:56:39 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C2A77431FAE for ; Mon, 3 Jun 2013 10:56:38 -0700 (PDT) Received: by mail-lb0-f180.google.com with SMTP id r10so4124532lbi.11 for ; Mon, 03 Jun 2013 10:56:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=Mnmd5K7MCv7dLxRf8hBOIM1omMopNXo3HFzbDH3NL9U=; b=ajSfu40w8vL+BVSWZCfVsR6FgUDLTvvkx27KtQ30gFxMF+EryZ7loQ5vqIBeOyReOR um0ImHh1Hk1iOmbUl+dq2W8Vv3ditUckkfC6FmNefZ/L203fJmR2QmiMclW42iRWIFst W09feFOWzLxkm1X84WxWsh6fCmD3gkZF7hprtBEZaKsf+KPH4CEfnTc0UuvuT0pfXkgE rOIUDScQ6SzwF35WLwFgy/EkjkEcG80alny3FNFV0S7lF/4Qeu/ZdJ2A/n3AUV5+GAYe 67F7c+uUe++TQcYuS6yUp+471CbRDKz2ze7P9SjE3TmDOc3C+mQjeJ0gHstQTXGxdFEp KN8Q== X-Received: by 10.152.21.7 with SMTP id r7mr11321631lae.16.1370282195920; Mon, 03 Jun 2013 10:56:35 -0700 (PDT) Received: from localhost (dsl-hkibrasgw2-58c376-211.dhcp.inet.fi. [88.195.118.211]) by mx.google.com with ESMTPSA id t17sm23873053lbd.11.2013.06.03.10.56.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 03 Jun 2013 10:56:34 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH] emacs: update search sort order help to match code Date: Mon, 3 Jun 2013 20:56:31 +0300 Message-Id: <1370282191-4526-1-git-send-email-jani@nikula.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQkVlbBaAb9HEueV3jdd65lIR67vq2j45dmrCHGhhRVXGU1SiuMUTtqIaAwrwPmWt8dMUO47 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: Mon, 03 Jun 2013 17:56:46 -0000 --- emacs/notmuch-lib.el | 7 ++++++- emacs/notmuch.el | 13 ++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 28f78e0..c43d5a9 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -68,7 +68,12 @@ :group 'notmuch) (defcustom notmuch-search-oldest-first t - "Show the oldest mail first when searching." + "Show the oldest mail first when searching. + +This variable defines the default sort order for displaying +search results. Note that any filtered searches created by +`notmuch-search-filter' retain the search order of the parent +search." :type 'boolean :group 'notmuch-search) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 26ba7e7..cc62088 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -1030,17 +1030,8 @@ depending on the value of `notmuch-poll-script'." (defun notmuch-search-toggle-order () "Toggle the current search order. -By default, the \"inbox\" view created by `notmuch' is displayed -in chronological order (oldest thread at the beginning of the -buffer), while any global searches created by `notmuch-search' -are displayed in reverse-chronological order (newest thread at -the beginning of the buffer). - -This command toggles the sort order for the current search. - -Note that any filtered searches created by -`notmuch-search-filter' retain the search order of the parent -search." +This command toggles the sort order for the current search. The +default sort order is defined by `notmuch-search-oldest-first'." (interactive) (set 'notmuch-search-oldest-first (not notmuch-search-oldest-first)) (notmuch-search-refresh-view)) -- 1.7.10.4