X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/0c382083b6b550c26fad8ac7f59b1ba09663e728..5ed99d3685cc8d13f8e4c63ad449a6e4d63c8eb0:/lisp/progmodes/mixal-mode.el diff --git a/lisp/progmodes/mixal-mode.el b/lisp/progmodes/mixal-mode.el index f2a7aa045e..103c7be7d3 100644 --- a/lisp/progmodes/mixal-mode.el +++ b/lisp/progmodes/mixal-mode.el @@ -1,7 +1,6 @@ ;;; mixal-mode.el --- Major mode for the mix asm language. -;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 -;; Free Software Foundation, Inc. +;; Copyright (C) 2003-2011 Free Software Foundation, Inc. ;; Author: Pieter E.J. Pareit ;; Maintainer: Pieter E.J. Pareit @@ -1060,8 +1059,7 @@ EXECUTION-TIME holds info about the time it takes, number or string.") (let* ((completion-ignore-case t) ;; we already have a list, but it is not in the right format ;; transform it to a valid table so completition can use it - (table (mapcar '(lambda (elm) - (cons (symbol-name (car elm)) nil)) + (table (mapcar (lambda (elm) (cons (symbol-name (car elm)) nil)) mixal-operation-codes-alist)) ;; prompt is different depending on we are close to a valid op-code (have-default (assq (intern-soft (current-word)) @@ -1105,9 +1103,8 @@ 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" - "Major mode for the mixal asm language. -\\{mixal-mode-map}" +(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]*") (set (make-local-variable 'font-lock-defaults) @@ -1117,13 +1114,8 @@ Assumes that file has been compiled with debugging support." ;; might add an indent function in the future ;; (set (make-local-variable 'indent-line-function) 'mixal-indent-line) (set (make-local-variable 'compile-command) (concat "mixasm " - buffer-file-name)) - ;; mixasm will do strange when there is no final newline, - ;; so let Emacs ensure that it is always there - (set (make-local-variable 'require-final-newline) - mode-require-final-newline)) + buffer-file-name))) (provide 'mixal-mode) -;; arch-tag: be7c128a-bf61-4951-a90e-9398267ce3f3 ;;; mixal-mode.el ends here