* lisp/gnus/gnus-cloud.el (gnus-cloud-synced-files): Fix doc & type.
authorGlenn Morris <rgm@gnu.org>
Thu, 22 Mar 2018 00:47:28 +0000 (20:47 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 22 Mar 2018 00:47:28 +0000 (20:47 -0400)
lisp/gnus/gnus-cloud.el

index 284fdca494efc713c578174549fa193b6a8652d6..d5970f312656f1419fc90e6037842d4605e4cbe7 100644 (file)
     "~/.authinfo.gpg"
     "~/.gnus.el"
     (:directory "~/News" :match ".*.SCORE\\'"))
-  "List of file regexps that should be kept up-to-date via the cloud."
+  "List of files that should be kept up-to-date via the cloud.
+Each element may be either a string or a property list.
+The latter should have a :directory element whose value is a string,
+and a :match element whose value is a regular expression to match
+against the basename of files in said directory."
   :group 'gnus-cloud
-  ;; FIXME this type does not match the default.  Nor does the documentation.
-  :type '(repeat regexp))
+  :type '(repeat (choice (string :tag "File")
+                         (plist :tag "Property list"))))
 
 (defcustom gnus-cloud-storage-method (if (featurep 'epg) 'epg 'base64-gzip)
   "Storage method for cloud data, defaults to EPG if that's available."
@@ -290,6 +294,8 @@ Use old data if FORCE-OLDER is not nil."
     (dolist (elem gnus-cloud-synced-files)
       (cond
        ((stringp elem)
+        ;; This seems fragile.  String comparison, with no
+        ;; expand-file-name to resolve ~, etc.
         (when (equal elem file-name)
           (setq matched t)))
        ((consp elem)