1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 14:30:42 -08:00
emacs/test/src
Spencer Baugh 21e340494a Don't escape "." in `prin1' when followed by a letter
Among other users, let-alist widely uses symbols which start with a ".".
Make those symbols print more nicely by tweaking the escaping rules in
print_object to not escape a leading "." followed by a letter.  This is
a conservative change to avoid constraining future lexer changes.

This is a followup to 637dde4aba, which
removed some unnecessary escaping of "." and "?" when printing symbols
in prin1.  (Actually, if we always escaped "?" (which was the case
before 637dde4aba) then "." only ever needs to be escaped when
string_to_number returns non-nil.  So 637dde4aba could have just
dropped the escaping of "." with no other changes, if it didn't also
remove escaping of "?")

* src/print.c (print_object): Don't escape "." as the first
character in a symbol if followed by a letter. (bug#77656).
* test/src/print-tests.el (test-dots): Update for new behavior.
2025-04-28 13:46:40 -04:00
..
comp-resources Update copyright year to 2025 2025-01-02 18:39:42 +01:00
emacs-module-resources Update copyright year to 2025 2025-01-02 18:39:42 +01:00
lread-resources Make force-load-doc-strings work again 2022-08-07 10:25:03 +02:00
regex-resources * src/regex-emacs.c (analyze_first): Fix incorrect optimization 2023-09-27 13:29:50 -04:00
syntax-resources Enhance syntax-tests.el to test nestable comments (Lisp style) 2020-11-17 16:51:49 +00:00
alloc-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
buffer-tests.el Prefer ert-with-temp-directory in tests 2025-02-23 03:46:57 +01:00
callint-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
callproc-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
casefiddle-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
character-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
charset-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
chartab-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cmds-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
coding-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
comp-tests.el Fix a nativecomp type propagation bug (bug#74771) 2025-03-23 17:33:27 +01:00
data-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
decompress-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
doc-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
editfns-tests.el src/insdel.c (adjust_markers_for_replace): Fix insertion case 2025-03-29 17:49:49 -04:00
emacs-module-tests.el Prefer plusp/minusp to cl-plusp/cl-minusp 2025-02-17 22:46:56 +01:00
emacs-tests.el Port allows-stdout test to overly-suspicious bwrap 2025-01-22 11:04:57 -08:00
eval-tests.el Correctly unload variable aliases. 2025-03-16 12:52:40 -04:00
fileio-tests.el Prefer ert-with-temp-directory in tests 2025-02-23 03:46:57 +01:00
filelock-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
floatfns-tests.el Prefer oddp/evenp to free-coding them in tests 2025-02-17 05:37:10 +01:00
fns-tests.el Add basic and low-level tests for hash tables 2025-03-24 00:57:47 +01:00
font-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
image-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
indent-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
inotify-tests.el Guarantee delivery of inotify special events 2025-02-26 10:39:46 +08:00
json-tests.el Respect narrowed buffers when parsing JSON (bug#77325) 2025-03-30 11:52:07 +00:00
keyboard-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
keymap-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
lcms-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
lread-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
marker-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
minibuf-tests.el Prefer incf to cl-incf in tests 2025-02-23 00:38:22 +01:00
print-tests.el Don't escape "." in `prin1' when followed by a letter 2025-04-28 13:46:40 -04:00
process-tests.el Adapt process-tests to Android 2025-02-28 21:06:48 +08:00
regex-emacs-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
search-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
sqlite-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
syntax-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
textprop-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
thread-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
timefns-tests.el Use eabs in Fcurrent_time_zone 2025-01-13 01:05:42 +01:00
treesit-tests.el Use the first parser from 'treesit-parser-list' to fix tests. 2025-04-17 09:49:04 +03:00
undo-tests.el Prefer oddp/evenp to free-coding them in tests 2025-02-17 05:37:10 +01:00
xdisp-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
xfaces-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
xml-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00