From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.bugs Subject: bug#45417: 28.0.50; vcard-parse-buffer only parses single card Date: Fri, 25 Dec 2020 07:30:17 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000787ddf05b7440f08" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35852"; mail-complaints-to="usenet@ciao.gmane.io" To: 45417@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 25 07:31:33 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksgdQ-0009Ey-H8 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Dec 2020 07:31:32 +0100 Original-Received: from localhost ([::1]:47824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ksgdP-0002JN-GU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Dec 2020 01:31:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksgcw-0002Iv-Oo for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2020 01:31:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ksgcw-0004xX-Hh for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2020 01:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ksgcw-0004gy-F1 for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2020 01:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Dec 2020 06:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45417 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160887783716642 (code B ref -1); Fri, 25 Dec 2020 06:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Dec 2020 06:30:37 +0000 Original-Received: from localhost ([127.0.0.1]:56624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ksgcW-0004Jp-5l for submit@debbugs.gnu.org; Fri, 25 Dec 2020 01:30:37 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:41530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ksgcT-0004G5-Jz for submit@debbugs.gnu.org; Fri, 25 Dec 2020 01:30:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksgcS-00022z-Ra for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2020 01:30:33 -0500 Original-Received: from mail-vk1-xa29.google.com ([2607:f8b0:4864:20::a29]:34701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ksgcQ-0004f5-I9 for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2020 01:30:32 -0500 Original-Received: by mail-vk1-xa29.google.com with SMTP id v3so871493vkb.1 for ; Thu, 24 Dec 2020 22:30:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/3OD9iw++B44Ik8NhMW1FB8mVS9/Qp0U6xd71hSzi30=; b=RTVzyVJor38f253LXn9JHVZdHP8vVTBS9kmXqJ8vhQ39rQGl5ioydy/PQ5TEcKeJ/G Rap6bObIuMch0zvPgxvGe2IhTiPegQLnpPg9XeGwCK9lMdYoCRMz9XmMbrt1qSvGlZRn Wm13Fw+pw6/PqmSiaklpOHeuquks7h8/rCKhYDJXH7x4jDMK1KXtAweRvAUeZER+l30F BENJr/hLuGcsx7wVJU084nqckTsta34yWZx2GrKE7tc81UbdJrThELubTf/yKJjn6HNz MXl76jbUrq3gz2yZ4Q4YmUIMhWu0LHkGhFzcWpT77VfB6ZlbeG9OT+xYfbWAL7hq8XN9 5cKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/3OD9iw++B44Ik8NhMW1FB8mVS9/Qp0U6xd71hSzi30=; b=aKmd7/k8lGDOGjswmZDZw4GWf4eeHPHjLMCAvinrE/r1B+LpXPu22noSRgCgfx8cii 6sViydwJzB++Onrr5IMflxYQcbgAkx59VA0FQ/LggGCKVtKeCjhL/Rr/7t6Yqi9dPpMR /0Rlx9dRvHkKPSm04+AcmRINEZXPGW2O44HYUd5x8Imfy2ilBBlpveDVbIPtnQ2Pwmaz 9i8DlFGccZrHS34ySEb1CSLiXJSRYS3wFWpcDroREF9A5zuI/vk4qVaQIwA6JhVYZcmN UZjZpIYvPc9aDwqnFOXGWaXrj7ye4e/2kCxCMvFO3vf2QH78B7hSxs7eu1D9qKYWcNuD SNaA== X-Gm-Message-State: AOAM533F7tD8Ux5XyEfvkFz0wRUsxMXW6EwbOV3MAAtPoeUmkAv2oDWF pKa309U2BFctC2nOjRxGzFe000/13ezp0CAkM3tqyE+G6i4= X-Google-Smtp-Source: ABdhPJyJ+WriCbrSbz/uW6cmbz83RXUF/ncqwC86B2+DbhkUZZa/lFlHfBirzQ/S0oDgqZvBOaKPnV21bZbjjajdvQY= X-Received: by 2002:a1f:2d4d:: with SMTP id t74mr13772264vkt.0.1608877828766; Thu, 24 Dec 2020 22:30:28 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::a29; envelope-from=dalanicolai@gmail.com; helo=mail-vk1-xa29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196686 Archived-At: --000000000000787ddf05b7440f08 Content-Type: text/plain; charset="UTF-8" Install vcard via list-packages. Insert following lines (vcard file example, from google contacts export) in a buffer: BEGIN:VCARD VERSION:3.0 TEL;TYPE=CELL:+00 000 00 00 00 CATEGORIES:myContacts end:VCARD BEGIN:VCARD VERSION:3.0 TEL;TYPE=WORK:000 000 0000 CATEGORIES:myContacts END:VCARD in the buffer evaluate (M-:): (vcard-parse-buffer) it will stop after the first card. SOLUTION: in the function `vcard-parse-buffer`, (line-end-position 2) should be replaced by (+ (line-end-position 2) 1) In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) of 2020-12-21 built on daniel-Ubuntu Repository revision: faf3613cba8571eaef2709bd7bb6f11a956b9262 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Ubuntu 20.10 Configured using: 'configure --with-imagemagick --with-cairo --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER LCMS2 Important settings: value of $LC_MONETARY: nl_NL.UTF-8 value of $LC_NUMERIC: nl_NL.UTF-8 value of $LC_TIME: nl_NL.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: vCard Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail vcard-parse vcard iso8601 compile comint ansi-color ring autoload radix-tree lisp-mnt tar-mode arc-mode archive-mode cus-edit pp cus-start cus-load wid-edit misearch multi-isearch mm-archive message dired dired-loaddefs rfc822 mml mml-sec epa derived gnus-util rmail rmail-loaddefs text-property-search time-date mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils mule-util gnutls network-stream url-http mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url-cache url-auth epg epg-config finder-inf package easymenu browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 215914 19596) (symbols 48 11177 1) (strings 32 41500 2179) (string-bytes 1 1277285) (vectors 16 19501) (vector-slots 8 250240 21585) (floats 8 35 226) (intervals 56 24166 107) (buffers 984 17)) --000000000000787ddf05b7440f08 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Install vcard via list-packages.
Insert following lines (vcard file example, from google contacts export)
in a buffer:

