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

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

[nongnu] elpa/forth-mode bca8f01218 004/153: Make it work in older Emacs


From: ELPA Syncer
Subject: [nongnu] elpa/forth-mode bca8f01218 004/153: Make it work in older Emacsen without prog-mode.
Date: Sat, 29 Jan 2022 08:02:11 -0500 (EST)

branch: elpa/forth-mode
commit bca8f0121889ae8f0f33988e6190be2701e6e924
Author: Lars Brinkhoff <lars@nocrew.org>
Commit: Lars Brinkhoff <lars@nocrew.org>

    Make it work in older Emacsen without prog-mode.
---
 forth-mode.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/forth-mode.el b/forth-mode.el
index ad55515344..1360b629cd 100644
--- a/forth-mode.el
+++ b/forth-mode.el
@@ -53,6 +53,9 @@
 (defvar forth-font-lock-keywords
   '((forth-match-colon-definition 3 font-lock-function-name-face)))
 
+(unless (fboundp 'prog-mode)
+  (defalias 'prog-mode 'fundamental-mode))
+
 ;;;### autoload
 (define-derived-mode forth-mode prog-mode "Forth"
                     "Major mode for editing Forth files."



reply via email to

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