branch: elpa/d-mode
commit 382a677e96401d1fa800f0b6a3112b72ffd96f21
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Use c-major-mode-is
---
d-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 59352b1..2f4e044 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: 201908290244
+;; Version: 201908290531
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "24.3"))
@@ -776,7 +776,7 @@ Each list item should be a regexp matching a single
identifier."
(defun d-around--c-add-stmt-syntax (orig-fun &rest args)
;; checkdoc-params: (orig-fun args)
"Advice function for fixing cc-mode indentation in certain D constructs."
- (if (not (string= major-mode "d-mode"))
+ (if (not (c-major-mode-is 'd-mode))
(apply orig-fun args)
(progn
(add-function :around (symbol-function 'looking-at)
@@ -994,7 +994,7 @@ Key bindings:
;; checkdoc-params: (orig-fun args)
"Advice function for fixing cc-mode indentation in certain D constructs."
(apply
- (if (string= major-mode "d-mode")
+ (if (c-major-mode-is 'd-mode)
#'d-in-knr-argdecl
orig-fun)
args))