aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJoakim Verona2011-08-19 10:05:18 +0200
committerJoakim Verona2011-08-19 10:05:18 +0200
commita6df1daab828f67f244af22a24bd19cf7d0f1c1b (patch)
tree943656e1eb310ee2143016738b7e1048b0cc84d6 /lisp/progmodes
parentde4d3934cb9838ac138718a4236ad631863c681d (diff)
parent5226c7c0169c61977d8914a5feb385bde36077ee (diff)
downloademacs-a6df1daab828f67f244af22a24bd19cf7d0f1c1b.tar.gz
emacs-a6df1daab828f67f244af22a24bd19cf7d0f1c1b.zip
upstream
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el6
-rw-r--r--lisp/progmodes/grep.el4
2 files changed, 6 insertions, 4 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 503698f0f7b..f3b873c8b1e 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -647,19 +647,19 @@ starting the compilation process.")
647(defvar compile-history nil) 647(defvar compile-history nil)
648 648
649(defface compilation-error 649(defface compilation-error
650 '((t :inherit font-lock-warning-face)) 650 '((t :inherit error))
651 "Face used to highlight compiler errors." 651 "Face used to highlight compiler errors."
652 :group 'compilation 652 :group 'compilation
653 :version "22.1") 653 :version "22.1")
654 654
655(defface compilation-warning 655(defface compilation-warning
656 '((t :inherit font-lock-variable-name-face)) 656 '((t :inherit warning))
657 "Face used to highlight compiler warnings." 657 "Face used to highlight compiler warnings."
658 :group 'compilation 658 :group 'compilation
659 :version "22.1") 659 :version "22.1")
660 660
661(defface compilation-info 661(defface compilation-info
662 '((t :inherit font-lock-type-face)) 662 '((t :inherit success))
663 "Face used to highlight compiler information." 663 "Face used to highlight compiler information."
664 :group 'compilation 664 :group 'compilation
665 :version "22.1") 665 :version "22.1")
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index db8e82193b3..31100f3fac2 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -965,7 +965,9 @@ This command shares argument histories with \\[lgrep] and \\[grep-find]."
965 (unless (and dir (file-directory-p dir) (file-readable-p dir)) 965 (unless (and dir (file-directory-p dir) (file-readable-p dir))
966 (setq dir default-directory)) 966 (setq dir default-directory))
967 (if (null files) 967 (if (null files)
968 (if (not (string= regexp grep-find-command)) 968 (if (not (string= regexp (if (consp grep-find-command)
969 (car grep-find-command)
970 grep-find-command)))
969 (compilation-start regexp 'grep-mode)) 971 (compilation-start regexp 'grep-mode))
970 (setq dir (file-name-as-directory (expand-file-name dir))) 972 (setq dir (file-name-as-directory (expand-file-name dir)))
971 (require 'find-dired) ; for `find-name-arg' 973 (require 'find-dired) ; for `find-name-arg'