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
1087f3e6
Commit
1087f3e6
authored
Apr 10, 2002
by
Richard M. Stallman
Browse files
(remove-hook): When there are no more local hooks,
kill the buffer-local value.
parent
360e0dd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lisp/subr.el
lisp/subr.el
+5
-1
No files found.
lisp/subr.el
View file @
1087f3e6
...
@@ -808,7 +808,11 @@ This makes the hook buffer-local if needed."
...
@@ -808,7 +808,11 @@ This makes the hook buffer-local if needed."
;; (not (member (cons 'not function) hook-value)))
;; (not (member (cons 'not function) hook-value)))
;; (push (cons 'not function) hook-value))
;; (push (cons 'not function) hook-value))
;; Set the actual variable
;; Set the actual variable
(
if
local
(
set
hook
hook-value
)
(
set-default
hook
hook-value
))))
(
if
(
not
local
)
(
set-default
hook
hook-value
)
(
if
(
equal
hook-value
'
(
t
))
(
kill-local-variable
hook
)
(
set
hook
hook-value
)))))
(
defun
add-to-list
(
list-var
element
&optional
append
)
(
defun
add-to-list
(
list-var
element
&optional
append
)
"Add to the value of LIST-VAR the element ELEMENT if it isn't there yet.
"Add to the value of LIST-VAR the element ELEMENT if it isn't there yet.
...
...
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