summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/easy-mmode.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-05-06 13:20:47 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-05-06 13:20:47 +0200
commitb6bced1a66969e7645f96c36030eb4e9d90a6dc0 (patch)
treeb61bc4cae0a545a3c695bb1ac67e13ab92216925 /lisp/emacs-lisp/easy-mmode.el
parentb13356487fc3eaf82bfe51bee24ddf70c27c5834 (diff)
downloademacs-b6bced1a66969e7645f96c36030eb4e9d90a6dc0.tar.gz
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...
Diffstat (limited to 'lisp/emacs-lisp/easy-mmode.el')
-rw-r--r--lisp/emacs-lisp/easy-mmode.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 33c0472ea87..bade14ec3d8 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -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'."