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 3990E431FB6 for ; Sun, 15 Jun 2014 22:30:27 -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 WbIvuWjkoTSd for ; Sun, 15 Jun 2014 22:30:21 -0700 (PDT) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 80E5A431FAE for ; Sun, 15 Jun 2014 22:30:21 -0700 (PDT) Received: by mail-wg0-f46.google.com with SMTP id y10so5059531wgg.5 for ; Sun, 15 Jun 2014 22:30:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=L8iIPG9j6WTJu4GK9cxO7A1vLqJ/mdcw1upg5N68y0M=; b=eOZKK+RvwpI4IRfVbO5ZjQNUGM8/YtK8jzc26Q8pZJpFxgsueiLc/AFpL/+/uxSTy/ 8VImscBq4MhDwAzBAL6fa4Xsco4mPbAC6K45JP1ps8B8wHDJIGwtYCDIQ58idfmFANZv Yfx4E/g6sgMWjO0n2P9+RaWFk5zouIEPXReFZwve+a6ib2CFXl4AlDFap0/XcBF2BEdh fNL7D2AncveH3sl4oWMTueltBj4lozeMNW0d43TdlC9RyGQvHfwoBJmf7HlEoJIWEPBx P1DNcseVw1mgYImRYJA9i+48Aap8Hw8FslRXI+X8GKpz+4TzIo6Dz+TK76ExU17KWXYz y7Jw== X-Gm-Message-State: ALoCoQmVvcZPI20lWLkesYrOTM1TN0YWJFEYdezEGQ0F5lQ32+1foZ0LY4y7G0s3LCsjb5xysjfb X-Received: by 10.180.160.205 with SMTP id xm13mr24333243wib.13.1402896618836; Sun, 15 Jun 2014 22:30:18 -0700 (PDT) Received: from fenchurch.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by mx.google.com with ESMTPSA id do5sm12456981wib.16.2014.06.15.22.30.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 15 Jun 2014 22:30:15 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: [PATCH v1] emacs: Forwarded messages should not have modified buffers From: David Edmondson In-Reply-To: <87wqch5309.fsf@zancas.localnet> Date: Mon, 16 Jun 2014 06:30:11 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <1E19E1E0-044E-4616-B951-FC8FEFA49071@dme.org> References: <87wqch5309.fsf@zancas.localnet> To: David Bremner X-Mailer: Apple Mail (2.1878.2) Cc: notmuch@notmuchmail.org 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, 16 Jun 2014 05:30:27 -0000 When the user begins forwarding a message, the resulting composition buffer should not be marked as modified, in order that it can immediately be killed without prompting. --- emacs/notmuch-mua.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 95e4a4d..2c58886 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -346,7 +346,8 @@ the From: address first." (message-forward-make-body cur) ;; `message-forward-make-body' shows the User-agent header. Hide ;; it again. - (message-hide-headers))) + (message-hide-headers) + (set-buffer-modified-p nil))) (defun notmuch-mua-new-reply (query-string &optional prompt-for-sender = reply-all) "Compose a reply to the message identified by QUERY-STRING. --=20 2.0.0.rc2