--- gforth/gforth.el 1997/03/25 23:27:12 1.21 +++ gforth/gforth.el 1998/04/14 16:43:06 1.26 @@ -36,7 +36,7 @@ (defvar forth-positives - " : :noname code interpretation: ;code does> begin do ?do +do -do u+do u-do while if ?dup-if ?dup-0=-if else case of struct [if] [else] with public: private: class " + " : :noname code interpretation: ;code does> begin do ?do +do -do u+do u-do while if ?dup-if ?dup-0=-if else case of struct [if] [ifdef] [ifundef] [else] with public: private: class " "Contains all words which will cause the indent-level to be incremented on the next line. OBS! All words in forth-positives must be surrounded by spaces.") @@ -54,7 +54,7 @@ OBS! All words in forth-negatives must b (setq forth-zero 0) (defvar forth-zup - " how: " + " how: implements " "Contains all words which causes zero indent level to change") (defvar forth-zdown @@ -76,10 +76,6 @@ OBS! All words in forth-negatives must b (if (not forth-mode-map) (setq forth-mode-map (make-sparse-keymap))) -(global-set-key "\e\C-m" 'forth-send-paragraph) -(global-set-key "\C-x\C-m" 'forth-split) -(global-set-key "\e " 'forth-reload) - ;(define-key forth-mode-map "\M-\C-x" 'compile) (define-key forth-mode-map "\C-x\\" 'comment-region) (define-key forth-mode-map "\C-x~" 'forth-remove-tracers) @@ -92,7 +88,7 @@ OBS! All words in forth-negatives must b (define-key forth-mode-map "\M-q" 'forth-fill-paragraph) (define-key forth-mode-map "\e." 'forth-find-tag) -(load "etags.el") +(load "etags") (defun forth-find-tag (tagname &optional next-p regexp-p) (interactive (find-tag-interactive "Find tag: ")) @@ -160,7 +156,7 @@ OBS! All words in forth-negatives must b " Major mode for editing Forth code. Tab indents for Forth code. Comments are delimited with \\ and newline. Paragraphs are separated by blank lines -only. Delete converts tabs to spaces as it moves back. +only. \\{forth-mode-map} Forth-split Positions the current buffer on top and a forth-interaction window @@ -421,6 +417,10 @@ part of the screen." (forth-split) (forth-set-runlight forth-runlight:input)) +(defun run-forth-if-not () + (if (not (forth-process-running-p)) + (run-forth forth-program-name))) + (defun reset-forth () "Reset the Forth process." (interactive) @@ -714,7 +714,7 @@ The region is sent terminated by a newli (interactive) (let ((process (get-process forth-program-name))) (if process (kill-process process t))) - (sleep-for-millisecs 100) + (sleep-for 0 100) (forth-mode))