changeset 109561:d7a517f1b312

Derive programming modes from prog-mode. * progmodes/js.el (js-mode): * progmodes/make-mode.el (makefile-mode): * progmodes/simula.el (simula-mode): * progmodes/tcl.el (tcl-mode): Derive from prog-mode.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 27 Jul 2010 18:37:25 +0200
parents cd9d4b014838
children 9a8064e866bb a9df84c12868
files lisp/ChangeLog lisp/progmodes/js.el lisp/progmodes/make-mode.el lisp/progmodes/simula.el lisp/progmodes/tcl.el
diffstat 5 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Jul 27 01:02:44 2010 -0700
+++ b/lisp/ChangeLog	Tue Jul 27 18:37:25 2010 +0200
@@ -1,3 +1,10 @@
+2010-07-27  Tom Tromey  <tromey@redhat.com>
+
+	* progmodes/js.el (js-mode):
+	* progmodes/make-mode.el (makefile-mode):
+	* progmodes/simula.el (simula-mode):
+	* progmodes/tcl.el (tcl-mode): Derive from prog-mode.
+
 2010-07-27  Juanma Barranquero  <lekktu@gmail.com>
 
 	* help-fns.el (find-lisp-object-file-name): Doc fix (bug#6494).
--- a/lisp/progmodes/js.el	Tue Jul 27 01:02:44 2010 -0700
+++ b/lisp/progmodes/js.el	Tue Jul 27 18:37:25 2010 +0200
@@ -3268,7 +3268,7 @@
 ;;; Main Function
 
 ;;;###autoload
-(define-derived-mode js-mode nil "js"
+(define-derived-mode js-mode prog-mode "js"
   "Major mode for editing JavaScript.
 
 Key bindings:
--- a/lisp/progmodes/make-mode.el	Tue Jul 27 01:02:44 2010 -0700
+++ b/lisp/progmodes/make-mode.el	Tue Jul 27 18:37:25 2010 +0200
@@ -768,7 +768,7 @@
 ;;; ------------------------------------------------------------
 
 ;;;###autoload
-(define-derived-mode makefile-mode nil "Makefile"
+(define-derived-mode makefile-mode prog-mode "Makefile"
   "Major mode for editing standard Makefiles.
 
 If you are editing a file for a different make, try one of the
--- a/lisp/progmodes/simula.el	Tue Jul 27 01:02:44 2010 -0700
+++ b/lisp/progmodes/simula.el	Tue Jul 27 18:37:25 2010 +0200
@@ -330,7 +330,7 @@
   (popup-menu (cons (concat mode-name " Mode Commands") simula-mode-menu)))
 
 ;;;###autoload
-(define-derived-mode simula-mode nil "Simula"
+(define-derived-mode simula-mode prog-mode "Simula"
   "Major mode for editing SIMULA code.
 \\{simula-mode-map}
 Variables controlling indentation style:
--- a/lisp/progmodes/tcl.el	Tue Jul 27 01:02:44 2010 -0700
+++ b/lisp/progmodes/tcl.el	Tue Jul 27 18:37:25 2010 +0200
@@ -545,7 +545,7 @@
 ;;
 
 ;;;###autoload
-(define-derived-mode tcl-mode nil "Tcl"
+(define-derived-mode tcl-mode prog-mode "Tcl"
   "Major mode for editing Tcl code.
 Expression and list commands understand all Tcl brackets.
 Tab indents for Tcl code.