[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vcard 425d5a0 3/6: [vcard] Use vars, not options, for a
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vcard 425d5a0 3/6: [vcard] Use vars, not options, for altering parsing process |
Date: |
Tue, 1 Dec 2020 09:58:06 -0500 (EST) |
branch: externals/vcard
commit 425d5a0ec9ddc02f41200b0db9738561d436c3cf
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
[vcard] Use vars, not options, for altering parsing process
* packages/vcard/vcard-parse.el (vcard-parse-select-fields,
vcard-parse-omit-fields, vcard-parse-datetime-values,
vcard-parse-card-consumer-function,
vcard-parse-property-consumer-function): None of these make sense as
defcustoms, use defvar instead. This lets us get rid of the
parsing customization group altogether.
---
vcard-parse.el | 30 ++++++++++--------------------
1 file changed, 10 insertions(+), 20 deletions(-)
diff --git a/vcard-parse.el b/vcard-parse.el
index 3c239de..dfddda4 100644
--- a/vcard-parse.el
+++ b/vcard-parse.el
@@ -92,53 +92,43 @@
;;; Code:
-(require 'vcard)
(require 'cl-lib)
(require 'iso8601)
-(defgroup vcard-parse nil
- "Customization options for vcard parsing."
- :group 'vcard)
-
-(defcustom vcard-parse-select-fields nil
+(defvar vcard-parse-select-fields nil
"A list of field types to select.
If this variable is non-nil, only the fields listed will be
parsed, all others will be discarded. Note that the 'version and
'fn properties are always returned.
-Most useful when let-bound around one of the parsing functions."
- :type '(repeat symbol))
+Most useful when let-bound around one of the parsing functions.")
-(defcustom vcard-parse-omit-fields nil
+(defvar vcard-parse-omit-fields nil
"A list of field types to omit.
If this variable is non-nil, the fields listed will be discarded.
-Most useful when let-bound around one of the parsing functions."
- :type '(repeat symbol))
+Most useful when let-bound around one of the parsing functions.")
-(defcustom vcard-parse-datetime-values t
+(defvar vcard-parse-datetime-values t
"When non-nil, attempt to parse date/time property values.
If successful, the property value will be (usually) converted to
a list of integers, though if the \"type\" parameter of the
property is \"text\", the value will be returned as a string. It
is also possible that parsing may fail, in which case the
-original string value will also be returned."
- :type 'boolean)
+original string value will also be returned.")
-(defcustom vcard-parse-card-consumer-function nil
+(defvar vcard-parse-card-consumer-function nil
"Custom function for consuming a single contact card.
It is called with a list of properties, as produced by the
built-in code, or by the return value of
-`vcard-parse-property-consumer-function'."
- :type 'function)
+`vcard-parse-property-consumer-function'.")
-(defcustom vcard-parse-property-consumer-function nil
+(defvar vcard-parse-property-consumer-function nil
"Custom function for consuming a single property.
The function is called with four arguments: the property type as
a symbol, the property value (all un-escaping, decoding,
splitting, etc already complete), the property parameters as an
-alist with symbol keys, and the vcard version as a float."
- :type 'function)
+alist with symbol keys, and the vcard version as a float.")
(defvar vcard-parse-overriding-version nil
"vCard version, as a float, used when no VERSION property is present.
- [elpa] branch externals/vcard created (now f413700), Stefan Monnier, 2020/12/01
- [elpa] externals/vcard 425d5a0 3/6: [vcard] Use vars, not options, for altering parsing process,
Stefan Monnier <=
- [elpa] externals/vcard 1d3ee6b 1/6: [vcard] Version 0 of vcard package, Stefan Monnier, 2020/12/01
- [elpa] externals/vcard f413700 6/6: * .gitignore: New file, Stefan Monnier, 2020/12/01
- [elpa] externals/vcard f51f385 2/6: [vcard] Don't try to provide our own compat version of iso8601, Stefan Monnier, 2020/12/01
- [elpa] externals/vcard deeb9cd 4/6: [vcard] Don't swallow vCard parsing errors, Stefan Monnier, 2020/12/01
- [elpa] externals/vcard 3a63482 5/6: [vcard] Move vcard-mode into main vcard file, release version 0.1, Stefan Monnier, 2020/12/01