[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/tex.el,v
From: |
Ralf Angeli |
Subject: |
[AUCTeX-diffs] Changes to auctex/tex.el,v |
Date: |
Tue, 11 Jul 2006 21:20:05 +0000 |
CVSROOT: /cvsroot/auctex
Module name: auctex
Changes by: Ralf Angeli <angeli> 06/07/11 21:20:05
Index: tex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.582
retrieving revision 5.583
diff -u -b -r5.582 -r5.583
--- tex.el 10 Jul 2006 19:32:19 -0000 5.582
+++ tex.el 11 Jul 2006 21:20:05 -0000 5.583
@@ -4126,11 +4126,10 @@
in the buffer."
(TeX-find-balanced-brace -1 depth limit))
-(defun TeX-find-macro-boundaries (&optional lower-bound)
+(defun TeX-find-macro-boundaries ()
"Return a list containing the start and end of a macro.
-If LOWER-BOUND is given, do not search backward further than this
-point in buffer. Arguments enclosed in brackets or braces are
-considered part of the macro."
+Arguments enclosed in brackets or braces are considered part of
+the macro."
(let ((orig-point (point))
start-point)
;; Point is located directly at the start of a macro. (-!-\foo{bar})
@@ -4204,16 +4203,16 @@
;; If we cannot find a regular end, use the
;; next whitespace.
(save-excursion (skip-chars-forward "^ \t\n")
- (point)))))
+ (point))))
+ (when (eobp) (throw 'found (point))))
(t
(throw 'found (point)))))))))
-(defun TeX-find-macro-start (&optional limit)
+(defun TeX-find-macro-start ()
"Return the start of a macro.
-If LIMIT is given, do not search backward further than this point
-in buffer. Arguments enclosed in brackets or braces are
-considered part of the macro."
- (car (TeX-find-macro-boundaries limit)))
+Arguments enclosed in brackets or braces are considered part of
+the macro."
+ (car (TeX-find-macro-boundaries)))
(defun TeX-find-macro-end ()
"Return the end of a macro.
- [AUCTeX-diffs] Changes to auctex/tex.el,v, Ralf Angeli, 2006/07/02
- [AUCTeX-diffs] Changes to auctex/tex.el,v, Ralf Angeli, 2006/07/07
- [AUCTeX-diffs] Changes to auctex/tex.el,v, Ralf Angeli, 2006/07/10
- [AUCTeX-diffs] Changes to auctex/tex.el,v,
Ralf Angeli <=
- [AUCTeX-diffs] Changes to auctex/tex.el,v, Reiner Steib, 2006/07/27