emacs-devel
[Top][All Lists]
Advanced

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

Re: master 4803fba487 1/2: 'C-x v v' on a diff buffer commits it as a pa


From: Eli Zaretskii
Subject: Re: master 4803fba487 1/2: 'C-x v v' on a diff buffer commits it as a patch (bug#52349)
Date: Wed, 31 Aug 2022 15:36:02 +0300

> Date: Wed, 31 Aug 2022 14:57:38 +0300
> Cc: luangruo@yahoo.com, ams@gnu.org, larsi@gnus.org, juri@jurta.org,
>  emacs-devel@gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> 
> >> +      (dolist (f files)
> >> +        (copy-file (expand-file-name f root)
> >> +                   (expand-file-name f tmpdir)))
> > 
> > What if f includes leading directories, as in "lisp/foo.el"?  If
> > tmpdir doesn't have a subdirectory 'lisp', the copy-file will fail,
> > no?
> 
> That's unfortunate.

I think you need to precede the copy-file call by

  (make-directory (file-name-directory (expand-file-name f tmpdir)) t)



reply via email to

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