aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-08-23 18:19:56 +0000
committerStefan Monnier2007-08-23 18:19:56 +0000
commit36e65f7059d02914f834cf925b98e5ce4b251af4 (patch)
treec361710fd690efc82f44ff5dee2572bc8fe2d1d4
parent78b35906a97051307f2a1da76fd9786331e3f3bf (diff)
downloademacs-36e65f7059d02914f834cf925b98e5ce4b251af4.tar.gz
emacs-36e65f7059d02914f834cf925b98e5ce4b251af4.zip
(byte-compile-from-buffer): Check old-style backquotes after each `read'
rather than once per buffer to get more precise location info.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/bytecomp.el16
2 files changed, 11 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 560b47f1344..3e3e133bbe0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12007-08-23 Stefan Monnier <monnier@iro.umontreal.ca> 12007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/bytecomp.el (byte-compile-from-buffer): Check old-style
4 backquotes after each `read' rather than once per buffer.
5
3 * dframe.el: Remove spurious * in custom docstrings. 6 * dframe.el: Remove spurious * in custom docstrings.
4 (dframe-xemacsp): Remove, use (featurep 'xemacs) instead. 7 (dframe-xemacsp): Remove, use (featurep 'xemacs) instead.
5 (dframe-xemacs20p): Remove, inline at the sole use point. 8 (dframe-xemacs20p): Remove, inline at the sole use point.
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 5a7f96fb988..932d94fb368 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1821,7 +1821,6 @@ 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)
1825 ;; #### This is bound in b-c-close-variables. 1824 ;; #### This is bound in b-c-close-variables.
1826 ;; (byte-compile-warnings (if (eq byte-compile-warnings t) 1825 ;; (byte-compile-warnings (if (eq byte-compile-warnings t)
1827 ;; byte-compile-warning-types 1826 ;; byte-compile-warning-types
@@ -1859,19 +1858,20 @@ With argument, insert value in current buffer after the form."
1859 (not (eobp))) 1858 (not (eobp)))
1860 (setq byte-compile-read-position (point) 1859 (setq byte-compile-read-position (point)
1861 byte-compile-last-position byte-compile-read-position) 1860 byte-compile-last-position byte-compile-read-position)
1862 (let ((form (read inbuffer))) 1861 (let* ((old-style-backquotes nil)
1862 (form (read inbuffer)))
1863 ;; Warn about the use of old-style backquotes.
1864 (when old-style-backquotes
1865 (byte-compile-warn "!! The file uses old-style backquotes !!
1866This functionality has been obsolete for more than 10 years already
1867and will be removed soon. See (elisp)Backquote in the manual."))
1863 (byte-compile-file-form form))) 1868 (byte-compile-file-form form)))
1864 ;; Compile pending forms at end of file. 1869 ;; Compile pending forms at end of file.
1865 (byte-compile-flush-pending) 1870 (byte-compile-flush-pending)
1866 ;; Make warnings about unresolved functions 1871 ;; Make warnings about unresolved functions
1867 ;; give the end of the file as their position. 1872 ;; give the end of the file as their position.
1868 (setq byte-compile-last-position (point-max)) 1873 (setq byte-compile-last-position (point-max))
1869 (byte-compile-warn-about-unresolved-functions) 1874 (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.")))
1875 ;; Fix up the header at the front of the output 1875 ;; Fix up the header at the front of the output
1876 ;; if the buffer contains multibyte characters. 1876 ;; if the buffer contains multibyte characters.
1877 (and filename (byte-compile-fix-header filename inbuffer outbuffer)))) 1877 (and filename (byte-compile-fix-header filename inbuffer outbuffer))))