Mercurial > emacs
comparison lisp/cus-edit.el @ 90609:bb0e318b7c53
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 447-459)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 141-144)
- Merge from emacs--devo--0
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-115
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 03 Oct 2006 05:04:21 +0000 |
parents | b5c13d1564a9 1a9d85f409b8 |
children | 02cf29720f31 |
comparison
equal
deleted
inserted
replaced
90608:1bc627bac080 | 90609:bb0e318b7c53 |
---|---|
1519 (widget-insert "This is a customization buffer") | 1519 (widget-insert "This is a customization buffer") |
1520 (if description | 1520 (if description |
1521 (widget-insert description)) | 1521 (widget-insert description)) |
1522 (widget-insert (format ". | 1522 (widget-insert (format ". |
1523 %s buttons; type RET or click mouse-1 to actuate one. | 1523 %s buttons; type RET or click mouse-1 to actuate one. |
1524 Editing a setting changes only the text in the buffer. | 1524 Editing a setting changes only the text in the buffer." |
1525 Use the setting's State button to set it or save changes in it. | |
1526 Saving a change normally works by editing your Emacs init file. | |
1527 See " | |
1528 (if custom-raised-buttons | 1525 (if custom-raised-buttons |
1529 "`Raised' text indicates" | 1526 "`Raised' text indicates" |
1530 "Square brackets indicate"))) | 1527 "Square brackets indicate"))) |
1528 (if init-file-user | |
1529 (widget-insert " | |
1530 Use the setting's State button to set it or save changes in it. | |
1531 Saving a change normally works by editing your Emacs init file.") | |
1532 (widget-insert " | |
1533 \nSince you started Emacs with `-q', which inhibits use of the | |
1534 Emacs init file, you cannot save settings into the Emacs init file.")) | |
1535 (widget-insert "\nSee ") | |
1531 (widget-create 'custom-manual | 1536 (widget-create 'custom-manual |
1532 :tag "Custom file" | 1537 :tag "Custom file" |
1533 "(emacs)Saving Customizations") | 1538 "(emacs)Saving Customizations") |
1534 (widget-insert | 1539 (widget-insert |
1535 " for information on how to save in a different file.\n | 1540 " for information on how to save in a different file.\n |
4150 (regexp-quote (custom-file)) | 4155 (regexp-quote (custom-file)) |
4151 "\\'") | 4156 "\\'") |
4152 recentf-exclude))) | 4157 recentf-exclude))) |
4153 (old-buffer (find-buffer-visiting filename))) | 4158 (old-buffer (find-buffer-visiting filename))) |
4154 (with-current-buffer (or old-buffer (find-file-noselect filename)) | 4159 (with-current-buffer (or old-buffer (find-file-noselect filename)) |
4160 (unless (eq major-mode 'emacs-lisp-mode) | |
4161 (emacs-lisp-mode)) | |
4155 (let ((inhibit-read-only t)) | 4162 (let ((inhibit-read-only t)) |
4156 (custom-save-variables) | 4163 (custom-save-variables) |
4157 (custom-save-faces)) | 4164 (custom-save-faces)) |
4158 (let ((file-precious-flag t)) | 4165 (let ((file-precious-flag t)) |
4159 (save-buffer)) | 4166 (save-buffer)) |
4546 (make-local-variable 'custom-local-buffer) | 4553 (make-local-variable 'custom-local-buffer) |
4547 (make-local-variable 'widget-documentation-face) | 4554 (make-local-variable 'widget-documentation-face) |
4548 (setq widget-documentation-face 'custom-documentation) | 4555 (setq widget-documentation-face 'custom-documentation) |
4549 (make-local-variable 'widget-button-face) | 4556 (make-local-variable 'widget-button-face) |
4550 (setq widget-button-face custom-button) | 4557 (setq widget-button-face custom-button) |
4558 | |
4559 ;; We need this because of the "More" button on docstrings. | |
4560 ;; Otherwise clicking on "More" can push point offscreen, which | |
4561 ;; causes the window to recenter on point, which pushes the | |
4562 ;; newly-revealed docstring offscreen; which is annoying. -- cyd. | |
4563 (set (make-local-variable 'widget-button-click-moves-point) t) | |
4564 | |
4551 (set (make-local-variable 'widget-button-pressed-face) custom-button-pressed) | 4565 (set (make-local-variable 'widget-button-pressed-face) custom-button-pressed) |
4552 (set (make-local-variable 'widget-mouse-face) custom-button-mouse) | 4566 (set (make-local-variable 'widget-mouse-face) custom-button-mouse) |
4553 | 4567 |
4554 ;; When possible, use relief for buttons, not bracketing. This test | 4568 ;; When possible, use relief for buttons, not bracketing. This test |
4555 ;; may not be optimal. | 4569 ;; may not be optimal. |