aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2016-01-30 11:48:18 -0800
committerGlenn Morris2016-01-30 11:51:10 -0800
commit0fac75fed1c7d61858bef15e951bf9a0835d5bac (patch)
treebf2d4471a9933147fa22e717e55f82ef18483f6a
parent2df0e04296b73d212875ce46c8734ec255496a78 (diff)
downloademacs-0fac75fed1c7d61858bef15e951bf9a0835d5bac.tar.gz
emacs-0fac75fed1c7d61858bef15e951bf9a0835d5bac.zip
Improve the custom type of some user options.
* lisp/desktop.el (desktop-minor-mode-table): * lisp/man.el (Man-frame-parameters): * lisp/midnight.el (midnight-delay): * lisp/speedbar.el (speedbar-select-frame-method): * lisp/tooltip.el (tooltip-frame-parameters): * lisp/tree-widget.el (tree-widget-space-width): * lisp/type-break.el (type-break-keystroke-threshold): * lisp/woman.el (woman-imenu-generic-expression): * lisp/cedet/ede.el (ede-debug-program-function): * lisp/cedet/ede/project-am.el (project-am-debug-target-function): * lisp/emulation/viper-keym.el (viper-toggle-key): * lisp/erc/erc-networks.el (erc-server-alist): * lisp/gnus/message.el (message-deletable-headers, message-signature): * lisp/mail/mailalias.el (mail-directory-stream): * lisp/play/tetris.el (tetris-x-colors): * lisp/progmodes/gud.el (gud-tooltip-modes): Improve custom type.
-rw-r--r--lisp/cedet/ede.el2
-rw-r--r--lisp/cedet/ede/project-am.el2
-rw-r--r--lisp/desktop.el4
-rw-r--r--lisp/emulation/viper-keym.el6
-rw-r--r--lisp/erc/erc-networks.el10
-rw-r--r--lisp/gnus/message.el8
-rw-r--r--lisp/mail/mailalias.el7
-rw-r--r--lisp/man.el4
-rw-r--r--lisp/midnight.el2
-rw-r--r--lisp/play/tetris.el10
-rw-r--r--lisp/progmodes/gud.el2
-rw-r--r--lisp/speedbar.el8
-rw-r--r--lisp/tooltip.el4
-rw-r--r--lisp/tree-widget.el6
-rw-r--r--lisp/type-break.el2
-rw-r--r--lisp/woman.el5
16 files changed, 56 insertions, 26 deletions
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el
index 41d6c8903b0..f013d4302b7 100644
--- a/lisp/cedet/ede.el
+++ b/lisp/cedet/ede.el
@@ -96,7 +96,7 @@ target willing to take the file. `never' means never perform the check."
96(defcustom ede-debug-program-function 'gdb 96(defcustom ede-debug-program-function 'gdb
97 "Default Emacs command used to debug a target." 97 "Default Emacs command used to debug a target."
98 :group 'ede 98 :group 'ede
99 :type 'sexp) ; make this be a list of options some day 99 :type 'function) ; make this be a list of options some day
100 100
101(defcustom ede-project-directories nil 101(defcustom ede-project-directories nil
102 "Directories in which EDE may search for project files. 102 "Directories in which EDE may search for project files.
diff --git a/lisp/cedet/ede/project-am.el b/lisp/cedet/ede/project-am.el
index e1b0c3d74fe..715f3cf46d5 100644
--- a/lisp/cedet/ede/project-am.el
+++ b/lisp/cedet/ede/project-am.el
@@ -65,7 +65,7 @@
65(defcustom project-am-debug-target-function 'gdb 65(defcustom project-am-debug-target-function 'gdb
66 "*Default Emacs command used to debug a target." 66 "*Default Emacs command used to debug a target."
67 :group 'project-am 67 :group 'project-am
68 :type 'sexp) ; make this be a list some day 68 :type 'function) ; make this be a list some day
69 69
70(defconst project-am-type-alist 70(defconst project-am-type-alist
71 '(("bin" project-am-program "bin_PROGRAMS" t) 71 '(("bin" project-am-program "bin_PROGRAMS" t)
diff --git a/lisp/desktop.el b/lisp/desktop.el
index e795d9c2300..822db050e1f 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -554,7 +554,9 @@ RESTORE-FUNCTION nil means don't try to restore the minor mode.
554Only minor modes for which the name of the buffer-local variable 554Only minor modes for which the name of the buffer-local variable
555and the name of the minor mode function are different have to be added to 555and the name of the minor mode function are different have to be added to
556this table. See also `desktop-minor-mode-handlers'." 556this table. See also `desktop-minor-mode-handlers'."
557 :type 'sexp 557 :type '(alist :key-type (symbol :tag "Minor mode")
558 :value-type (list :tag "Restore function"
559 (choice (const nil) function)))
558 :group 'desktop) 560 :group 'desktop)
559 561
560;;;###autoload 562;;;###autoload
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el
index 998f850f8c5..f5bb32fcb2d 100644
--- a/lisp/emulation/viper-keym.el
+++ b/lisp/emulation/viper-keym.el
@@ -154,10 +154,8 @@ viper-insert-basic-map. Not recommended, except for novice users.")
154;; Some important keys used in viper 154;; Some important keys used in viper
155(defcustom viper-toggle-key [(control ?z)] ; "\C-z" 155(defcustom viper-toggle-key [(control ?z)] ; "\C-z"
156 "The key used to change states from Emacs to Vi and back. 156 "The key used to change states from Emacs to Vi and back.
157In insert mode, this key also functions as Meta. 157In insert mode, this key also functions as Meta."
158 158 :type 'key-sequence
159Enter as a sexp. Examples: \"\\C-z\", [(control ?z)]."
160 :type 'sexp
161 :group 'viper 159 :group 'viper
162 :set (lambda (symbol value) 160 :set (lambda (symbol value)
163 (let ((old-value (if (boundp 'viper-toggle-key) 161 (let ((old-value (if (boundp 'viper-toggle-key)
diff --git a/lisp/erc/erc-networks.el b/lisp/erc/erc-networks.el
index c859a48a79a..f911d6438be 100644
--- a/lisp/erc/erc-networks.el
+++ b/lisp/erc/erc-networks.el
@@ -443,7 +443,15 @@ NET is a symbol indicating to which network from `erc-networks-alist' this
443HOST is the servers hostname and 443HOST is the servers hostname and
444PORTS is either a number, a list of numbers, or a list of port ranges." 444PORTS is either a number, a list of numbers, or a list of port ranges."
445 :group 'erc-networks 445 :group 'erc-networks
446 :type 'sexp) 446 :type '(alist :key-type (string :tag "Name")
447 :value-type
448 (group symbol (string :tag "Hostname")
449 (choice :tag "Ports"
450 (integer :tag "Port number")
451 (repeat :tag "List of ports or ranges"
452 (choice (integer :tag "Port number")
453 (list :tag "Port range"
454 integer integer)))))))
447 455
448(defcustom erc-networks-alist 456(defcustom erc-networks-alist
449 '((4-irc "4-irc.com") 457 '((4-irc "4-irc.com")
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index f175036e96f..27cae74c755 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -256,10 +256,10 @@ This is a list of regexps and regexp matches."
256 :type '(repeat regexp)) 256 :type '(repeat regexp))
257 257
258(defcustom message-deletable-headers '(Message-ID Date Lines) 258(defcustom message-deletable-headers '(Message-ID Date Lines)
259 "Headers to be deleted if they already exist and were generated by message previously." 259 "Headers to delete if present and previously generated by message."
260 :group 'message-headers 260 :group 'message-headers
261 :link '(custom-manual "(message)Message Headers") 261 :link '(custom-manual "(message)Message Headers")
262 :type 'sexp) 262 :type '(repeat (symbol :tag "Header")))
263 263
264(defcustom message-ignored-news-headers 264(defcustom message-ignored-news-headers
265 "^NNTP-Posting-Host:\\|^Xref:\\|^[BGF]cc:\\|^Resent-Fcc:\\|^X-Draft-From:\\|^X-Gnus-Agent-Meta-Information:\\|^X-Message-SMTP-Method:\\|^X-Gnus-Delayed:" 265 "^NNTP-Posting-Host:\\|^Xref:\\|^[BGF]cc:\\|^Resent-Fcc:\\|^X-Draft-From:\\|^X-Gnus-Agent-Meta-Information:\\|^X-Message-SMTP-Method:\\|^X-Gnus-Delayed:"
@@ -1072,7 +1072,9 @@ If t, the `message-signature-file' file will be inserted instead.
1072If a function, the result from the function will be used instead. 1072If a function, the result from the function will be used instead.
1073If a form, the result from the form will be used instead." 1073If a form, the result from the form will be used instead."
1074 :version "23.2" 1074 :version "23.2"
1075 :type 'sexp 1075 :type '(choice string (const :tag "Contents of signature file" t)
1076 function
1077 sexp)
1076 :risky t 1078 :risky t
1077 :link '(custom-manual "(message)Insertion Variables") 1079 :link '(custom-manual "(message)Insertion Variables")
1078 :group 'message-insertion) 1080 :group 'message-insertion)
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el
index 35528af2c49..59670a7dcbd 100644
--- a/lisp/mail/mailalias.el
+++ b/lisp/mail/mailalias.el
@@ -130,7 +130,12 @@ or like this:
130 130
131(defcustom mail-directory-stream nil 131(defcustom mail-directory-stream nil
132 "List of (HOST SERVICE) for stream connection to mail directory." 132 "List of (HOST SERVICE) for stream connection to mail directory."
133 :type 'sexp 133 :type '(choice (const nil)
134 (list (string :tag "Host name or ip address")
135 (choice (integer :tag "Service port number")
136 (string :tag "Service name"))
137 (plist :inline t
138 :tag "Additional open-network-stream parameters")))
134 :group 'mailalias) 139 :group 'mailalias)
135(put 'mail-directory-stream 'risky-local-variable t) 140(put 'mail-directory-stream 'risky-local-variable t)
136 141
diff --git a/lisp/man.el b/lisp/man.el
index 04a7fc3fe7a..b483dd12e8a 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -184,7 +184,9 @@ The value also can be a positive integer for a fixed width."
184 184
185(defcustom Man-frame-parameters nil 185(defcustom Man-frame-parameters nil
186 "Frame parameter list for creating a new frame for a manual page." 186 "Frame parameter list for creating a new frame for a manual page."
187 :type 'sexp 187 :type '(repeat (cons :format "%v"
188 (symbol :tag "Parameter")
189 (sexp :tag "Value")))
188 :group 'man) 190 :group 'man)
189 191
190(defcustom Man-downcase-section-letters-flag t 192(defcustom Man-downcase-section-letters-flag t
diff --git a/lisp/midnight.el b/lisp/midnight.el
index a9eedd74624..0e68eb923cd 100644
--- a/lisp/midnight.el
+++ b/lisp/midnight.el
@@ -217,7 +217,7 @@ You should set this variable before loading midnight.el, or
217set it by calling `midnight-delay-set', or use `custom'. 217set it by calling `midnight-delay-set', or use `custom'.
218If you wish, you can use a string instead, it will be passed as the 218If you wish, you can use a string instead, it will be passed as the
219first argument to `run-at-time'." 219first argument to `run-at-time'."
220 :type 'sexp 220 :type '(choice integer string)
221 :set #'midnight-delay-set) 221 :set #'midnight-delay-set)
222 222
223(provide 'midnight) 223(provide 'midnight)
diff --git a/lisp/play/tetris.el b/lisp/play/tetris.el
index b68b5417479..d4ab668a4e9 100644
--- a/lisp/play/tetris.el
+++ b/lisp/play/tetris.el
@@ -87,9 +87,15 @@ If the return value is a number, it is used as the timer period."
87 87
88(defcustom tetris-x-colors 88(defcustom tetris-x-colors
89 [[0 0 1] [0.7 0 1] [1 1 0] [1 0 1] [0 1 1] [0 1 0] [1 0 0]] 89 [[0 0 1] [0.7 0 1] [1 1 0] [1 0 1] [0 1 1] [0 1 0] [1 0 0]]
90 "Vector of colors of the various shapes." 90 "Vector of RGB colors of the various shapes."
91 :group 'tetris 91 :group 'tetris
92 :type 'sexp) 92 :type '(vector (vector :tag "Shape 1" number number number)
93 (vector :tag "Shape 2" number number number)
94 (vector :tag "Shape 3" number number number)
95 (vector :tag "Shape 4" number number number)
96 (vector :tag "Shape 5" number number number)
97 (vector :tag "Shape 6" number number number)
98 (vector :tag "Shape 7" number number number)))
93 99
94(defcustom tetris-buffer-name "*Tetris*" 100(defcustom tetris-buffer-name "*Tetris*"
95 "Name used for Tetris buffer." 101 "Name used for Tetris buffer."
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 7843efdf158..356cd3e0532 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -3406,7 +3406,7 @@ it if ARG is omitted or nil."
3406(defcustom gud-tooltip-modes '(gud-mode c-mode c++-mode fortran-mode 3406(defcustom gud-tooltip-modes '(gud-mode c-mode c++-mode fortran-mode
3407 python-mode) 3407 python-mode)
3408 "List of modes for which to enable GUD tooltips." 3408 "List of modes for which to enable GUD tooltips."
3409 :type 'sexp 3409 :type '(repeat (symbol :tag "Major mode"))
3410 :group 'gud 3410 :group 'gud
3411 :group 'tooltip) 3411 :group 'tooltip)
3412 3412
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index f4698732077..4ed00ae439d 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -3469,11 +3469,11 @@ TOKEN will be the list, and INDENT is the current indentation level."
3469;; 3469;;
3470(defcustom speedbar-select-frame-method 'attached 3470(defcustom speedbar-select-frame-method 'attached
3471 "Specify how to select a frame for displaying a file. 3471 "Specify how to select a frame for displaying a file.
3472A value of `attached' means to use the attached frame (the frame 3472A number such as 1 or -1 means to pass that number to `other-frame'
3473that speedbar was started from.) A number such as 1 or -1 means to 3473while selecting a frame from speedbar. Any other value means to use
3474pass that number to `other-frame' while selecting a frame from speedbar." 3474the attached frame (the frame that speedbar was started from)."
3475 :group 'speedbar 3475 :group 'speedbar
3476 :type 'sexp) 3476 :type '(choice integer (other :tag "attached" attached)))
3477 3477
3478(defun speedbar-find-file-in-frame (file) 3478(defun speedbar-find-file-in-frame (file)
3479 "This will load FILE into the speedbar attached frame. 3479 "This will load FILE into the speedbar attached frame.
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index ce190e95829..60eabec8b43 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -127,7 +127,9 @@ position to pop up the tooltip.
127 127
128Note that font and color parameters are ignored, and the attributes 128Note that font and color parameters are ignored, and the attributes
129of the `tooltip' face are used instead." 129of the `tooltip' face are used instead."
130 :type 'sexp 130 :type '(repeat (cons :format "%v"
131 (symbol :tag "Parameter")
132 (sexp :tag "Value")))
131 :group 'tooltip) 133 :group 'tooltip)
132 134
133(defface tooltip 135(defface tooltip
diff --git a/lisp/tree-widget.el b/lisp/tree-widget.el
index fd502dd1847..0ffb8dc96dc 100644
--- a/lisp/tree-widget.el
+++ b/lisp/tree-widget.el
@@ -208,9 +208,11 @@ icon widgets used to draw the tree. By default these images are used:
208 208
209(defcustom tree-widget-space-width 0.5 209(defcustom tree-widget-space-width 0.5
210 "Amount of space between an icon image and a node widget. 210 "Amount of space between an icon image and a node widget.
211Must be a valid space :width display property." 211Must be a valid space :width display property.
212See Info node `(elisp)Specified Space'."
212 :group 'tree-widget 213 :group 'tree-widget
213 :type 'sexp) 214 :type '(choice (number :tag "Multiple of normal character width")
215 sexp))
214 216
215;;; Image support 217;;; Image support
216;; 218;;
diff --git a/lisp/type-break.el b/lisp/type-break.el
index ba708b2956c..0b3ee756619 100644
--- a/lisp/type-break.el
+++ b/lisp/type-break.el
@@ -133,7 +133,7 @@ keystroke even though they really require multiple keys to generate them.
133The command `type-break-guesstimate-keystroke-threshold' can be used to 133The command `type-break-guesstimate-keystroke-threshold' can be used to
134guess a reasonably good pair of values for this variable." 134guess a reasonably good pair of values for this variable."
135 :set-after '(type-break-interval) 135 :set-after '(type-break-interval)
136 :type 'sexp 136 :type '(cons (choice integer (const nil)) (choice integer (const nil)))
137 :group 'type-break) 137 :group 'type-break)
138 138
139(defcustom type-break-query-function 'yes-or-no-p 139(defcustom type-break-query-function 'yes-or-no-p
diff --git a/lisp/woman.el b/lisp/woman.el
index 4ca7dbee5de..28a47986c2f 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -752,7 +752,10 @@ Default is t."
752 "Imenu support for Sections and Subsections. 752 "Imenu support for Sections and Subsections.
753An alist with elements of the form (MENU-TITLE REGEXP INDEX) -- 753An alist with elements of the form (MENU-TITLE REGEXP INDEX) --
754see the documentation for `imenu-generic-expression'." 754see the documentation for `imenu-generic-expression'."
755 :type 'sexp 755 :type '(alist :key-type (choice :tag "Title" (const nil) string)
756 :value-type (group (choice (string :tag "Regexp")
757 function)
758 integer))
756 :group 'woman-interface) 759 :group 'woman-interface)
757 760
758(defcustom woman-imenu nil 761(defcustom woman-imenu nil