GNU bug report logs - #31586
27.0.50; `frame-title-format' doesn't save match data

Previous Next

Package: emacs;

Reported by: Philipp <p.stephani2 <at> gmail.com>

Date: Thu, 24 May 2018 21:57:04 UTC

Severity: wishlist

Merged with 33697

Found in versions 26.1, 27.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Philipp <p.stephani2 <at> gmail.com>
Cc: 31586 <at> debbugs.gnu.org
Subject: bug#31586: 27.0.50; `frame-title-format' doesn't save match data
Date: Fri, 25 May 2018 09:31:02 +0300
> From: Philipp <p.stephani2 <at> gmail.com>
> Date: Thu, 24 May 2018 23:55:57 +0200
> 
> emacs -Q -eval "(setq frame-title-format '(\"\" (:eval (string-match \".\" \"a\"))))"
> 
> Then go to the first character in the scratch buffer (M-<), and run
> 
> M-% a RET b RET
> 
> The first time you attempt to replace something, Emacs will signal an
> error:
> 
> perform-replace: Args out of range: #<buffer *scratch*>, 0, 1

And this is an Emacs bug because...?  The :eval expression is yours,
so it's IMO your responsibility to protect it as needed.




This bug report was last modified 3 years and 16 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.