Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
648d174d
Commit
648d174d
authored
May 01, 2005
by
Richard M. Stallman
Browse files
(add-to-invisibility-spec, remove-from-invisibility-spec):
Rename ARG to ELEMENT. Doc fix.
parent
bff05d9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/subr.el
lisp/subr.el
+6
-6
No files found.
lisp/ChangeLog
View file @
648d174d
...
...
@@ -11,6 +11,11 @@
Remove aliases and obsolete declarations.
Back out inadvertant changes from previous commit.
2005-05-01 Richard M. Stallman <rms@gnu.org>
* subr.el (add-to-invisibility-spec, remove-from-invisibility-spec):
Rename ARG to ELEMENT. Doc fix.
2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
* files.el (require-final-newline): Make Custom tags consistent
...
...
lisp/subr.el
View file @
648d174d
...
...
@@ -2275,19 +2275,19 @@ If POS is outside the buffer's accessible portion, return nil."
If SYNTAX is nil, return nil."
(and syntax (logand (car syntax) 65535)))
(defun add-to-invisibility-spec (
arg
)
"Add
elements
to `buffer-invisibility-spec'.
(defun add-to-invisibility-spec (
element
)
"Add
ELEMENT
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)))
(cons
element
buffer-invisibility-spec)))
(defun remove-from-invisibility-spec (
arg
)
"Remove
elements
from `buffer-invisibility-spec'."
(defun remove-from-invisibility-spec (
element
)
"Remove
ELEMENT
from `buffer-invisibility-spec'."
(if (consp buffer-invisibility-spec)
(setq buffer-invisibility-spec (delete
arg
buffer-invisibility-spec))))
(setq buffer-invisibility-spec (delete
element
buffer-invisibility-spec))))
(defun global-set-key (key command)
"Give KEY a global binding as COMMAND.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment