From: Leo Liu Date: Sun, 21 Apr 2013 02:11:20 +0000 (+0800) Subject: * ack: doc fix and release 1.01 X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/51423b766c873d8c1c63569f95aaa55b962f004d * ack: doc fix and release 1.01 Support the silver search (ag) https://github.com/ggreer/the_silver_searcher which is an order of magnitude faster than ack. --- diff --git a/packages/ack/README b/packages/ack/README index 8e90f7f31..35503debe 100644 --- a/packages/ack/README +++ b/packages/ack/README @@ -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 : 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 diff --git a/packages/ack/ack-pkg.el b/packages/ack/ack-pkg.el index 55baa723c..e2dd020e6 100644 --- a/packages/ack/ack-pkg.el +++ b/packages/ack/ack-pkg.el @@ -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") diff --git a/packages/ack/ack.el b/packages/ack/ack.el index f7d8fa272..01529d7d9 100644 --- a/packages/ack/ack.el +++ b/packages/ack/ack.el @@ -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 -;; Version: 1.0 +;; Version: 1.01 ;; Keywords: tools, processes, convenience ;; Created: 2012-03-24 ;; URL: https://github.com/leoliu/ack-el @@ -23,11 +23,14 @@ ;;; 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: @@ -75,13 +78,15 @@ ;; 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' diff --git a/packages/ack/pcmpl-ack.el b/packages/ack/pcmpl-ack.el index 3584e8381..30293673d 100644 --- a/packages/ack/pcmpl-ack.el +++ b/packages/ack/pcmpl-ack.el @@ -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")