From b6bced1a66969e7645f96c36030eb4e9d90a6dc0 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 6 May 2022 13:20:47 +0200 Subject: [PATCH] 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... --- lisp/emacs-lisp/easy-mmode.el | 2 ++ 1 file changed, 2 insertions(+) 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'." -- 2.39.5