diff options
| author | Glenn Morris | 2007-10-12 02:56:39 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-12 02:56:39 +0000 |
| commit | e27e48b582a4a383a4912f3054cb5ab2da653acb (patch) | |
| tree | 435389e5efe764bc8253e910f7f7b73a1d9ee581 | |
| parent | dbffff5b06c438aae24f8143e5c771e009da093a (diff) | |
| download | emacs-e27e48b582a4a383a4912f3054cb5ab2da653acb.tar.gz emacs-e27e48b582a4a383a4912f3054cb5ab2da653acb.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/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 17 |
2 files changed, 17 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 21ae5b78d62..1cfef0ed731 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-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 | |||
| 1 | 2007-10-11 Juanma Barranquero <lekktu@gmail.com> | 7 | 2007-10-11 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 8 | ||
| 3 | * follow.el (follow-stop-intercept-process-output): | 9 | * follow.el (follow-stop-intercept-process-output): |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 1d616cbb02c..5b5a269a0c6 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -2744,7 +2744,12 @@ try matching its doc string against `custom-guess-doc-alist'." | |||
| 2744 | `(("Set for Current Session" custom-variable-set | 2744 | `(("Set for Current Session" custom-variable-set |
| 2745 | (lambda (widget) | 2745 | (lambda (widget) |
| 2746 | (eq (widget-get widget :custom-state) 'modified))) | 2746 | (eq (widget-get widget :custom-state) 'modified))) |
| 2747 | ,@(when (or custom-file user-init-file) | 2747 | ;; Note that in all the backquoted code in this file, we test |
| 2748 | ;; init-file-user rather than user-init-file. This is in case | ||
| 2749 | ;; cus-edit is loaded by something in site-start.el, because | ||
| 2750 | ;; user-init-file is not set at that stage. | ||
| 2751 | ;; http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00310.html | ||
| 2752 | ,@(when (or custom-file init-file-user) | ||
| 2748 | '(("Save for Future Sessions" custom-variable-save | 2753 | '(("Save for Future Sessions" custom-variable-save |
| 2749 | (lambda (widget) | 2754 | (lambda (widget) |
| 2750 | (memq (widget-get widget :custom-state) | 2755 | (memq (widget-get widget :custom-state) |
| @@ -2759,7 +2764,7 @@ try matching its doc string against `custom-guess-doc-alist'." | |||
| 2759 | (get (widget-value widget) 'saved-variable-comment)) | 2764 | (get (widget-value widget) 'saved-variable-comment)) |
| 2760 | (memq (widget-get widget :custom-state) | 2765 | (memq (widget-get widget :custom-state) |
| 2761 | '(modified set changed rogue))))) | 2766 | '(modified set changed rogue))))) |
| 2762 | ,@(when (or custom-file user-init-file) | 2767 | ,@(when (or custom-file init-file-user) |
| 2763 | '(("Erase Customization" custom-variable-reset-standard | 2768 | '(("Erase Customization" custom-variable-reset-standard |
| 2764 | (lambda (widget) | 2769 | (lambda (widget) |
| 2765 | (and (get (widget-value widget) 'standard-value) | 2770 | (and (get (widget-value widget) 'standard-value) |
| @@ -3416,7 +3421,7 @@ SPEC must be a full face spec." | |||
| 3416 | 3421 | ||
| 3417 | (defvar custom-face-menu | 3422 | (defvar custom-face-menu |
| 3418 | `(("Set for Current Session" custom-face-set) | 3423 | `(("Set for Current Session" custom-face-set) |
| 3419 | ,@(when (or custom-file user-init-file) | 3424 | ,@(when (or custom-file init-file-user) |
| 3420 | '(("Save for Future Sessions" custom-face-save))) | 3425 | '(("Save for Future Sessions" custom-face-save))) |
| 3421 | ("Undo Edits" custom-redraw | 3426 | ("Undo Edits" custom-redraw |
| 3422 | (lambda (widget) | 3427 | (lambda (widget) |
| @@ -3425,7 +3430,7 @@ SPEC must be a full face spec." | |||
| 3425 | (lambda (widget) | 3430 | (lambda (widget) |
| 3426 | (or (get (widget-value widget) 'saved-face) | 3431 | (or (get (widget-value widget) 'saved-face) |
| 3427 | (get (widget-value widget) 'saved-face-comment)))) | 3432 | (get (widget-value widget) 'saved-face-comment)))) |
| 3428 | ,@(when (or custom-file user-init-file) | 3433 | ,@(when (or custom-file init-file-user) |
| 3429 | '(("Erase Customization" custom-face-reset-standard | 3434 | '(("Erase Customization" custom-face-reset-standard |
| 3430 | (lambda (widget) | 3435 | (lambda (widget) |
| 3431 | (get (widget-value widget) 'face-defface-spec))))) | 3436 | (get (widget-value widget) 'face-defface-spec))))) |
| @@ -4025,7 +4030,7 @@ Creating group members... %2d%%" | |||
| 4025 | `(("Set for Current Session" custom-group-set | 4030 | `(("Set for Current Session" custom-group-set |
| 4026 | (lambda (widget) | 4031 | (lambda (widget) |
| 4027 | (eq (widget-get widget :custom-state) 'modified))) | 4032 | (eq (widget-get widget :custom-state) 'modified))) |
| 4028 | ,@(when (or custom-file user-init-file) | 4033 | ,@(when (or custom-file init-file-user) |
| 4029 | '(("Save for Future Sessions" custom-group-save | 4034 | '(("Save for Future Sessions" custom-group-save |
| 4030 | (lambda (widget) | 4035 | (lambda (widget) |
| 4031 | (memq (widget-get widget :custom-state) '(modified set)))))) | 4036 | (memq (widget-get widget :custom-state) '(modified set)))))) |
| @@ -4035,7 +4040,7 @@ Creating group members... %2d%%" | |||
| 4035 | ("Reset to Saved" custom-group-reset-saved | 4040 | ("Reset to Saved" custom-group-reset-saved |
| 4036 | (lambda (widget) | 4041 | (lambda (widget) |
| 4037 | (memq (widget-get widget :custom-state) '(modified set)))) | 4042 | (memq (widget-get widget :custom-state) '(modified set)))) |
| 4038 | ,@(when (or custom-file user-init-file) | 4043 | ,@(when (or custom-file init-file-user) |
| 4039 | '(("Erase Customization" custom-group-reset-standard | 4044 | '(("Erase Customization" custom-group-reset-standard |
| 4040 | (lambda (widget) | 4045 | (lambda (widget) |
| 4041 | (memq (widget-get widget :custom-state) '(modified set saved))))))) | 4046 | (memq (widget-get widget :custom-state) '(modified set saved))))))) |