aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJoakim Verona2011-09-08 16:46:33 +0200
committerJoakim Verona2011-09-08 16:46:33 +0200
commit0e852ac995c1bb7aa059ffface31b7b7c00308ea (patch)
tree9e95988cec1d083ed3bf938546ae7d7f7e5b77b5 /lisp/progmodes
parent94110bea46d4a1481b6f2f4e33cf8ce6ac6d8d62 (diff)
parent97f05794552e8415ccc7522017f4dff06f84d1a4 (diff)
downloademacs-0e852ac995c1bb7aa059ffface31b7b7c00308ea.tar.gz
emacs-0e852ac995c1bb7aa059ffface31b7b7c00308ea.zip
upstream
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el10
-rw-r--r--lisp/progmodes/grep.el19
2 files changed, 17 insertions, 12 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 4871c980fb5..cd891a8df60 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -637,11 +637,15 @@ This should be a function of three arguments: process status, exit status,
637and exit message; it returns a cons (MESSAGE . MODELINE) of the strings to 637and exit message; it returns a cons (MESSAGE . MODELINE) of the strings to
638write into the compilation buffer, and to put in its mode line.") 638write into the compilation buffer, and to put in its mode line.")
639 639
640(defvar compilation-environment nil 640(defcustom compilation-environment nil
641 "*List of environment variables for compilation to inherit. 641 "List of environment variables for compilation to inherit.
642Each element should be a string of the form ENVVARNAME=VALUE. 642Each element should be a string of the form ENVVARNAME=VALUE.
643This list is temporarily prepended to `process-environment' prior to 643This list is temporarily prepended to `process-environment' prior to
644starting the compilation process.") 644starting the compilation process."
645 :type '(repeat (string :tag "ENVVARNAME=VALUE"))
646 :options '(("LANG=C"))
647 :group 'compilation
648 :version "24.1")
645 649
646;; History of compile commands. 650;; History of compile commands.
647(defvar compile-history nil) 651(defvar compile-history nil)
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index b3f9758bacf..000243b05df 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -343,7 +343,16 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
343 343
344;;;###autoload 344;;;###autoload
345(defconst grep-regexp-alist 345(defconst grep-regexp-alist
346 '(("^\\(.+?\\)\\(:[ \t]*\\)\\([1-9][0-9]*\\)\\2" 346 '(
347 ;; Rule to match column numbers is commented out since no known grep
348 ;; produces them
349 ;; ("^\\(.+?\\)\\(:[ \t]*\\)\\([1-9][0-9]*\\)\\2\\(?:\\([1-9][0-9]*\\)\\(?:-\\([1-9][0-9]*\\)\\)?\\2\\)?"
350 ;; 1 3 (4 . 5))
351 ;; Note that we want to use as tight a regexp as we can to try and
352 ;; handle weird file names (with colons in them) as well as possible.
353 ;; E.g. we use [1-9][0-9]* rather than [0-9]+ so as to accept ":034:"
354 ;; in file names.
355 ("^\\(.+?\\)\\(:[ \t]*\\)\\([1-9][0-9]*\\)\\2"
347 1 3 356 1 3
348 ;; Calculate column positions (col . end-col) of first grep match on a line 357 ;; Calculate column positions (col . end-col) of first grep match on a line
349 ((lambda () 358 ((lambda ()
@@ -362,14 +371,6 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
362 (mend (and mbeg (next-single-property-change mbeg 'font-lock-face nil end)))) 371 (mend (and mbeg (next-single-property-change mbeg 'font-lock-face nil end))))
363 (when mend 372 (when mend
364 (- mend beg))))))) 373 (- mend beg)))))))
365 ;; Rule to match column numbers is commented out since no known grep
366 ;; produces them
367 ;; ("^\\(.+?\\)\\(:[ \t]*\\)\\([0-9]+\\)\\2\\(?:\\([0-9]+\\)\\(?:-\\([0-9]+\\)\\)?\\2\\)?"
368 ;; 1 3 (4 . 5))
369 ;; Note that we want to use as tight a regexp as we can to try and
370 ;; handle weird file names (with colons in them) as well as possible.
371 ;; E.g. we use [1-9][0-9]* rather than [0-9]+ so as to accept ":034:" in
372 ;; file names.
373 ("^Binary file \\(.+\\) matches$" 1 nil nil 0 1)) 374 ("^Binary file \\(.+\\) matches$" 1 nil nil 0 1))
374 "Regexp used to match grep hits. See `compilation-error-regexp-alist'.") 375 "Regexp used to match grep hits. See `compilation-error-regexp-alist'.")
375 376