[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 685f825 013/346: Parent mode is conditional for com
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 685f825 013/346: Parent mode is conditional for compatibility |
Date: |
Sun, 29 Aug 2021 10:59:56 -0400 (EDT) |
branch: elpa/d-mode
commit 685f82535b5be17576a042fa29ceb03545aefbde
Author: Roy Crihfield <rscrihf@gmail.com>
Commit: Roy Crihfield <rscrihf@gmail.com>
Parent mode is conditional for compatibility
---
d-mode.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/d-mode.el b/d-mode.el
index e2d17f2..0ddde42 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -367,8 +367,12 @@ operators."
;;----------------------------------------------------------------------------
;;;###autoload (add-to-list 'auto-mode-alist '("\\.d[i]?\\'" . d-mode))
+;; For compatibility with Emacs < 24
+(defalias 'd-parent-mode
+ (if (functionp 'prog-mode) 'prog-mode 'fundamental-mode))
+
;;;###autoload
-(define-derived-mode d-mode prog-mode "D"
+(define-derived-mode d-mode d-parent-mode "D"
"Major mode for editing code written in the D Programming Language.
See http://www.digitalmars.com/d for more information about the D language.
The hook `c-mode-common-hook' is run with no args at mode
- [nongnu] elpa/d-mode 5ccf545 007/346: Added keywords, improved indentation of 'template'., (continued)
- [nongnu] elpa/d-mode 5ccf545 007/346: Added keywords, improved indentation of 'template'., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e0dac81 010/346: changed d-mode to a proper derived mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a587c35 014/346: Merge pull request #3 from roysc/patch-derive, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode c4a8921 018/346: Added '^^=' to assignement operators, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 0268bde 022/346: Added __vector as a keyword in the same categories at const and shared., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 72d2022 026/346: improve d-mode imenu method name indexing, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 9a17cb1 036/346: Add more D attributes to c-protection-kwds. Handle initializers in c-protection-kwds workaround., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode a1dccad 017/346: Added override to c-modifier-kwds. Changed functionp to fboundp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode d2a3306 011/346: remove commented lines, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 68ee0fe 012/346: Parent mode is conditional for compatibility, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 685f825 013/346: Parent mode is conditional for compatibility,
ELPA Syncer <=
- [nongnu] elpa/d-mode 5a2577f 019/346: Merge pull request #4 from roysc/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 47c29cb 021/346: Merge pull request #5 from roysc/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e9fb18b 024/346: Bump version number post release., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f6228c7 025/346: * Add pointer type support, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ac3c6db 029/346: allow * in typenames, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 4214c49 031/346: fix a bug that incorrectly fontifies struct/class keywords (when the type has type arguments) in type face., ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode adae36d 028/346: allow !.[] in typenames, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ca12483 039/346: fix auto/immutable in comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 473fa33 040/346: Revert the 'Emergency Emacs 23 fixes', ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 9651a31 042/346: Remove warning regarding missing group., ELPA Syncer, 2021/08/29