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 85E84429E35 for ; Fri, 27 May 2011 02:15:24 -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=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] 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 vxPSY+gtmdvA for ; Fri, 27 May 2011 02:15:23 -0700 (PDT) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id D15BF429E28 for ; Fri, 27 May 2011 02:15:23 -0700 (PDT) Received: from localhost.localdomain (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id 99B6C6A06A9; Fri, 27 May 2011 11:15:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1306487722; bh=EgcPKdIP54tDvt3ZSy07FKZh01oVdF5n075k+q7PcyQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=Aiw0EO60utEgV9vLcU8F5qJ8WYflnTuIxQfGYCdE58vEH59QoQyjFinstiK84ebQC DMU8P2Svr0SS0jagzTcPRZ2/hHinJyx5yBvClR8bTmePsQuyX7nvjqgUBcG9tbhprQ wb70RU5uF1i3BJuIYJZb78wLAKW8ywZEQZH5QrYk= From: Thomas Jost To: Jameson Graef Rollins , Carl Worth , Stewart Smith , notmuch Subject: [PATCH 1/2] emacs: Don't always prompt for the "From" address when replying Date: Fri, 27 May 2011 11:14:59 +0200 Message-Id: <1306487700-21358-1-git-send-email-schnouki@schnouki.net> X-Mailer: git-send-email 1.7.5.2 In-Reply-To: <87mxi9ytvt.fsf@servo.factory.finestructure.net> References: <87mxi9ytvt.fsf@servo.factory.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: Fri, 27 May 2011 09:15:24 -0000 When replying, the From: address is already filled in by notmuch reply, so most of the time there is no need to prompt the user for it. --- Hi Jameson, You're right, this is mostly annoying when replying to messages. Here's a fix. Regards, Thomas emacs/notmuch-mua.el | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 7c05a81..556d2bf 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -155,7 +155,10 @@ name and addresses configured in the notmuch configuration file." :type '(repeat string)) (defcustom notmuch-always-prompt-for-sender nil - "Always prompt for the From: address when composing a new message." + "Always prompt for the From: address when composing or forwarding a message. + +This is not taken into account when replying to a message, because in that case +the From: header is already filled in by notmuch." :group 'notmuch :type 'boolean) @@ -203,7 +206,7 @@ the From: address first." "Invoke the notmuch reply window." (interactive "P") (let ((sender - (when (or prompt-for-sender notmuch-always-prompt-for-sender) + (when prompt-for-sender (notmuch-mua-prompt-for-sender)))) (notmuch-mua-reply query-string sender))) -- 1.7.5.2