From: Rami A <rami.ammari@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: igrep mode incovenient compilation of results
Date: Thu, 1 Aug 2013 15:22:30 -0700 (PDT) [thread overview]
Message-ID: <39e8981d-dc7b-456a-980e-ecc26a3e1bbb@googlegroups.com> (raw)
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))))
next reply other threads:[~2013-08-01 22:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 22:22 Rami A [this message]
2013-08-02 3:11 ` igrep mode incovenient compilation of results Kevin Rodgers
2013-08-02 16:58 ` Rami A
2013-08-05 22:26 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39e8981d-dc7b-456a-980e-ecc26a3e1bbb@googlegroups.com \
--to=rami.ammari@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).