diff options
| author | Karl Heuer | 1999-08-14 03:55:01 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-08-14 03:55:01 +0000 |
| commit | 65a44e9fc083277175c8089bb0692a895df9cb66 (patch) | |
| tree | 6fdafdc1a2899263832558bb89c78142ecbc99b1 | |
| parent | 0b6e8742b785de3b8630afd2bee7378a10d890bf (diff) | |
| download | emacs-65a44e9fc083277175c8089bb0692a895df9cb66.tar.gz emacs-65a44e9fc083277175c8089bb0692a895df9cb66.zip | |
(ad-special-forms): Use track-mouse iff bound.
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index 9f670e8010c..6dab539a019 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el | |||
| @@ -2472,13 +2472,16 @@ will clear the cache." | |||
| 2472 | ;; There is no way to determine whether some subr is a special form or not, | 2472 | ;; There is no way to determine whether some subr is a special form or not, |
| 2473 | ;; hence we need this list (which is probably out of date): | 2473 | ;; hence we need this list (which is probably out of date): |
| 2474 | (defvar ad-special-forms | 2474 | (defvar ad-special-forms |
| 2475 | (mapcar 'symbol-function | 2475 | (let ((tem '(and catch cond condition-case defconst defmacro |
| 2476 | '(and catch cond condition-case defconst defmacro | 2476 | defun defvar function if interactive let let* |
| 2477 | defun defvar function if interactive let let* | 2477 | or prog1 prog2 progn quote save-current-buffer |
| 2478 | or prog1 prog2 progn quote save-current-buffer | 2478 | save-excursion save-restriction save-window-excursion |
| 2479 | save-excursion save-restriction save-window-excursion | 2479 | setq setq-default track-mouse unwind-protect while |
| 2480 | setq setq-default track-mouse unwind-protect while | 2480 | with-output-to-temp-buffer))) |
| 2481 | with-output-to-temp-buffer))) | 2481 | ;; track-mouse could be void in some configurations. |
| 2482 | (if (fboundp 'track-mouse) | ||
| 2483 | (setq tem (cons 'track-mouse tem))) | ||
| 2484 | (mapcar 'symbol-function tem))) | ||
| 2482 | 2485 | ||
| 2483 | (defmacro ad-special-form-p (definition) | 2486 | (defmacro ad-special-form-p (definition) |
| 2484 | ;;"non-nil if DEFINITION is a special form." | 2487 | ;;"non-nil if DEFINITION is a special form." |