From 68df979a9f846e7b8ac9ae7eef142ad0f2de7205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Novak=20Bo=C5=A1kov?= Date: Tue, 8 Nov 2016 00:34:10 +0100 Subject: [PATCH] Parenthesis around opt regexp should be escaped here - Former regexp matches any string that contains `.(plantuml` or `pum` or `plantuml` or `plu` (e.g. `plantuml-mode.el` itself and any file that contain `pum` in its name) --- plantuml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plantuml-mode.el b/plantuml-mode.el index 6947bcd..cfb570d 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -349,7 +349,7 @@ Uses prefix (as PREFIX) to choose where to display it: (message "Making completion list...%s" "done"))))) ;;;###autoload -(add-to-list 'auto-mode-alist '("\\.(plantuml\\|pum\\|plantuml\\|plu)\\'" . plantuml-mode)) +(add-to-list 'auto-mode-alist '("\\.\\(plantuml\\|pum\\|plu\\)\\'" . plantuml-mode)) ;;;###autoload (define-derived-mode plantuml-mode prog-mode "plantuml"