From: Dan Nicolaescu Date: Fri, 11 Jul 2008 02:44:10 +0000 (+0000) Subject: (grep-files-aliases): Improve the C++ source X-Git-Tag: emacs-pretest-23.0.90~4244 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=01623c289886d565424664fd5cf328ff93dd9917;p=emacs.git (grep-files-aliases): Improve the C++ source pattern and add patterns for C++ header files. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 162346dd684..56bfdb3415c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index b76ed012c0f..3d9a7db57af 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -144,7 +144,9 @@ The following place holders should be present in the string: (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")