Commit ce2e5c7f authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/subr.el (remove-from-invisibility-spec): Handle the t case

* lisp/subr.el (remove-from-invisibility-spec): Make sure `element'
is visible even if it's not yet in buffer-invisibility-spec (bug#20468).
parent 4fba36ce
......@@ -4066,9 +4066,10 @@ that can be added."
(defun remove-from-invisibility-spec (element)
"Remove ELEMENT from `buffer-invisibility-spec'."
(if (consp buffer-invisibility-spec)
(setq buffer-invisibility-spec
(delete element buffer-invisibility-spec))))
(setq buffer-invisibility-spec
(if (consp buffer-invisibility-spec)
(delete element buffer-invisibility-spec)
(list t))))
;;;; Syntax tables.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment