* Status of vcard packages
@ 2022-07-11 14:23 Pascal Quesseveur
2022-07-11 15:41 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 8+ messages in thread
From: Pascal Quesseveur @ 2022-07-11 14:23 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I don't quite understand the situation regarding vcard manipulation
libraries.
mm-view in Gnus uses the vcard printing functions defined in N.
Friedmann's vcard.el, when these functions are available. The file
contains functions that format VCard data but is limited to Vcard
version 2.1. At one time, this file was in the Gnus contrib directory.
There is also a package called vcard in GNU ELPA (by E.q
Abrahamsen). The functions in vcard-parse deal with different versions
of VCard but they are not used in Gnus. If the 2 files cannot be
merged, wouldn't it be better to rename one of the 2 libraries and put
them both in the form of ELPA packages, knowing that vcard.el is
referenced by Gnus?
--
Pascal Quesseveur
pquessev@gmail.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Status of vcard packages
2022-07-11 14:23 Status of vcard packages Pascal Quesseveur
@ 2022-07-11 15:41 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-07-12 6:09 ` Pascal Quesseveur
2022-07-12 12:14 ` Arash Esbati
0 siblings, 2 replies; 8+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2022-07-11 15:41 UTC (permalink / raw)
To: help-gnu-emacs
Pascal Quesseveur [2022-07-11 16:23:31] wrote:
> There is also a package called vcard in GNU ELPA (by E.q
> Abrahamsen). The functions in vcard-parse deal with different versions
> of VCard but they are not used in Gnus. If the 2 files cannot be
> merged, wouldn't it be better to rename one of the 2 libraries and put
> them both in the form of ELPA packages, knowing that vcard.el is
> referenced by Gnus?
Indeed, the situation looks like a mess. Luckily there should be no big
difficulty adding the vcard.el code by Noah Friedmann to the `vcard`
package in GNU ELPA (so as to resolve the naming conflict).
Beside resolving the naming conflict, the code would benefit from some
love, as well. You seem to be a good candidate to try and tackle this.
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Status of vcard packages
2022-07-11 15:41 ` Stefan Monnier via Users list for the GNU Emacs text editor
@ 2022-07-12 6:09 ` Pascal Quesseveur
2022-07-12 12:14 ` Arash Esbati
1 sibling, 0 replies; 8+ messages in thread
From: Pascal Quesseveur @ 2022-07-12 6:09 UTC (permalink / raw)
To: help-gnu-emacs
Ok.
--
Pascal Quesseveur
pquessev@gmail.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Status of vcard packages
2022-07-11 15:41 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-07-12 6:09 ` Pascal Quesseveur
@ 2022-07-12 12:14 ` Arash Esbati
2022-07-12 12:56 ` Robert Pluim
2022-07-12 14:05 ` Stefan Monnier
1 sibling, 2 replies; 8+ messages in thread
From: Arash Esbati @ 2022-07-12 12:14 UTC (permalink / raw)
To: Stefan Monnier via Users list for the GNU Emacs text editor
Cc: Stefan Monnier
Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes:
> Beside resolving the naming conflict, the code would benefit from some
> love, as well.
Here is a small change fixing some minor docstring issues.
--8<---------------cut here---------------start------------->8---
--- vcard.el~ 2022-07-12 06:16:41.000000000 +0200
+++ vcard.el 2022-07-12 13:47:50.213543600 +0200
@@ -328,8 +328,8 @@
of each attribute is the actual property list; the remaining elements are
the values.
-If a specific property has an associated parameter \(e.g. an encoding\),
-use the syntax \(\"property\" . \"parameter\"\) to specify it. If property
+If a specific property has an associated parameter (e.g. an encoding),
+use the syntax (\"property\" . \"parameter\") to specify it. If property
parameter is not important or it has no specific parameter, just specify
the property name as a string."
(let ((attrs vcard)
@@ -344,7 +344,7 @@
(nreverse result)))
(defun vcard-proplist-all-properties (proplist props)
- "Returns nil unless PROPLIST contains all properties specified in PROPS."
+ "Return nil unless PROPLIST contains all properties specified in PROPS."
(let ((result t))
(while (and result props)
(or (vcard-get-property proplist (car props))
@@ -353,7 +353,7 @@
result))
(defun vcard-proplist-any-properties (proplist props)
- "Returns `t' if PROPLIST contains any of the properties specified in PROPS."
+ "Return t if PROPLIST contains any of the properties specified in PROPS."
(let ((result nil))
(while (and (not result) props)
(and (vcard-get-property proplist (car props))
--8<---------------cut here---------------end--------------->8---
The byte-compiler from current master (cfda663282) also complains about:
vcard-parse.el:98:2: Warning: defvar `vcard-parse-select-fields' docstring has
wrong usage of unescaped single quotes (use \= or different quoting)
vcard-parse.el:355:45: Warning: docstring has wrong usage of unescaped single
quotes (use \= or different quoting)
I couldn't figure out why.
Best, Arash
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Status of vcard packages
2022-07-12 12:14 ` Arash Esbati
@ 2022-07-12 12:56 ` Robert Pluim
2022-07-12 14:17 ` Arash Esbati
2022-07-12 14:05 ` Stefan Monnier
1 sibling, 1 reply; 8+ messages in thread
From: Robert Pluim @ 2022-07-12 12:56 UTC (permalink / raw)
To: Arash Esbati; +Cc: help-gnu-emacs, Stefan Monnier
>>>>> On Tue, 12 Jul 2022 14:14:26 +0200, Arash Esbati <arash@gnu.org> said:
Arash> vcard-parse.el:98:2: Warning: defvar `vcard-parse-select-fields' docstring has
Arash> wrong usage of unescaped single quotes (use \= or different quoting)
Arash> vcard-parse.el:355:45: Warning: docstring has wrong usage of unescaped single
Arash> quotes (use \= or different quoting)
Single quotes in docstrings can end up displayed incorrectly. Either
do:
`foo'
or if you really must have a single quote:
\\='foo
Robert
--
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Status of vcard packages
2022-07-12 12:14 ` Arash Esbati
2022-07-12 12:56 ` Robert Pluim
@ 2022-07-12 14:05 ` Stefan Monnier
2022-07-12 14:13 ` Arash Esbati
1 sibling, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2022-07-12 14:05 UTC (permalink / raw)
To: Arash Esbati; +Cc: Stefan Monnier via Users list for the GNU Emacs text editor
Arash Esbati [2022-07-12 14:14:26] wrote:
> (defun vcard-proplist-all-properties (proplist props)
> - "Returns nil unless PROPLIST contains all properties specified in PROPS."
> + "Return nil unless PROPLIST contains all properties specified in PROPS."
> (let ((result t))
> (while (and result props)
> (or (vcard-get-property proplist (car props))
> @@ -353,7 +353,7 @@
> result))
>
> (defun vcard-proplist-any-properties (proplist props)
> - "Returns `t' if PROPLIST contains any of the properties specified in PROPS."
> + "Return t if PROPLIST contains any of the properties specified in PROPS."
> (let ((result nil))
> (while (and (not result) props)
> (and (vcard-get-property proplist (car props))
> --8<---------------cut here---------------end--------------->8---
Thanks.
> The byte-compiler from current master (cfda663282) also complains about:
>
> vcard-parse.el:98:2: Warning: defvar `vcard-parse-select-fields' docstring has
> wrong usage of unescaped single quotes (use \= or different quoting)
> vcard-parse.el:355:45: Warning: docstring has wrong usage of unescaped single
> quotes (use \= or different quoting)
This is fixed in the version I installed yesterday into the GNU ELPA
version of `vcard`. It's not yet released but you can see the preview
at
http://elpa.gnu.org/devel/vcard.html
-- Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Status of vcard packages
2022-07-12 14:05 ` Stefan Monnier
@ 2022-07-12 14:13 ` Arash Esbati
0 siblings, 0 replies; 8+ messages in thread
From: Arash Esbati @ 2022-07-12 14:13 UTC (permalink / raw)
To: Stefan Monnier
Cc: Stefan Monnier via Users list for the GNU Emacs text editor
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> This is fixed in the version I installed yesterday into the GNU ELPA
> version of `vcard`.
Sorry, my bad. I was looking at the code from the git repo and the
warnings from the ELPA release.
Best, Arash
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Status of vcard packages
2022-07-12 12:56 ` Robert Pluim
@ 2022-07-12 14:17 ` Arash Esbati
0 siblings, 0 replies; 8+ messages in thread
From: Arash Esbati @ 2022-07-12 14:17 UTC (permalink / raw)
To: Robert Pluim; +Cc: help-gnu-emacs, Stefan Monnier
Robert Pluim <rpluim@gmail.com> writes:
> Single quotes in docstrings can end up displayed incorrectly.
Thanks. I was confused as the docstrings were already fixed by Stefan
and I was looking for the source of trouble in the updated code.
Best, arash
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-07-12 14:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-11 14:23 Status of vcard packages Pascal Quesseveur
2022-07-11 15:41 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-07-12 6:09 ` Pascal Quesseveur
2022-07-12 12:14 ` Arash Esbati
2022-07-12 12:56 ` Robert Pluim
2022-07-12 14:17 ` Arash Esbati
2022-07-12 14:05 ` Stefan Monnier
2022-07-12 14:13 ` Arash Esbati
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).