]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct some more custom type specs
authorRobert Pluim <rpluim@gmail.com>
Wed, 9 Oct 2019 13:28:47 +0000 (15:28 +0200)
committerRobert Pluim <rpluim@gmail.com>
Fri, 11 Oct 2019 12:17:08 +0000 (14:17 +0200)
* lisp/winner.el (winner-boring-buffers-regexp):
* lisp/progmodes/js.el (js-jsx-indent-level):
* lisp/image-dired.el (image-dired-external-viewer):
* lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function):
Correct custom type specification.

* lisp/textmodes/bibtex.el (bibtex-string-file-path):
(bibtex-file-path): Correct custom type specification and document
source of initial value.

lisp/gnus/nnir.el
lisp/image-dired.el
lisp/progmodes/js.el
lisp/textmodes/bibtex.el
lisp/winner.el

index 1041373a05fddb6286f36b507297e87e42779d64..7cb2d1615a241a56e8e14bd23004c9ced1ad559c 100644 (file)
@@ -535,7 +535,7 @@ like so:
    (lambda (g) (replace-regexp-in-string \"\\\\.\" \"/\" g)))"
   :version "27.1"
   :type '(choice function
-                nil))
+                (const :tag "No" nil)))
 
 ;;; Developer Extension Variable:
 
index c1c767ba783f16cb39db915bfa2934497aa292db..85bc92479490eaabbbf46edc826b1c22730590e3 100644 (file)
@@ -538,7 +538,9 @@ with the comment."
   "Name of external viewer.
 Including parameters.  Used when displaying original image from
 `image-dired-thumbnail-mode'."
-  :type 'string
+  :version "27.1"
+  :type '(choice string
+                 (const :tag "Not Set" nil))
   :group 'image-dired)
 
 (defcustom image-dired-main-image-directory "~/pics/"
index 3050e8f1a76a664df94c600cedbccf25b4249b07..8d457a28ec2e1a7695a9530241324b4a584708cc 100644 (file)
@@ -650,7 +650,8 @@ indentation looks like this (different):
       </element>
   )"
   :version "27.1"
-  :type 'integer
+  :type '(choice integer
+                 (const :tag "Not Set" nil))
   :safe (lambda (x) (or (null x) (integerp x)))
   :group 'js)
 ;; This is how indentation behaved out-of-the-box until Emacs 27.  JSX
index 7e99032084e21c756f1243944740f8f056aeecc2..c29e9631801b97cf828e7e45a1932707bfc39f8e 100644 (file)
@@ -933,9 +933,12 @@ to the directories specified in `bibtex-string-file-path'."
   :type '(repeat file))
 
 (defcustom bibtex-string-file-path (getenv "BIBINPUTS")
-  "Colon-separated list of paths to search for `bibtex-string-files'."
+  "Colon-separated list of paths to search for `bibtex-string-files'.
+Initialized from the BIBINPUTS environment variable."
   :group 'bibtex
-  :type 'string)
+  :version "27.1"
+  :type '(choice string
+                 (const :tag "Not Set" nil)))
 
 (defcustom bibtex-files nil
   "List of BibTeX files that are searched for entry keys.
@@ -949,9 +952,12 @@ See also `bibtex-search-entry-globally'."
                          directory file)))
 
 (defcustom bibtex-file-path (getenv "BIBINPUTS")
-  "Colon separated list of paths to search for `bibtex-files'."
+  "Colon separated list of paths to search for `bibtex-files'.
+Initialized from the BIBINPUTS environment variable."
   :group 'bibtex
-  :type 'string)
+  :version "27.1"
+  :type '(choice string
+                 (const :tag "Not Set" nil)))
 
 (defcustom bibtex-search-entry-globally nil
   "If non-nil, interactive calls of `bibtex-search-entry' search globally.
index dc8bde5331f17bc4e6528118534d7df5d081f710..a97bfbde9dbe044dc7eba0e46c16659d6f8c717f 100644 (file)
@@ -61,7 +61,8 @@ You may want to include buffer names such as *Help*, *Apropos*,
 
 (defcustom winner-boring-buffers-regexp nil
   "`winner-undo' will not restore windows with buffers matching this regexp."
-  :type 'string
+  :type '(choice (regexp :tag "Regexp")
+                 (const :tag "Not Set" nil))
   :version "27.1")
 
 \f