Re: [AUCTeX] Jump to begin of footnote

2014-05-02 Thread Igor Sosa Mayor
LaurentAUCTEX  writes:

> Hi,
>I try to use these lambdas mais it doesn't work in my emacs :

I have this:

--8<---cut here---start->8---
(defun ism/saltar-inicio-footnote ()
  (interactive)
  (goto-char (TeX-find-macro-start))
  (search-forward "{" (TeX-find-macro-end) t))

(defun ism/saltar-fin-footnote ()
  (interactive)
  (goto-char (TeX-find-macro-end))
  (backward-char)
  )

--8<---cut here---end--->8---

And then you can bind the functions to a key... It seems to work... 


-- 
:: Igor Sosa Mayor :: joseleopoldo1...@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/  ::
:: jabberid: rogorido  ::::


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Jump to begin of footnote

2014-05-02 Thread LaurentAUCTEX

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

Hi Igor,

2014-04-28 20:58 GMT+02:00 Igor Sosa Mayor :

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
auctex@gnu.org
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
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] Several addbibresources in emacs 24.4?

2014-05-02 Thread Igor Sosa Mayor
Hi,

somewhere and somewhen I saw a commit in emacs that enabled the
possibility in auctex (or reftex?) to have several sources defined as
\addbibresource{etc}. 

Will this be available in the new emacs version 24.4?

Many thanks in advance!

-- 
:: Igor Sosa Mayor :: joseleopoldo1...@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/  ::
:: jabberid: rogorido  ::::


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] TeX error parsing: request for testing

2014-05-02 Thread David Kastrup
Tassilo Horn  writes:

> Mosè Giordano  writes:
>
> Hi Mosè,
>
>> 2014-04-25 13:08 GMT+02:00 Tassilo Horn :
>>> Great, please keep on testing (also with the latest change).
>>
>> I'm having some trouble with multifile documents.  Attached you can
>> find two files, foo.tex being the master one: if you compile the files
>> as they are (i.e. with all content inside foo.tex) `TeX-next-error`
>> finds the "Undefined control sequence" \command, while if you
>> uncomment the
>> % \input{bar}
>> line and comment the
>> \command
>> line in foo.tex `TeX-next-error` won't be able to find the error anymore.
>
> Thanks, I was able to reproduce that.  It's been caused by my new-file
> regex matching multi-line input which it shouldn't.  I've pushed a fix
> that makes it working for me.

As a note aside: preview-latex also does error message matching on its
own, and it apparently does a better job at it.  Maybe it would make
sense to port the respective code over and/or try making a common
interface both use.  It does not seem to make much sense getting this
problem tackled independently.

This code duplication would also explain my recurring eerie "didn't
I fix this already" feeling.

-- 
David Kastrup

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] Bug in listings.el

2014-05-02 Thread Tassilo Horn
"Hoffmann, Jobst"  writes:

Hi Jobst,

> in file lstings.el line 238 must be 
>'("lstDeleteShortInline" "Character")
> ^^^
> instead of
>'("lstDeleteShortLine" "Character")   -- this command doesn't exist!
> ^
>
> Could you please correct that typo?

Done so.  Congrats to your first commit in AUCTeX!

--8<---cut here---start->8---
commit bee6bafec6aebff5d3d6aa9143666d954f843e1c
Author: Jobst Hoffmann 
Date:   Fri May 2 09:10:39 2014 +0200

Fix typo in listings.el.

* style/listings.el ("listings"): Fix typo.

Signed-off-by: Tassilo Horn 
--8<---cut here---end--->8---

Bye,
Tassilo


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex