From 47f4b3b662da7f49fd0353b978eaf781608e9282 Mon Sep 17 00:00:00 2001 From: Kevin Burge Date: Thu, 8 Oct 2015 13:27:54 -0500 Subject: [PATCH] cmake-mode.el: unscreamify symbols instead of words cmake-unscreamify-buffer should unscream more than just words. For example: CHECK_FUNCTION_EXISTS (...) --- Auxiliary/cmake-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el index e50ae7b95..08ac4905e 100644 --- a/Auxiliary/cmake-mode.el +++ b/Auxiliary/cmake-mode.el @@ -177,7 +177,7 @@ the indentation. Otherwise it retains the same position on the line" (interactive) (save-excursion (goto-char (point-min)) - (while (re-search-forward "^\\([ \t]*\\)\\(\\w+\\)\\([ \t]*(\\)" nil t) + (while (re-search-forward "^\\([ \t]*\\)\\_<\\(\\(?:\\w\\|\\s_\\)+\\)\\_>\\([ \t]*(\\)" nil t) (replace-match (concat (match-string 1)