Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: calling gnus-group-mail with a groupname
Date: Wed, 31 Dec 2003 04:00:34 +0100	[thread overview]
Message-ID: <m3d6a5n12l.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <m21xreaufq.fsf@catbert.dok.org>

Chris Green <cmg@dok.org> writes:

> (defun cmg:mail-xyz ()
>   "Use this to mail using the posting style of xyx"
>   (interactive)
>   ;; overwrite the group-name function
>   (flet ((gnus-group-group-name (&optional arg) "xyz"))
>     (gnus-group-mail "xyz"))) ;; I wish it could use an arg groupname
>
> Replacing gnus-group-mail with (message (gnus-group-group-name)) seems
> to do the right thing.

I've never used flet in Emacs Lisp -- doesn't it have lexical scope?
If it does, that would explain what you're seeing.  (If not, then
it's weirder.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




  reply	other threads:[~2003-12-31  3:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-09 15:21 Chris Green
2003-12-31  3:00 ` Lars Magne Ingebrigtsen [this message]
2004-01-13 17:00   ` Johan Bockgård

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=m3d6a5n12l.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    /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).