Diff for /gforth/gforth.el between versions 1.68 and 1.71

version 1.68, 2003/03/09 15:16:49 version 1.71, 2004/12/31 13:23:57
Line 1 Line 1
 ;;; gforth.el --- major mode for editing (G)Forth sources  ;;; gforth.el --- major mode for editing (G)Forth sources
   
 ;; Copyright (C) 1995,1996,1997,1998,2000,2001,2003 Free Software Foundation, Inc.  ;; Copyright (C) 1995,1996,1997,1998,2000,2001,2003,2004 Free Software Foundation, Inc.
   
 ;; This file is part of Gforth.  ;; This file is part of Gforth.
   
Line 115 Line 115
 ; todo:  ; todo:
 ;  ;
   
   ; screen-height existiert nicht in XEmacs, frame-height ersetzen?
   ; 
   
 ; Wörter ordentlich hilighten, die nicht auf Whitespace beginnen ( ..)IF  ; Wörter ordentlich hilighten, die nicht auf Whitespace beginnen ( ..)IF
 ; -- mit aktueller Konzeption nicht möglich??  ; -- mit aktueller Konzeption nicht möglich??
 ;  ;
Line 431  INDENT1 and INDENT2 are indentation spec Line 434  INDENT1 and INDENT2 are indentation spec
         (("else" "recover" "[else]") (-2 . 2) (0 . 0))          (("else" "recover" "[else]") (-2 . 2) (0 . 0))
         (("does>") (-1 . 1) (0 . 0))          (("does>") (-1 . 1) (0 . 0))
         (("while" "[while]") (-2 . 4) (0 . 2))          (("while" "[while]") (-2 . 4) (0 . 2))
         (("repeat" "[repeat]") (-4 . 0) (0 . -4))          (("repeat" "[repeat]") (-4 . 0) (0 . -4))))
         (("\\g") (-2 . 2) (0 . 0))))  
   
 (defvar forth-local-indent-words nil   (defvar forth-local-indent-words nil 
   "List of Forth words to prepend to `forth-indent-words', when a forth-mode    "List of Forth words to prepend to `forth-indent-words', when a forth-mode
Line 824  Used for imenu index generation.") Line 826  Used for imenu index generation.")
   
 ;; Return the column increment, that the current line of forth code does to  ;; Return the column increment, that the current line of forth code does to
 ;; the current or following lines. `which' specifies which indentation values  ;; the current or following lines. `which' specifies which indentation values
 ;; to use. 0 means the indentation of following lines relative to current   ;; to use. 1 means the indentation of following lines relative to current 
 ;; line, 1 means the indentation of the current line relative to the previous   ;; line, 0 means the indentation of the current line relative to the previous 
 ;; line. Return `nil', if there are no indentation words on the current line.  ;; line. Return `nil', if there are no indentation words on the current line.
 (defun forth-get-column-incr (which)  (defun forth-get-column-incr (which)
   (save-excursion    (save-excursion
Line 1104  exceeds 64 characters." Line 1106  exceeds 64 characters."
   (unless (memq forth-info-lookup info-lookup-alist)    (unless (memq forth-info-lookup info-lookup-alist)
     (setq info-lookup-alist (cons forth-info-lookup info-lookup-alist)))      (setq info-lookup-alist (cons forth-info-lookup info-lookup-alist)))
   ;; in X-Emacs C-h C-i is by default bound to Info-query    ;; in X-Emacs C-h C-i is by default bound to Info-query
   (define-key forth-mode-map "\C-h\C-i" 'info-lookup-symbol))    (define-key forth-mode-map [?\C-h ?\C-i] 'info-lookup-symbol))
   
   
 ;;   (info-lookup-add-help  ;;   (info-lookup-add-help
 ;;    :topic 'symbol  ;;    :topic 'symbol
Line 1678  next one.") Line 1679  next one.")
                                     forth-source-modes t)) ; T because LOAD                                      forth-source-modes t)) ; T because LOAD
                                         ; needs an exact name                                          ; needs an exact name
     (comint-check-source file-name) ; Check to see if buffer needs saved.      (comint-check-source file-name) ; Check to see if buffer needs saved.
     (setq forth-prev-l/c-dir/file (cons (file-name-directory    file-name)      (setq forth-prev-l/c-dir/file (cons (file-name-directory file-name)
                                         (file-name-nondirectory file-name)))                                          (file-name-nondirectory file-name)))
     (comint-send-string (forth-proc) (concat "(load \""      (comint-send-string (forth-proc)
                                              file-name                          (concat "s\" " file-name "\" included\n")))
                                              "\"\)\n")))  
   
   
     
   (defvar forth-process-buffer nil "*The current Forth process buffer.    (defvar forth-process-buffer nil "*The current Forth process buffer.

Removed from v.1.68  
changed lines
  Added in v.1.71


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>