Commit f0206910 authored by Juri Linkov's avatar Juri Linkov

New option `grep-highlight-matches'.

parent cc3064a5
......@@ -1878,7 +1878,12 @@ in new face `next-error'.
`grep-scroll-output' can be used to override the corresponding
compilation mode settings for grep commands.
*** Source line is temporarily highlighted when going to next match.
*** New option `grep-highlight-matches' highlightes matches in *grep*
buffer. It uses a special feature of some grep programs which accept
--color option to output markers around matches. When going to the next
match with `next-error' the exact match is highlighted in the source
buffer. Otherwise, if `grep-highlight-matches' is nil, the whole
source line is highlighted.
*** New key bindings in grep output window:
SPC and DEL scrolls window up and down. C-n and C-p moves to next and
......
......@@ -7,6 +7,23 @@
recent compilation directory only when `recompile' is invoked NOT
in the compilation buffer. Otherwise, use `default-directory' of
the compilation buffer.
(compilation-error-properties): Allow to funcall col and end-col.
(compilation-mode-font-lock-keywords): Check col and end-col by
`integerp'.
(compilation-goto-locus): If end-mk is non-nil in transient mark
mode don't activate the mark (and don't display message in
push-mark), but highlight overlay between mk and end-mk.
* progmodes/grep.el (grep-highlight-matches): New defcustom.
(grep-regexp-alist): Add rule to highlight grep matches.
(grep-process-setup): Set env-vars GREP_OPTIONS and GREP_COLOR.
* info.el (Info-fontify-node): Don't compute other-tag
if Info-hide-note-references=hide.
* help.el (function-called-at-point):
* help-fns.el (variable-at-point):
Try `find-tag-default' when other methods failed.
* emacs-lisp/lisp.el (beginning-of-defun, end-of-defun):
Do not push mark if inhibit-mark-movement is non-nil.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment