unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Paul Pogonyshev <pogonyshev@gmail.com>
Cc: 57800@debbugs.gnu.org
Subject: bug#57800: TRAMP insert-file-contents now fails for regions
Date: Wed, 14 Sep 2022 20:08:09 +0200	[thread overview]
Message-ID: <87fsgt4ynq.fsf@gnus.org> (raw)
In-Reply-To: <CAG7BparTQVFGL4Npxn53Gto99Mwj4UCVG29m-6aNPMckGui4Wg@mail.gmail.com> (Paul Pogonyshev's message of "Wed, 14 Sep 2022 14:11:00 +0200")

Paul Pogonyshev <pogonyshev@gmail.com> writes:

> Git commit fd1ee05977.
>
> Open any file with TRAMP. From this buffer, evaluate:
>
>     (let ((file buffer-file-name)) (with-temp-buffer (insert-file-contents file nil)))
>
> This works fine. However, if you use a region:
>
>     (let ((file buffer-file-name)) (with-temp-buffer (insert-file-contents file nil 1 10)))
>
> this fails with an obviously wrong (file is certainly there) signal:
>
>     Debugger entered--Lisp error: (file-missing "/ssh:...")
>       signal(file-missing ("/ssh:..."))

I tried this recipe with the current trunk, and things worked fine for
me.

Is it possible that you have an old version of tramp somewhere in your
load path?  I seem to vaguely recall that insert-file-contents +
start/end was something that was fixed sometime last year.





  reply	other threads:[~2022-09-14 18:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14 12:11 bug#57800: TRAMP insert-file-contents now fails for regions Paul Pogonyshev
2022-09-14 18:08 ` Lars Ingebrigtsen [this message]
2022-09-14 18:18   ` Paul Pogonyshev
2022-09-14 18:23     ` Lars Ingebrigtsen
2022-09-14 18:33       ` Paul Pogonyshev
2022-09-15 10:30         ` Michael Albinus
2022-09-16  9:37           ` Lars Ingebrigtsen
2022-09-29  9:24             ` Paul Pogonyshev
2022-09-29 10:43               ` Lars Ingebrigtsen
2022-09-29 11:26                 ` Paul Pogonyshev
2022-09-29 11:27                   ` Paul Pogonyshev
2022-09-29 17:39                   ` Michael Albinus
2022-09-30  8:49                     ` Paul Pogonyshev
2022-09-30 18:39                       ` Michael Albinus
2022-09-30 18:52                         ` Paul Pogonyshev
2022-09-30 19:11                           ` Michael Albinus
2022-09-30 19:58                             ` Michael Albinus
2022-09-30 20:48                               ` Paul Pogonyshev
2022-10-01 15:18                                 ` Michael Albinus
2022-10-01 16:16                                   ` Paul Pogonyshev

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=87fsgt4ynq.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=57800@debbugs.gnu.org \
    --cc=pogonyshev@gmail.com \
    /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).