; Fix project-list-file on Emacs 26.1

* lisp/progmodes/project.el (project-list-file): Unbreak use of
'locate-user-emacs-file' on Emacs 26.1.
Problem reported by Dmitry Gutov <dmitry@gutov.dev>.
This commit is contained in:
Stefan Kangas 2025-03-11 21:26:51 +01:00
parent b3d8e7ebb5
commit ceee1a0ae7

View file

@ -1832,7 +1832,9 @@ Also see the `project-kill-buffers-display-buffer-list' variable."
;;; Project list
(defcustom project-list-file
(locate-user-emacs-file '("projects.eld" "projects"))
(locate-user-emacs-file (if (>= emacs-major-version 31)
'("projects.eld" "projects")
"projects"))
"File in which to save the list of known projects."
:type 'file
:version "31.1"