Derive some programming modes from prog-mode.

* lisp/progmodes/python.el (python-mode): Derive from prog-mode.
* lisp/progmodes/ps-mode.el (ps-mode):
* lisp/progmodes/mixal-mode.el (mixal-mode):
* lisp/progmodes/ld-script.el (ld-script-mode): Likewise.
This commit is contained in:
Dan Nicolaescu 2011-06-15 07:07:48 -07:00
parent 571e1872c0
commit c5cde04220
5 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2011-06-15 Dan Nicolaescu <dann@ics.uci.edu>
* progmodes/python.el (python-mode): Derive from prog-mode.
* progmodes/ps-mode.el (ps-mode):
* progmodes/mixal-mode.el (mixal-mode):
* progmodes/ld-script.el (ld-script-mode): Likewise.
2011-06-15 Martin Rudalics <rudalics@gmx.at>
* window.el (display-buffer-alist): Trim default value to avoid

View file

@ -168,7 +168,7 @@
"Default font-lock-keywords for `ld-script-mode'.")
;;;###autoload
(define-derived-mode ld-script-mode nil "LD-Script"
(define-derived-mode ld-script-mode prog-mode "LD-Script"
"A major mode to edit GNU ld script files"
(set (make-local-variable 'comment-start) "/* ")
(set (make-local-variable 'comment-end) " */")

View file

@ -1103,7 +1103,7 @@ Assumes that file has been compiled with debugging support."
(error "mixvm.el needs to be loaded to run `mixvm'")))
;;;###autoload
(define-derived-mode mixal-mode fundamental-mode "mixal"
(define-derived-mode mixal-mode prog-mode "mixal"
"Major mode for the mixal asm language."
(set (make-local-variable 'comment-start) "*")
(set (make-local-variable 'comment-start-skip) "^\\*[ \t]*")

View file

@ -485,7 +485,7 @@ If nil, use `temporary-file-directory'."
;; PostScript mode.
;;;###autoload
(define-derived-mode ps-mode fundamental-mode "PostScript"
(define-derived-mode ps-mode prog-mode "PostScript"
"Major mode for editing PostScript with GNU Emacs.
Entry to this mode calls `ps-mode-hook'.

View file

@ -2420,7 +2420,7 @@ without confirmation."
(defvar python-mode-running) ;Dynamically scoped var.
;;;###autoload
(define-derived-mode python-mode fundamental-mode "Python"
(define-derived-mode python-mode prog-mode "Python"
"Major mode for editing Python files.
Turns on Font Lock mode unconditionally since it is currently required
for correct parsing of the source.