Mercurial > urweb
changeset 2181:e46989ea4ca7
Grandfathered into release: make urweb-mode keep working in Emacs 23
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 18 Oct 2015 14:38:20 -0400 (2015-10-18) |
parents | 5940149cd11a |
children | d25c42e5d8f4 |
files | configure.ac src/elisp/urweb-mode.el |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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" "\\<urweb-mode-map>Major mode for editing Ur/Web code. This mode runs `urweb-mode-hook' just before exiting. \\{urweb-mode-map}"