Subject: bug#34214: 25.3; minibuffer function help in lisp modes changes match-data

From: Stefan Kangas <[email-masked]>
Date: Fri, 18 Sep 2020 02:51:36 -0700

tags 34214 - notabug
thanks

"Miguel V. S. Frasson" <[email-masked]> writes:

> The "documented" behavior is in Elisp Reference, but not in
> doc-strings of functions that rely on match data. So they are not so
> easily spotted by non-experienced users.

I agree that this could be documented in `match-string'.

> IMO it is so easy to avoid interference into user experience in this
> case, adding convenience, just by saving match data inside eldoc...
>
> Should a helper mode be able to "confuse" non-experienced users
> because it could rely on "documented" behavior? If so, why does Emacs
> have disabled commands, if they are also documented?

I have no strong opinion here.  Maybe you're right.

Anyone else?