diff options
| author | Basil L. Contovounesios | 2023-09-25 20:38:23 +0200 |
|---|---|---|
| committer | Basil L. Contovounesios | 2023-09-26 09:29:39 +0200 |
| commit | ff2a02afa63e2e12842c8ebde9274aed5e7b7182 (patch) | |
| tree | af599f8d24483a5e1f19227d8cf03f5019c75ca0 | |
| parent | 6a402bd3a7dd140c2b4fc9f9c0f698b2afe27549 (diff) | |
| download | emacs-ff2a02afa63e2e12842c8ebde9274aed5e7b7182.tar.gz emacs-ff2a02afa63e2e12842c8ebde9274aed5e7b7182.zip | |
Address defcustom :type warnings
* lisp/calendar/diary-lib.el (diary-display-function):
* lisp/calendar/icalendar.el (icalendar-export-alarms):
* lisp/emacs-lisp/elint.el (elint-ignored-warnings):
* lisp/mail/sendmail.el (send-mail-function):
* lisp/net/gnutls.el (gnutls-verify-error):
* lisp/gnus/mm-decode.el (mm-text-html-renderer):
* lisp/gnus/message.el (message-send-mail-function): Fix misplaced
defcustom :tags (bug#66196).
(message-tool-bar): Remove duplicate, overwritten, and nonexistent
defcustom :type gmm-tool-bar-list-item.
* lisp/progmodes/idlwave.el (idlwave-begin-line-comment): Strip
excessive defcustom :type quoting.
* lisp/progmodes/ps-mode.el (ps-mode-paper-size): Consolidate paper
sizes with same dimensions into a single defcustom menu entry.
* lisp/textmodes/glyphless-mode.el (glyphless-mode-types): Remove
duplicate defcustom :type choice.
| -rw-r--r-- | lisp/calendar/diary-lib.el | 4 | ||||
| -rw-r--r-- | lisp/calendar/icalendar.el | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/elint.el | 20 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 9 | ||||
| -rw-r--r-- | lisp/gnus/mm-decode.el | 6 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 10 | ||||
| -rw-r--r-- | lisp/net/gnutls.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/idlwave.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/ps-mode.el | 6 | ||||
| -rw-r--r-- | lisp/textmodes/glyphless-mode.el | 1 |
10 files changed, 29 insertions, 35 deletions
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 946cf0e7236..0d894f10013 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -167,8 +167,8 @@ form of ((MONTH DAY YEAR) STRING), where string is the diary | |||
| 167 | entry for the given date. This can be used, for example, to | 167 | entry for the given date. This can be used, for example, to |
| 168 | produce a different buffer for display (perhaps combined with | 168 | produce a different buffer for display (perhaps combined with |
| 169 | holidays), or hard copy output." | 169 | holidays), or hard copy output." |
| 170 | :type '(choice (const diary-fancy-display :tag "Fancy display") | 170 | :type '(choice (const :tag "Fancy display" diary-fancy-display) |
| 171 | (const diary-simple-display :tag "Basic display") | 171 | (const :tag "Basic display" diary-simple-display) |
| 172 | (const :tag "No display" ignore) | 172 | (const :tag "No display" ignore) |
| 173 | (function :tag "User-specified function")) | 173 | (function :tag "User-specified function")) |
| 174 | :initialize 'custom-initialize-default | 174 | :initialize 'custom-initialize-default |
diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el index e51251d6d9f..51e6a7d1170 100644 --- a/lisp/calendar/icalendar.el +++ b/lisp/calendar/icalendar.el | |||
| @@ -276,9 +276,9 @@ other sexp entries are enumerated in any case." | |||
| 276 | :value 10) | 276 | :value 10) |
| 277 | (set :tag "Alarm type" | 277 | (set :tag "Alarm type" |
| 278 | (list :tag "Audio" | 278 | (list :tag "Audio" |
| 279 | (const audio :tag "Audio")) | 279 | (const :tag "Audio" audio)) |
| 280 | (list :tag "Display" | 280 | (list :tag "Display" |
| 281 | (const display :tag "Display")) | 281 | (const :tag "Display" display)) |
| 282 | (list :tag "Email" | 282 | (list :tag "Email" |
| 283 | (const email) | 283 | (const email) |
| 284 | (repeat :tag "Attendees" | 284 | (repeat :tag "Attendees" |
diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el index 9812c663ea8..700f007d6b4 100644 --- a/lisp/emacs-lisp/elint.el +++ b/lisp/emacs-lisp/elint.el | |||
| @@ -79,16 +79,16 @@ are as follows, and suppress messages about the indicated features: | |||
| 79 | empty-let - let-bindings with empty variable lists" | 79 | empty-let - let-bindings with empty variable lists" |
| 80 | :type '(choice (const :tag "Don't suppress any warnings" nil) | 80 | :type '(choice (const :tag "Don't suppress any warnings" nil) |
| 81 | (repeat :tag "List of issues to ignore" | 81 | (repeat :tag "List of issues to ignore" |
| 82 | (choice (const undefined-functions | 82 | (choice (const :tag "Calls to unknown functions" |
| 83 | :tag "Calls to unknown functions") | 83 | undefined-functions) |
| 84 | (const unbound-reference | 84 | (const :tag "Reference to unknown variables" |
| 85 | :tag "Reference to unknown variables") | 85 | unbound-reference) |
| 86 | (const unbound-assignment | 86 | (const :tag "Assignment to unknown variables" |
| 87 | :tag "Assignment to unknown variables") | 87 | unbound-assignment) |
| 88 | (const macro-expansion | 88 | (const :tag "Failure to expand macros" |
| 89 | :tag "Failure to expand macros") | 89 | macro-expansion) |
| 90 | (const empty-let | 90 | (const :tag "Let-binding with empty varlist" |
| 91 | :tag "Let-binding with empty varlist")))) | 91 | empty-let)))) |
| 92 | :safe (lambda (value) (or (null value) | 92 | :safe (lambda (value) (or (null value) |
| 93 | (and (listp value) | 93 | (and (listp value) |
| 94 | (equal value | 94 | (equal value |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index b6b9927a788..969589bb942 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -747,16 +747,14 @@ default is system dependent and determined by the function | |||
| 747 | `message-send-mail-function'. | 747 | `message-send-mail-function'. |
| 748 | 748 | ||
| 749 | See also `send-mail-function'." | 749 | See also `send-mail-function'." |
| 750 | :type '(radio (function-item message--default-send-mail-function | 750 | :type '(radio (function-item message--default-send-mail-function) |
| 751 | :tag "Use send-mail-function") | ||
| 752 | (function-item message-send-mail-with-sendmail) | 751 | (function-item message-send-mail-with-sendmail) |
| 753 | (function-item message-send-mail-with-mh) | 752 | (function-item message-send-mail-with-mh) |
| 754 | (function-item message-send-mail-with-qmail) | 753 | (function-item message-send-mail-with-qmail) |
| 755 | (function-item message-smtpmail-send-it) | 754 | (function-item message-smtpmail-send-it) |
| 756 | (function-item smtpmail-send-it) | 755 | (function-item :doc "Use SMTPmail package." smtpmail-send-it) |
| 757 | (function-item feedmail-send-it) | 756 | (function-item feedmail-send-it) |
| 758 | (function-item message-send-mail-with-mailclient | 757 | (function-item message-send-mail-with-mailclient) |
| 759 | :tag "Use Mailclient package") | ||
| 760 | (function :tag "Other")) | 758 | (function :tag "Other")) |
| 761 | :group 'message-sending | 759 | :group 'message-sending |
| 762 | :version "27.1" | 760 | :version "27.1" |
| @@ -8210,7 +8208,6 @@ which specify the range to operate on." | |||
| 8210 | It can be either a list or a symbol referring to a list. See | 8208 | It can be either a list or a symbol referring to a list. See |
| 8211 | `gmm-tool-bar-from-list' for the format of the list. The | 8209 | `gmm-tool-bar-from-list' for the format of the list. The |
| 8212 | default key map is `message-mode-map'." | 8210 | default key map is `message-mode-map'." |
| 8213 | :type '(repeat gmm-tool-bar-list-item) | ||
| 8214 | :type '(choice (repeat :tag "User defined list" gmm-tool-bar-item) | 8211 | :type '(choice (repeat :tag "User defined list" gmm-tool-bar-item) |
| 8215 | (symbol)) | 8212 | (symbol)) |
| 8216 | :version "29.1" | 8213 | :version "29.1" |
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index b9beedf6c5c..3c7d1e7e073 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el | |||
| @@ -119,7 +119,7 @@ | |||
| 119 | ((executable-find "links") 'links) | 119 | ((executable-find "links") 'links) |
| 120 | ((executable-find "lynx") 'lynx) | 120 | ((executable-find "lynx") 'lynx) |
| 121 | (t 'shr)) | 121 | (t 'shr)) |
| 122 | "Render of HTML contents. | 122 | "Renderer of HTML contents. |
| 123 | It is one of defined renderer types, or a rendering function. | 123 | It is one of defined renderer types, or a rendering function. |
| 124 | The defined renderer types are: | 124 | The defined renderer types are: |
| 125 | `shr': use the built-in Gnus HTML renderer; | 125 | `shr': use the built-in Gnus HTML renderer; |
| @@ -131,8 +131,8 @@ The defined renderer types are: | |||
| 131 | :version "29.1" | 131 | :version "29.1" |
| 132 | :type '(choice (const shr) | 132 | :type '(choice (const shr) |
| 133 | (const gnus-w3m) | 133 | (const gnus-w3m) |
| 134 | (const w3m :tag "emacs-w3m") | 134 | (const :tag "emacs-w3m" w3m) |
| 135 | (const w3m-standalone :tag "standalone w3m" ) | 135 | (const :tag "standalone w3m" w3m-standalone) |
| 136 | (const links) | 136 | (const links) |
| 137 | (const lynx) | 137 | (const lynx) |
| 138 | (function)) | 138 | (function)) |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 8d7e90ccacf..8306bd3b30c 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -151,11 +151,11 @@ not a valid RFC 822 (or later) header or continuation line, | |||
| 151 | that matches the variable `mail-header-separator'. | 151 | that matches the variable `mail-header-separator'. |
| 152 | This is used by the default mail-sending commands. See also | 152 | This is used by the default mail-sending commands. See also |
| 153 | `message-send-mail-function' for use with the Message package." | 153 | `message-send-mail-function' for use with the Message package." |
| 154 | :type '(radio (function-item sendmail-send-it :tag "Use Sendmail package") | 154 | :type '(radio (function-item sendmail-send-it) |
| 155 | (function-item sendmail-query-once :tag "Query the user") | 155 | (function-item sendmail-query-once) |
| 156 | (function-item smtpmail-send-it :tag "Use SMTPmail package") | 156 | (function-item :doc "Use SMTPmail package." smtpmail-send-it) |
| 157 | (function-item feedmail-send-it :tag "Use Feedmail package") | 157 | (function-item feedmail-send-it) |
| 158 | (function-item mailclient-send-it :tag "Use Mailclient package") | 158 | (function-item mailclient-send-it) |
| 159 | function) | 159 | function) |
| 160 | :version "24.1") | 160 | :version "24.1") |
| 161 | 161 | ||
diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el index 36b1654222a..955172d8bb6 100644 --- a/lisp/net/gnutls.el +++ b/lisp/net/gnutls.el | |||
| @@ -96,7 +96,7 @@ Security'." | |||
| 96 | (repeat :tag "List of hostname regexps with flags for each" | 96 | (repeat :tag "List of hostname regexps with flags for each" |
| 97 | (list | 97 | (list |
| 98 | (choice :tag "Hostname" | 98 | (choice :tag "Hostname" |
| 99 | (const ".*" :tag "Any hostname") | 99 | (const :tag "Any hostname" ".*") |
| 100 | regexp) | 100 | regexp) |
| 101 | (set (const :trustfiles) | 101 | (set (const :trustfiles) |
| 102 | (const :hostname)))))) | 102 | (const :hostname)))))) |
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index 54c758c6a8a..d9eccacc48b 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el | |||
| @@ -309,7 +309,7 @@ beginning with a \";\". Expressions for comments at the beginning of | |||
| 309 | the line should begin with \"^\"." | 309 | the line should begin with \"^\"." |
| 310 | :group 'idlwave-code-formatting | 310 | :group 'idlwave-code-formatting |
| 311 | :type '(choice (const :tag "Any line beginning with `;'" nil) | 311 | :type '(choice (const :tag "Any line beginning with `;'" nil) |
| 312 | 'regexp)) | 312 | regexp)) |
| 313 | 313 | ||
| 314 | (defcustom idlwave-code-comment ";;[^;]" | 314 | (defcustom idlwave-code-comment ";;[^;]" |
| 315 | "A comment that starts with this regular expression on a line by | 315 | "A comment that starts with this regular expression on a line by |
diff --git a/lisp/progmodes/ps-mode.el b/lisp/progmodes/ps-mode.el index 1147db816bb..01a075d6512 100644 --- a/lisp/progmodes/ps-mode.el +++ b/lisp/progmodes/ps-mode.el | |||
| @@ -97,11 +97,9 @@ When the figure is finished these values should be replaced." | |||
| 97 | (const :tag "archC" (1296 1728)) | 97 | (const :tag "archC" (1296 1728)) |
| 98 | (const :tag "archB" (864 1296)) | 98 | (const :tag "archB" (864 1296)) |
| 99 | (const :tag "archA" (648 864)) | 99 | (const :tag "archA" (648 864)) |
| 100 | (const :tag "flsa" (612 936)) | 100 | (const :tag "flsa, flse" (612 936)) |
| 101 | (const :tag "flse" (612 936)) | ||
| 102 | (const :tag "halfletter" (396 612)) | 101 | (const :tag "halfletter" (396 612)) |
| 103 | (const :tag "11x17" (792 1224)) | 102 | (const :tag "11x17, tabloid" (792 1224)) |
| 104 | (const :tag "tabloid" (792 1224)) | ||
| 105 | (const :tag "ledger" (1224 792)) | 103 | (const :tag "ledger" (1224 792)) |
| 106 | (const :tag "csheet" (1224 1584)) | 104 | (const :tag "csheet" (1224 1584)) |
| 107 | (const :tag "dsheet" (1584 2448)) | 105 | (const :tag "dsheet" (1584 2448)) |
diff --git a/lisp/textmodes/glyphless-mode.el b/lisp/textmodes/glyphless-mode.el index 99bbb2769e4..eb4447f3048 100644 --- a/lisp/textmodes/glyphless-mode.el +++ b/lisp/textmodes/glyphless-mode.el | |||
| @@ -30,7 +30,6 @@ The value can be any of the groups supported by | |||
| 30 | `all', for all glyphless characters." | 30 | `all', for all glyphless characters." |
| 31 | :version "29.1" | 31 | :version "29.1" |
| 32 | :type '(repeat (choice (const :tag "All" all) | 32 | :type '(repeat (choice (const :tag "All" all) |
| 33 | (const :tag "No font" no-font) | ||
| 34 | (const :tag "C0 Control" c0-control) | 33 | (const :tag "C0 Control" c0-control) |
| 35 | (const :tag "C1 Control" c1-control) | 34 | (const :tag "C1 Control" c1-control) |
| 36 | (const :tag "Format Control" format-control) | 35 | (const :tag "Format Control" format-control) |