diff options
| author | Stefan Monnier | 2007-08-22 16:08:42 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-08-22 16:08:42 +0000 |
| commit | ff1104509225439f10da8e3e187fcfe5ff78bdeb (patch) | |
| tree | f5ae9aef26435b044404c9cbfeb1b3d5b20c888c | |
| parent | 5aa273b0a6dd11613e96f3350d748751e1c43cf0 (diff) | |
| download | emacs-ff1104509225439f10da8e3e187fcfe5ff78bdeb.tar.gz emacs-ff1104509225439f10da8e3e187fcfe5ff78bdeb.zip | |
(byte-compile-from-buffer): Display a big fat warning for old style backquotes.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 8 | ||||
| -rw-r--r-- | lispref/macros.texi | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cd33d38a498..593a390b91a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-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 !! | ||
| 1873 | This functionality has been obsolete for more than 10 years already | ||
| 1874 | and 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)))) |
diff --git a/lispref/macros.texi b/lispref/macros.texi index 6dea53ac983..b62c8b99d74 100644 --- a/lispref/macros.texi +++ b/lispref/macros.texi | |||
| @@ -365,7 +365,7 @@ whitespace between the @samp{`}, @samp{,} or @samp{,@@} and the | |||
| 365 | following expression. | 365 | following expression. |
| 366 | 366 | ||
| 367 | This syntax is still accepted, for compatibility with old Emacs | 367 | This syntax is still accepted, for compatibility with old Emacs |
| 368 | versions, but we recommend not using it in new programs. | 368 | versions, but support for it will soon disappear. |
| 369 | 369 | ||
| 370 | @node Problems with Macros | 370 | @node Problems with Macros |
| 371 | @section Common Problems Using Macros | 371 | @section Common Problems Using Macros |