]> git.eshelyaron.com Git - emacs.git/commit
Warn about missing backslashes during load
authorPhilipp Stephani <phst@google.com>
Tue, 30 Jun 2015 20:38:35 +0000 (22:38 +0200)
committerPhilipp Stephani <phst@google.com>
Mon, 1 May 2017 18:39:10 +0000 (20:39 +0200)
commitc2bbdc3316487e34eba1470dd059c0c290431e00
treebed5315e69d89c99c62be4a78e8f26d799643f70
parentb72e36047c9a5d46b02e12252e0fc640b6839903
Warn about missing backslashes during load

* src/lread.c (load_warn_unescaped_character_literals, Fload, read1)
(syms_of_lread): Warn if unescaped character literals are
found (Bug#20152).
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Check for
unescaped character literals during byte compilation.
* test/src/lread-tests.el (lread-tests--unescaped-char-literals): New
unit test.
(lread-tests--with-temp-file, lread-tests--last-message): Helper
functions for unit test.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--unescaped-char-literals): New unit test.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--with-temp-file):
Helper macro for unit test.
lisp/emacs-lisp/bytecomp.el
src/lread.c
test/lisp/emacs-lisp/bytecomp-tests.el
test/src/lread-tests.el