From 0e7a24d93131924837f93dd6b3ea27e6585d1bd1 Mon Sep 17 00:00:00 2001 From: Elias Gabriel Perez Date: Wed, 15 Apr 2026 10:58:28 -0600 Subject: [PATCH] * lisp/progmodes/hideshow.el (hs--set-variable): Use 'set-local' (bug#80999) --- lisp/progmodes/hideshow.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 34a3fe97da3..f781a82b105 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el @@ -1228,9 +1228,9 @@ DEFAULT is a value to use as fallback." (val (if (integerp nth) (nth nth old-lookup) (funcall nth old-lookup)))) - (set (make-local-variable var) val) + (set-local var val) (when default - (set (make-local-variable var) default))))) + (set-local var default))))) ;; TODO: When `hs-special-modes-alist' is removed, `hs-grok-mode-type' ;; and `hs--set-variable' will no longer be necessary, but