From 4edbed5a2d0c262a53f348f98a07d726bb3e5084 Mon Sep 17 00:00:00 2001 From: Aaron Madlon-Kay Date: Wed, 21 May 2025 21:52:22 +0900 Subject: [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 26c9a06..396a372 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 40f3ddb..ea9e1d0 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) -- cgit v1.0