auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Jump to begin of footnote


From: LaurentAUCTEX
Subject: Re: [AUCTeX] Jump to begin of footnote
Date: Fri, 02 May 2014 20:15:48 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Le 28/04/2014 21:14, Mosè Giordano a écrit :
Hi Igor,

2014-04-28 20:58 GMT+02:00 Igor Sosa Mayor <address@hidden>:
Hi,

is there maybe a way to jump to the begin/end of a footnote like C-M-a/e
for an itemize?
there shouldn't be already key bindings for that, but you can bind
your favorite keys to these lambdas:

--8<---------------cut here---------------start------------->8---
(lambda ()
   (interactive)
   (goto-char (TeX-find-macro-start)))

(lambda ()
   (interactive)
   (goto-char (TeX-find-macro-end)))
--8<---------------cut here---------------end--------------->8---

Bye,
Mosè

_______________________________________________
auctex mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/auctex
Hi,
   I try to use these lambdas mais it doesn't work in my emacs :

I did :

(global-set-key (kbd "C-c b")
                (lambda ()
                  (interactive)
                  (goto-char (TeX-find-macro-start))
                  (search-forward "{" (TeX-find-macro-end) t)
                  ))

(global-set-key (kbd "C-c e") (lambda () (interactive)
 (goto-char (TeX-find-macro-end))))

Then with C-c b I have the message error :

Wrong type argument: integer-or-marker-p, nil

I understand that (TeX-find-macro-start) doesn't return a number (for goto-char).
When I use TeX-find-macro-start interactively, it works fine :

M-x TeX-find-macro-start and go to the beginning of the itemize environment.

May you help me please to understand ?
Thank you
Best regards









---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce 
que la protection avast! Antivirus est active.
http://www.avast.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]