unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: juntaka via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "larsi@gnus.org" <larsi@gnus.org>,
	"47718@debbugs.gnu.org" <47718@debbugs.gnu.org>
Subject: bug#47718: Fix epa-file-insert-file-contents substring error
Date: Tue, 13 Apr 2021 00:27:04 +0000	[thread overview]
Message-ID: <KH6TahK4FOA-XX43v3nZupvN0r_4r60-WWm3mUmCUAthZ1MNd9iCRUDRV6hIC8mFErFIhxG4ERIt15ysWfp2HWNOEcILt08MyzASJZDCCso=@protonmail.com> (raw)
In-Reply-To: <83h7kb3add.fsf@gnu.org>

> 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@gnu.org> wrote:

> > Date: Mon, 12 Apr 2021 12:57:28 +0000
> > From: juntaka juntaka@protonmail.com
> > Cc: Lars Ingebrigtsen larsi@gnus.org, "47718@debbugs.gnu.org" 47718@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?







  reply	other threads:[~2021-04-13  0:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-12  4:20 bug#47718: Fix epa-file-insert-file-contents substring error juntaka via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12  8:14 ` Lars Ingebrigtsen
2021-04-12 11:57   ` Eli Zaretskii
2021-04-12 12:57     ` juntaka via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 13:23       ` Eli Zaretskii
2021-04-13  0:27         ` juntaka via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-04-13  7:01     ` Lars Ingebrigtsen
2021-04-12 12:51   ` juntaka via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-13  7:02     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='KH6TahK4FOA-XX43v3nZupvN0r_4r60-WWm3mUmCUAthZ1MNd9iCRUDRV6hIC8mFErFIhxG4ERIt15ysWfp2HWNOEcILt08MyzASJZDCCso=@protonmail.com' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=47718@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=juntaka@protonmail.com \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).