]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix project-list-file on Emacs 26.1
authorStefan Kangas <stefankangas@gmail.com>
Tue, 11 Mar 2025 20:26:51 +0000 (21:26 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Mar 2025 19:01:16 +0000 (20:01 +0100)
* 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>.

(cherry picked from commit ceee1a0ae7a804fbd5307f99db4f81f3d427e40e)

lisp/progmodes/project.el

index ffe6c36682d4df0bd08a79cd7118fd67b6e6d38a..a0edb177584714f1ff18b7695ccfc2e9b5c913f6 100644 (file)
@@ -1759,7 +1759,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"