diff options
author | Philipp Stephani <phst@google.com> | 2017-05-13 12:28:48 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2017-05-13 12:28:48 +0200 |
commit | 16004397f40d15d9db6b90632c236c804f38fc40 (patch) | |
tree | 96d42386b6d82f52c71724dd2148adb88eed0c52 /test/lisp/emacs-lisp | |
parent | 0e09d00f29e370ecfe2f2b22acff7b98c448bc30 (diff) | |
download | emacs-16004397f40d15d9db6b90632c236c804f38fc40.tar.gz |
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 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/bytecomp-tests.el | 3 |
1 files changed, 2 insertions, 1 deletions
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 |