From: David Edmondson Date: Mon, 2 Jun 2014 09:40:18 +0000 (+0100) Subject: [PATCH v1] emacs: Forwarded messages should not have modified buffers X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d8ccd1aa5f22d1e7d654c92ef793f10819b4a4ff;p=notmuch-archives.git [PATCH v1] emacs: Forwarded messages should not have modified buffers --- diff --git a/c9/f46e04fb954ee9eb42b57d4c5e23f322caca01 b/c9/f46e04fb954ee9eb42b57d4c5e23f322caca01 new file mode 100644 index 000000000..8fba6f317 --- /dev/null +++ b/c9/f46e04fb954ee9eb42b57d4c5e23f322caca01 @@ -0,0 +1,110 @@ +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 12B3C431FAF + for ; Mon, 2 Jun 2014 02:44:04 -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 vdaJGFZEYflq for ; + Mon, 2 Jun 2014 02:43:59 -0700 (PDT) +Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com + [209.85.212.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 23684431FAE + for ; Mon, 2 Jun 2014 02:43:59 -0700 (PDT) +Received: by mail-wi0-f176.google.com with SMTP id n15so4142590wiw.9 + for ; Mon, 02 Jun 2014 02:43:56 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:to:subject:date:user-agent:from:message-id + :mime-version:content-type; + bh=C9zbaEGYGPUwS6H887mBf8IX0rBiwAK4+NbAjIBXuAQ=; + b=Rm76Vw9C+UkQ1+l8Me3upGTJfvoOr1FTp+Av+bhAs6mGtpjE78xiVj6un2pJPvqvFR + Rt4OpiXesPUL2HyYc3l4i45ONWp2Ci55rNjD7pNDxXodHXMvcjNegxw+7bp7nWVkAR1L + 4sdl0eKfMxQWvY4yDs3IJc2lYbxawiiV6vROkePkyF/AvyqQw6UB3sdTXZfYsDYbXdNe + d6+/vAWkqypj/GDz47bEuunja59YNWrB1NIjZWyiH1mXWI5GdG/71w1knSJTcf1TSRBA + jjKkR2q7Cv2G28+qf21vDl+A9KViVzxyVvpseUjEYUjhhzHP8QuoRI6pCNllg9XZR35s + +dqA== +X-Gm-Message-State: + ALoCoQmOIFHA7bnMjYrmz2+l3wiLNBflXUXki3Tmm8XnBLJ0OXhWczeQpIUYYu9q9Ga1OHy9Rf5u +X-Received: by 10.194.243.3 with SMTP id wu3mr47791903wjc.29.1401702236458; + Mon, 02 Jun 2014 02:43:56 -0700 (PDT) +Received: from localhost ([2a01:348:1a2:1:c1bc:5e8d:eeb5:792c]) + by mx.google.com with ESMTPSA id l4sm31106628wiy.0.2014.06.02.02.43.54 + for + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Mon, 02 Jun 2014 02:43:54 -0700 (PDT) +To: notmuch@notmuchmail.org +Subject: [PATCH v1] emacs: Forwarded messages should not have modified buffers +Date: Mon, 2 Jun 2014 10:40:18 +0100 +User-Agent: Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +From: David Edmondson +Message-ID: +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha1; protocol="application/pgp-signature" +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, 02 Jun 2014 09:44:04 -0000 + +--=-=-= +Content-Type: text/plain +Content-Transfer-Encoding: quoted-printable + +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. +=2D-- + 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 +=2D-- 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. +=2D (message-hide-headers))) ++ (message-hide-headers) ++ (set-buffer-modified-p nil))) +=20 + (defun notmuch-mua-new-reply (query-string &optional prompt-for-sender rep= +ly-all) + "Compose a reply to the message identified by QUERY-STRING. +=2D-=20 +2.0.0.rc2 + + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iKYEARECAGYFAlOMR1NfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +bnBncC5maWZ0aGhvcnNlbWFuLm5ldDc1M0Y5NDJDMEExNjc3MDE4OURGMUYyMDY5 +RUNEMEFCRjA0OTY1MTYACgkQaezQq/BJZRZGYQCfWn+SGMta34t94xq8XMiqMY9x +fTAAnA1CWfep/h/kpBBqNWwU5Ut07Gv3 +=ibps +-----END PGP SIGNATURE----- +--=-=-=--