changeset 96604:8e43e1211ac1

(grep-files-aliases): Improve the C++ source pattern and add patterns for C++ header files.
author Dan Nicolaescu <dann@ics.uci.edu>
date Fri, 11 Jul 2008 02:44:10 +0000
parents c722b7f92ac6
children bc27980146e4
files lisp/ChangeLog lisp/progmodes/grep.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jul 11 02:30:26 2008 +0000
+++ b/lisp/ChangeLog	Fri Jul 11 02:44:10 2008 +0000
@@ -1,3 +1,8 @@
+2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* progmodes/grep.el (grep-files-aliases): Improve the C++ source
+	pattern and add patterns for C++ header files.
+
 2008-07-10  Chong Yidong  <cyd@stupidchicken.com>
 
 	* window.el (truncated-partial-width-window-p): New function.
--- a/lisp/progmodes/grep.el	Fri Jul 11 02:30:26 2008 +0000
+++ b/lisp/progmodes/grep.el	Fri Jul 11 02:44:10 2008 +0000
@@ -144,7 +144,9 @@
 (defcustom grep-files-aliases
   '(("asm" .    "*.[sS]")
     ("c" .     "*.c")
-    ("cc" .    "*.cc")
+    ("cc" .    "*.cc *.cxx *.cpp *.C *.CC *.c++")
+    ("cchh" .    "*.cc *.[ch]xx *.[ch]pp *.[CHh] *.CC *.HH *.[ch]++")
+    ("hh" .    "*.hxx *.hpp *.[Hh] *.HH *.h++")
     ("ch" .    "*.[ch]")
     ("el" .    "*.el")
     ("h" .     "*.h")