GNU bug report logs -
#57800
TRAMP insert-file-contents now fails for regions
Previous Next
Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>
Date: Wed, 14 Sep 2022 12:12:02 UTC
Severity: normal
Tags: moreinfo
Fixed in version 29.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 57800 <at> debbugs.gnu.org (full text, mbox):
Paul Pogonyshev <pogonyshev <at> 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.
This bug report was last modified 2 years and 229 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.