Mercurial > emacs
changeset 56226:bfe817c8d413
(grep-error-screen-columns): New variable.
(grep-regexp-alist): Give it the full functionality of gnu style compilation messages with line and column ranges. Ask me for the perl script I'm working on, that uses these.
author | Daniel Pfeiffer <occitan@esperanto.org> |
---|---|
date | Wed, 23 Jun 2004 23:10:33 +0000 |
parents | 35eee131f539 |
children | fb1bd8c58401 |
files | lisp/progmodes/grep.el |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/grep.el Wed Jun 23 19:47:27 2004 +0000 +++ b/lisp/progmodes/grep.el Wed Jun 23 23:10:33 2004 +0000 @@ -146,6 +146,14 @@ :type 'boolean :group 'grep) +(defcustom grep-error-screen-columns nil + "*If non-nil, column numbers in grep hits are screen columns. +See `compilation-error-screen-columns'" + :type '(choice (const :tag "Default" nil) + integer) + :version "21.4" + :group 'grep) + ;;;###autoload (defcustom grep-setup-hook nil "List of hook functions run by `grep-process-setup' (see `run-hooks')." @@ -216,7 +224,9 @@ `complation-last-buffer' rather than `grep-last-buffer'.") (defvar grep-regexp-alist - '(("^\\(.+?\\)[:( \t]+\\([0-9]+\\)\\([:) \t]\\)\\(?:\\([0-9]+\\)\\(?:-\\([0-9]+\\)\\)?\\3\\)?" 1 2 (4 . 5)) + '(("^\\(.+?\\)[:( \t]+\ +\\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\ +\\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?[:) \t]" 1 (2 . 5) (4 . 6)) ("^Binary file \\(.+\\) matches$" 1 nil nil 1)) "Regexp used to match grep hits. See `compilation-error-regexp-alist'.")