[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Jump to begin of footnote
From: |
Igor Sosa Mayor |
Subject: |
Re: [AUCTeX] Jump to begin of footnote |
Date: |
Sat, 03 May 2014 11:32:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Tassilo Horn <address@hidden> 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 :: address@hidden ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::