Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 9f / 4e30778d6578145f6f67387288b8ba88750fd1
1 Return-Path: <dme@dme.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 9D0796DE137E\r
6  for <notmuch@notmuchmail.org>; Mon,  8 Feb 2016 03:34:31 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.035\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.035 tagged_above=-999 required=5 tests=[AWL=0.102, \r
12  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
13  RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652,\r
14  UNPARSEABLE_RELAY=0.001] autolearn=disabled\r
15 Received: from arlo.cworth.org ([127.0.0.1])\r
16  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
17  with ESMTP id r4opUNC-EmvJ for <notmuch@notmuchmail.org>;\r
18  Mon,  8 Feb 2016 03:34:30 -0800 (PST)\r
19 Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com\r
20  [74.125.82.42]) by arlo.cworth.org (Postfix) with ESMTPS id ABBAE6DE0A7F for\r
21  <notmuch@notmuchmail.org>; Mon,  8 Feb 2016 03:34:29 -0800 (PST)\r
22 Received: by mail-wm0-f42.google.com with SMTP id c200so11060533wme.0\r
23  for <notmuch@notmuchmail.org>; Mon, 08 Feb 2016 03:34:29 -0800 (PST)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25  d=dme-org.20150623.gappssmtp.com; s=20150623;\r
26  h=from:to:subject:date:message-id:in-reply-to:references;\r
27  bh=77/1s1Fetr+nPRWwnXDGg0T1VccWJGgwNE9BAlcWlq4=;\r
28  b=ld+eNrs/kAm4GKBOlC4K8q8ucnYJfXrBvh9lseOMccRTAaznnbDG+SIMlU/qdxdAg/\r
29  erd1OZ7SzvLmCErm/eejkhSqGTpPkntEtJEpkuWczVUC18J8xq2E6HuZ/VB6REPqOwaI\r
30  e+Dfia+1iOGB06yEsv6clwnx5HX8WUqgCFj+YMUF+Ub/6ejZKmuRCqHp/ORUnwNpT5Np\r
31  aIq8zZm0jcUJhpLAKvB9HIK6qHh2mfrDtR+SjwKlBdizFHi2h6RH7+cnwQXRTZQfPjHr\r
32  Z6RptMnT4OrQJa/+y3V75cAyoktkOv583EgL0kkD/mXWkVFcS98CblmdTy47uVcGz7Th\r
33  ETzQ==\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
35  d=1e100.net; s=20130820;\r
36  h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\r
37  :references;\r
38  bh=77/1s1Fetr+nPRWwnXDGg0T1VccWJGgwNE9BAlcWlq4=;\r
39  b=FKDfsgWeES2PfOFDFDM7DaG2+2FLXcd8cyE//WQj4WygqrERERYi0t+pnm7ZWX5KBj\r
40  VGNHUMd+/6zDgoF+57jXudFQ/hHaz49F+YVPbAJy0f+LkDU7jtRLa1KJ3gbNqLABkls4\r
41  99hfgy8XO0HWAEgpKeqWzAOVCKgx9GwUjMX2cN7P5Mh3aHWo4Ad3BQlkbsBVovjuTvRe\r
42  /qVQiDAztEwdyQ94Wd55ps2EUpicT99Gd7ej0psUF3NecSWpcVGcOPgcTRpsETxiOzD8\r
43  pmaw+upvrq97B9C5sGaxqK2DUQK8HnqmO86aLeQznbca9GnpR//3OIDKAmxyJU+nFNUS\r
44  ZfGA==\r
45 X-Gm-Message-State:\r
46  AG10YOTRRE2BkTP6xOEGXKtrmoh13pCeoUZTorhnM5/5H2KfB153tu/RvFO/lTPP0CPzQw==\r
47 X-Received: by 10.28.21.14 with SMTP id 14mr12842158wmv.39.1454931268398;\r
48  Mon, 08 Feb 2016 03:34:28 -0800 (PST)\r
49 Received: from disaster-area.hh.sledj.net\r
50  ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
51  by smtp.gmail.com with ESMTPSA id t3sm29304781wjz.11.2016.02.08.03.34.26\r
52  for <notmuch@notmuchmail.org>\r
53  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
54  Mon, 08 Feb 2016 03:34:27 -0800 (PST)\r
55 Received: from localhost (disaster-area.hh.sledj.net [local])\r
56  by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id d90fac54\r
57  for <notmuch@notmuchmail.org>; Mon, 8 Feb 2016 11:34:22 +0000 (UTC)\r
58 From: David Edmondson <dme@dme.org>\r
59 To: notmuch@notmuchmail.org\r
60 Subject: [PATCH v3 2/2] emacs: `notmuch-show-forward-message' can use\r
61  `notmuch-mua-new-forward-messages'\r
62 Date: Mon,  8 Feb 2016 11:34:22 +0000\r
63 Message-Id: <1454931262-21362-3-git-send-email-dme@dme.org>\r
64 X-Mailer: git-send-email 2.1.4\r
65 In-Reply-To: <1454931262-21362-1-git-send-email-dme@dme.org>\r
66 References: <1454931262-21362-1-git-send-email-dme@dme.org>\r
67 X-BeenThere: notmuch@notmuchmail.org\r
68 X-Mailman-Version: 2.1.20\r
69 Precedence: list\r
70 List-Id: "Use and development of the notmuch mail system."\r
71  <notmuch.notmuchmail.org>\r
72 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
73  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
74 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
75 List-Post: <mailto:notmuch@notmuchmail.org>\r
76 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
77 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
78  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
79 X-List-Received-Date: Mon, 08 Feb 2016 11:34:31 -0000\r
80 \r
81 Which allows `notmuch-mua-new-forward-message' to be removed.\r
82 ---\r
83  emacs/notmuch-mua.el  | 20 --------------------\r
84  emacs/notmuch-show.el |  4 ++--\r
85  2 files changed, 2 insertions(+), 22 deletions(-)\r
86 \r
87 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
88 index 4d50d25..99e23d8 100644\r
89 --- a/emacs/notmuch-mua.el\r
90 +++ b/emacs/notmuch-mua.el\r
91 @@ -405,26 +405,6 @@ the From: address first."\r
92            (list (cons 'From (notmuch-mua-prompt-for-sender))))))\r
93      (notmuch-mua-mail nil nil other-headers nil (notmuch-mua-get-switch-function))))\r
94  \r
95 -(defun notmuch-mua-new-forward-message (&optional prompt-for-sender)\r
96 -  "Invoke the notmuch message forwarding window.\r
97 -\r
98 -The current buffer must contain an RFC2822 message to forward.\r
99 -\r
100 -If PROMPT-FOR-SENDER is non-nil, the user will be prompted for\r
101 -the From: address first."\r
102 -  (let* ((cur (current-buffer))\r
103 -        (message-forward-decoded-p nil)\r
104 -        (subject (message-make-forward-subject))\r
105 -        (other-headers\r
106 -         (when (or prompt-for-sender notmuch-always-prompt-for-sender)\r
107 -           (list (cons 'From (notmuch-mua-prompt-for-sender))))))\r
108 -    (notmuch-mua-mail nil subject other-headers nil (notmuch-mua-get-switch-function))\r
109 -    (message-forward-make-body cur)\r
110 -    ;; `message-forward-make-body' shows the User-agent header.  Hide\r
111 -    ;; it again.\r
112 -    (message-hide-headers)\r
113 -    (set-buffer-modified-p nil)))\r
114 -\r
115  (defun notmuch-mua-new-forward-messages (messages &optional prompt-for-sender)\r
116    "Compose a new message forwarding MESSAGES.\r
117  \r
118 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
119 index a8c6f1e..d40cb09 100644\r
120 --- a/emacs/notmuch-show.el\r
121 +++ b/emacs/notmuch-show.el\r
122 @@ -1796,8 +1796,8 @@ any effects from previous calls to\r
123  (defun notmuch-show-forward-message (&optional prompt-for-sender)\r
124    "Forward the current message."\r
125    (interactive "P")\r
126 -  (with-current-notmuch-show-message\r
127 -   (notmuch-mua-new-forward-message prompt-for-sender)))\r
128 +  (notmuch-mua-new-forward-messages (list (notmuch-show-get-message-id))\r
129 +                                   prompt-for-sender))\r
130  \r
131  (put 'notmuch-show-forward-open-messages 'notmuch-prefix-doc\r
132       "... and prompt for sender")\r
133 -- \r
134 2.1.4\r
135 \r