From 2216468786f64cfa403dface1dab1cd20b84d5aa Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Mon, 18 May 2020 03:44:26 +0300 Subject: [PATCH] Update the package version * lisp/progmodes/project.el: Update the package version. (project-vc-merge-submodules): Update the docstring. (project-try-vc): Add a FIXME. --- lisp/progmodes/project.el | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 0b2761c2a5e..44259990bbf 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1,7 +1,7 @@ ;;; project.el --- Operations on the current project -*- lexical-binding: t; -*- ;; Copyright (C) 2015-2020 Free Software Foundation, Inc. -;; Version: 0.1.3 +;; Version: 0.2.0 ;; Package-Requires: ((emacs "26.3")) ;; This is a GNU ELPA :core package. Avoid using functionality that @@ -233,7 +233,10 @@ to find the list of ignores for each directory." :safe 'listp) (defcustom project-vc-merge-submodules t - "Non-nil to consider submodules part of the parent project." + "Non-nil to consider submodules part of the parent project. + +After changing this variable (using Customize or .dir-locals.el) +you might have to restart Emacs to see the effect." :type 'boolean :package-version '(project . "0.2.0") :safe 'booleanp) @@ -284,6 +287,8 @@ backend implementation of `project-external-roots'.") (vc-file-setprop dir 'project-git-root (if (and + ;; FIXME: Invalidate the cache when the value + ;; of this variable changes. project-vc-merge-submodules (project--submodule-p root)) (let* ((parent (file-name-directory @@ -302,9 +307,8 @@ backend implementation of `project-external-roots'.") ;; there is the custom var now. ;; ;; Some users may also set up things equivalent to Git submodules - ;; using "git worktree" instead (for example). However, we expect - ;; that most of them would prefer to treat those as separate - ;; projects anyway. + ;; using "git worktree" (for example). However, we expect that most + ;; of them would prefer to treat those as separate projects anyway. (let* ((gitfile (expand-file-name ".git" root))) (cond ((file-directory-p gitfile) -- 2.39.2