Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Josh Huber <huber@alum.wpi.edu>
Subject: Re: How to attach messages in Gnus (was Re: Which one shall I choose?)
Date: Fri, 07 Jun 2002 11:54:27 -0400	[thread overview]
Message-ID: <874rgfaxu4.fsf@alum.wpi.edu> (raw)
In-Reply-To: <m3zny7cey3.fsf@iwr05.mathematik.uni-karlsruhe.de>

Martin Schulz <schulz@iwrmm.math.uni-karlsruhe.de> writes:

> And what is if - - while already writing the message -- it comes to
> mind that I could cite that other message?

Good question.  I usually do this manually (C-x C-b, copy, paste,
etc), but having some sort of method to do this would be nice, IMHO.

how about:

(defun gnus-reply-buffers ()
  (delete nil (mapcar
	       (lambda (b) (if (string-match
				"^*\\(wide \\)?\\(followup\\|reply\\) to"
				(buffer-name b))
			       (cons (buffer-name b) b) nil))
	       (buffer-list))))

(defun gnus-article-yank-to-other-buffer (&optional n)
  (interactive "P")
  (let* ((articles (gnus-summary-work-articles n))
	 (buffers (gnus-reply-buffers))
	 (buffer 
	  (completing-read "Buffer to yank into: "
			   buffers
			   nil nil (caar buffers))))
    (set-buffer (get-buffer buffer))
    (gnus-inews-yank-articles articles)))

While composing a message, just switch to the summary buffer and M-x
gnus-article-yank-to-other-buffer and select the buffer you want to
cite.

Warning: this is a quick hack ;)  YMMV!

ttyl,

-- 
Josh Huber


  parent reply	other threads:[~2002-06-07 15:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8z5uq9vh.fsf@hotmail.com>
     [not found] ` <864rgiufvp.fsf@potato.vegetable.org.uk>
2002-06-05 11:55   ` Which one shall I choose? Erwan David
     [not found]     ` <iloverobin.87it4xjvpn.fsf@news.socha.net>
2002-06-05 21:53       ` Michael Slass
     [not found]       ` <87d6v5ndzq.fsf@bretagne.rail.eu.org>
     [not found]         ` <vafu1ogh9vm.fsf@lucy.cs.uni-dortmund.de>
     [not found]           ` <854rggh7yn.fsf@bretagne.rail.eu.org>
2002-06-06 13:58             ` Kai Großjohann
     [not found]         ` <v9sn40vjrj.fsf@marauder.physik.uni-ulm.de>
2002-06-06 10:01           ` Erwan David
2002-06-06 14:21           ` Robert Uhl <ruhl@4dv.net>
2002-06-05 12:08 ` those who know me have no need of my name
     [not found]   ` <87ofep7vrr.fsf@landhaus.consult-meyers.com>
2002-06-05 19:31     ` Michał Kurowski
2002-06-05 19:39       ` Josh Huber
     [not found]       ` <iloverobin.87n0u9jvuw.fsf@news.socha.net>
2002-06-06  7:32         ` Tim Hammerquist
     [not found]           ` <d6v4zdg7.fsf@bitstream.com>
2002-06-06 18:34             ` A. L. Meyers
     [not found]           ` <m3ptz2ly5z.fsf@sysengr.res.ray.com>
2002-06-08  1:27             ` Tim Hammerquist
     [not found]   ` <hekgbh2j.fsf_-_@hotmail.com>
     [not found]     ` <vaf4rgf1m6a.fsf@lucy.cs.uni-dortmund.de>
     [not found]       ` <lm9rqvpe.fsf@hotmail.com>
     [not found]         ` <vaf7klbjrfr.fsf@lucy.cs.uni-dortmund.de>
     [not found]           ` <m3zny7cey3.fsf@iwr05.mathematik.uni-karlsruhe.de>
2002-06-07 15:54             ` Josh Huber [this message]
2002-06-07 18:34             ` How to attach messages in Gnus (was Re: Which one shall I choose?) Kai Großjohann
     [not found] ` <87ofeq3quj.fsf@millingtons.org>
     [not found]   ` <20020605130342.GC3285@klaus.daprodeges.dyndns.org>
2002-06-05 15:10     ` Which one shall I choose? Josh Huber
2002-06-05 15:31       ` Juha Siltala
     [not found]     ` <ufsftjheieimf5@news.supernews.com>
2002-06-05 16:48       ` those who know me have no need of my name
2002-06-08 14:11 ` Michael Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874rgfaxu4.fsf@alum.wpi.edu \
    --to=huber@alum.wpi.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).