[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master ce2e5c7: * lisp/subr.el (remove-from-invisibility-s
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] master ce2e5c7: * lisp/subr.el (remove-from-invisibility-spec): Handle the t case |
Date: |
Wed, 24 Jun 2015 20:39:59 +0000 |
branch: master
commit ce2e5c7f79df609306158a8a43c3a07af364e1df
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* 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).
---
lisp/subr.el | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/subr.el b/lisp/subr.el
index 5d40aaa..535fa2d 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master ce2e5c7: * lisp/subr.el (remove-from-invisibility-spec): Handle the t case,
Stefan Monnier <=