emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 876b4ac 059/399: counsel.el (counsel-compile): Minor clean


From: Oleh Krehel
Subject: [elpa] master 876b4ac 059/399: counsel.el (counsel-compile): Minor cleanup
Date: Sat, 20 Jul 2019 14:56:48 -0400 (EDT)

branch: master
commit 876b4ac37b38d658d4285300a69f9279f4c7958e
Author: Basil L. Contovounesios <address@hidden>
Commit: Basil L. Contovounesios <address@hidden>

    counsel.el (counsel-compile): Minor cleanup
---
 counsel.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/counsel.el b/counsel.el
index 1fe8f45..e125496 100644
--- a/counsel.el
+++ b/counsel.el
@@ -5306,10 +5306,12 @@ to further refine the compile options in the directory 
specified by `blddir'."
 (defun counsel-compile (&optional dir)
   "Call `compile' completing with smart suggestions, optionally for DIR."
   (interactive)
-  (add-hook 'compilation-start-hook 'counsel-compile--update-history)
+  ;; No need to specify `:history' because of this hook.
+  (add-hook 'compilation-start-hook #'counsel-compile--update-history)
   (ivy-read "Compile command: "
             (counsel--get-compile-candidates dir)
-            :action #'counsel-compile--wrapper))
+            :action #'counsel-compile--wrapper
+            :caller 'counsel-compile))
 
 ;;* `counsel-mode'
 (defvar counsel-mode-map



reply via email to

[Prev in Thread] Current Thread [Next in Thread]