From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 46088@debbugs.gnu.org
Subject: bug#46088: 26.3; doc string of `read-regexp'
Date: Wed, 27 Jan 2021 03:37:51 +0100 [thread overview]
Message-ID: <87zh0vds00.fsf@gnus.org> (raw)
In-Reply-To: <SA2PR10MB4474CEB612A688D5A08D64EAF3BE9@SA2PR10MB4474.namprd10.prod.outlook.com> (Drew Adams's message of "Sun, 24 Jan 2021 23:26:18 +0000")
Drew Adams <drew.adams@oracle.com> writes:
> A. This is unclear, to me:
>
> If DEFAULTS is a non-nil symbol, then if `read-regexp-defaults-function'
> is non-nil, we use that in place of DEFAULTS in the following:
> If DEFAULTS is the symbol `regexp-history-last', we use the first
> element of HISTORY (if specified) or `regexp-history'.
> If DEFAULTS is a function, we call it with no arguments and use
> what it returns, which should be either nil, a string, or a list of strings.
That is pretty hard to parse, but the semantics are pretty convoluted,
too. It's saying that if DEFAULTS is a symbol, then the actual value
used comes from `read-regexp-defaults-function' in the two cases
described. That is, if `read-regexp-defaults-function' is non-nil.
I've now tried to reformulate this in Emacs 28, but it's a case of the
code being easier to read than trying to actually describe the semantics.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-01-27 2:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-24 23:26 bug#46088: 26.3; doc string of `read-regexp' Drew Adams
2021-01-27 2:37 ` Lars Ingebrigtsen [this message]
2021-01-27 2:48 ` bug#46088: [External] : " Drew Adams
2021-01-28 6:31 ` Richard Stallman
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=87zh0vds00.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=46088@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.