diff options
| author | Daniel Pfeiffer | 2004-06-23 23:11:23 +0000 |
|---|---|---|
| committer | Daniel Pfeiffer | 2004-06-23 23:11:23 +0000 |
| commit | bb72b9d0b5248404a55b599d99c0be5454704e4a (patch) | |
| tree | f5366af758352381dffc4c2cc86fa7f3095a0f00 | |
| parent | 2f0e0a0b30d49daf0e6cd52b9f0f35aa74c17577 (diff) | |
| download | emacs-bb72b9d0b5248404a55b599d99c0be5454704e4a.tar.gz emacs-bb72b9d0b5248404a55b599d99c0be5454704e4a.zip | |
(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.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 12 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 61ab77e7e88..4b7eb38c208 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2004-06-24 Daniel Pfeiffer <occitan@esperanto.org> | ||
| 2 | |||
| 3 | * progmodes/grep.el (grep-error-screen-columns): New variable. | ||
| 4 | (grep-regexp-alist): Give it the full functionality of gnu style | ||
| 5 | compilation messages with line and column ranges. Ask me for the | ||
| 6 | perl script I'm working on, that uses these. | ||
| 7 | |||
| 1 | 2004-06-23 Nick Roberts <nickrob@gnu.org> | 8 | 2004-06-23 Nick Roberts <nickrob@gnu.org> |
| 2 | 9 | ||
| 3 | * comint.el: (comint-insert-clicked-input, comint-copy-old-input): | 10 | * comint.el: (comint-insert-clicked-input, comint-copy-old-input): |
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index aa9a50a2580..1916bde9ea1 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -146,6 +146,14 @@ The following place holders should be present in the string: | |||
| 146 | :type 'boolean | 146 | :type 'boolean |
| 147 | :group 'grep) | 147 | :group 'grep) |
| 148 | 148 | ||
| 149 | (defcustom grep-error-screen-columns nil | ||
| 150 | "*If non-nil, column numbers in grep hits are screen columns. | ||
| 151 | See `compilation-error-screen-columns'" | ||
| 152 | :type '(choice (const :tag "Default" nil) | ||
| 153 | integer) | ||
| 154 | :version "21.4" | ||
| 155 | :group 'grep) | ||
| 156 | |||
| 149 | ;;;###autoload | 157 | ;;;###autoload |
| 150 | (defcustom grep-setup-hook nil | 158 | (defcustom grep-setup-hook nil |
| 151 | "List of hook functions run by `grep-process-setup' (see `run-hooks')." | 159 | "List of hook functions run by `grep-process-setup' (see `run-hooks')." |
| @@ -216,7 +224,9 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies | |||
| 216 | `complation-last-buffer' rather than `grep-last-buffer'.") | 224 | `complation-last-buffer' rather than `grep-last-buffer'.") |
| 217 | 225 | ||
| 218 | (defvar grep-regexp-alist | 226 | (defvar grep-regexp-alist |
| 219 | '(("^\\(.+?\\)[:( \t]+\\([0-9]+\\)\\([:) \t]\\)\\(?:\\([0-9]+\\)\\(?:-\\([0-9]+\\)\\)?\\3\\)?" 1 2 (4 . 5)) | 227 | '(("^\\(.+?\\)[:( \t]+\ |
| 228 | \\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\ | ||
| 229 | \\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?[:) \t]" 1 (2 . 5) (4 . 6)) | ||
| 220 | ("^Binary file \\(.+\\) matches$" 1 nil nil 1)) | 230 | ("^Binary file \\(.+\\) matches$" 1 nil nil 1)) |
| 221 | "Regexp used to match grep hits. See `compilation-error-regexp-alist'.") | 231 | "Regexp used to match grep hits. See `compilation-error-regexp-alist'.") |
| 222 | 232 | ||