diff options
| author | Tom Tromey | 1995-12-07 18:27:47 +0000 |
|---|---|---|
| committer | Tom Tromey | 1995-12-07 18:27:47 +0000 |
| commit | 150269d560793afba453bd32719cfbf15924f554 (patch) | |
| tree | a82634824e8fca816d178ccbefa5e0b4c5f18935 | |
| parent | 5191b75daa667e2b4c2570bf87d8435ed80ce38c (diff) | |
| download | emacs-150269d560793afba453bd32719cfbf15924f554.tar.gz emacs-150269d560793afba453bd32719cfbf15924f554.zip | |
(add-log-tcl-defun): Don't use tcl-beginning-of-defun; just go to end
of line before searching.
| -rw-r--r-- | lisp/progmodes/tcl.el | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index 725af3f86d2..03b8e86cfed 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.47 $ | 9 | ;; Version: $Revision: 1.48 $ |
| 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/22 17:49:45 $|$Revision: 1.47 $|~/modes/tcl.el.Z| | 54 | ;; $Date: 1995/12/07 18:18:21 $|$Revision: 1.48 $|~/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,9 @@ | |||
| 65 | 65 | ||
| 66 | ;; Change log: | 66 | ;; Change log: |
| 67 | ;; $Log: tcl.el,v $ | 67 | ;; $Log: tcl.el,v $ |
| 68 | ;; Revision 1.48 1995/12/07 18:18:21 tromey | ||
| 69 | ;; (add-log-tcl-defun): Now uses tcl-beginning-of-defun. | ||
| 70 | ;; | ||
| 68 | ;; Revision 1.47 1995/08/22 17:49:45 tromey | 71 | ;; Revision 1.47 1995/08/22 17:49:45 tromey |
| 69 | ;; (tcl-hilit): New function from "Chris Alfeld" <calfeld@math.utah.edu> | 72 | ;; (tcl-hilit): New function from "Chris Alfeld" <calfeld@math.utah.edu> |
| 70 | ;; (tcl-mode): Call it | 73 | ;; (tcl-mode): Call it |
| @@ -359,7 +362,7 @@ | |||
| 359 | (require 'imenu)) | 362 | (require 'imenu)) |
| 360 | ())) | 363 | ())) |
| 361 | 364 | ||
| 362 | (defconst tcl-version "$Revision: 1.47 $") | 365 | (defconst tcl-version "$Revision: 1.48 $") |
| 363 | (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") | 366 | (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") |
| 364 | 367 | ||
| 365 | ;; | 368 | ;; |
| @@ -1443,9 +1446,8 @@ Returns nil if line starts inside a string, t if in a comment." | |||
| 1443 | (defun add-log-tcl-defun () | 1446 | (defun add-log-tcl-defun () |
| 1444 | "Return name of Tcl function point is in, or nil." | 1447 | "Return name of Tcl function point is in, or nil." |
| 1445 | (save-excursion | 1448 | (save-excursion |
| 1446 | (tcl-beginning-of-defun) | 1449 | (end-of-line) |
| 1447 | (forward-char) | 1450 | (if (re-search-backward (concat tcl-proc-regexp "\\([^ \t\n{]+\\)") nil t) |
| 1448 | (if (looking-at (concat tcl-proc-regexp "\\([^ \t\n{]+\\)")) | ||
| 1449 | (buffer-substring (match-beginning 2) | 1451 | (buffer-substring (match-beginning 2) |
| 1450 | (match-end 2))))) | 1452 | (match-end 2))))) |
| 1451 | 1453 | ||