From 01623c289886d565424664fd5cf328ff93dd9917 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Fri, 11 Jul 2008 02:44:10 +0000 Subject: [PATCH] (grep-files-aliases): Improve the C++ source pattern and add patterns for C++ header files. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/grep.el | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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") -- 2.39.2