From 16004397f40d15d9db6b90632c236c804f38fc40 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Sat, 13 May 2017 12:28:48 +0200 Subject: 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. --- test/lisp/emacs-lisp/bytecomp-tests.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/lisp/emacs-lisp') diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index 3624904753c..84004a9264a 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el @@ -527,7 +527,8 @@ literals (Bug#20852)." (err (should-error (byte-compile-file source)))) (should (equal (cdr err) (list (concat "unescaped character literals " - "\", (, ), ;, [, ] detected!")))))))) + "`?\"', `?(', `?)', `?;', `?[', `?]' " + "detected!")))))))) ;; Local Variables: ;; no-byte-compile: t -- cgit v1.2.3