emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 5c0fb39: hideif.el: Recognize .h++ as C++ header.


From: Rüdiger Sonderfeld
Subject: [Emacs-diffs] master 5c0fb39: hideif.el: Recognize .h++ as C++ header.
Date: Mon, 31 Aug 2015 23:59:35 +0000

branch: master
commit 5c0fb39c280b2557f49c12a5fc49486768b9de6f
Author: Rüdiger Sonderfeld <address@hidden>
Commit: Rüdiger Sonderfeld <address@hidden>

    hideif.el: Recognize .h++ as C++ header.
    
    * lisp/progmodes/hideif.el (hide-ifdef-header-regexp): Add .h++.
---
 etc/NEWS                 |    2 +-
 lisp/progmodes/hideif.el |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index e3b5ee3..3832ffa 100644
--- 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
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el
index a9376ff..e0d25c4 100644
--- a/lisp/progmodes/hideif.el
+++ b/lisp/progmodes/hideif.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]