diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-08-13 01:49:13 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-08-13 01:49:13 +0000 |
commit | 0256550475c324e4b28b2ba93233a5d350e24e31 (patch) | |
tree | 5feea834a465dc70a10b967c7893fd926679e05e | |
parent | 46cdfe8f2e6f4e6c7ee61e9b9c8d7185598021a0 (diff) | |
download | emacs-0256550475c324e4b28b2ba93233a5d350e24e31.tar.gz |
(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." (let ((buf (pop ,buffers))) (when (buffer-live-p buf) (with-current-buffer buf (,turn-on)))))) + (put ',buffers 'definition-name ',global-mode) ;; The function that catches kill-all-local-variables. (defun ,cmmh () (add-to-list ',buffers (current-buffer)) - (add-hook 'post-command-hook ',buffers))))) + (add-hook 'post-command-hook ',buffers)) + (put ',cmmh 'definition-name ',global-mode)))) ;;; ;;; easy-mmode-defmap |