From: Stefan Kangas Date: Tue, 11 Mar 2025 20:26:51 +0000 (+0100) Subject: ; Fix project-list-file on Emacs 26.1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b5da6536625afb2ab97a1156bcc549d91bd4ab43;p=emacs.git ; 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 . (cherry picked from commit ceee1a0ae7a804fbd5307f99db4f81f3d427e40e) --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index ffe6c36682d..a0edb177584 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -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"