Subject: bug#64717: [PATCH] Silence the compiler in vcard-parse.el from ELPA

From: Arash Esbati <[email-masked]>
Date: Tue, 18 Jul 2023 22:48:10 +0200

X-Debbugs-CC: [email-masked]

Hi all,

this is a tiny patch against vcard-parse.el in order to pacify the
warnings about

 ‘point-at-bol’ is an obsolete function ...
 ‘point-at-eol’ is an obsolete function ...
>From f0bf7e52772064d1ccfcfe84798a658220483ec6 Mon Sep 17 00:00:00 2001
From: Arash Esbati <[email-masked]>
Date: Tue, 18 Jul 2023 22:31:50 +0200
Subject: [PATCH] ; * vcard-parse.el (vcard-parse-buffer): Pacify the compiler.

---
 vcard-parse.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vcard-parse.el b/vcard-parse.el
index 571faa1c6e..e43ceed8be 100644
--- a/vcard-parse.el
+++ b/vcard-parse.el
@@ -1,6 +1,6 @@
 ;;; vcard-parse.el --- Library for parsing vCards      -*- lexical-binding: t; -*-
 
-;; Copyright (C) 2019-2022  Free Software Foundation, Inc.
+;; Copyright (C) 2019-2023  Free Software Foundation, Inc.
 
 ;; Author: Eric Abrahamsen <[email-masked]>
 ;; Maintainer: Eric Abrahamsen <[email-masked]>
@@ -221,8 +221,8 @@ Returns a list of contact objects."
 				   '(vcard) :error
 				   "Parsing failed with:\n %s"
 				   (buffer-substring-no-properties
-				    (point-at-bol)
-				    (point-at-eol))))))
+				    (line-beginning-position)
+				    (line-end-position))))))
 	(push card out)))
 
     (nreverse out)))
-- 
2.41.0

And while we're at: There are also

  In vcard-region-decode-base64:
  vcard.el:516:29: Warning: avoid ‘lsh’; use ‘ash’ instead
  vcard.el:518:27: Warning: avoid ‘lsh’; use ‘ash’ instead
  vcard.el:518:51: Warning: avoid ‘lsh’; use ‘ash’ instead
  vcard.el:530:32: Warning: avoid ‘lsh’; use ‘ash’ instead

Is `ash' a drop-in replacement?  Maybe these can be fixed as well.

This is with Emacs 30.0.50 (f624b283bf).

Best, Arash