auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] enumerate.el


From: Mads Jensen
Subject: Re: [AUCTeX-devel] enumerate.el
Date: Sat, 09 Feb 2013 21:47:48 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 2013-02-09 11:38, Mads Jensen wrote:
> I previously sent this file, and have modified it slightly, because it
> wasn't working.  For some bizarre reason, it doesn't work using
> `TeX-argument-insert' but a normal `insert' + format works.  If someone
> can give a good explanation why this is, I'd appreciate it.  The `fmt'
> variable is a string, so the error doesn't make any sense in my mind.
> 
> 2013-02-09  Mads Jensen  <address@hidden>
> 
>       * style/enumerate.el: New style.

There were two things I neglected in the first submission; one was the
check to see that the length of fmt is non-zero, and the other was 1 in
the plus calculation to find the correct position to insert the
argument. I tested it, and it works nicely :) I'm still interested in
knowing why TeX-insert-argument does not work, since it would make the
expression simpler.
-- 
Med Venlig Hilsen / Kind Regards,
Mads Jensen
Rubinsteinsvej 31,st.th
DK-2450 Kbh. SV
Denmark
+45 6168 8518
My brain is my second favorite organ.
      -- Woody Allen

Attachment: enumerate.el
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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