From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81006 Path: news.gmane.org!not-for-mail From: david.goldberg6@verizon.net (Dave Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Re: reply to one message and at the same time forward another Date: Fri, 27 Jan 2012 17:52:28 -0500 Message-ID: <84r4ykzrkj.fsf@davestoy.home> References: <87wradd18a.fsf@mat.ucm.es> <874nw4k22u.fsf@mat.ucm.es> <87liot6p3q.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327704810 25438 80.91.229.12 (27 Jan 2012 22:53:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2012 22:53:30 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29288@lists.math.uh.edu Fri Jan 27 23:53:26 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rqufd-0001bJ-28 for ding-account@gmane.org; Fri, 27 Jan 2012 23:53:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RqufB-0006Dh-Ep; Fri, 27 Jan 2012 16:52:57 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Rquf8-0006DS-Pf for ding@lists.math.uh.edu; Fri, 27 Jan 2012 16:52:54 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Rquf7-0002EF-Sk for ding@lists.math.uh.edu; Fri, 27 Jan 2012 16:52:54 -0600 Original-Received: from vms173003pub.verizon.net ([206.46.173.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Rquf6-0003Qw-AG for ding@gnus.org; Fri, 27 Jan 2012 23:52:52 +0100 Original-Received: from davestoy.home.verizon.net ([unknown] [173.48.206.146]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LYH005FIBJHGMB0@vms173003.mailsrvcs.net> for ding@gnus.org; Fri, 27 Jan 2012 16:52:30 -0600 (CST) X-Face: W!bie|rYVd43O:2CkHTb*~s5}Yzx30X<@6Tq_bnP56Hp!xX4sVl4tgYRirjRcke\wfY!JJ9 i?]VIUJicJzq2\!3%7$5R%wi!R[.]Va97q In-reply-to: <87liot6p3q.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 27 Jan 2012 18:18:33 +0100") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.1 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81006 Archived-At: > Uwe Brauer writes: >> >> Is it possible to combine gnus-summary-reply and >> >> gnus-summary-mail-forward, such that I can reply (or >> >> followup) to somebody, including a another mail as >> >> forward. >> >> > I don't think any such command exists, but it does >> > sound kinda useful, and probably wouldn't be too >> > difficult to implement. Gnus and Emacs is in a feature >> > freeze at the moment, though. >> >> Can you give me a hint where to start, I might give it a >> try. > I think the best way to implement this would be to allow people > composing the article in the normal way. But then have a new command in > the summary buffer that would put the article under point into the > Message buffer. > That is, you'd pop to the summary buffer, find the message you want to > include, issue the new command keystroke, and it'd prompt you for > "attach message to buffer *unsent wide repl...*" etc, allowing you to > choose what Message buffer to attach the message to (if there are > several active Message buffers), and then insert the MML the same way `S > O m' and friends do. That would be a lot better than my approach, which is to set up gnus-summary-line-format to display the article number and use this: (defun dsg-message-attach-article (group message) (interactive (list (completing-read "Group: " gnus-active-hashtb nil (gnus-read-active-file-p) nil 'gnus-group-history) (read-number "Message: "))) (let ((tmp (get-buffer-create (generate-new-buffer-name "*DSGTMP*")))) (save-excursion (set-buffer tmp) (gnus-request-article-this-buffer message group)) (mml-attach-buffer (buffer-name tmp) "message/rfc822"))) Since I open message buffers in a new frame, picking up the article number is fairly easy. -- Dave Goldberg david.goldberg6@verizon.net