Fix some defcustom types

* lisp/whitespace.el (whitespace-style):
* lisp/gnus/message.el (message-screenshot-command):
* lisp/progmodes/compile.el (compilation-transform-file-match-alist):
* lisp/progmodes/gdb-mi.el (gdb-default-window-configuration-file):
* lisp/progmodes/python.el (python-pdbtrack-exit-command): Fix the
defcustom types.
* lisp/progmodes/sql.el (sql-password-wallet): Fix the value.
This commit is contained in:
Lars Ingebrigtsen 2020-09-25 15:15:21 +02:00
parent 664927b525
commit e1c33e29d5
10 changed files with 17 additions and 10 deletions

View file

@ -68,7 +68,8 @@
(defcustom erc-status-sidebar-header-line-format nil
"Header line format for the status sidebar."
:type 'string
:type '(choice (const :tag "No header line" nil)
string)
:group 'erc-status-sidebar)
(defcustom erc-status-sidebar-width 15

View file

@ -274,6 +274,7 @@ This can also be a list of the above values."
If it is a string, the command will be executed in a sub-shell
asynchronously. The compressed face will be piped to this command."
:type '(choice string
(const :tag "None" nil)
(function-item gnus-display-x-face-in-from)
function)
:version "27.1"

View file

@ -307,7 +307,7 @@ any confusion."
"Command to take a screenshot.
The command should insert a PNG in the current buffer."
:group 'message-various
:type '(list string)
:type '(repeat string)
:version "28.1")
;;; Start of variables adopted from `message-utils.el'.

View file

@ -257,7 +257,8 @@ Returns either the retrieved header format 'nov or 'headers.
If this variable is nil, or if the provided function returns nil,
`gnus-retrieve-headers' will be called instead."
:version "28.1" :type '(function) :group 'nnselect)
:version "28.1"
:type '(repeat function))
;; Gnus backend interface functions.

View file

@ -120,7 +120,7 @@ initializing a new crypted remote directory."
"Whether to keep the encfs configuration file in the crypted remote directory."
:group 'tramp
:version "28.1"
:type 'booleanp)
:type 'boolean)
;;;###tramp-autoload
(defvar tramp-crypt-directories nil

View file

@ -64,7 +64,8 @@ If nil, use Emacs default."
If the replacement is nil, the file will not be considered an
error after all. If not nil, it should be a regexp replacement
string."
:type '(repeat (list regexp string))
:type '(repeat (list regexp (choice (const :tag "No replacement" nil)
string)))
:version "27.1")
(defvar compilation-filter-hook nil

View file

@ -643,7 +643,8 @@ and looks under `gdb-window-configuration-directory'.
Note that this variable only takes effect when variable
`gdb-many-windows' is t."
:type 'string
:type '(choice (const :tag "None" nil)
string)
:group 'gdb
:version "28.1")

View file

@ -3796,7 +3796,7 @@ was `continue'. This behavior slightly differentiates the `continue' command
from the `exit' command listed in `python-pdbtrack-exit-command'.
See `python-pdbtrack-activate' for pdbtracking session overview."
:type 'list
:type '(repeat string)
:version "27.1")
(defcustom python-pdbtrack-exit-command '("q" "quit" "exit")
@ -3805,7 +3805,7 @@ After one of this commands is sent to pdb, pdbtracking session is
considered over.
See `python-pdbtrack-activate' for pdbtracking session overview."
:type 'list
:type '(repeast string)
:version "27.1")
(defcustom python-pdbtrack-kill-buffers t

View file

@ -838,11 +838,11 @@ host key."
(setq w (locate-user-emacs-file (concat "sql-wallet" ext)
(concat ".sql-wallet" ext)))
(when (file-exists-p w)
(setq wallet w)))))
(setq wallet (list w))))))
"Identification of the password wallet.
See `sql-password-search-wallet-function' to understand how this value
is used to locate the password wallet."
:type `(plist-get (symbol-plist 'auth-sources) 'custom-type)
:type (plist-get (symbol-plist 'auth-sources) 'custom-type)
:version "27.1")
(defvar sql-password-search-wallet-function #'sql-auth-source-search-wallet

View file

@ -445,6 +445,8 @@ See also `whitespace-display-mappings' for documentation."
(const :tag "(Face) Lines" lines)
(const :tag "(Face) Lines, only overlong part" lines-tail)
(const :tag "(Face) NEWLINEs" newline)
(const :tag "(Face) Missing newlines at EOB"
missing-newline-at-eof)
(const :tag "(Face) Empty Lines At BOB And/Or EOB" empty)
(const :tag "(Face) Indentation SPACEs" indentation::tab)
(const :tag "(Face) Indentation TABs"