From: Bob Newell <bobnewell@bobnewell.net>
To: ding <ding@gnus.org>
Subject: Re: gnus-alias-get-something
Date: Thu, 10 Aug 2023 08:16:02 -1000 [thread overview]
Message-ID: <87pm3udaql.bxcl@ppgx.lolkrvl.org> (raw)
In-Reply-To: <87r0obz73t.fsf@thaodan.de> (=?utf-8?Q?=22Bj=C3=B6rn?= Bidar"'s message of "Thu, 10 Aug 2023 10:31:18 +0300")
Björn Bidar <bjorn.bidar@thaodan.de> writes:
> Should it be?
> (setq gnus-alias-identity-alist
> '(
> ("aol"
> nil
> "Bob Newell <newell.bob@aol.com>"
> nil
> (("BCC" . "bobnewell@bobnewell.net")) ;; extra headers
> nil
> #'rjn-make-sig-string
> )
>
> You have write the function name as a reference, the bare name makes it
> look like a variable.
>
I've tried it both ways and #'rjn-make-sig-string returns a
symbolp error while the bare rjn-make-sig-string works! Yes,
I know, this is absolutely contrary to expectations.
The relevant code fragment from gnus-alias.el is this
;; what is it, list or function?
(cond
;; .........................
;; a function
((functionp first-elem)
;; call function; if it returns non-nil, use the identity
(when (funcall first-elem)
(setq identity (cadr current-choice))
))
The functionp test passes and then the funcall works on the
bare name but not on the #' prefixed name.
The ways of Gnus!
--
Bob Newell
Honolulu, Hawai`i
- Via GNU/Linux/Emacs/Gnus/BBDB
prev parent reply other threads:[~2023-08-10 18:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-09 20:17 gnus-alias-get-something Bob Newell
2023-08-10 4:32 ` gnus-alias-get-something Bob Newell
2023-08-10 4:40 ` gnus-alias-get-something Emanuel Berg
2023-08-10 7:26 ` gnus-alias-get-something Bob Newell
2023-08-10 7:31 ` gnus-alias-get-something Björn Bidar
2023-08-10 18:16 ` Bob Newell [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=87pm3udaql.bxcl@ppgx.lolkrvl.org \
--to=bobnewell@bobnewell.net \
--cc=ding@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).