Raise an error when detecting old-style backquotes.
commit8b8197235f058276823832eadce66e2de2f9a9cf
authorPhilipp Stephani <phst@google.com>
Tue, 3 Oct 2017 14:14:54 +0000 (3 16:14 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 9 Dec 2017 20:24:05 +0000 (9 21:24 +0100)
treecc1056b104b6a4835d243e1ca22776e083213018
parent6fc0397388c9e03a631806667570959a49b49763
Raise an error when detecting old-style backquotes.

They have been deprecated for a decade now.

* src/lread.c (Fload): Don't use record_unwind_protect to warn about
old-style backquotes any more.  They now generate a hard error.
(read1): Signal an error when detecting old-style backquotes.  Remove
unused label.
(syms_of_lread): Remove unused internal variable
'lread--old-style-backquotes'.
(load_error_old_style_backquotes): Rename from
'load_warn_oldstyle_backquotes'.  Signal an error.

* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Remove check
from byte compiler.  It isn't triggered any more.

* test/src/lread-tests.el (lread-tests--old-style-backquotes): Adapt
unit test.

* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--old-style-backquotes)
(bytecomp-tests-function-put): Adapt unit tests.

* etc/NEWS: Document change.
etc/NEWS
lisp/emacs-lisp/bytecomp.el
src/lread.c
test/lisp/emacs-lisp/bytecomp-tests.el
test/src/lread-tests.el