aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diffseq.h
diff options
context:
space:
mode:
authorSpencer Baugh2024-06-04 10:35:10 -0400
committerStefan Monnier2025-04-28 13:46:40 -0400
commit21e340494a5a832453999d3853839db5d8a4d865 (patch)
tree933741370cfcc0fda381375faf55672f9b421e3c /lib/diffseq.h
parenta0f26f3eaf1ccde728806003932dc9e44ef07e9d (diff)
downloademacs-21e340494a5a832453999d3853839db5d8a4d865.tar.gz
emacs-21e340494a5a832453999d3853839db5d8a4d865.zip
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 637dde4aba921435f78d0de769ad74c4f3230aa6, which removed some unnecessary escaping of "." and "?" when printing symbols in prin1. (Actually, if we always escaped "?" (which was the case before 637dde4aba92) then "." only ever needs to be escaped when string_to_number returns non-nil. So 637dde4aba92 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.
Diffstat (limited to 'lib/diffseq.h')
0 files changed, 0 insertions, 0 deletions