[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el |
Date: |
Wed, 10 Apr 2002 10:55:19 -0400 |
Index: emacs/lisp/subr.el
diff -c emacs/lisp/subr.el:1.296 emacs/lisp/subr.el:1.297
*** emacs/lisp/subr.el:1.296 Sun Apr 7 06:09:39 2002
--- emacs/lisp/subr.el Wed Apr 10 10:55:19 2002
***************
*** 808,814 ****
;; (not (member (cons 'not function) hook-value)))
;; (push (cons 'not function) hook-value))
;; Set the actual variable
! (if local (set hook hook-value) (set-default hook hook-value))))
(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.
--- 808,818 ----
;; (not (member (cons 'not function) hook-value)))
;; (push (cons 'not function) hook-value))
;; Set the actual variable
! (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)
"Add to the value of LIST-VAR the element ELEMENT if it isn't there yet.
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Richard M. Stallman, 2002/04/01
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Pavel JanÃk, 2002/04/07
- [Emacs-diffs] Changes to emacs/lisp/subr.el,
Richard M. Stallman <=
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Richard M. Stallman, 2002/04/18
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Kim F. Storm, 2002/04/21
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Richard M. Stallman, 2002/04/27
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Richard M. Stallman, 2002/04/28
- [Emacs-diffs] Changes to emacs/lisp/subr.el, Kim F. Storm, 2002/04/29