help-gnu-emacs
[Top][All Lists]
Advanced

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

igrep mode incovenient compilation of results


From: Rami A
Subject: igrep mode incovenient compilation of results
Date: Thu, 1 Aug 2013 15:22:30 -0700 (PDT)
User-agent: G2/1.0


I am using igrep.el package and liking it. There is one thing that bothers me 
though. In the igrep results page, the first and last lines are highlighted as 
part of the compilation and so cycling through the results using next-error 
will eventually hit these two lines with no corresponding files of course.

These are the format of these first and last files:

Igrep started at Thu Aug  1 15:15:23

finished (matches found) at Thu Aug  1 15:15:27

I believe that this is the code responsible for these lines to show up all 
together. How to disable these lines from showing in the grep results or at 
least not having them highlighted as part of the results:

(if igrep-find
(setq command
      (igrep-format-find-command command files)))
(cond ((eq igrep-save-buffers t) (save-some-buffers t))
  (igrep-save-buffers (save-some-buffers)))
(if (fboundp 'compilation-start)    ; Emacs 22
    (let ((compilation-process-setup-function 'grep-process-setup))
      (or (fboundp 'igrep-mode)
          (define-derived-mode igrep-mode grep-mode "Igrep"))
      (compilation-start command
                         'igrep-mode
                         nil
                         (cond ((eq compilation-highlight-regexp t))
                               (compilation-highlight-regexp
                                (if (eq program "fgrep")
                                    (regexp-quote regex)
                                  regex)))))
  (compile-internal command (format "No more %s matches" program)
                    "Igrep" nil grep-regexp-alist))))



reply via email to

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