aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-12 02:56:23 +0000
committerGlenn Morris2007-10-12 02:56:23 +0000
commit9b5007e73117924e4c253eb628421be5deda3f4a (patch)
tree2b9c9d919216dcce1eee09b3c31cf4d05793c790
parent5f14478455a90bbd012bf9d5a4d351d8ca743550 (diff)
downloademacs-9b5007e73117924e4c253eb628421be5deda3f4a.tar.gz
emacs-9b5007e73117924e4c253eb628421be5deda3f4a.zip
(custom-variable-menu, custom-face-menu)
(custom-group-menu): Check init-file-user rather than user-init-file, in case cus-edit is loaded by site-run-file.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/cus-edit.el17
2 files changed, 19 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3faf83b6e61..df0bb34172a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-10-12 Glenn Morris <rgm@gnu.org>
2
3 * cus-edit.el (custom-variable-menu, custom-face-menu)
4 (custom-group-menu): Check init-file-user rather than
5 user-init-file, in case cus-edit is loaded by site-run-file.
6
12007-10-11 Dan Nicolaescu <dann@ics.uci.edu> 72007-10-11 Dan Nicolaescu <dann@ics.uci.edu>
2 8
3 * vc.el (vc-deduce-fileset): Delete unused code. 9 * vc.el (vc-deduce-fileset): Delete unused code.
@@ -17,8 +23,8 @@
17 (with-vc-properties): Fievaluation time of a macro argument. 23 (with-vc-properties): Fievaluation time of a macro argument.
18 24
19 * ediff-vers.el (ediff-vc-internal): 25 * ediff-vers.el (ediff-vc-internal):
20 vc-hooks.el: 26 * vc-hooks.el:
21 loaddefs.el: Follow up on VC terminology change. 27 * loaddefs.el: Follow up on VC terminology change.
22 28
232007-10-11 Juanma Barranquero <lekktu@gmail.com> 292007-10-11 Juanma Barranquero <lekktu@gmail.com>
24 30
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 8f7ad22dce6..3bc83604227 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -2682,7 +2682,12 @@ try matching its doc string against `custom-guess-doc-alist'."
2682 `(("Set for Current Session" custom-variable-set 2682 `(("Set for Current Session" custom-variable-set
2683 (lambda (widget) 2683 (lambda (widget)
2684 (eq (widget-get widget :custom-state) 'modified))) 2684 (eq (widget-get widget :custom-state) 'modified)))
2685 ,@(when (or custom-file user-init-file) 2685 ;; Note that in all the backquoted code in this file, we test
2686 ;; init-file-user rather than user-init-file. This is in case
2687 ;; cus-edit is loaded by something in site-start.el, because
2688 ;; user-init-file is not set at that stage.
2689 ;; http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00310.html
2690 ,@(when (or custom-file init-file-user)
2686 '(("Save for Future Sessions" custom-variable-save 2691 '(("Save for Future Sessions" custom-variable-save
2687 (lambda (widget) 2692 (lambda (widget)
2688 (memq (widget-get widget :custom-state) 2693 (memq (widget-get widget :custom-state)
@@ -2697,7 +2702,7 @@ try matching its doc string against `custom-guess-doc-alist'."
2697 (get (widget-value widget) 'saved-variable-comment)) 2702 (get (widget-value widget) 'saved-variable-comment))
2698 (memq (widget-get widget :custom-state) 2703 (memq (widget-get widget :custom-state)
2699 '(modified set changed rogue))))) 2704 '(modified set changed rogue)))))
2700 ,@(when (or custom-file user-init-file) 2705 ,@(when (or custom-file init-file-user)
2701 '(("Erase Customization" custom-variable-reset-standard 2706 '(("Erase Customization" custom-variable-reset-standard
2702 (lambda (widget) 2707 (lambda (widget)
2703 (and (get (widget-value widget) 'standard-value) 2708 (and (get (widget-value widget) 'standard-value)
@@ -3371,7 +3376,7 @@ SPEC must be a full face spec."
3371 3376
3372(defvar custom-face-menu 3377(defvar custom-face-menu
3373 `(("Set for Current Session" custom-face-set) 3378 `(("Set for Current Session" custom-face-set)
3374 ,@(when (or custom-file user-init-file) 3379 ,@(when (or custom-file init-file-user)
3375 '(("Save for Future Sessions" custom-face-save))) 3380 '(("Save for Future Sessions" custom-face-save)))
3376 ("Undo Edits" custom-redraw 3381 ("Undo Edits" custom-redraw
3377 (lambda (widget) 3382 (lambda (widget)
@@ -3380,7 +3385,7 @@ SPEC must be a full face spec."
3380 (lambda (widget) 3385 (lambda (widget)
3381 (or (get (widget-value widget) 'saved-face) 3386 (or (get (widget-value widget) 'saved-face)
3382 (get (widget-value widget) 'saved-face-comment)))) 3387 (get (widget-value widget) 'saved-face-comment))))
3383 ,@(when (or custom-file user-init-file) 3388 ,@(when (or custom-file init-file-user)
3384 '(("Erase Customization" custom-face-reset-standard 3389 '(("Erase Customization" custom-face-reset-standard
3385 (lambda (widget) 3390 (lambda (widget)
3386 (get (widget-value widget) 'face-defface-spec))))) 3391 (get (widget-value widget) 'face-defface-spec)))))
@@ -3978,7 +3983,7 @@ Creating group members... %2d%%"
3978 `(("Set for Current Session" custom-group-set 3983 `(("Set for Current Session" custom-group-set
3979 (lambda (widget) 3984 (lambda (widget)
3980 (eq (widget-get widget :custom-state) 'modified))) 3985 (eq (widget-get widget :custom-state) 'modified)))
3981 ,@(when (or custom-file user-init-file) 3986 ,@(when (or custom-file init-file-user)
3982 '(("Save for Future Sessions" custom-group-save 3987 '(("Save for Future Sessions" custom-group-save
3983 (lambda (widget) 3988 (lambda (widget)
3984 (memq (widget-get widget :custom-state) '(modified set)))))) 3989 (memq (widget-get widget :custom-state) '(modified set))))))
@@ -3988,7 +3993,7 @@ Creating group members... %2d%%"
3988 ("Reset to Saved" custom-group-reset-saved 3993 ("Reset to Saved" custom-group-reset-saved
3989 (lambda (widget) 3994 (lambda (widget)
3990 (memq (widget-get widget :custom-state) '(modified set)))) 3995 (memq (widget-get widget :custom-state) '(modified set))))
3991 ,@(when (or custom-file user-init-file) 3996 ,@(when (or custom-file init-file-user)
3992 '(("Erase Customization" custom-group-reset-standard 3997 '(("Erase Customization" custom-group-reset-standard
3993 (lambda (widget) 3998 (lambda (widget)
3994 (memq (widget-get widget :custom-state) '(modified set saved))))))) 3999 (memq (widget-get widget :custom-state) '(modified set saved)))))))