]> code.delx.au - gnu-emacs/commitdiff
* lisp/subr.el (remove-from-invisibility-spec): Handle the t case
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Jun 2015 20:39:52 +0000 (16:39 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Jun 2015 20:39:52 +0000 (16:39 -0400)
* lisp/subr.el (remove-from-invisibility-spec): Make sure `element'
is visible even if it's not yet in buffer-invisibility-spec (bug#20468).

lisp/subr.el

index 5d40aaae41cac1117e337f41748fe3ca4c3c9682..535fa2d3d0efbd58a97a4bde92ef9f1aad62fe69 100644 (file)
@@ -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))))
 \f
 ;;;; Syntax tables.