aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2007-08-22 16:08:42 +0000
committerStefan Monnier2007-08-22 16:08:42 +0000
commitff1104509225439f10da8e3e187fcfe5ff78bdeb (patch)
treef5ae9aef26435b044404c9cbfeb1b3d5b20c888c /lisp
parent5aa273b0a6dd11613e96f3350d748751e1c43cf0 (diff)
downloademacs-ff1104509225439f10da8e3e187fcfe5ff78bdeb.tar.gz
emacs-ff1104509225439f10da8e3e187fcfe5ff78bdeb.zip
(byte-compile-from-buffer): Display a big fat warning for old style backquotes.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/bytecomp.el8
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cd33d38a498..593a390b91a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> 12007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/bytecomp.el (byte-compile-from-buffer): Display a big fat
4 warning if the file uses old style backquotes.
5
3 * emacs-lisp/bytecomp.el (byte-compile-log-file) 6 * emacs-lisp/bytecomp.el (byte-compile-log-file)
4 (byte-recompile-directory, byte-compile-file) 7 (byte-recompile-directory, byte-compile-file)
5 (byte-compile-from-buffer): Use with-current-buffer. 8 (byte-compile-from-buffer): Use with-current-buffer.
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."
1821 ;; new in Emacs 22.1. 1821 ;; new in Emacs 22.1.
1822 (read-with-symbol-positions inbuffer) 1822 (read-with-symbol-positions inbuffer)
1823 (read-symbol-positions-list nil) 1823 (read-symbol-positions-list nil)
1824 (old-style-backquotes nil)
1824 ;; #### This is bound in b-c-close-variables. 1825 ;; #### This is bound in b-c-close-variables.
1825 ;; (byte-compile-warnings (if (eq byte-compile-warnings t) 1826 ;; (byte-compile-warnings (if (eq byte-compile-warnings t)
1826 ;; byte-compile-warning-types 1827 ;; byte-compile-warning-types
@@ -1865,7 +1866,12 @@ With argument, insert value in current buffer after the form."
1865 ;; Make warnings about unresolved functions 1866 ;; Make warnings about unresolved functions
1866 ;; give the end of the file as their position. 1867 ;; give the end of the file as their position.
1867 (setq byte-compile-last-position (point-max)) 1868 (setq byte-compile-last-position (point-max))
1868 (byte-compile-warn-about-unresolved-functions)) 1869 (byte-compile-warn-about-unresolved-functions)
1870 ;; Warn about the use of old-style backquotes.
1871 (when old-style-backquotes
1872 (byte-compile-warn "!! The file uses old-style backquotes !!
1873This functionality has been obsolete for more than 10 years already
1874and will be removed soon. See (elisp)Backquote in the manual.")))
1869 ;; Fix up the header at the front of the output 1875 ;; Fix up the header at the front of the output
1870 ;; if the buffer contains multibyte characters. 1876 ;; if the buffer contains multibyte characters.
1871 (and filename (byte-compile-fix-header filename inbuffer outbuffer)))) 1877 (and filename (byte-compile-fix-header filename inbuffer outbuffer))))