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

2014-04-28 20:58 GMT+02:00 Igor Sosa Mayor <[email protected]>:
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
[email protected]
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


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

Reply via email to