diff options
| author | Stefan Monnier | 2003-06-18 23:25:39 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-06-18 23:25:39 +0000 |
| commit | 5727e7486425fe68e9017dee29b209ceb4fa7ce4 (patch) | |
| tree | 669e5cce58725d89c4b1f725439240e6e5859353 | |
| parent | 8a3b93ee3056b42b2bd09e9b4d5a850041246b87 (diff) | |
| download | emacs-5727e7486425fe68e9017dee29b209ceb4fa7ce4.tar.gz emacs-5727e7486425fe68e9017dee29b209ceb4fa7ce4.zip | |
(fortran-gud-find-expr): Move from gud.el (was gud-find-fortran-expr).
(fortran-mode): Set gud-find-expr-function.
| -rw-r--r-- | lisp/progmodes/fortran.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index 7d9f5ca61b3..13da2906170 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; fortran.el --- Fortran mode for GNU Emacs | 1 | ;;; fortran.el --- Fortran mode for GNU Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (c) 1986, 93, 94, 95, 97, 98, 99, 2000, 2001 | 3 | ;; Copyright (c) 1986, 93, 94, 95, 97, 98, 99, 2000, 01, 2003 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Michael D. Prange <prange@erl.mit.edu> | 6 | ;; Author: Michael D. Prange <prange@erl.mit.edu> |
| @@ -697,10 +697,15 @@ with no args, if that value is non-nil." | |||
| 697 | (set (make-local-variable 'add-log-current-defun-function) | 697 | (set (make-local-variable 'add-log-current-defun-function) |
| 698 | #'fortran-current-defun) | 698 | #'fortran-current-defun) |
| 699 | (set (make-local-variable 'dabbrev-case-fold-search) 'case-fold-search) | 699 | (set (make-local-variable 'dabbrev-case-fold-search) 'case-fold-search) |
| 700 | (set (make-local-variable 'gud-find-expr) 'gud-find-fortran-expr) | 700 | (set (make-local-variable 'gud-find-expr-function) 'fortran-gud-find-expr) |
| 701 | (run-hooks 'fortran-mode-hook)) | 701 | (run-hooks 'fortran-mode-hook)) |
| 702 | 702 | ||
| 703 | 703 | ||
| 704 | (defun fortran-gud-find-expr () | ||
| 705 | ;; Consider \n as punctuation (end of expression). | ||
| 706 | (with-syntax-table fortran-gud-syntax-table | ||
| 707 | (gud-find-c-expr))) | ||
| 708 | |||
| 704 | (defsubst fortran-comment-indent () | 709 | (defsubst fortran-comment-indent () |
| 705 | "Return the indentation appropriate for the current comment line. | 710 | "Return the indentation appropriate for the current comment line. |
| 706 | This is 0 for a line matching `fortran-comment-line-start-skip', else | 711 | This is 0 for a line matching `fortran-comment-line-start-skip', else |