emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/d-mode 2de6f73 145/346: Fix indentation on Emacs 26


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode 2de6f73 145/346: Fix indentation on Emacs 26
Date: Sun, 29 Aug 2021 11:00:19 -0400 (EDT)

branch: elpa/d-mode
commit 2de6f736745eb581b89435ae82130ab6e0278ef0
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>

    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 <russel@winder.org.uk>
 ;;              Vladimir Panteleev <vladimir@thecybershadow.net>
 ;; 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]