diff lisp/emacs-lisp/easy-mmode.el @ 46873:7be80f782e2c

(easy-mmode-define-global-mode): Put `definition-name' properties on the functions whose names are constructed.
author Richard M. Stallman <rms@gnu.org>
date Tue, 13 Aug 2002 01:49:13 +0000
parents 1576fb3105fe
children 3c3d686b25fa
line wrap: on
line diff
--- a/lisp/emacs-lisp/easy-mmode.el	Tue Aug 13 01:48:42 2002 +0000
+++ b/lisp/emacs-lisp/easy-mmode.el	Tue Aug 13 01:49:13 2002 +0000
@@ -290,11 +290,13 @@
 	   (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