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 F3D37431FBC for ; Tue, 24 Jan 2012 16:06:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 t+djXIARAtW8 for ; Tue, 24 Jan 2012 16:06:30 -0800 (PST) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 0E001431FB6 for ; Tue, 24 Jan 2012 16:06:30 -0800 (PST) Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) by earth-doxen-postvirus (Postfix) with ESMTP id A33D066E014B for ; Tue, 24 Jan 2012 16:06:29 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new Received: from finestructure.net (DHCP-123-180.caltech.edu [131.215.123.180]) (Authenticated sender: jrollins) by earth-doxen-submit (Postfix) with ESMTP id D9ED366E016E for ; Tue, 24 Jan 2012 16:06:27 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id CF7A413C; Tue, 24 Jan 2012 16:06:27 -0800 (PST) From: Jameson Graef Rollins To: Notmuch Mail Subject: [PATCH v3 1/8] emacs: use search-next-thread to move to next thread in show mode Date: Tue, 24 Jan 2012 16:06:16 -0800 Message-Id: <1327449983-23638-2-git-send-email-jrollins@finestructure.net> X-Mailer: git-send-email 1.7.8.3 In-Reply-To: <1327449983-23638-1-git-send-email-jrollins@finestructure.net> References: <87pqea24z0.fsf@servo.finestructure.net> <1327449983-23638-1-git-send-email-jrollins@finestructure.net> 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: Wed, 25 Jan 2012 00:06:31 -0000 We should always use the dedicated search mode navigation functions, in case navigation mechanics change down the line. --- emacs/notmuch-show.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index e6a5b31..a0045fc 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -39,6 +39,7 @@ (declare-function notmuch-call-notmuch-process "notmuch" (&rest args)) (declare-function notmuch-fontify-headers "notmuch" nil) (declare-function notmuch-select-tag-with-completion "notmuch" (prompt &rest search-terms)) +(declare-function notmuch-search-next-thread "notmuch" nil) (declare-function notmuch-search-show-thread "notmuch" nil) (defcustom notmuch-message-headers '("Subject" "To" "Cc" "Date") @@ -1535,7 +1536,7 @@ argument, hide all of the messages." (if parent-buffer (progn (switch-to-buffer parent-buffer) - (forward-line) + (notmuch-search-next-thread) (if show-next (notmuch-search-show-thread)))))) -- 1.7.8.3