mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-07 08:00:48 -08:00
Autoload the buffer-local-set* things
* lisp/emacs-lisp/easy-mmode.el (buffer-local-set-state--get) (buffer-local-restore-state): Autoload. Perhaps it would be better to move these functions to subr.el or something...
This commit is contained in:
parent
b13356487f
commit
b6bced1a66
1 changed files with 2 additions and 0 deletions
|
|
@ -839,6 +839,7 @@ restore the state.
|
|||
(buffer-local-set-state--get ',pairs)
|
||||
(setq-local ,@pairs)))
|
||||
|
||||
;;;###autoload
|
||||
(defun buffer-local-set-state--get (pairs)
|
||||
(let ((states nil))
|
||||
(while pairs
|
||||
|
|
@ -851,6 +852,7 @@ restore the state.
|
|||
(setq pairs (cddr pairs)))
|
||||
(nreverse states)))
|
||||
|
||||
;;;###autoload
|
||||
(defun buffer-local-restore-state (states)
|
||||
"Restore buffer local variable values in STATES.
|
||||
STATES is an object returned by `buffer-local-set-state'."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue