1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

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
about certain files that you'd usually rather not 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")
(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."
:version "25.1"
:group 'gnus-article
:type 'bool)
:type 'boolean)
(defcustom gnus-saved-headers gnus-visible-headers
"Headers to keep if `gnus-save-all-headers' is nil.

View File

@ -162,7 +162,7 @@ value effective."
(defcustom newsticker-url-list-defaults
'(("Emacs Wiki"
"http://www.emacswiki.org/cgi-bin/wiki.pl?action=rss"
"https://www.emacswiki.org/emacs?action=rss"
nil
3600))
"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.
These are recognized by CC Mode only in declarations."
:version "26.1"
:type '(regexp :tag "List of names (possibly empty)" string)
:type '(repeat :tag "List of names (possibly empty)" string)
:group 'c)
(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
:group 'verilog-mode-actions
: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
"Non-nil indicates to insert to/from comments with `verilog-auto-wire' etc."
:version "25.1"
:group 'verilog-mode-actions
: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
"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."
:version "24.1" ; rev673
:group 'verilog-mode-actions
:type 'string)
(put 'verilog-auto-wire-type 'safe-local-variable `stringp)
:type '(choice (const nil) string))
(put 'verilog-auto-wire-type 'safe-local-variable 'stringp)
(defcustom verilog-auto-endcomments t
"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
using `expand-file-name', so both relative and absolute paths
will work as expected."
:type 'directory)
:type '(choice (const :tag "Same as Less file" nil) directory))
;;;###autoload
(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
`less-css-output-dir', if set, or the current directory by
default."
:type 'file)
:type '(choice (const :tag "Default" nil) file))
(make-variable-buffer-local 'less-css-output-file-name)
(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
the path is relative, it will be relative to the current
directory by default."
:type 'file)
:type '(choice (const nil) file))
;;;###autoload
(put 'less-css-input-file-name 'safe-local-variable 'stringp)
(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."
: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")
(defun time--display-world-list ()

View File

@ -3171,11 +3171,9 @@ See also `auto-save-file-name-p'."
(setq limit (1+ (match-end 0)))))
s)
;; Metacharacters that have to be protected from the shell when executing
;; a diff/diff3 command.
(defcustom emerge-metachars nil
"Obsolete, emerge now uses `shell-quote-argument'."
:type 'regexp
"No longer used. Emerge now uses `shell-quote-argument'."
:type '(choice (const nil) regexp)
:group 'emerge)
(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'."
:type '(repeat (choice
(const :tag "Active bookmark" 'bookmark)
(const :tag "Active bookmark" builtin-active-bookmark)
(string :tag "Hg template")
(function :tag "Custom")))
:version "26.1"