comparison 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
comparison
equal deleted inserted replaced
46872:543ab39f153c 46873:7be80f782e2c
288 (remove-hook 'post-command-hook ',buffers) 288 (remove-hook 'post-command-hook ',buffers)
289 (while ,buffers 289 (while ,buffers
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
301 ;;; 303 ;;;
302 304