]> code.delx.au - gnu-emacs/commitdiff
hideif.el: Recognize .h++ as C++ header.
authorRĂ¼diger Sonderfeld <ruediger@c-plusplus.net>
Mon, 31 Aug 2015 23:56:53 +0000 (00:56 +0100)
committerRĂ¼diger Sonderfeld <ruediger@c-plusplus.net>
Mon, 31 Aug 2015 23:56:53 +0000 (00:56 +0100)
* lisp/progmodes/hideif.el (hide-ifdef-header-regexp): Add .h++.

etc/NEWS
lisp/progmodes/hideif.el

index e3b5ee30d7f5ac3220e294988c61ccd06c2c471f..3832ffae1f46676be453312e8595113f77bd2c5a 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -702,7 +702,7 @@ non-integer inputs.
 interactive macro evaluation and automatic scanning of #defined symbols.
 
 *** New custom variable `hide-ifdef-header-regexp' to define C/C++ header file
-name patterns. Default case-insensitive .h, .hh, .hpp and .hxx.
+name patterns.  Default case-insensitive .h, .hh, .hpp, .hxx, and .h++.
 *** New custom variable `hide-ifdef-expand-reinclusion-protection' to prevent
 reinclusion protected header files from being fully hidden.
 *** New custom variable `hide-ifdef-exclude-define-regexp' to define symbol
index a9376ff6101a95c2ffc5b7b037a64f088472996d..e0d25c4439de9a15f02016ed2daa6621a3c07ec7 100644 (file)
@@ -164,7 +164,7 @@ This behavior is generally undesirable.  If this option is non-nil, the outermos
   :version "25.1")
 
 (defcustom hide-ifdef-header-regexp
-  "\\.h\\(h\\|xx\\|pp\\)?\\'"
+  "\\.h\\(h\\|xx\\|pp\\|\\+\\+\\)?\\'"
   "C/C++ header file name patterns to determine if current buffer is a header.
 Effective only if `hide-ifdef-expand-reinclusion-protection' is t."
   :type 'string