]> code.delx.au - gnu-emacs/commitdiff
(byte-compile-file-form-define-abbrev-table): New function.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 9 Nov 2007 15:57:46 +0000 (15:57 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 9 Nov 2007 15:57:46 +0000 (15:57 +0000)
lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el

index 1919f435af7492c4463e5d8c897c776dac444e4d..cbd685727bd371d557b8ee38e3021bfb6acbd551 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/bytecomp.el (byte-compile-file-form-define-abbrev-table):
+       New function.
+
 2007-11-09  Vinicius Jose Latorre  <viniciusjl@ig.com.br>
 
        * ps-print.el: Clean the code for checking suitable Emacs version.
index c1f547e215dbd8688451c16a4dbac3b7275a194e..7dbeb66db77935a929a1b0aab1247bc71722ea0d 100644 (file)
@@ -2260,6 +2260,13 @@ list that represents a doc string reference.
                   (byte-compile-top-level (nth 2 form) nil 'file))))
     form))
 
+(put 'define-abbrev-table 'byte-hunk-handler 'byte-compile-file-form-define-abbrev-table)
+(defun byte-compile-file-form-define-abbrev-table (form)
+  (when (and (byte-compile-warning-enabled-p 'free-vars)
+             (eq 'quote (car-safe (car-safe (cdr form)))))
+    (push (car-safe (cdr (cadr form))) byte-compile-bound-variables))
+  (byte-compile-keep-pending form))
+
 (put 'custom-declare-variable 'byte-hunk-handler
      'byte-compile-file-form-custom-declare-variable)
 (defun byte-compile-file-form-custom-declare-variable (form)