# HG changeset patch # User Richard M. Stallman # Date 1029203353 0 # Node ID 7be80f782e2cdb4d8299b1a5e24243ae9fa38d1e # Parent 543ab39f153c1a30cb9a1a75326ade91ce290ac7 (easy-mmode-define-global-mode): Put `definition-name' properties on the functions whose names are constructed. diff -r 543ab39f153c -r 7be80f782e2c lisp/emacs-lisp/easy-mmode.el --- 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