# HG changeset patch # User Adam Chlipala # Date 1445193500 14400 # Node ID e46989ea4ca7a9b97e7df84681dd1a5d319ebbb8 # Parent 5940149cd11a4c496e7a56c6e6084644abd04962 Grandfathered into release: make urweb-mode keep working in Emacs 23 diff -r 5940149cd11a -r e46989ea4ca7 configure.ac --- a/configure.ac Sun Oct 18 10:50:59 2015 -0400 +++ b/configure.ac Sun Oct 18 14:38:20 2015 -0400 @@ -1,5 +1,5 @@ AC_INIT([urweb], [20151018]) -WORKING_VERSION=1 +WORKING_VERSION=0 AC_USE_SYSTEM_EXTENSIONS # automake 1.12 requires this, but automake 1.11 doesn't recognize it diff -r 5940149cd11a -r e46989ea4ca7 src/elisp/urweb-mode.el --- a/src/elisp/urweb-mode.el Sun Oct 18 10:50:59 2015 -0400 +++ b/src/elisp/urweb-mode.el Sun Oct 18 14:38:20 2015 -0400 @@ -377,7 +377,11 @@ (add-to-list 'auto-mode-alist '("\\.urs?\\'" . urweb-mode)) ;;;###autoload -(define-derived-mode urweb-mode prog-mode "Ur/Web" +(defalias 'urweb-mode-derived-from + (if (fboundp 'prog-mode) 'prog-mode 'fundamental-mode)) + +;;;###autoload +(define-derived-mode urweb-mode urweb-mode-derived-from "Ur/Web" "\\Major mode for editing Ur/Web code. This mode runs `urweb-mode-hook' just before exiting. \\{urweb-mode-map}"