diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2007-08-22 16:08:42 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2007-08-22 16:08:42 +0000 |
commit | ff1104509225439f10da8e3e187fcfe5ff78bdeb (patch) | |
tree | f5ae9aef26435b044404c9cbfeb1b3d5b20c888c /lisp/emacs-lisp/bytecomp.el | |
parent | 5aa273b0a6dd11613e96f3350d748751e1c43cf0 (diff) | |
download | emacs-ff1104509225439f10da8e3e187fcfe5ff78bdeb.tar.gz |
(byte-compile-from-buffer): Display a big fat warning for old style backquotes.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 12fab768db5..5a7f96fb988 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -1821,6 +1821,7 @@ With argument, insert value in current buffer after the form." ;; new in Emacs 22.1. (read-with-symbol-positions inbuffer) (read-symbol-positions-list nil) + (old-style-backquotes nil) ;; #### This is bound in b-c-close-variables. ;; (byte-compile-warnings (if (eq byte-compile-warnings t) ;; byte-compile-warning-types @@ -1865,7 +1866,12 @@ With argument, insert value in current buffer after the form." ;; Make warnings about unresolved functions ;; give the end of the file as their position. (setq byte-compile-last-position (point-max)) - (byte-compile-warn-about-unresolved-functions)) + (byte-compile-warn-about-unresolved-functions) + ;; Warn about the use of old-style backquotes. + (when old-style-backquotes + (byte-compile-warn "!! The file uses old-style backquotes !! +This functionality has been obsolete for more than 10 years already +and will be removed soon. See (elisp)Backquote in the manual."))) ;; Fix up the header at the front of the output ;; if the buffer contains multibyte characters. (and filename (byte-compile-fix-header filename inbuffer outbuffer)))) |