aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2017-12-13 15:29:24 -0500
committerGlenn Morris2017-12-13 15:29:24 -0500
commitce31e726adbb4d24557b3d1ff067cc4c04d94446 (patch)
tree6aba9b20776408aac320c1f099055c1385ddb451
parentaacd1e14fc6ab872bc2c588d8c6077c88ce8a310 (diff)
downloademacs-ce31e726adbb4d24557b3d1ff067cc4c04d94446.tar.gz
emacs-ce31e726adbb4d24557b3d1ff067cc4c04d94446.zip
Fixes for defcustoms, prompted by cus-test-opts
* lisp/files.el (save-some-buffers-default-predicate): * lisp/time.el (display-time-world-list): * lisp/gnus/gnus-art.el (gnus-article-show-cursor): * lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-names): * lisp/progmodes/verilog-mode.el (verilog-auto-wire-type): * lisp/textmodes/less-css-mode.el (less-css-output-directory) (less-css-output-file-name, less-css-input-file-name): * lisp/vc/emerge.el (emerge-metachars): * lisp/vc/vc-hg.el (vc-hg-symbolic-revision-styles): Fix :types. * lisp/net/newst-backend.el (newsticker-url-list-defaults): Fix url.
-rw-r--r--lisp/files.el4
-rw-r--r--lisp/gnus/gnus-art.el2
-rw-r--r--lisp/net/newst-backend.el2
-rw-r--r--lisp/progmodes/cc-vars.el2
-rw-r--r--lisp/progmodes/verilog-mode.el8
-rw-r--r--lisp/textmodes/less-css-mode.el6
-rw-r--r--lisp/time.el4
-rw-r--r--lisp/vc/emerge.el6
-rw-r--r--lisp/vc/vc-hg.el2
9 files changed, 19 insertions, 17 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 4b6d4e88acb..90c865782f3 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5195,7 +5195,9 @@ Before and after saving the buffer, this function runs
5195This allows you to stop `save-some-buffers' from asking 5195This allows you to stop `save-some-buffers' from asking
5196about certain files that you'd usually rather not save." 5196about certain files that you'd usually rather not save."
5197 :group 'auto-save 5197 :group 'auto-save
5198 :type 'function 5198 ;; FIXME nil should not be a valid option, let alone the default,
5199 ;; eg so that add-function can be used.
5200 :type '(choice (const :tag "Default" nil) function)
5199 :version "26.1") 5201 :version "26.1")
5200 5202
5201(defun save-some-buffers (&optional arg pred) 5203(defun save-some-buffers (&optional arg pred)
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index c130dc1b6c6..e9cc09ce9b8 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -527,7 +527,7 @@ each invocation of the saving commands."
527 "If non-nil, show the cursor in the Article buffer even when not selected." 527 "If non-nil, show the cursor in the Article buffer even when not selected."
528 :version "25.1" 528 :version "25.1"
529 :group 'gnus-article 529 :group 'gnus-article
530 :type 'bool) 530 :type 'boolean)
531 531
532(defcustom gnus-saved-headers gnus-visible-headers 532(defcustom gnus-saved-headers gnus-visible-headers
533 "Headers to keep if `gnus-save-all-headers' is nil. 533 "Headers to keep if `gnus-save-all-headers' is nil.
diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el
index 0fb347fc4e9..ed60a8a3aea 100644
--- a/lisp/net/newst-backend.el
+++ b/lisp/net/newst-backend.el
@@ -162,7 +162,7 @@ value effective."
162 162
163(defcustom newsticker-url-list-defaults 163(defcustom newsticker-url-list-defaults
164 '(("Emacs Wiki" 164 '(("Emacs Wiki"
165 "http://www.emacswiki.org/cgi-bin/wiki.pl?action=rss" 165 "https://www.emacswiki.org/emacs?action=rss"
166 nil 166 nil
167 3600)) 167 3600))
168 "A customizable list of news feeds to select from. 168 "A customizable list of news feeds to select from.
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index 37d6675821e..f7bfe7c672a 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -1669,7 +1669,7 @@ this implicitly by reinitializing C/C++/Objc Mode on any buffer)."
1669which optionally have arguments in parentheses, and which expand to nothing. 1669which optionally have arguments in parentheses, and which expand to nothing.
1670These are recognized by CC Mode only in declarations." 1670These are recognized by CC Mode only in declarations."
1671 :version "26.1" 1671 :version "26.1"
1672 :type '(regexp :tag "List of names (possibly empty)" string) 1672 :type '(repeat :tag "List of names (possibly empty)" string)
1673 :group 'c) 1673 :group 'c)
1674(put 'c-noise-macro-with-parens-names 'safe-local-variable #'c-string-list-p) 1674(put 'c-noise-macro-with-parens-names 'safe-local-variable #'c-string-list-p)
1675 1675
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el
index 10a1edc3ee0..1baac1d4204 100644
--- a/lisp/progmodes/verilog-mode.el
+++ b/lisp/progmodes/verilog-mode.el
@@ -764,14 +764,14 @@ mode is experimental."
764 :version "24.1" ; rev670 764 :version "24.1" ; rev670
765 :group 'verilog-mode-actions 765 :group 'verilog-mode-actions
766 :type 'boolean) 766 :type 'boolean)
767(put 'verilog-auto-declare-nettype 'safe-local-variable `stringp) 767(put 'verilog-auto-declare-nettype 'safe-local-variable 'stringp)
768 768
769(defcustom verilog-auto-wire-comment t 769(defcustom verilog-auto-wire-comment t
770 "Non-nil indicates to insert to/from comments with `verilog-auto-wire' etc." 770 "Non-nil indicates to insert to/from comments with `verilog-auto-wire' etc."
771 :version "25.1" 771 :version "25.1"
772 :group 'verilog-mode-actions 772 :group 'verilog-mode-actions
773 :type 'boolean) 773 :type 'boolean)
774(put 'verilog-auto-wire-comment 'safe-local-variable `verilog-booleanp) 774(put 'verilog-auto-wire-comment 'safe-local-variable 'verilog-booleanp)
775 775
776(defcustom verilog-auto-wire-type nil 776(defcustom verilog-auto-wire-type nil
777 "Non-nil specifies the data type to use with `verilog-auto-wire' etc. 777 "Non-nil specifies the data type to use with `verilog-auto-wire' etc.
@@ -781,8 +781,8 @@ this is generally only appropriate when making a non-SystemVerilog wrapper
781containing SystemVerilog cells." 781containing SystemVerilog cells."
782 :version "24.1" ; rev673 782 :version "24.1" ; rev673
783 :group 'verilog-mode-actions 783 :group 'verilog-mode-actions
784 :type 'string) 784 :type '(choice (const nil) string))
785(put 'verilog-auto-wire-type 'safe-local-variable `stringp) 785(put 'verilog-auto-wire-type 'safe-local-variable 'stringp)
786 786
787(defcustom verilog-auto-endcomments t 787(defcustom verilog-auto-endcomments t
788 "Non-nil means insert a comment /* ... */ after `end's. 788 "Non-nil means insert a comment /* ... */ after `end's.
diff --git a/lisp/textmodes/less-css-mode.el b/lisp/textmodes/less-css-mode.el
index 387d1c2fd57..c2846ac926b 100644
--- a/lisp/textmodes/less-css-mode.el
+++ b/lisp/textmodes/less-css-mode.el
@@ -106,7 +106,7 @@ Use \"-x\" to minify output."
106This path is expanded relative to the directory of the Less file 106This path is expanded relative to the directory of the Less file
107using `expand-file-name', so both relative and absolute paths 107using `expand-file-name', so both relative and absolute paths
108will work as expected." 108will work as expected."
109 :type 'directory) 109 :type '(choice (const :tag "Same as Less file" nil) directory))
110;;;###autoload 110;;;###autoload
111(put 'less-css-output-directory 'safe-local-variable 'stringp) 111(put 'less-css-output-directory 'safe-local-variable 'stringp)
112 112
@@ -116,7 +116,7 @@ This can be also be set to a full path, or a relative path. If
116the path is relative, it will be relative to the value of 116the path is relative, it will be relative to the value of
117`less-css-output-dir', if set, or the current directory by 117`less-css-output-dir', if set, or the current directory by
118default." 118default."
119 :type 'file) 119 :type '(choice (const :tag "Default" nil) file))
120(make-variable-buffer-local 'less-css-output-file-name) 120(make-variable-buffer-local 'less-css-output-file-name)
121 121
122(defcustom less-css-input-file-name nil 122(defcustom less-css-input-file-name nil
@@ -132,7 +132,7 @@ variables.
132This can be also be set to a full path, or a relative path. If 132This can be also be set to a full path, or a relative path. If
133the path is relative, it will be relative to the current 133the path is relative, it will be relative to the current
134directory by default." 134directory by default."
135 :type 'file) 135 :type '(choice (const nil) file))
136;;;###autoload 136;;;###autoload
137(put 'less-css-input-file-name 'safe-local-variable 'stringp) 137(put 'less-css-input-file-name 'safe-local-variable 'stringp)
138(make-variable-buffer-local 'less-css-input-file-name) 138(make-variable-buffer-local 'less-css-input-file-name)
diff --git a/lisp/time.el b/lisp/time.el
index c8726a9a1b0..7f85b866880 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -173,7 +173,9 @@ If the value is t instead of an alist, use the value of
173`legacy-style-world-list' otherwise." 173`legacy-style-world-list' otherwise."
174 174
175 :group 'display-time 175 :group 'display-time
176 :type '(repeat (list string string)) 176 :type '(choice (const :tag "Default" t)
177 (repeat :tag "List of zones and labels"
178 (list (string :tag "Zone") (string :tag "Label"))))
177 :version "23.1") 179 :version "23.1")
178 180
179(defun time--display-world-list () 181(defun time--display-world-list ()
diff --git a/lisp/vc/emerge.el b/lisp/vc/emerge.el
index 9c25ec43321..3f945bbb2bf 100644
--- a/lisp/vc/emerge.el
+++ b/lisp/vc/emerge.el
@@ -3171,11 +3171,9 @@ See also `auto-save-file-name-p'."
3171 (setq limit (1+ (match-end 0))))) 3171 (setq limit (1+ (match-end 0)))))
3172 s) 3172 s)
3173 3173
3174;; Metacharacters that have to be protected from the shell when executing
3175;; a diff/diff3 command.
3176(defcustom emerge-metachars nil 3174(defcustom emerge-metachars nil
3177 "Obsolete, emerge now uses `shell-quote-argument'." 3175 "No longer used. Emerge now uses `shell-quote-argument'."
3178 :type 'regexp 3176 :type '(choice (const nil) regexp)
3179 :group 'emerge) 3177 :group 'emerge)
3180(make-obsolete-variable 'emerge-metachars nil "26.1") 3178(make-obsolete-variable 'emerge-metachars nil "26.1")
3181 3179
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index 99c8869ae06..a404626fba2 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -278,7 +278,7 @@ within the repository.
278 278
279If no list entry produces a useful revision, return `nil'." 279If no list entry produces a useful revision, return `nil'."
280 :type '(repeat (choice 280 :type '(repeat (choice
281 (const :tag "Active bookmark" 'bookmark) 281 (const :tag "Active bookmark" builtin-active-bookmark)
282 (string :tag "Hg template") 282 (string :tag "Hg template")
283 (function :tag "Custom"))) 283 (function :tag "Custom")))
284 :version "26.1" 284 :version "26.1"