summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1995-12-07 18:18:21 +0000
committerTom Tromey <tromey@redhat.com>1995-12-07 18:18:21 +0000
commit6751cdfe9a4890d03e7e15415a3ed3cef8aa31d7 (patch)
treeeeb8361056427099f711e0094bb536b2ece03511
parent73d7cb23eb8d51bedb1c06b95bf328c644ed5c2f (diff)
downloademacs-6751cdfe9a4890d03e7e15415a3ed3cef8aa31d7.tar.gz
(add-log-tcl-defun): Now uses tcl-beginning-of-defun.
-rw-r--r--lisp/progmodes/tcl.el15
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 @@
;; Author: Tom Tromey <tromey@busco.lanl.gov>
;; Chris Lindblad <cjl@lcs.mit.edu>
;; Keywords: languages tcl modes
-;; Version: $Revision: 1.46 $
+;; Version: $Revision: 1.47 $
;; This file is part of GNU Emacs.
@@ -51,7 +51,7 @@
;; LCD Archive Entry:
;; tcl|Tom Tromey|tromey@busco.lanl.gov|
;; Major mode for editing Tcl|
-;; $Date: 1995/08/07 16:02:01 $|$Revision: 1.46 $|~/modes/tcl.el.Z|
+;; $Date: 1995/08/22 17:49:45 $|$Revision: 1.47 $|~/modes/tcl.el.Z|
;; CUSTOMIZATION NOTES:
;; * tcl-proc-list can be used to customize a list of things that
@@ -65,6 +65,10 @@
;; Change log:
;; $Log: tcl.el,v $
+;; Revision 1.47 1995/08/22 17:49:45 tromey
+;; (tcl-hilit): New function from "Chris Alfeld" <calfeld@math.utah.edu>
+;; (tcl-mode): Call it
+;;
;; Revision 1.46 1995/08/07 16:02:01 tromey
;; (tcl-do-auto-fill): Only fill past fill-column; for 19.29.
;; (tcl-auto-fill-mode): Use force-mode-line-update.
@@ -355,7 +359,7 @@
(require 'imenu))
()))
-(defconst tcl-version "$Revision: 1.46 $")
+(defconst tcl-version "$Revision: 1.47 $")
(defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>")
;;
@@ -1439,8 +1443,9 @@ Returns nil if line starts inside a string, t if in a comment."
(defun add-log-tcl-defun ()
"Return name of Tcl function point is in, or nil."
(save-excursion
- (if (re-search-backward
- (concat tcl-proc-regexp "\\([^ \t\n{]+\\)") nil t)
+ (tcl-beginning-of-defun)
+ (forward-char)
+ (if (looking-at (concat tcl-proc-regexp "\\([^ \t\n{]+\\)"))
(buffer-substring (match-beginning 2)
(match-end 2)))))