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.
This commit is contained in:
Glenn Morris 2017-12-13 15:29:24 -05:00
parent aacd1e14fc
commit ce31e726ad
9 changed files with 19 additions and 17 deletions

View file

@ -5195,7 +5195,9 @@ Before and after saving the buffer, this function runs
This allows you to stop `save-some-buffers' from asking This allows you to stop `save-some-buffers' from asking
about certain files that you'd usually rather not save." about certain files that you'd usually rather not save."
:group 'auto-save :group 'auto-save
:type 'function ;; FIXME nil should not be a valid option, let alone the default,
;; eg so that add-function can be used.
:type '(choice (const :tag "Default" nil) function)
:version "26.1") :version "26.1")
(defun save-some-buffers (&optional arg pred) (defun save-some-buffers (&optional arg pred)

View file

@ -527,7 +527,7 @@ each invocation of the saving commands."
"If non-nil, show the cursor in the Article buffer even when not selected." "If non-nil, show the cursor in the Article buffer even when not selected."
:version "25.1" :version "25.1"
:group 'gnus-article :group 'gnus-article
:type 'bool) :type 'boolean)
(defcustom gnus-saved-headers gnus-visible-headers (defcustom gnus-saved-headers gnus-visible-headers
"Headers to keep if `gnus-save-all-headers' is nil. "Headers to keep if `gnus-save-all-headers' is nil.

View file

@ -162,7 +162,7 @@ value effective."
(defcustom newsticker-url-list-defaults (defcustom newsticker-url-list-defaults
'(("Emacs Wiki" '(("Emacs Wiki"
"http://www.emacswiki.org/cgi-bin/wiki.pl?action=rss" "https://www.emacswiki.org/emacs?action=rss"
nil nil
3600)) 3600))
"A customizable list of news feeds to select from. "A customizable list of news feeds to select from.

View file

@ -1669,7 +1669,7 @@ this implicitly by reinitializing C/C++/Objc Mode on any buffer)."
which optionally have arguments in parentheses, and which expand to nothing. which optionally have arguments in parentheses, and which expand to nothing.
These are recognized by CC Mode only in declarations." These are recognized by CC Mode only in declarations."
:version "26.1" :version "26.1"
:type '(regexp :tag "List of names (possibly empty)" string) :type '(repeat :tag "List of names (possibly empty)" string)
:group 'c) :group 'c)
(put 'c-noise-macro-with-parens-names 'safe-local-variable #'c-string-list-p) (put 'c-noise-macro-with-parens-names 'safe-local-variable #'c-string-list-p)

View file

@ -764,14 +764,14 @@ mode is experimental."
:version "24.1" ; rev670 :version "24.1" ; rev670
:group 'verilog-mode-actions :group 'verilog-mode-actions
:type 'boolean) :type 'boolean)
(put 'verilog-auto-declare-nettype 'safe-local-variable `stringp) (put 'verilog-auto-declare-nettype 'safe-local-variable 'stringp)
(defcustom verilog-auto-wire-comment t (defcustom verilog-auto-wire-comment t
"Non-nil indicates to insert to/from comments with `verilog-auto-wire' etc." "Non-nil indicates to insert to/from comments with `verilog-auto-wire' etc."
:version "25.1" :version "25.1"
:group 'verilog-mode-actions :group 'verilog-mode-actions
:type 'boolean) :type 'boolean)
(put 'verilog-auto-wire-comment 'safe-local-variable `verilog-booleanp) (put 'verilog-auto-wire-comment 'safe-local-variable 'verilog-booleanp)
(defcustom verilog-auto-wire-type nil (defcustom verilog-auto-wire-type nil
"Non-nil specifies the data type to use with `verilog-auto-wire' etc. "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
containing SystemVerilog cells." containing SystemVerilog cells."
:version "24.1" ; rev673 :version "24.1" ; rev673
:group 'verilog-mode-actions :group 'verilog-mode-actions
:type 'string) :type '(choice (const nil) string))
(put 'verilog-auto-wire-type 'safe-local-variable `stringp) (put 'verilog-auto-wire-type 'safe-local-variable 'stringp)
(defcustom verilog-auto-endcomments t (defcustom verilog-auto-endcomments t
"Non-nil means insert a comment /* ... */ after `end's. "Non-nil means insert a comment /* ... */ after `end's.

View file

@ -106,7 +106,7 @@ Use \"-x\" to minify output."
This path is expanded relative to the directory of the Less file This path is expanded relative to the directory of the Less file
using `expand-file-name', so both relative and absolute paths using `expand-file-name', so both relative and absolute paths
will work as expected." will work as expected."
:type 'directory) :type '(choice (const :tag "Same as Less file" nil) directory))
;;;###autoload ;;;###autoload
(put 'less-css-output-directory 'safe-local-variable 'stringp) (put 'less-css-output-directory 'safe-local-variable 'stringp)
@ -116,7 +116,7 @@ This can be also be set to a full path, or a relative path. If
the path is relative, it will be relative to the value of the path is relative, it will be relative to the value of
`less-css-output-dir', if set, or the current directory by `less-css-output-dir', if set, or the current directory by
default." default."
:type 'file) :type '(choice (const :tag "Default" nil) file))
(make-variable-buffer-local 'less-css-output-file-name) (make-variable-buffer-local 'less-css-output-file-name)
(defcustom less-css-input-file-name nil (defcustom less-css-input-file-name nil
@ -132,7 +132,7 @@ variables.
This can be also be set to a full path, or a relative path. If This can be also be set to a full path, or a relative path. If
the path is relative, it will be relative to the current the path is relative, it will be relative to the current
directory by default." directory by default."
:type 'file) :type '(choice (const nil) file))
;;;###autoload ;;;###autoload
(put 'less-css-input-file-name 'safe-local-variable 'stringp) (put 'less-css-input-file-name 'safe-local-variable 'stringp)
(make-variable-buffer-local 'less-css-input-file-name) (make-variable-buffer-local 'less-css-input-file-name)

View file

@ -173,7 +173,9 @@ If the value is t instead of an alist, use the value of
`legacy-style-world-list' otherwise." `legacy-style-world-list' otherwise."
:group 'display-time :group 'display-time
:type '(repeat (list string string)) :type '(choice (const :tag "Default" t)
(repeat :tag "List of zones and labels"
(list (string :tag "Zone") (string :tag "Label"))))
:version "23.1") :version "23.1")
(defun time--display-world-list () (defun time--display-world-list ()

View file

@ -3171,11 +3171,9 @@ See also `auto-save-file-name-p'."
(setq limit (1+ (match-end 0))))) (setq limit (1+ (match-end 0)))))
s) s)
;; Metacharacters that have to be protected from the shell when executing
;; a diff/diff3 command.
(defcustom emerge-metachars nil (defcustom emerge-metachars nil
"Obsolete, emerge now uses `shell-quote-argument'." "No longer used. Emerge now uses `shell-quote-argument'."
:type 'regexp :type '(choice (const nil) regexp)
:group 'emerge) :group 'emerge)
(make-obsolete-variable 'emerge-metachars nil "26.1") (make-obsolete-variable 'emerge-metachars nil "26.1")

View file

@ -278,7 +278,7 @@ within the repository.
If no list entry produces a useful revision, return `nil'." If no list entry produces a useful revision, return `nil'."
:type '(repeat (choice :type '(repeat (choice
(const :tag "Active bookmark" 'bookmark) (const :tag "Active bookmark" builtin-active-bookmark)
(string :tag "Hg template") (string :tag "Hg template")
(function :tag "Custom"))) (function :tag "Custom")))
:version "26.1" :version "26.1"