emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should `frame-title-format' protect the match data?


From: Philipp Stephani
Subject: Re: Should `frame-title-format' protect the match data?
Date: Thu, 24 May 2018 23:58:10 +0200



Philipp Stephani <address@hidden> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]