all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* igrep mode incovenient compilation of results
@ 2013-08-01 22:22 Rami A
  2013-08-02  3:11 ` Kevin Rodgers
  2013-08-02 16:58 ` Rami A
  0 siblings, 2 replies; 4+ messages in thread
From: Rami A @ 2013-08-01 22:22 UTC (permalink / raw)
  To: help-gnu-emacs



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))))



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-05 22:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01 22:22 igrep mode incovenient compilation of results Rami A
2013-08-02  3:11 ` Kevin Rodgers
2013-08-02 16:58 ` Rami A
2013-08-05 22:26   ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.