[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el |
Date: |
Fri, 29 Jul 2005 15:54:20 -0400 |
Index: emacs/lisp/emacs-lisp/bytecomp.el
diff -c emacs/lisp/emacs-lisp/bytecomp.el:2.176
emacs/lisp/emacs-lisp/bytecomp.el:2.177
*** emacs/lisp/emacs-lisp/bytecomp.el:2.176 Sat Jul 16 21:17:10 2005
--- emacs/lisp/emacs-lisp/bytecomp.el Fri Jul 29 19:54:18 2005
***************
*** 3790,3795 ****
--- 3790,3808 ----
(defun byte-compile-no-warnings (form)
(let (byte-compile-warnings)
(byte-compile-form (cons 'progn (cdr form)))))
+
+ ;; Warn about misuses of make-variable-buffer-local.
+ (byte-defop-compiler-1 make-variable-buffer-local
byte-compile-make-variable-buffer-local)
+ (defun byte-compile-make-variable-buffer-local (form)
+ (if (eq (car-safe (car-safe (cdr-safe form))) 'quote)
+ (byte-compile-warn
+ "`make-variable-buffer-local' should be called at toplevel"))
+ (byte-compile-normal-call form))
+ (put 'make-variable-buffer-local
+ 'byte-hunk-handler 'byte-compile-form-make-variable-buffer-local)
+ (defun byte-compile-form-make-variable-buffer-local (form)
+ (byte-compile-keep-pending form 'byte-compile-normal-call))
+
;;; tags
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el, Richard M . Stallman, 2005/07/03
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el, Juanma Barranquero, 2005/07/03
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el, Lute Kamstra, 2005/07/04
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el, Richard M . Stallman, 2005/07/08
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el, Richard M . Stallman, 2005/07/16
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el, Richard M . Stallman, 2005/07/16
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el, Richard M . Stallman, 2005/07/16
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el, Richard M . Stallman, 2005/07/16
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el, Juanma Barranquero, 2005/07/16
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,
Stefan Monnier <=