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

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

[elpa] master a53e021 1/7: * ack.el (ack-quickgrep-defaults): Auto-confi


From: João Távora
Subject: [elpa] master a53e021 1/7: * ack.el (ack-quickgrep-defaults): Auto-confirm iff symbol at point
Date: Mon, 6 Jul 2020 07:19:34 -0400 (EDT)

branch: master
commit a53e02161dba5d52b66d4f9b27b27dfd21b7f312
Author: João Távora <joaot@siscog.pt>
Commit: João Távora <joaot@siscog.pt>

    * ack.el (ack-quickgrep-defaults): Auto-confirm iff symbol at point
---
 ack.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ack.el b/ack.el
index 40c068d..f52e9b3 100644
--- a/ack.el
+++ b/ack.el
@@ -82,6 +82,7 @@
 (require 'compile)
 (require 'pcase)
 (require 'ansi-color)
+(require 'thingatpt)
 (autoload 'shell-completion-vars "shell")
 
 (eval-when-compile
@@ -437,7 +438,7 @@ automatically attempted."
     (append (list (if (> numeric 4)
                       (read-directory-name "In directory: " nil nil t)
                     (ack-guess-project-root default-directory))
-                  (= numeric 1))
+                  (and (thing-at-point 'symbol) (= numeric 1)))
             (if (> numeric 4)
                 (list 'ack-yank-symbol-at-point)
               (list 'ack-skel-vc-grep 'ack-yank-symbol-at-point)))))



reply via email to

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