branch: elpa/projectile
commit 4edbed5a2d0c262a53f348f98a07d726bb3e5084
Author: Aaron Madlon-Kay <aa...@madlon-kay.com>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    [Fix #1940] Set safe condition `projectile-indexing-method`
---
 CHANGELOG.md  | 1 +
 projectile.el | 1 +
 2 files changed, 2 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 26c9a06606..396a372b6e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
 ### Changes
 
 * Set `projectile-auto-discover` to `nil` by default.
+* [#1943](https://github.com/bbatsov/projectile/pull/1943): Consider 
`projectile-indexing-method` to be safe as a dir-local variable if it is one of 
the preset values
 
 ## 2.9.1 (2025-02-13)
 
diff --git a/projectile.el b/projectile.el
index 40f3ddb167..ea9e1d09a4 100644
--- a/projectile.el
+++ b/projectile.el
@@ -126,6 +126,7 @@ Projectile might also provide.
 The disadvantage of the hybrid and alien methods is that they are not well
 supported on Windows systems.  That's why by default alien indexing is the
 default on all operating systems, except Windows."
+  :safe (lambda (x) (memq x '(native hybrid alien)))
   :group 'projectile
   :type '(radio
           (const :tag "Native" native)

Reply via email to