Gnus development mailing list
 help / color / mirror / Atom feed
From: Bob Newell <bobnewell@bobnewell.net>
To: ding <ding@gnus.org>
Subject: gnus-alias-get-something
Date: Wed, 09 Aug 2023 10:17:46 -1000	[thread overview]
Message-ID: <875y5o0y39.eaeaqgsgh@djtil.aqads.com> (raw)

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


             reply	other threads:[~2023-08-09 20:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-09 20:17 Bob Newell [this message]
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

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=875y5o0y39.eaeaqgsgh@djtil.aqads.com \
    --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).