1
Fork 0
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:
Lars Ingebrigtsen 2022-05-06 13:20:47 +02:00
parent b13356487f
commit b6bced1a66

View file

@ -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'."