emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/fortran.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/fortran.el
Date: Wed, 18 Jun 2003 19:25:40 -0400

Index: emacs/lisp/progmodes/fortran.el
diff -c emacs/lisp/progmodes/fortran.el:1.108 
emacs/lisp/progmodes/fortran.el:1.109
*** emacs/lisp/progmodes/fortran.el:1.108       Wed Jun 18 18:35:37 2003
--- emacs/lisp/progmodes/fortran.el     Wed Jun 18 19:25:39 2003
***************
*** 1,6 ****
  ;;; fortran.el --- Fortran mode for GNU Emacs
  
! ;; Copyright (c) 1986, 93, 94, 95, 97, 98, 99, 2000, 2001
  ;;   Free Software Foundation, Inc.
  
  ;; Author: Michael D. Prange <address@hidden>
--- 1,6 ----
  ;;; fortran.el --- Fortran mode for GNU Emacs
  
! ;; Copyright (c) 1986, 93, 94, 95, 97, 98, 99, 2000, 01, 2003
  ;;   Free Software Foundation, Inc.
  
  ;; Author: Michael D. Prange <address@hidden>
***************
*** 697,706 ****
    (set (make-local-variable 'add-log-current-defun-function)
         #'fortran-current-defun)
    (set (make-local-variable 'dabbrev-case-fold-search) 'case-fold-search)
!   (set (make-local-variable 'gud-find-expr) 'gud-find-fortran-expr)
    (run-hooks 'fortran-mode-hook))
  
  
  (defsubst fortran-comment-indent ()
    "Return the indentation appropriate for the current comment line.
  This is 0 for a line matching `fortran-comment-line-start-skip', else
--- 697,711 ----
    (set (make-local-variable 'add-log-current-defun-function)
         #'fortran-current-defun)
    (set (make-local-variable 'dabbrev-case-fold-search) 'case-fold-search)
!   (set (make-local-variable 'gud-find-expr-function) 'fortran-gud-find-expr)
    (run-hooks 'fortran-mode-hook))
  
  
+ (defun fortran-gud-find-expr ()
+   ;; Consider \n as punctuation (end of expression).
+   (with-syntax-table fortran-gud-syntax-table
+     (gud-find-c-expr)))
+ 
  (defsubst fortran-comment-indent ()
    "Return the indentation appropriate for the current comment line.
  This is 0 for a line matching `fortran-comment-line-start-skip', else




reply via email to

[Prev in Thread] Current Thread [Next in Thread]