Skip to content

Commit

Permalink
Try to appease the byte-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Feb 10, 2024
1 parent e45f0b0 commit d414b65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -5873,7 +5873,7 @@ If PROJECT-PATH is a project, check this one instead."
(save-excursion
(vc-dir project-path)
;; wait until vc-dir is done
(while (vc-dir-busy) (sleep-for 0 100))
(while (vc-dir-busy) (sleep-for 0.1))
;; check for status
(save-excursion
(save-match-data
Expand Down Expand Up @@ -6290,9 +6290,10 @@ Otherwise behave as if called interactively.

;;; savehist-mode - When `savehist-mode' is t, projectile-project-command-history will be saved.
;; See https://github.com/bbatsov/projectile/issues/1637 for more details
(defvar savehist-additional-variables nil)

(if (bound-and-true-p savehist-loaded)
(add-to-list 'savehist-additional-variables 'projectile-project-command-history)
(defvar savehist-additional-variables nil)
(add-hook 'savehist-mode-hook
(lambda()
(add-to-list 'savehist-additional-variables 'projectile-project-command-history))))
Expand Down

0 comments on commit d414b65

Please sign in to comment.