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 687FE4196F3 for ; Tue, 13 Apr 2010 06:04:57 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001] 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 YcJ4usg1Kwjm for ; Tue, 13 Apr 2010 06:04:56 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by olra.theworths.org (Postfix) with ESMTP id A9A06431FC1 for ; Tue, 13 Apr 2010 06:04:56 -0700 (PDT) Received: by wyj26 with SMTP id 26so1822633wyj.26 for ; Tue, 13 Apr 2010 06:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=ZrwULTycnWAYczo/KVlO89ZfPpNsJrnyz80Vq37N724=; b=pD+Gy1Gm+ZHrpcUTTOeGmjJZilWXHgfV7oB5FbBn9JGRP0MuB7h7Pxeo0RsjFwYWnK +dTtq5kx7lx9ROxoxz8vISzPlQcIjPjpwFd1QDQgc+UCTZA3Oq7XBNEFj2P5WiN8RNvr nTq0PXxdFSireiXRu+BBCPG9JfAXtKwVmGsYc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=n3wu7J1sEMFdZegFtO3+jzCOp5XSXmMuZw841ThXcn5/ETnHXb5rM0wiC6YVYC4gDi f0jd0SJ99mca6fG0V2vmTr/qsGp/U8uEOJWOrnU40emt5H4TlGGre2R6F5pOiQ89M/9D fLGcJP8qCCC5gVZYvU5XfEHsID51Oa3Fo9MQA= MIME-Version: 1.0 Received: by 10.216.89.140 with HTTP; Tue, 13 Apr 2010 06:04:55 -0700 (PDT) Date: Tue, 13 Apr 2010 09:04:55 -0400 Received: by 10.216.180.82 with SMTP id i60mr3421818wem.107.1271163895686; Tue, 13 Apr 2010 06:04:55 -0700 (PDT) Message-ID: Subject: [PATCH] emacs: when archiving move the cursor depending on the sort order. From: Servilio Afre Puentes 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: Tue, 13 Apr 2010 13:04:57 -0000 The current hardcoded behaviour will not take you to the next unread thread when the sort order is set to newer-first from the default of older-first. Signed-off-by: Servilio Afre Puentes --- emacs/notmuch.el | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 517c53a..728aa2b 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -572,7 +572,9 @@ thread or threads in the current region." This function advances the next thread when finished." (interactive) (notmuch-search-remove-tag-thread "inbox") - (forward-line)) + (if notmuch-search-oldest-first + (forward-line) + (previous-line))) (defun notmuch-search-process-sentinel (proc msg) "Add a message to let user know when \"notmuch search\" exits" -- 1.7.0.4