1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-31 01:32:00 -07:00

* lisp/progmodes/hideshow.el (hs--set-variable): Use 'set-local' (bug#80999)

This commit is contained in:
Elias Gabriel Perez 2026-04-15 10:58:28 -06:00 committed by Juri Linkov
parent f12b01582d
commit 0e7a24d931

View file

@ -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