From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 43836@debbugs.gnu.org
Subject: bug#43836: 27.1; Doc string of `alist-get'
Date: Wed, 07 Oct 2020 04:51:40 +0200 [thread overview]
Message-ID: <87d01u929v.fsf@gnus.org> (raw)
In-Reply-To: <3022a1e4-54c0-492e-8175-8067fb306cb1@default> (Drew Adams's message of "Tue, 6 Oct 2020 12:26:40 -0700 (PDT)")
Drew Adams <drew.adams@oracle.com> writes:
> The doc string is less clear in 27.1 than it was in 26.3.
>
> Instead of saying that a generalized variable is involved, it says:
>
> You can use `alist-get' in PLACE expressions. This will modify
> an existing association (more precisely, the first one if
> multiple exist), or add a new element to the beginning of ALIST,
> destructively modifying the list stored in ALIST.
>
> A user can a least look up "generalized variable" in Emacs 26. The
> Emacs 27 version just refers to "PLACE expressions", which is unclear
> and can't be looked up easily. And why is PLACE uppercase, which
> indicates that it's something in the calling sequence or is otherwise
> defined in the doc string somehow?
I've now reintroduced "generalized variable" and downcased PLACE in
Emacs 28.
> It's also not clear how _adding_ a new element to the beginning of ALIST
> destructively modifies it. Does it really mean setting the car of ALIST
> to a different element, not adding an element?
The example that follows on clarifies what's meant here.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-10-07 2:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-06 19:26 bug#43836: 27.1; Doc string of `alist-get' Drew Adams
2020-10-07 2:51 ` Lars Ingebrigtsen [this message]
2020-10-07 4:29 ` Drew Adams
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=87d01u929v.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=43836@debbugs.gnu.org \
--cc=drew.adams@oracle.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.