* progmodes/grep.el (grep-compute-defaults): Fix handling of host
authorChong Yidong <cyd@stupidchicken.com>
Wed, 14 Apr 2010 15:33:42 +0000 (11:33 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 14 Apr 2010 15:33:42 +0000 (11:33 -0400)
default settings (Bug#5928).

lisp/ChangeLog
lisp/progmodes/grep.el

index 3519861..2fddcbf 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-14  Christoph  <cschol2112@googlemail.com>  (tiny change)
+
+       * progmodes/grep.el (grep-compute-defaults): Fix handling of host
+       default settings (Bug#5928).
+
 2010-04-10  Glenn Morris  <rgm@gnu.org>
 
        * progmodes/fortran.el (fortran-match-and-skip-declaration):
index b13a75e..de94620 100644 (file)
@@ -513,8 +513,8 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'."
                       grep-find-template grep-find-use-xargs
                       grep-highlight-matches))
       (set setting
-          (or (cadr (assq setting host-defaults))
-              (cadr (assq setting defaults)))))
+          (cadr (or (assq setting host-defaults)
+                    (assq setting defaults)))))
 
     (unless (or (not grep-use-null-device) (eq grep-use-null-device t))
       (setq grep-use-null-device