emacs-devel
[Top][All Lists]
Advanced

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

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


From: Philipp Stephani
Subject: Should `frame-title-format' protect the match data?
Date: Fri, 18 May 2018 18:50:33 +0200

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

reply via email to

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