From: Stefan Monnier Date: Wed, 24 Jun 2015 20:39:52 +0000 (-0400) Subject: * lisp/subr.el (remove-from-invisibility-spec): Handle the t case X-Git-Tag: emacs-25.0.90~1656 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce2e5c7f79df609306158a8a43c3a07af364e1df;p=emacs.git * 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). --- diff --git a/lisp/subr.el b/lisp/subr.el index 5d40aaae41c..535fa2d3d0e 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -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.