aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-05-01 13:58:45 +0000
committerRichard M. Stallman2005-05-01 13:58:45 +0000
commit648d174d393745a73c0656653d8317c644acc60f (patch)
treeb963dd5c7d72e31dba659fed2b302e121813c18c
parentbff05d9ea2f28b76f5c0d45370ad7ab39ad61a86 (diff)
downloademacs-648d174d393745a73c0656653d8317c644acc60f.tar.gz
emacs-648d174d393745a73c0656653d8317c644acc60f.zip
(add-to-invisibility-spec, remove-from-invisibility-spec):
Rename ARG to ELEMENT. Doc fix.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/subr.el12
2 files changed, 11 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0aec646afd0..bd943b52acd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -11,6 +11,11 @@
11 Remove aliases and obsolete declarations. 11 Remove aliases and obsolete declarations.
12 Back out inadvertant changes from previous commit. 12 Back out inadvertant changes from previous commit.
13 13
142005-05-01 Richard M. Stallman <rms@gnu.org>
15
16 * subr.el (add-to-invisibility-spec, remove-from-invisibility-spec):
17 Rename ARG to ELEMENT. Doc fix.
18
142005-05-01 Luc Teirlinck <teirllm@auburn.edu> 192005-05-01 Luc Teirlinck <teirllm@auburn.edu>
15 20
16 * files.el (require-final-newline): Make Custom tags consistent 21 * files.el (require-final-newline): Make Custom tags consistent
diff --git a/lisp/subr.el b/lisp/subr.el
index 6418825aa44..6dcb7869f4e 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2275,19 +2275,19 @@ If POS is outside the buffer's accessible portion, return nil."
2275If SYNTAX is nil, return nil." 2275If SYNTAX is nil, return nil."
2276 (and syntax (logand (car syntax) 65535))) 2276 (and syntax (logand (car syntax) 65535)))
2277 2277
2278(defun add-to-invisibility-spec (arg) 2278(defun add-to-invisibility-spec (element)
2279 "Add elements to `buffer-invisibility-spec'. 2279 "Add ELEMENT to `buffer-invisibility-spec'.
2280See documentation for `buffer-invisibility-spec' for the kind of elements 2280See documentation for `buffer-invisibility-spec' for the kind of elements
2281that can be added." 2281that can be added."
2282 (if (eq buffer-invisibility-spec t) 2282 (if (eq buffer-invisibility-spec t)
2283 (setq buffer-invisibility-spec (list t))) 2283 (setq buffer-invisibility-spec (list t)))
2284 (setq buffer-invisibility-spec 2284 (setq buffer-invisibility-spec
2285 (cons arg buffer-invisibility-spec))) 2285 (cons element buffer-invisibility-spec)))
2286 2286
2287(defun remove-from-invisibility-spec (arg) 2287(defun remove-from-invisibility-spec (element)
2288 "Remove elements from `buffer-invisibility-spec'." 2288 "Remove ELEMENT from `buffer-invisibility-spec'."
2289 (if (consp buffer-invisibility-spec) 2289 (if (consp buffer-invisibility-spec)
2290 (setq buffer-invisibility-spec (delete arg buffer-invisibility-spec)))) 2290 (setq buffer-invisibility-spec (delete element buffer-invisibility-spec))))
2291 2291
2292(defun global-set-key (key command) 2292(defun global-set-key (key command)
2293 "Give KEY a global binding as COMMAND. 2293 "Give KEY a global binding as COMMAND.