Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-alias-get-something
@ 2023-08-09 20:17 Bob Newell
  2023-08-10  4:32 ` gnus-alias-get-something Bob Newell
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Newell @ 2023-08-09 20:17 UTC (permalink / raw)
  To: ding

Aloha everyone,

The docs for gnus-alias-identity-alist seem to indicate that
an element of the list can be a function that returns a
string.  I have a need for that in the signature field, which
gnus-alias.el accesses like this:

(defun gnus-alias-get-sig (ID)
  "Return the SIGNATURE portion of ID."
  (gnus-alias-get-something ID 6))

But we also have this:

(defsubst gnus-alias-get-something (ID N)
  "Return the Nth something from ID."
  (let ((rv (nth N ID)))
    (if (and (stringp rv) (= (length rv) 0)) nil rv)))

I tried this on the signature field:

(concat start-lisp-home ".signature")

where start-lisp-home is previously defined as

"~/data/elisp"

and got a symbolp error.

Any insights appreciated.  Probably user error!

-- 
Bob Newell
Honolulu, Hawai`i

- Via GNU/Linux/Emacs/Gnus/BBDB


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-10 18:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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     ` gnus-alias-get-something Bob Newell

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).