[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)))))
- [elpa] master updated (3be3486 -> 88e11d2), João Távora, 2020/07/06
- [elpa] master a53e021 1/7: * ack.el (ack-quickgrep-defaults): Auto-confirm iff symbol at point,
João Távora <=
- [elpa] master 35c1152 2/7: Don't auto-confirm M-x ack if no symbol actually yanked, João Távora, 2020/07/06
- [elpa] master eb0217d 3/7: Add quotes around pattern of all ack commands, João Távora, 2020/07/06
- [elpa] master d813aae 4/7: Add "rg" as an option for ack-command, João Távora, 2020/07/06
- [elpa] master f8cc007 5/7: README.rst: Rewrite a bit, João Távora, 2020/07/06
- [elpa] master b2c449c 6/7: Release 1.1.0 and make ack-quickgrep-defaults the default, João Távora, 2020/07/06
- [elpa] master 88e11d2 7/7: Merge commit 'b2c449c0d5aad67eeee9857e7fd7710f985084ec', João Távora, 2020/07/06