branch: elpa/forth-mode
commit bca8f0121889ae8f0f33988e6190be2701e6e924
Author: Lars Brinkhoff <[email protected]>
Commit: Lars Brinkhoff <[email protected]>

    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