Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: sivaramn@sunguru.com (Sivaram Neelakantan)
Subject: Re: gnus 5.9 & msb-mode; display of options
Date: 13 Jan 2003 20:58:45 -0800	[thread overview]
Message-ID: <a7043d61.0301132058.57eaf265@posting.google.com> (raw)
In-Reply-To: <v9y95ps8as.fsf@marauder.physik.uni-ulm.de>

Reiner Steib <4uce.02.r.steib@gmx.net> wrote in message 
[...]
> To follow Lars' suggestion, you could use a function like this and add
> it to `message-sent-hook':
> 
> --8<---------------cut here---------------start------------->8---
> (defun rs-message-rename-buffer ()
>   (interactive)
>   "Rename message buffer."
>   ;; most code borrowed from `message-rename-buffer':
>   (let* ((mail-to (or
> 		   (if (message-news-p) (message-fetch-field "Newsgroups")
> 		     (message-fetch-field "To"))
> 		   ""))
> 	 (mail-trimmed-to
> 	  (if (string-match "," mail-to)
> 	      (concat (substring mail-to 0 (match-beginning 0)) ", ...")
> 	    mail-to))
> 	 (name-default (concat "*message* " mail-trimmed-to)))
>     (rename-buffer (concat " " ;; add " " to make buffer invisible
> 			   name-default) t)))
> (add-hook 'message-sent-hook 'rs-message-rename-buffer)
> --8<---------------cut here---------------end--------------->8---
> 
> Bye, Reiner.

Yes, that worked.  Thanks for showing me how.

regards,
Sivaram


      parent reply	other threads:[~2003-01-14  4:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a7043d61.0301072352.5f57fba7@posting.google.com>
2003-01-10 17:53 ` Lars Magne Ingebrigtsen
     [not found]   ` <87fzs0deac.fsf@enberg.org>
2003-01-10 19:14     ` Lars Magne Ingebrigtsen
2003-01-10 19:35       ` Reiner Steib
2003-01-13  8:00         ` Sivaram Neelakantan
     [not found]           ` <v9y95ps8as.fsf@marauder.physik.uni-ulm.de>
2003-01-14  4:58             ` Sivaram Neelakantan [this message]

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=a7043d61.0301132058.57eaf265@posting.google.com \
    --to=sivaramn@sunguru.com \
    /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).