Fix some custom types
authorGlenn Morris <rgm@gnu.org>
Fri, 1 Oct 2021 15:33:32 +0000 (08:33 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 1 Oct 2021 15:33:32 +0000 (08:33 -0700)
* lisp/mpc.el (mpc-cover-image-re):
* lisp/org/oc-csl.el (org-cite-csl-locales-dir)
(org-cite-csl-styles-dir):
* lisp/org/org-plot.el (org-plot/preset-plot-types): Fix :type.

lisp/mpc.el
lisp/org/oc-csl.el
lisp/org/org-plot.el

index 913146415e81f05f7247db748b98c1b327e755c3..c47d4336e5e08d9513e630a16c82a899ab977d20 100644 (file)
@@ -964,7 +964,7 @@ If PLAYLIST is t or nil or missing, use the main playlist."
 
 (defcustom mpc-cover-image-re nil ; (rx (or ".jpg" ".jpeg" ".png") string-end)
   "If non-nil, it is a regexp that should match a valid cover image."
-  :type '(regexp)
+  :type '(choice (const nil) regexp)
   :version "28.1")
 
 (defun mpc-secs-to-time (secs)
index 50df12115a1848da994932aab07ea36c4ea2fcc2..5623efcc1b355019a15684a3e84485f68f6bb412 100644 (file)
@@ -123,7 +123,7 @@ If nil then only the fallback en-US locale will be available."
   :group 'org-cite
   :package-version '(Org . "9.5")
   :type '(choice
-          (dir :tag "Locales directory")
+          (directory :tag "Locales directory")
           (const :tag "Use en-US locale only" nil))
   :safe t)
 
@@ -134,7 +134,7 @@ directory.  This variable is ignored when style file is absolute."
   :group 'org-cite
   :package-version '(Org . "9.5")
   :type '(choice
-          (dir :tag "Styles directory")
+          (directory :tag "Styles directory")
           (const :tag "Use absolute file names" nil))
   :safe t)
 
index 63176fce150c7c52ece98aa31890e8726afa7ebb..4f14c7d4c348a888a52d2bd28726b7361685cf19 100644 (file)
@@ -392,7 +392,7 @@ be set.
    Accepts string, nil, or lambda function which returns string
    or nil.  Defaults to nil."
   :group 'org-plot
-  :type '(alist :value-type (symbol group)))
+  :type 'alist)
 
 (defvar org--plot/radar-template
   "### spider plot/chart with gnuplot