aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorMiles Bader2004-06-28 07:56:49 +0000
committerMiles Bader2004-06-28 07:56:49 +0000
commit327719ee8a3fcdb36ed6acaf6d8cb5fbdf0bd801 (patch)
tree21de188e13b5e41a79bb50040933072ae0235217 /lisp/cus-edit.el
parent852f73b7fa7b71910282eacb6263b3ecfd4ee783 (diff)
parent376de73927383d6062483db10b8a82448505f52b (diff)
downloademacs-327719ee8a3fcdb36ed6acaf6d8cb5fbdf0bd801.tar.gz
emacs-327719ee8a3fcdb36ed6acaf6d8cb5fbdf0bd801.zip
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-15
Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-218 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-220 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-221 Restore deleted tagline in etc/TUTORIAL.ru * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-222 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-228 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-229 Remove TeX output files from the archive * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-230 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-247 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-248 src/lisp.h (CYCLE_CHECK): Macro moved from xfaces.c * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-249 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-256 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-258 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-263 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-264 Update from CVS: lispref/display.texi: emacs -> Emacs. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-265 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-274 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-275 Update from CVS: man/makefile.w32-in: Revert last change * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-276 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-295 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-296 Allow restarting an existing debugger session that's exited * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-297 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-299 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-300 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-327 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-328 Update from CVS: src/.gdbinit (xsymbol): Fix last change. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-329 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-344 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-345 Tweak source regexps so that building in place won't cause problems * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-346 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-351 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-352 Update from CVS: lisp/flymake.el: New file. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-353 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-361 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-362 Support " [...]" style defaults in minibuffer-electric-default-mode * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-363 (read-number): Use canonical format for default in prompt. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-364 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-367 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-368 Improve display-supports-face-attributes-p on non-ttys * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-369 Rewrite face-differs-from-default-p * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-370 Move `display-supports-face-attributes-p' entirely into C code * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-371 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-372 Simplify face-differs-from-default-p; don't consider :stipple. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-373 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-374 (tty_supports_face_attributes_p): Ensure attributes differ from default * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-375 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-376 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-377 (Fdisplay_supports_face_attributes_p): Work around bootstrapping problem * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-378 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-380 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-381 Face merging cleanups * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-382 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-384 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-385 src/xfaces.c (push_named_merge_point): Return 0 if a cycle is detected * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-386 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-395 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-396 Tweak arch tagging to make build/install-in-place less annoying * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-397 Work around vc-arch problems when building eshell * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-398 Tweak permissions * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-399 Tweak directory permissions * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-400 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-401 More build-in-place tweaking of arch tagging * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-402 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-403 Yet more build-in-place tweaking of arch tagging * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-404 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-409 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-410 Make sure image types are initialized for lookup too * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-411 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-416 Update from CVS
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el39
1 files changed, 29 insertions, 10 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 951b14f7f05..9e0efc5d3d0 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1012,11 +1012,11 @@ version."
1012 1012
1013;;;###autoload 1013;;;###autoload
1014(defun customize-face (&optional face) 1014(defun customize-face (&optional face)
1015 "Customize SYMBOL, which should be a face name or nil. 1015 "Customize FACE, which should be a face name or nil.
1016If SYMBOL is nil, customize all faces. 1016If FACE is nil, customize all faces.
1017 1017
1018Interactively, when point is on text which has a face specified, 1018Interactively, when point is on text which has a face specified,
1019suggest to customized that face, if it's customizable." 1019suggest to customize that face, if it's customizable."
1020 (interactive 1020 (interactive
1021 (list (read-face-name "Customize face" "all faces" t))) 1021 (list (read-face-name "Customize face" "all faces" t)))
1022 (if (member face '(nil "")) 1022 (if (member face '(nil ""))
@@ -1038,10 +1038,10 @@ suggest to customized that face, if it's customizable."
1038 1038
1039;;;###autoload 1039;;;###autoload
1040(defun customize-face-other-window (&optional face) 1040(defun customize-face-other-window (&optional face)
1041 "Show customization buffer for face SYMBOL in other window. 1041 "Show customization buffer for face FACE in other window.
1042 1042
1043Interactively, when point is on text which has a face specified, 1043Interactively, when point is on text which has a face specified,
1044suggest to customized that face, if it's customizable." 1044suggest to customize that face, if it's customizable."
1045 (interactive 1045 (interactive
1046 (list (read-face-name "Customize face" "all faces" t))) 1046 (list (read-face-name "Customize face" "all faces" t)))
1047 (if (member face '(nil "")) 1047 (if (member face '(nil ""))
@@ -1093,7 +1093,7 @@ suggest to customized that face, if it's customizable."
1093 (get symbol 'standard-value)))) 1093 (get symbol 'standard-value))))
1094 (when (and cval ;Declared with defcustom. 1094 (when (and cval ;Declared with defcustom.
1095 (default-boundp symbol) ;Has a value. 1095 (default-boundp symbol) ;Has a value.
1096 (not (equal (eval (car cval)) 1096 (not (equal (eval (car cval))
1097 ;; Which does not match customize. 1097 ;; Which does not match customize.
1098 (default-value symbol)))) 1098 (default-value symbol))))
1099 (push (list symbol 'custom-variable) found))))) 1099 (push (list symbol 'custom-variable) found)))))
@@ -1876,7 +1876,7 @@ and `face'."
1876 (custom-load-symbol (widget-value widget))) 1876 (custom-load-symbol (widget-value widget)))
1877 1877
1878(defun custom-unloaded-symbol-p (symbol) 1878(defun custom-unloaded-symbol-p (symbol)
1879 "Return non-nil if the dependencies of SYMBOL has not yet been loaded." 1879 "Return non-nil if the dependencies of SYMBOL have not yet been loaded."
1880 (let ((found nil) 1880 (let ((found nil)
1881 (loads (get symbol 'custom-loads)) 1881 (loads (get symbol 'custom-loads))
1882 load) 1882 load)
@@ -1894,7 +1894,7 @@ and `face'."
1894 found)) 1894 found))
1895 1895
1896(defun custom-unloaded-widget-p (widget) 1896(defun custom-unloaded-widget-p (widget)
1897 "Return non-nil if the dependencies of WIDGET has not yet been loaded." 1897 "Return non-nil if the dependencies of WIDGET have not yet been loaded."
1898 (custom-unloaded-symbol-p (widget-value widget))) 1898 (custom-unloaded-symbol-p (widget-value widget)))
1899 1899
1900(defun custom-toggle-hide (widget) 1900(defun custom-toggle-hide (widget)
@@ -2074,11 +2074,25 @@ If INITIAL-STRING is non-nil, use that rather than \"Parent groups:\"."
2074 :group 'custom-buffer 2074 :group 'custom-buffer
2075 :version "20.3") 2075 :version "20.3")
2076 2076
2077(defun custom-variable-documentation (variable)
2078 "Return documentation of VARIABLE for use in Custom buffer.
2079Normally just return the docstring. But if VARIABLE automatically
2080becomes buffer local when set, append a message to that effect."
2081 (if (and (local-variable-if-set-p variable)
2082 (or (not (local-variable-p variable))
2083 (with-temp-buffer
2084 (local-variable-if-set-p variable))))
2085 (concat (documentation-property variable 'variable-documentation)
2086 "\n
2087This variable automatically becomes buffer-local when set outside Custom.
2088However, setting it through Custom sets the default value.")
2089 (documentation-property variable 'variable-documentation)))
2090
2077(define-widget 'custom-variable 'custom 2091(define-widget 'custom-variable 'custom
2078 "Customize variable." 2092 "Customize variable."
2079 :format "%v" 2093 :format "%v"
2080 :help-echo "Set or reset this variable." 2094 :help-echo "Set or reset this variable."
2081 :documentation-property 'variable-documentation 2095 :documentation-property #'custom-variable-documentation
2082 :custom-category 'option 2096 :custom-category 'option
2083 :custom-state nil 2097 :custom-state nil
2084 :custom-menu 'custom-variable-menu-create 2098 :custom-menu 'custom-variable-menu-create
@@ -2646,7 +2660,7 @@ Also change :reverse-video to :inverse-video."
2646 (widget-setup))))) 2660 (widget-setup)))))
2647 2661
2648(defun custom-face-edit-delete (widget) 2662(defun custom-face-edit-delete (widget)
2649 "Remove widget from the buffer." 2663 "Remove WIDGET from the buffer."
2650 (let ((inactive (widget-get widget :inactive)) 2664 (let ((inactive (widget-get widget :inactive))
2651 (inhibit-read-only t) 2665 (inhibit-read-only t)
2652 (inhibit-modification-hooks t)) 2666 (inhibit-modification-hooks t))
@@ -2729,6 +2743,10 @@ Match grayscale frames.")
2729Match frames with no color support.") 2743Match frames with no color support.")
2730 mono))) 2744 mono)))
2731 (group :sibling-args (:help-echo "\ 2745 (group :sibling-args (:help-echo "\
2746The minimum number of colors the frame should support.")
2747 (const :format "" min-colors)
2748 (integer :tag "Minimum number of colors" ))
2749 (group :sibling-args (:help-echo "\
2732Only match frames with the specified intensity.") 2750Only match frames with the specified intensity.")
2733 (const :format "\ 2751 (const :format "\
2734Background brightness: " 2752Background brightness: "
@@ -4023,6 +4041,7 @@ The format is suitable for use with `easy-menu-define'."
4023 (suppress-keymap custom-mode-map) 4041 (suppress-keymap custom-mode-map)
4024 (define-key custom-mode-map " " 'scroll-up) 4042 (define-key custom-mode-map " " 'scroll-up)
4025 (define-key custom-mode-map "\177" 'scroll-down) 4043 (define-key custom-mode-map "\177" 'scroll-down)
4044 (define-key custom-mode-map "\C-x\C-s" 'Custom-save)
4026 (define-key custom-mode-map "q" 'Custom-buffer-done) 4045 (define-key custom-mode-map "q" 'Custom-buffer-done)
4027 (define-key custom-mode-map "u" 'Custom-goto-parent) 4046 (define-key custom-mode-map "u" 'Custom-goto-parent)
4028 (define-key custom-mode-map "n" 'widget-forward) 4047 (define-key custom-mode-map "n" 'widget-forward)