]> git.eshelyaron.com Git - emacs.git/commit
Make warning about unescaped character literals more helpful.
authorPhilipp Stephani <phst@google.com>
Sat, 2 Jun 2018 09:59:02 +0000 (11:59 +0200)
committerPhilipp Stephani <phst@google.com>
Fri, 19 Apr 2019 17:19:35 +0000 (19:19 +0200)
commit0b4b380ce4989afc59848d2b6a350bd1dd7dc7ca
treed48cd46b86ff19c609dd16f7ef799dd720014ef3
parent8aadf6e415b7801cb9fa4c5670b1750da207cf87
Make warning about unescaped character literals more helpful.

See Bug#31676.

* lisp/emacs-lisp/byte-run.el
(byte-run--unescaped-character-literals-warning): New defun.

* src/lread.c (load_warn_unescaped_character_literals): Use new defun.
(syms_of_lread): Define symbol for new defun.

* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Use new
defun.

* 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.
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/bytecomp.el
src/lread.c
test/lisp/emacs-lisp/bytecomp-tests.el
test/src/lread-tests.el