* lisp/emacs-lisp/derived.el (define-derived-mode): Make abbrev-table
inherit from parent.
This commit is contained in:
parent
31976bd57d
commit
1a1e3f3207
2 changed files with 10 additions and 2 deletions
|
@ -253,8 +253,11 @@ No problems result if this variable is not bound.
|
|||
`(let ((parent (char-table-parent ,syntax)))
|
||||
(unless (and parent
|
||||
(not (eq parent (standard-syntax-table))))
|
||||
(set-char-table-parent ,syntax (syntax-table)))))))
|
||||
|
||||
(set-char-table-parent ,syntax (syntax-table)))))
|
||||
,(when declare-abbrev
|
||||
`(unless (abbrev-table-get ,abbrev :parents)
|
||||
(abbrev-table-put ,abbrev :parents
|
||||
(list local-abbrev-table))))))
|
||||
(use-local-map ,map)
|
||||
,(when syntax `(set-syntax-table ,syntax))
|
||||
,(when abbrev `(setq local-abbrev-table ,abbrev))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue