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

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

bug#69606: [PATCH] Ensure default-directory exists when generating diff


From: Philip Kaludercic
Subject: bug#69606: [PATCH] Ensure default-directory exists when generating diff
Date: Thu, 07 Mar 2024 09:27:48 +0000

When I generate a diff in some directory that I would afterwards delete,
the diff buffer appears to remain in the now non-existent directory
(according to `default-directory'), even if I want to generate a diff
for some other file.  The issue now is that make-process complains that
it cannot set the CWD when starting "diff", and instead fails with a
slightly confusing error message:

  start-process: Setting current directory: No such file or directory, 
/some/directory/that/doesnt/exist/anymore

This would fix the issue, but I don't think the solution is ideal:

Attachment: 0001-Ensure-default-directory-exists-when-generating-di.patch
Description: [PATCH] Ensure default-directory exists when generating diff

Any other ideas?  Perhaps we should always set the default directory to
that 

-- 
        Philip Kaludercic on peregrine

reply via email to

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