From 786f0232d7ad781cc8b130946046c74beecc36e8 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 18 Apr 2023 19:35:48 +0900 Subject: [PATCH] Fix --- emacs.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/emacs.el b/emacs.el index 7951344..f97c205 100644 --- a/emacs.el +++ b/emacs.el @@ -2727,10 +2727,11 @@ and search from projectile root (if projectile is available)." (error "No symbol at point"))) (error "My-Rgrep: Command for rgrep not found")))) (if (eval-and-compile (require 'projectile nil t)) - (projectile-with-default-dir (or (projectile-project-root) - default-directory) - (compilation-start command-args - 'grep-mode)) + (with-temp-buffer + (cd (or (projectile-project-root) + default-directory)) + (compilation-start command-args + 'grep-mode)) (compilation-start command-args 'grep-mode))))