diff options
| author | Richard M. Stallman | 2002-08-13 01:49:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-08-13 01:49:13 +0000 |
| commit | 0256550475c324e4b28b2ba93233a5d350e24e31 (patch) | |
| tree | 5feea834a465dc70a10b967c7893fd926679e05e | |
| parent | 46cdfe8f2e6f4e6c7ee61e9b9c8d7185598021a0 (diff) | |
| download | emacs-0256550475c324e4b28b2ba93233a5d350e24e31.tar.gz emacs-0256550475c324e4b28b2ba93233a5d350e24e31.zip | |
(easy-mmode-define-global-mode): Put `definition-name' properties on
the functions whose names are constructed.
| -rw-r--r-- | lisp/emacs-lisp/easy-mmode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index d916bc2f57c..b1149c7d848 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el | |||
| @@ -290,11 +290,13 @@ in which `%s' turns it on." | |||
| 290 | (let ((buf (pop ,buffers))) | 290 | (let ((buf (pop ,buffers))) |
| 291 | (when (buffer-live-p buf) | 291 | (when (buffer-live-p buf) |
| 292 | (with-current-buffer buf (,turn-on)))))) | 292 | (with-current-buffer buf (,turn-on)))))) |
| 293 | (put ',buffers 'definition-name ',global-mode) | ||
| 293 | 294 | ||
| 294 | ;; The function that catches kill-all-local-variables. | 295 | ;; The function that catches kill-all-local-variables. |
| 295 | (defun ,cmmh () | 296 | (defun ,cmmh () |
| 296 | (add-to-list ',buffers (current-buffer)) | 297 | (add-to-list ',buffers (current-buffer)) |
| 297 | (add-hook 'post-command-hook ',buffers))))) | 298 | (add-hook 'post-command-hook ',buffers)) |
| 299 | (put ',cmmh 'definition-name ',global-mode)))) | ||
| 298 | 300 | ||
| 299 | ;;; | 301 | ;;; |
| 300 | ;;; easy-mmode-defmap | 302 | ;;; easy-mmode-defmap |