summaryrefslogtreecommitdiff
path: root/lisp/progmodes/mixal-mode.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2007-10-31 06:28:09 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2007-10-31 06:28:09 +0000
commit91dd4dc44291d513b64ee95736c0b1dbd519bd82 (patch)
tree254c41df95ab1b66ba0c8aefdf275e5b50869355 /lisp/progmodes/mixal-mode.el
parent2c3a09b1ac5070ffe0371c7ca9ea1bcf4f462237 (diff)
downloademacs-91dd4dc44291d513b64ee95736c0b1dbd519bd82.tar.gz
* progmodes/mixal-mode.el (mixal-run, mixal-debug): Call mixvm
only if it is bound. * textmodes/reftex.el: Move autoloads for before all uses. (reftex-make-overlay, reftex-overlay-put, reftex-move-overlay) (reftex-delete-overlay): Move to the top level with the condition in the body. * progmodes/simula.el: Use when instead of if. * iimage.el (iimage-locate-file): Define unconditionally. * mail/mailabbrev.el (mail-abbrev-next-line): * emulation/vip.el (vip-enlarge-region, vip-line) (vip-next-line-at-bol, vip-previous-line) (vip-previous-line-at-bol, vip-find-char, vip-put-back, ex-read): Wrap with-no-warnings around uses of next-line and previous-line. * ediff.el (run-ediff-from-cvs-buffer): * ediff-vers.el (cvs-run-ediff-on-file-descriptor): Remove function not used by pcl-cvs anymore. (noninteractive, generic-sc-get-latest-rev) (ediff-generic-sc-internal, ediff-generic-sc-merge-internal): Delete support for long obsolete generic-sc.el.
Diffstat (limited to 'lisp/progmodes/mixal-mode.el')
-rw-r--r--lisp/progmodes/mixal-mode.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/progmodes/mixal-mode.el b/lisp/progmodes/mixal-mode.el
index 60dcdc625a8..f4ab9e5e4f3 100644
--- a/lisp/progmodes/mixal-mode.el
+++ b/lisp/progmodes/mixal-mode.el
@@ -1091,15 +1091,19 @@ EXECUTION-TIME holds info about the time it takes, number or string.")
(defun mixal-run ()
"Run mixal file in current buffer, assumes that file has been compiled."
(interactive)
- (mixvm (concat "mixvm -r -t -d "
- (file-name-sans-extension (buffer-file-name)))))
+ (if (fboundp 'mixvm)
+ (mixvm (concat "mixvm -r -t -d "
+ (file-name-sans-extension (buffer-file-name))))
+ (error "mixvm.el needs to be loaded to run `mixvm'")))
(defun mixal-debug ()
"Start mixvm for debugging.
Assumes that file has been compiled with debugging support."
(interactive)
- (mixvm (concat "mixvm "
- (file-name-sans-extension (buffer-file-name)))))
+ (if (fboundp 'mixvm)
+ (mixvm (concat "mixvm "
+ (file-name-sans-extension (buffer-file-name))))
+ (error "mixvm.el needs to be loaded to run `mixvm'")))
;;;###autoload
(define-derived-mode mixal-mode fundamental-mode "mixal"