diff options
| author | Stefan Monnier | 2007-11-09 15:57:46 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-11-09 15:57:46 +0000 |
| commit | b7c76a30f9717dccc396fd4fc7493cbbf589a8e8 (patch) | |
| tree | b8dc5d731d08a77607d5555c42381710b1c5793d | |
| parent | d54ad496474b0294cb99bd072e17c9db56e97c53 (diff) | |
| download | emacs-b7c76a30f9717dccc396fd4fc7493cbbf589a8e8.tar.gz emacs-b7c76a30f9717dccc396fd4fc7493cbbf589a8e8.zip | |
(byte-compile-file-form-define-abbrev-table): New function.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1919f435af7..cbd685727bd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-11-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-file-form-define-abbrev-table): | ||
| 4 | New function. | ||
| 5 | |||
| 1 | 2007-11-09 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 6 | 2007-11-09 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 2 | 7 | ||
| 3 | * ps-print.el: Clean the code for checking suitable Emacs version. | 8 | * ps-print.el: Clean the code for checking suitable Emacs version. |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index c1f547e215d..7dbeb66db77 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -2260,6 +2260,13 @@ list that represents a doc string reference. | |||
| 2260 | (byte-compile-top-level (nth 2 form) nil 'file)))) | 2260 | (byte-compile-top-level (nth 2 form) nil 'file)))) |
| 2261 | form)) | 2261 | form)) |
| 2262 | 2262 | ||
| 2263 | (put 'define-abbrev-table 'byte-hunk-handler 'byte-compile-file-form-define-abbrev-table) | ||
| 2264 | (defun byte-compile-file-form-define-abbrev-table (form) | ||
| 2265 | (when (and (byte-compile-warning-enabled-p 'free-vars) | ||
| 2266 | (eq 'quote (car-safe (car-safe (cdr form))))) | ||
| 2267 | (push (car-safe (cdr (cadr form))) byte-compile-bound-variables)) | ||
| 2268 | (byte-compile-keep-pending form)) | ||
| 2269 | |||
| 2263 | (put 'custom-declare-variable 'byte-hunk-handler | 2270 | (put 'custom-declare-variable 'byte-hunk-handler |
| 2264 | 'byte-compile-file-form-custom-declare-variable) | 2271 | 'byte-compile-file-form-custom-declare-variable) |
| 2265 | (defun byte-compile-file-form-custom-declare-variable (form) | 2272 | (defun byte-compile-file-form-custom-declare-variable (form) |