* Should `frame-title-format' protect the match data?
@ 2018-05-18 16:50 Philipp Stephani
2018-05-24 21:58 ` Philipp Stephani
0 siblings, 1 reply; 2+ messages in thread
From: Philipp Stephani @ 2018-05-18 16:50 UTC (permalink / raw)
To: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
Hi,
consider
emacs -Q -eval "(setq frame-title-format '(\"\" (:eval (string-match \".\"
\"a\"))))"
If you then run `query-replace' and actually try to replace something you
get an error "args out of range" because the match data changed
unexpectedly. This happens on master and the release branch, but not in
Emacs 24.5.
Should `frame-title-format' protect the match data, or does Emacs expect
users to do that?
Thanks,
Philipp
[-- Attachment #2: Type: text/html, Size: 632 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Should `frame-title-format' protect the match data?
2018-05-18 16:50 Should `frame-title-format' protect the match data? Philipp Stephani
@ 2018-05-24 21:58 ` Philipp Stephani
0 siblings, 0 replies; 2+ messages in thread
From: Philipp Stephani @ 2018-05-24 21:58 UTC (permalink / raw)
To: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 546 bytes --]
Philipp Stephani <p.stephani2@gmail.com> schrieb am Fr., 18. Mai 2018 um
18:50 Uhr:
> Hi,
>
> consider
>
> emacs -Q -eval "(setq frame-title-format '(\"\" (:eval (string-match \".\"
> \"a\"))))"
>
> If you then run `query-replace' and actually try to replace something you
> get an error "args out of range" because the match data changed
> unexpectedly. This happens on master and the release branch, but not in
> Emacs 24.5.
> Should `frame-title-format' protect the match data, or does Emacs expect
> users to do that?
>
Filed as bug#31586.
[-- Attachment #2: Type: text/html, Size: 960 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-24 21:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-18 16:50 Should `frame-title-format' protect the match data? Philipp Stephani
2018-05-24 21:58 ` Philipp Stephani
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.