From 0256550475c324e4b28b2ba93233a5d350e24e31 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 13 Aug 2002 01:49:13 +0000 Subject: (easy-mmode-define-global-mode): Put `definition-name' properties on the functions whose names are constructed. --- lisp/emacs-lisp/easy-mmode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lisp') 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 -- cgit v1.2.1