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 06BF44196F5 for ; Sat, 26 Jun 2010 16:27:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 gC1-kZAHExv6 for ; Sat, 26 Jun 2010 16:27:20 -0700 (PDT) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by olra.theworths.org (Postfix) with ESMTP id 76308431FC1 for ; Sat, 26 Jun 2010 16:27:20 -0700 (PDT) Received: by vws9 with SMTP id 9so621658vws.26 for ; Sat, 26 Jun 2010 16:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=337xvHxxg/PySMOfNAiPCUka5yDDZ3t8Dfrds8A9P9E=; b=Jl8cPAm0SrkZ5/utkx1gGlcQLDcbrxVPkeNoMUt6Nm6/NkRDa3vReLVBeRPQ4qDc39 8goWATQVGDcgprBzaUWMfGkTIP0PdLiMF8TTXlFXPkq1YC6W8BHS7Qw4t+Qgp3xdD5b9 5J1CQK8ryJv9VJm8sMIsem+t3hAnOnt6hojTI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NwOqZ690rC0d6ITXtvufxiuNizKnyd+8XqNYPLXZm22dNYatNGfLt1ci/qyXSbLDx1 4BpH4n9PC8/r1rqMGW4aiQQj33LNkwPUDBY/VPm/+TVI4nqCbbKbJaWbYnXj4mrSZmxP nsHRNqCu68CSd5E4CSeiipHEDf9eofpjJldB4= MIME-Version: 1.0 Received: by 10.220.124.226 with SMTP id v34mr1652742vcr.203.1277594839227; Sat, 26 Jun 2010 16:27:19 -0700 (PDT) Received: by 10.220.90.138 with HTTP; Sat, 26 Jun 2010 16:27:19 -0700 (PDT) Date: Sat, 26 Jun 2010 19:27:19 -0400 Message-ID: Subject: [PATCH 1/3] Use notmuch-search--thread where moving between threads. From: "servilio@gmail.com" To: notmuch Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 26 Jun 2010 23:27:31 -0000 This makes clearer what the intention is in the code, and opens the possibility for alternate logic for moving between threads. --- emacs/notmuch-show.el | 2 +- emacs/notmuch.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index f872cdf..84c6cd6 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -994,7 +994,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)))))) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index fe1041f..417f3fd 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -549,7 +549,7 @@ thread or threads in the current region." This function advances the next thread when finished." (interactive) (notmuch-search-remove-tag-thread "inbox") - (forward-line)) + (notmuch-search-next-thread)) (defun notmuch-search-process-sentinel (proc msg) "Add a message to let user know when \"notmuch search\" exits" -- 1.7.1