BEGIN:VCARD
VERSION:3.0
TEL;TYPE=3DCELL:+00 000 00 00 00
CATEGORIES:myContacts
end:VCARD
BEGIN:VCARD
VERSION:3.0
TEL;TYPE=3DWORK:000 000 0000
CATEGORIES:myContacts
END:VCARD

in the buffer evaluate (M-:): (vcard-parse-buffer)

it will stop after the first card.

SOLUTION: in the function `vcard-parse-buffer`, (line-end-position 2)
should be replaced by (+ (line-end-position 2) 1)



In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, c= airo version 1.16.0)
of 2020-12-21 built on daniel-Ubuntu
Repository revision: faf3613cba8571eaef2709bd7bb6f11a956b9262
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.1= 2009000
System Description: Ubuntu 20.10

Configured using:
'configure --with-imagemagick --with-cairo --with-modules'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS GSETTINGS
GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ
M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES
THREADS LIBSYSTEMD PDUMPER LCMS2

Important settings:
=C2=A0 value of $LC_MONETARY: nl_NL.UTF-8
=C2=A0 value of $LC_NUMERIC: nl_NL.UTF-8
=C2=A0 value of $LC_TIME: nl_NL.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix

Major mode: vCard

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail vcard-parse vcard iso8601
compile comint ansi-color ring autoload radix-tree lisp-mnt tar-mode
arc-mode archive-mode cus-edit pp cus-start cus-load wid-edit misearch
multi-isearch mm-archive message dired dired-loaddefs rfc822 mml mml-sec
epa derived gnus-util rmail rmail-loaddefs text-property-search
time-date mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode
mail-utils mule-util gnutls network-stream url-http mail-parse rfc2231
rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny
url-cache url-auth epg epg-config finder-inf package easymenu browse-url
url url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 215914 19596)
(symbols 48 11177 1)
(strings 32 41500 2179)
(string-bytes 1 1277285)
(vectors 16 19501)
(vector-slots 8 250240 21585)
(floats 8 35 226)
(intervals 56 24166 107)
(buffers 984 17))
--000000000000787ddf05b7440f08--