]> code.delx.au - gnu-emacs-elpa/commitdiff
* ack: doc fix and release 1.01
authorLeo Liu <sdl.web@gmail.com>
Sun, 21 Apr 2013 02:11:20 +0000 (10:11 +0800)
committerLeo Liu <sdl.web@gmail.com>
Sun, 21 Apr 2013 02:11:20 +0000 (10:11 +0800)
Support the silver search (ag)
https://github.com/ggreer/the_silver_searcher which is an order of
magnitude faster than ack.

packages/ack/README
packages/ack/ack-pkg.el
packages/ack/ack.el
packages/ack/pcmpl-ack.el

index 8e90f7f3185a256743e52c2024c6ebe3104598cc..35503debed3a1e67fa620e9221be4a087e6625c0 100644 (file)
@@ -1,9 +1,11 @@
-This package provides an Emacs interface to the command-line tool ack.
+This package provides an interface to ack http://beyondgrep.com -- a
+tool like grep, designed for programmers with large trees of
+heterogeneous source code. It builds on standard packages `compile.el'
+and `ansi-color.el' and lets you seamlessly run `ack' with its large
+set of options.
 
-From <http://betterthangrep.com/>: ack is a tool like grep, designed
-for programmers with large trees of heterogeneous source code.  ack is
-written purely in Perl, and takes advantage of the power of Perl's
-regular expressions.
+Ack-like tools such as the silver search (ag) and git/hg/bzr grep are
+well supported too.
 
 Usage:
 Type `M-x ack' and provide a pattern to search.
@@ -23,9 +25,8 @@ This package does not require `--nogroup' nor `--noheading'.
 Coloring is performed using the standard library ansi-color.el.
 
 Screenshots:
-http://i.imgur.com/mrk8k.png
-http://i.imgur.com/a72Ap.png
-http://i.imgur.com/U2vFz.png
+http://i.imgur.com/VwWyzAe.png
+http://i.imgur.com/rwjC4pa.png
 
 Bugs:
 https://github.com/leoliu/ack-el/issues
index 55baa723c8d330120b3e5172c510dd421bc19e67..e2dd020e6308f8aed1d219a5ab015272aa07bf26 100644 (file)
@@ -1 +1 @@
-(define-package "ack" "1.0" "Interface to ack, a source code search tool")
+(define-package "ack" "1.01" "Interface to ack-like source code search tools")
index f7d8fa272712fa9603365853142efe2601ccf8b6..01529d7d9fba2925ec89bdfeed664be806d8870e 100644 (file)
@@ -1,9 +1,9 @@
-;;; ack.el --- interface to ack            -*- lexical-binding: t; -*-
+;;; ack.el --- interface to ack-like tools   -*- lexical-binding: t; -*-
 
 ;; Copyright (C) 2012-2013  Free Software Foundation, Inc.
 
 ;; Author: Leo Liu <sdl.web@gmail.com>
-;; Version: 1.0
+;; Version: 1.01
 ;; Keywords: tools, processes, convenience
 ;; Created: 2012-03-24
 ;; URL: https://github.com/leoliu/ack-el
 
 ;;; Commentary:
 
-;; This package provides an interface to ack http://betterthangrep.com
-;; -- a tool like grep, designed for programmers with large trees of
+;; This package provides an interface to ack http://beyondgrep.com --
+;; a tool like grep, designed for programmers with large trees of
 ;; heterogeneous source code. It builds on standard packages
-;; `compile.el' and `ansi-color.el' and let you seamlessly run `ack'
+;; `compile.el' and `ansi-color.el' and lets you seamlessly run `ack'
 ;; with its large set of options.
+;;
+;; Ack-like tools such as the silver search (ag) and git/hg/bzr grep
+;; are well supported too.
 
 ;;; Usage:
 
   ;; Note: on GNU/Linux ack may be renamed to ack-grep
   (concat (file-name-nondirectory (or (executable-find "ack-grep")
                                       (executable-find "ack")
+                                      (executable-find "ag")
                                       "ack")) " ")
-  "The default ack command for \\[ack].
+  "The default command for \\[ack].
 
 Note also options to ack can be specified in ACK_OPTIONS
-environment variable and ~/.ackrc, which you can disable by the
+environment variable and .ackrc, which you can disable by the
 --noenv switch."
   :type 'string
+  :safe 'stringp
   :group 'ack)
 
 (defcustom ack-buffer-name-function nil
@@ -260,7 +265,9 @@ This gets tacked on the end of the generated expressions.")
   (interactive)
   (delete-minibuffer-contents)
   (let ((ack (or (car (split-string ack-command nil t)) "ack")))
-    (skeleton-insert `(nil ,ack " -g '(?i:" _ ")'"))))
+    (if (equal ack "ag")
+        (skeleton-insert `(nil ,ack " -ig '" _ "'"))
+      (skeleton-insert `(nil ,ack " -g '(?i:" _ ")'")))))
 
 ;; Work around bug http://debbugs.gnu.org/13811
 (defvar ack--project-root nil)          ; dynamically bound in `ack'
index 3584e8381c2242acd2904cd2384290b6660f768a..30293673d1c54b694b2005f7a168302a33f654c1 100644 (file)
@@ -23,7 +23,7 @@
 ;;; Commentary:
 
 ;; Provide pcompletion support for the cli tool `ack' which can be
-;; downloaded from http://betterthangrep.com.
+;; downloaded from http://beyondgrep.com.
 ;;
 ;; Install:
 ;;   (autoload 'pcomplete/ack "pcmpl-ack")