* bug#64717: [PATCH] Silence the compiler in vcard-parse.el from ELPA
@ 2023-07-18 20:48 Arash Esbati
2023-07-18 21:59 ` Eric Abrahamsen
0 siblings, 1 reply; 4+ messages in thread
From: Arash Esbati @ 2023-07-18 20:48 UTC (permalink / raw)
To: 64717; +Cc: eric
[-- Attachment #1: Type: text/plain, Size: 236 bytes --]
X-Debbugs-CC: eric@ericabrahamsen.net
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 ...
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-vcard-parse.el-vcard-parse-buffer-Pacify-the-compile.patch --]
[-- Type: text/x-patch, Size: 1098 bytes --]
From f0bf7e52772064d1ccfcfe84798a658220483ec6 Mon Sep 17 00:00:00 2001
From: Arash Esbati <arash@gnu.org>
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 <eric@ericabrahamsen.net>
;; Maintainer: Eric Abrahamsen <eric@ericabrahamsen.net>
@@ -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
[-- Attachment #3: Type: text/plain, Size: 473 bytes --]
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#64717: [PATCH] Silence the compiler in vcard-parse.el from ELPA
2023-07-18 20:48 bug#64717: [PATCH] Silence the compiler in vcard-parse.el from ELPA Arash Esbati
@ 2023-07-18 21:59 ` Eric Abrahamsen
2023-07-19 14:59 ` Arash Esbati
0 siblings, 1 reply; 4+ messages in thread
From: Eric Abrahamsen @ 2023-07-18 21:59 UTC (permalink / raw)
To: Arash Esbati; +Cc: 64717
Arash Esbati <arash@gnu.org> writes:
> X-Debbugs-CC: eric@ericabrahamsen.net
>
> 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 ...
>
>
> 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.
Thanks for this! I've applied your patch. This stuff with base64 looks
like it it's from the year 2000, and I should follow Stefan's comments
and update it to use `base64-decode-region' directly. This is one of the
many things I'm behind on, I will try to get to it this week. Let's
leave this bug open until then.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#64717: [PATCH] Silence the compiler in vcard-parse.el from ELPA
2023-07-18 21:59 ` Eric Abrahamsen
@ 2023-07-19 14:59 ` Arash Esbati
2023-08-23 23:45 ` Stefan Kangas
0 siblings, 1 reply; 4+ messages in thread
From: Arash Esbati @ 2023-07-19 14:59 UTC (permalink / raw)
To: Eric Abrahamsen; +Cc: 64717
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Thanks for this! I've applied your patch. This stuff with base64 looks
> like it it's from the year 2000, and I should follow Stefan's comments
> and update it to use `base64-decode-region' directly. This is one of the
> many things I'm behind on, I will try to get to it this week. Let's
> leave this bug open until then.
Thanks for installing that part. Please feel free to close this report
whenever appropriate.
Best, Arash
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#64717: [PATCH] Silence the compiler in vcard-parse.el from ELPA
2023-07-19 14:59 ` Arash Esbati
@ 2023-08-23 23:45 ` Stefan Kangas
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2023-08-23 23:45 UTC (permalink / raw)
To: Arash Esbati; +Cc: Eric Abrahamsen, 64717-done
> Thanks for installing that part. Please feel free to close this report
> whenever appropriate.
Closing this now.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-23 23:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-18 20:48 bug#64717: [PATCH] Silence the compiler in vcard-parse.el from ELPA Arash Esbati
2023-07-18 21:59 ` Eric Abrahamsen
2023-07-19 14:59 ` Arash Esbati
2023-08-23 23:45 ` Stefan Kangas
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.