mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
(define-derived-mode): Put `definition-name'
properties on the constructed variable names.
This commit is contained in:
parent
c6a3142d9e
commit
cc793355dc
@ -200,12 +200,19 @@ See Info node `(elisp)Derived Modes' for more details."
|
||||
No problems result if this variable is not bound.
|
||||
`add-hook' automatically binds it. (This is true for all hook variables.)"
|
||||
name)))
|
||||
(unless (boundp ',map)
|
||||
(put ',map 'definition-name ',child))
|
||||
(defvar ,map (make-sparse-keymap))
|
||||
,(if declare-syntax
|
||||
`(defvar ,syntax (make-syntax-table)))
|
||||
`(progn
|
||||
(unless (boundp ',syntax)
|
||||
(put ',syntax 'definition-name ',child))
|
||||
(defvar ,syntax (make-syntax-table))))
|
||||
,(if declare-abbrev
|
||||
`(defvar ,abbrev
|
||||
(progn (define-abbrev-table ',abbrev nil) ,abbrev)))
|
||||
`(progn
|
||||
(put ',abbrev 'definition-name ',child)
|
||||
(defvar ,abbrev
|
||||
(progn (define-abbrev-table ',abbrev nil) ,abbrev))))
|
||||
(put ',child 'derived-mode-parent ',parent)
|
||||
,(if group `(put ',child 'custom-mode-group ,group))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user