# HG changeset patch # User Dan Nicolaescu # Date 1215744250 0 # Node ID 8e43e1211ac1891eefa3c7f42558ba52bcc77a69 # Parent c722b7f92ac69bac152e3a24ef674c40b647d7b1 (grep-files-aliases): Improve the C++ source pattern and add patterns for C++ header files. diff -r c722b7f92ac6 -r 8e43e1211ac1 lisp/ChangeLog --- 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 + + * progmodes/grep.el (grep-files-aliases): Improve the C++ source + pattern and add patterns for C++ header files. + 2008-07-10 Chong Yidong * window.el (truncated-partial-width-window-p): New function. diff -r c722b7f92ac6 -r 8e43e1211ac1 lisp/progmodes/grep.el --- 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")