GNU bug report logs - #47718
Fix epa-file-insert-file-contents substring error

Previous Next

Package: emacs;

Reported by: juntaka <juntaka <at> protonmail.com>

Date: Mon, 12 Apr 2021 06:02:02 UTC

Severity: normal

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #27 received at 47718 <at> debbugs.gnu.org (full text, mbox):

From: juntaka <juntaka <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "larsi <at> gnus.org" <larsi <at> gnus.org>,
 "47718 <at> debbugs.gnu.org" <47718 <at> debbugs.gnu.org>
Subject: Re: bug#47718: Fix epa-file-insert-file-contents substring error
Date: Tue, 13 Apr 2021 00:27:04 +0000
> Doesn't that mean the problem is in your application code?

I think insert-file-contents should behave same regardless gpg file or not.

$ echo -n test > file
$ gpg -c file

elisp> (insert-file-contents "file" nil 0 4) ;; no error
elisp> (insert-file-contents "file" nil 0 5) ;; no error
elisp> (insert-file-contents "file.gpg" nil 0 4) ;; no error
elisp> (insert-file-contents "file.gpg" nil 0 5) ;; error

I had no chance to fix that on my side.

Best,

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, April 12, 2021 10:23 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:

> > Date: Mon, 12 Apr 2021 12:57:28 +0000
> > From: juntaka juntaka <at> protonmail.com
> > Cc: Lars Ingebrigtsen larsi <at> gnus.org, "47718 <at> debbugs.gnu.org" 47718 <at> debbugs.gnu.org
> > In my use case, I'm writing an elisp to show the first line of each file on dired.
> > It does not need to visit and read entire file. So I just try to limit by (window-width).
> > But if Emacs try to decrypt GPG files, then I got such error.
>
> Doesn't that mean the problem is in your application code?






This bug report was last modified 4 years and 35 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.