summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2017-05-13 12:28:48 +0200
committerPhilipp Stephani <phst@google.com>2017-05-13 12:28:48 +0200
commit16004397f40d15d9db6b90632c236c804f38fc40 (patch)
tree96d42386b6d82f52c71724dd2148adb88eed0c52 /lisp/emacs-lisp
parent0e09d00f29e370ecfe2f2b22acff7b98c448bc30 (diff)
downloademacs-16004397f40d15d9db6b90632c236c804f38fc40.tar.gz
emacs-16004397f40d15d9db6b90632c236c804f38fc40.tar.bz2
emacs-16004397f40d15d9db6b90632c236c804f38fc40.zip
Improve unescaped character literal warnings
* src/lread.c (load_warn_unescaped_character_literals) (syms_of_lread): lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Improve formatting of unescaped character literal warnings. * test/src/lread-tests.el (lread-tests--unescaped-char-literals): test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--unescaped-char-literals): Adapt unit tests.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 201733ff033..daad93de182 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -2032,7 +2032,7 @@ and will be removed soon. See (elisp)Backquote in the manual."))
(when lread--unescaped-character-literals
(byte-compile-warn
"unescaped character literals %s detected!"
- (mapconcat #'string
+ (mapconcat (lambda (char) (format "`?%c'" char))
(sort lread--unescaped-character-literals #'<)
", ")))
(byte-compile-toplevel-file-form form)))