Tassilo Horn <[email protected]> writes:

> TeX-find-macro-{start,end} both return nil if point is not on a macro or
> in one of its arguments.  E.g., in
>
>      This is some \textbf{sample|1| text} bla|2| bla.
>
> it'll work at position |1| but not at |2|.
>
> So maybe you want to have your lambda cater with that situation:
>
> (lambda ()
>   (interactive)
>   (let ((pos (TeX-find-macro-start)))
>     (when pos
>       (goto-char pos)
>       (search-forward "{" (TeX-find-macro-end) t))))

itneresting... thanks for the explanation!


-- 
:: Igor Sosa Mayor     :: [email protected] ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to