bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57800: TRAMP insert-file-contents now fails for regions


From: Lars Ingebrigtsen
Subject: bug#57800: TRAMP insert-file-contents now fails for regions
Date: Wed, 14 Sep 2022 20:08:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]