diff lisp/subr.el @ 1899:124ce9dc008b

[xemacs-hg @ 2004-02-05 16:54:57 by james] Add invisibility spec from Emacs 21.3.
author james
date Thu, 05 Feb 2004 16:54:59 +0000
parents c3cf7db99b98
children e6d43c299b9c
line wrap: on
line diff
--- a/lisp/subr.el	Wed Feb 04 22:50:33 2004 +0000
+++ b/lisp/subr.el	Thu Feb 05 16:54:59 2004 +0000
@@ -777,6 +777,25 @@
 ;; END SYNCHED WITH FSF 21.2
 
 
+;; BEGIN SYNCHED WITH FSF 21.3
+
+(defun add-to-invisibility-spec (arg)
+  "Add elements to `buffer-invisibility-spec'.
+See documentation for `buffer-invisibility-spec' for the kind of elements
+that can be added."
+  (if (eq buffer-invisibility-spec t)
+      (setq buffer-invisibility-spec (list t)))
+  (setq buffer-invisibility-spec
+	(cons arg buffer-invisibility-spec)))
+
+(defun remove-from-invisibility-spec (arg)
+  "Remove elements from `buffer-invisibility-spec'."
+  (if (consp buffer-invisibility-spec)
+    (setq buffer-invisibility-spec (delete arg buffer-invisibility-spec))))
+
+;; END SYNCHED WITH FSF 21.3
+
+
 ;;; Basic string functions
 
 ;; XEmacs