diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-03-14 10:27:12 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-03-14 10:29:54 +0100 |
commit | 637dde4aba921435f78d0de769ad74c4f3230aa6 (patch) | |
tree | f6057e5d04746c63a74ab925108432fe7df52d42 /etc | |
parent | 15c61cb359bc0021f14fbcc5a2e0eb71fe0261ab (diff) | |
download | emacs-637dde4aba921435f78d0de769ad74c4f3230aa6.tar.gz |
Don't always escape "." and "?" in `prin1'
* src/print.c (print_object): Only escape "." and "?" when
appearing as the first character in a symbol (bug#23130).
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1076,6 +1076,22 @@ Emacs buffers, like indentation and the like. The new ert function * Incompatible Lisp Changes in Emacs 29.1 +--- +** 'prin1' doesn't always escape "." and "?" in symbols any more. +Previously, symbols like 'foo.bar' would be printed by 'prin1' as +"foo\.bar". This now prints as "foo.bar" instead. The Emacs Lisp +reader interprets these strings as referring to the same symbol, so +this is virtually always backwards-compatible, but there may +theoretically be code out there that expects a specific printed +representation. + +The same is the case with the "?" character: The 'foo?' symbol is now +printed as "foo?" instead of "foo\?". + +If the "." and "?" characters are the first character in the symbol, +they will still be escaped, so the '.foo' symbol is still printed as +"\.foo" and the '?bar' symbol is still printed as "\?bar". + +++ ** Remapping 'mode-line' no longer works as expected. 'mode-line' is now the parent face of the new 'mode-line-active' face, |