diff options
| author | Tom Tromey | 1995-12-07 18:18:21 +0000 |
|---|---|---|
| committer | Tom Tromey | 1995-12-07 18:18:21 +0000 |
| commit | 5191b75daa667e2b4c2570bf87d8435ed80ce38c (patch) | |
| tree | bb5fbccc33313abe1839e502deb542e9413f04cb | |
| parent | d8913c1c1c382de36f85ded59aab03b637a08023 (diff) | |
| download | emacs-5191b75daa667e2b4c2570bf87d8435ed80ce38c.tar.gz emacs-5191b75daa667e2b4c2570bf87d8435ed80ce38c.zip | |
(add-log-tcl-defun): Now uses tcl-beginning-of-defun.
| -rw-r--r-- | lisp/progmodes/tcl.el | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index b0416ad8eee..725af3f86d2 100644 --- a/lisp/progmodes/tcl.el +++ b/lisp/progmodes/tcl.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Tom Tromey <tromey@busco.lanl.gov> | 6 | ;; Author: Tom Tromey <tromey@busco.lanl.gov> |
| 7 | ;; Chris Lindblad <cjl@lcs.mit.edu> | 7 | ;; Chris Lindblad <cjl@lcs.mit.edu> |
| 8 | ;; Keywords: languages tcl modes | 8 | ;; Keywords: languages tcl modes |
| 9 | ;; Version: $Revision: 1.46 $ | 9 | ;; Version: $Revision: 1.47 $ |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | 12 | ||
| @@ -51,7 +51,7 @@ | |||
| 51 | ;; LCD Archive Entry: | 51 | ;; LCD Archive Entry: |
| 52 | ;; tcl|Tom Tromey|tromey@busco.lanl.gov| | 52 | ;; tcl|Tom Tromey|tromey@busco.lanl.gov| |
| 53 | ;; Major mode for editing Tcl| | 53 | ;; Major mode for editing Tcl| |
| 54 | ;; $Date: 1995/08/07 16:02:01 $|$Revision: 1.46 $|~/modes/tcl.el.Z| | 54 | ;; $Date: 1995/08/22 17:49:45 $|$Revision: 1.47 $|~/modes/tcl.el.Z| |
| 55 | 55 | ||
| 56 | ;; CUSTOMIZATION NOTES: | 56 | ;; CUSTOMIZATION NOTES: |
| 57 | ;; * tcl-proc-list can be used to customize a list of things that | 57 | ;; * tcl-proc-list can be used to customize a list of things that |
| @@ -65,6 +65,10 @@ | |||
| 65 | 65 | ||
| 66 | ;; Change log: | 66 | ;; Change log: |
| 67 | ;; $Log: tcl.el,v $ | 67 | ;; $Log: tcl.el,v $ |
| 68 | ;; Revision 1.47 1995/08/22 17:49:45 tromey | ||
| 69 | ;; (tcl-hilit): New function from "Chris Alfeld" <calfeld@math.utah.edu> | ||
| 70 | ;; (tcl-mode): Call it | ||
| 71 | ;; | ||
| 68 | ;; Revision 1.46 1995/08/07 16:02:01 tromey | 72 | ;; Revision 1.46 1995/08/07 16:02:01 tromey |
| 69 | ;; (tcl-do-auto-fill): Only fill past fill-column; for 19.29. | 73 | ;; (tcl-do-auto-fill): Only fill past fill-column; for 19.29. |
| 70 | ;; (tcl-auto-fill-mode): Use force-mode-line-update. | 74 | ;; (tcl-auto-fill-mode): Use force-mode-line-update. |
| @@ -355,7 +359,7 @@ | |||
| 355 | (require 'imenu)) | 359 | (require 'imenu)) |
| 356 | ())) | 360 | ())) |
| 357 | 361 | ||
| 358 | (defconst tcl-version "$Revision: 1.46 $") | 362 | (defconst tcl-version "$Revision: 1.47 $") |
| 359 | (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") | 363 | (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") |
| 360 | 364 | ||
| 361 | ;; | 365 | ;; |
| @@ -1439,8 +1443,9 @@ Returns nil if line starts inside a string, t if in a comment." | |||
| 1439 | (defun add-log-tcl-defun () | 1443 | (defun add-log-tcl-defun () |
| 1440 | "Return name of Tcl function point is in, or nil." | 1444 | "Return name of Tcl function point is in, or nil." |
| 1441 | (save-excursion | 1445 | (save-excursion |
| 1442 | (if (re-search-backward | 1446 | (tcl-beginning-of-defun) |
| 1443 | (concat tcl-proc-regexp "\\([^ \t\n{]+\\)") nil t) | 1447 | (forward-char) |
| 1448 | (if (looking-at (concat tcl-proc-regexp "\\([^ \t\n{]+\\)")) | ||
| 1444 | (buffer-substring (match-beginning 2) | 1449 | (buffer-substring (match-beginning 2) |
| 1445 | (match-end 2))))) | 1450 | (match-end 2))))) |
| 1446 | 1451 | ||