From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#64717: [PATCH] Silence the compiler in vcard-parse.el from ELPA Date: Tue, 18 Jul 2023 22:48:10 +0200 Message-ID: <86a5vt6j5h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37392"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eric@ericabrahamsen.net To: 64717@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 18 22:51:29 2023 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 1qLrfM-0009Wk-Va for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Jul 2023 22:51:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLrf3-0007Th-F0; Tue, 18 Jul 2023 16:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLrex-0007Rl-Aj for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 16:51:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qLrex-0001PV-33 for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 16:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qLrew-0004yv-Ay; Tue, 18 Jul 2023 16:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: eric@ericabrahamsen.net, bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Jul 2023 20:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64717 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: emacs-bugs X-Debbugs-Original-Xcc: eric@ericabrahamsen.net Original-Received: via spool by submit@debbugs.gnu.org id=B.168971340719080 (code B ref -1); Tue, 18 Jul 2023 20:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jul 2023 20:50:07 +0000 Original-Received: from localhost ([127.0.0.1]:54432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLre2-0004xg-Dj for submit@debbugs.gnu.org; Tue, 18 Jul 2023 16:50:06 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:48974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLrdw-0004ww-HL for submit@debbugs.gnu.org; Tue, 18 Jul 2023 16:50:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLrdq-0006rL-PN for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 16:49:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLrdq-0000ld-HX for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 16:49:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=g1XlAJRQGwDNx0PxXaFW6ClvHTHjK8vOImfYNR0C1MY=; b=sZy+RN3/6eQwPz rbG3TMZsfTIUAAsdB/sWTygnNNO1Ficblm6z0cmNxO96rbQpCpKlQZpNfVTpg6SLJZY7ioOLf7v4f L/A0c2+2yLhFLtseXfuOo5I2KlryDlccbiM5RNmyqckojDu5YhnBUol+RwZTkfOC3A4HWyIm0fLM7 osqun/YaD92c7BJ0R2S+v8XU9p5Vuyznn1XiLt8T1WvgQ7nZ1+cXpUUPcehJvLtxN+LJO50C2BkdA jcO31BvI18bx7VIvUmu6htciK0OPwpkZ3cStPNaQfQSkjKWIN2BaXrGuDhho268MTqgp45OV1WU9x vAyFY8uoCqjYh8s0Dlog==; Original-Received: from p5b326e8f.dip0.t-ipconnect.de ([91.50.110.143] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLrdp-00085c-Vw for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 16:49:54 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265498 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Debbugs-CC: eric@ericabrahamsen.net Hi all, this is a tiny patch against vcard-parse.el in order to pacify the warnings about =E2=80=98point-at-bol=E2=80=99 is an obsolete function ... =E2=80=98point-at-eol=E2=80=99 is an obsolete function ... --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-vcard-parse.el-vcard-parse-buffer-Pacify-the-compile.patch >From f0bf7e52772064d1ccfcfe84798a658220483ec6 Mon Sep 17 00:00:00 2001 From: Arash Esbati 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 ;; Maintainer: Eric Abrahamsen @@ -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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable And while we're at: There are also In vcard-region-decode-base64: vcard.el:516:29: Warning: avoid =E2=80=98lsh=E2=80=99; use =E2=80=98ash= =E2=80=99 instead vcard.el:518:27: Warning: avoid =E2=80=98lsh=E2=80=99; use =E2=80=98ash= =E2=80=99 instead vcard.el:518:51: Warning: avoid =E2=80=98lsh=E2=80=99; use =E2=80=98ash= =E2=80=99 instead vcard.el:530:32: Warning: avoid =E2=80=98lsh=E2=80=99; use =E2=80=98ash= =E2=80=99 instead Is `ash' a drop-in replacement? Maybe these can be fixed as well. This is with Emacs 30.0.50 (f624b283bf). Best, Arash --=-=-=--