Subject: Re: bug#70449: 30.0.50; Can't save .zip archive in TRAMP

From: Eli Zaretskii <[email-masked]>
Date: Fri, 19 Apr 2024 14:20:57 +0300

> From: Michael Albinus <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Fri, 19 Apr 2024 11:23:55 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Thanks, but that can be any number of reasons.  If you happen to know
> > which line i archive-*-write-file-member signaled this error, that
> > could be a starting point.
> 
> Line 1438:
> 
>             (archive--with-ensure-extension
>              archive (archive--act-files command (list ename)))))

My first guess is that the error comes from with-current-buffer:

  (defun archive--with-ensure-extension (archive proc-fn)
    (let ((saved default-directory))
      (with-current-buffer (find-buffer-visiting archive)

which probably means find-buffer-visiting returns nil, because we are
using a local copy or something.