GNU bug report logs -
#75983
project crash, file-name-directory "~", file-equal-p nil
Previous Next
Reported by: Ship Mints <shipmints <at> gmail.com>
Date: Sat, 1 Feb 2025 00:13:02 UTC
Severity: normal
Done: Dmitry Gutov <dmitry <at> gutov.dev>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi!
On 01/02/2025 13:04, Ship Mints wrote:
> Dmitry, I think the following patch to project--write-project-list might
> suffice to avoid this in the future:
>
> diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
> index f2a27ff91dd..f9b3b8891bc 100644
> --- a/lisp/progmodes/project.el
> +++ b/lisp/progmodes/project.el
> @@ -1824,7 +1824,7 @@ project--read-project-list
> (lambda (elem)
> (let ((name (car elem)))
> (list (if (file-remote-p name) name
> - (abbreviate-file-name name)))))
> + (file-name-as-directory (abbreviate-file-
> name name))))))
> (condition-case nil
> (read (current-buffer))
> (end-of-file
Yeah, this is a decent solution, thanks.
Any idea though, how an entry without a trailing "/" got into that file?
Written by some older version of project.el?
This bug report was last modified 97 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.