From: RĂ¼diger Sonderfeld Date: Mon, 31 Aug 2015 23:56:53 +0000 (+0100) Subject: hideif.el: Recognize .h++ as C++ header. X-Git-Tag: emacs-25.0.90~1230^2~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5c0fb39c280b2557f49c12a5fc49486768b9de6f;p=emacs.git hideif.el: Recognize .h++ as C++ header. * lisp/progmodes/hideif.el (hide-ifdef-header-regexp): Add .h++. --- diff --git a/etc/NEWS b/etc/NEWS index e3b5ee30d7f..3832ffae1f4 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 a9376ff6101..e0d25c4439d 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