From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: juntaka via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47718: Fix epa-file-insert-file-contents substring error Date: Tue, 13 Apr 2021 00:27:04 +0000 Message-ID: References: <8735vv2a39.fsf@gnus.org> <83o8ej3ebk.fsf@gnu.org> <83h7kb3add.fsf@gnu.org> Reply-To: juntaka Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31924"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "larsi@gnus.org" , "47718@debbugs.gnu.org" <47718@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 13 02:30:11 2021 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 1lW6wV-0008DH-6Z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 02:30:11 +0200 Original-Received: from localhost ([::1]:48322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lW6wU-0003fW-53 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 20:30:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lW6uQ-0002Sw-0s for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2021 20:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lW6uP-0006r7-NS for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2021 20:28:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lW6uP-0007SI-JW for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2021 20:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: juntaka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Apr 2021 00:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47718 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 47718-submit@debbugs.gnu.org id=B47718.161827363828604 (code B ref 47718); Tue, 13 Apr 2021 00:28:01 +0000 Original-Received: (at 47718) by debbugs.gnu.org; 13 Apr 2021 00:27:18 +0000 Original-Received: from localhost ([127.0.0.1]:58383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lW6ti-0007RG-DI for submit@debbugs.gnu.org; Mon, 12 Apr 2021 20:27:18 -0400 Original-Received: from mail-40132.protonmail.ch ([185.70.40.132]:38070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lW6tf-0007R3-Ql for 47718@debbugs.gnu.org; Mon, 12 Apr 2021 20:27:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1618273628; bh=KQY0/L6XVYLGqc73XQqo9MCA4hAF+LLqugY8Yoyxozc=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=DXa1jSTzWz4+XA60asfRqQXt3SuwDrBUbjEWgwFt4d3wXsxekOn6ejxiSZhgjN8SZ yyYmza0J7thmG3sWN4Yqv+zTO1zgN6EG0ENvbqNBRWsfH7w10Nl7T/wQIDKCPu7zlS gdwyhtOq35jSjo+b4eHdn1ft/4UvCWP8wh0M+QBQ= In-Reply-To: <83h7kb3add.fsf@gnu.org> 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" X-ACL-Warn: , juntaka Xref: news.gmane.io gmane.emacs.bugs:203941 Archived-At: > 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, =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Monday, April 12, 2021 10:23 PM, Eli Zaretskii 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@deb= bugs.gnu.org > > In my use case, I'm writing an elisp to show the first line of each fil= e 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?