branch: elpa/d-mode
commit 2de6f736745eb581b89435ae82130ab6e0278ef0
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Fix indentation on Emacs 26
In Emacs 26, cc-mode adds a new concept (noise macros) along with
several related constants and variables. Unless these are properly
processed during cc-mode initialization, attempting to indent code will
result in the error: (wrong-type-argument stringp nil)
This commit adds an invocation to the appropriate initialization
function when it is present.
---
d-mode.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/d-mode.el b/d-mode.el
index 021d4db..bb8848d 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -7,7 +7,7 @@
;; Maintainer: Russel Winder <[email protected]>
;; Vladimir Panteleev <[email protected]>
;; Created: March 2007
-;; Version: 201610110325
+;; Version: 201610111121
;; Keywords: D programming language emacs cc-mode
;;;; NB Version number is date and time yyyymmddhhMM UTC.
@@ -590,6 +590,8 @@ Key bindings:
abbrev-mode t)
(use-local-map d-mode-map)
(c-init-language-vars d-mode)
+ (when (fboundp 'c-make-noise-macro-regexps)
+ (c-make-noise-macro-regexps))
(c-common-init 'd-mode)
(easy-menu-add d-menu)
(c-run-mode-hooks 'c-mode-common-hook 'd-mode-hook)