From 5c0fb39c280b2557f49c12a5fc49486768b9de6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=BCdiger=20Sonderfeld?= Date: Tue, 1 Sep 2015 00:56:53 +0100 Subject: [PATCH] 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 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 -- 2.11.4.GIT