branch: master commit a27a30e858187984f5331487ab71568deda262c3 Author: Leo Liu <sdl....@gmail.com> Commit: Leo Liu <sdl....@gmail.com>
Make ack return the compilation buffer --- ack.el | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ack.el b/ack.el index 41b6d22..c7094ba 100644 --- a/ack.el +++ b/ack.el @@ -1,9 +1,9 @@ -;;; ack.el --- interface to ack-like tools -*- 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....@gmail.com> -;; Version: 1.3 +;; Version: 1.4 ;; Keywords: tools, processes, convenience ;; Created: 2012-03-24 ;; URL: https://github.com/leoliu/ack-el @@ -50,6 +50,13 @@ ;; the minibuffer ;; + `TAB' completes ack options +;;; Supported tools: + +;; + ack +;; + grep +;; + the_silver_search +;; + git/hg/bzr grep + ;;; Bugs: https://github.com/leoliu/ack-el/issues ;;; Code: @@ -378,7 +385,8 @@ minibuffer: ;; make use of `compilation-arguments'. (with-current-buffer (compilation-start command-args 'ack-mode) (when ack-buffer-name-function - (rename-buffer (funcall ack-buffer-name-function "ack")))))) + (rename-buffer (funcall ack-buffer-name-function "ack"))) + (current-buffer)))) (provide 'ack) ;;; ack.el ends here