Andreas Breitbach | 1 Jul 2009 15:20
Picon

Re: 11.85; Biblatex vs. RefTex

Am Samstag, den 27.06.2009, 16:33 +0200 schrieb Ralf Angeli:
> Please keep the mailing list copied!
> 
> * Andreas Breitbach (2009-06-27) writes:
> 
> > Am Samstag, den 27.06.2009, 15:42 +0200 schrieb Ralf Angeli:
> >> 
> >> I still cannot reproduce this, not even with Emacs 22.2, so this will be
> >> difficult to debug without having access to the installation.  Anyway,
> >> what's the result if you set `reftex-cite-prompt-optional-args' to nil?
> > I hope to have the time to cross-check this whole stuff with another
> >  PC(running Ubuntu 8.10, as far as I remember). With the "nil"
> >  applied, it works as it should:
> >  \footcite{InternationalSecurity.1Summer.2000}.
> 
> Does it help if you apply the following patch to reftex-cite.el,
> recompile and reinstall?  Alternatively you can evaluate a patched
> version of `reftex-do-citation' in a running Emacs session by copying
> its definition into the *scratch* buffer and typing `C-M-x' with point
> in it.
With the applied patch it works:
\footcite[43]{InternationalSecurity.1Summer.2000}.

Ralf Angeli | 4 Jul 2009 14:41

Re: 11.85; Biblatex vs. RefTex

* Andreas Breitbach (2009-07-01) writes:

> Am Samstag, den 27.06.2009, 16:33 +0200 schrieb Ralf Angeli:
>> 
>> Does it help if you apply the following patch to reftex-cite.el,
>> recompile and reinstall?  Alternatively you can evaluate a patched
>> version of `reftex-do-citation' in a running Emacs session by copying
>> its definition into the *scratch* buffer and typing `C-M-x' with point
>> in it.
> With the applied patch it works:
> \footcite[43]{InternationalSecurity.1Summer.2000}.

Hm, strange.  Does it still work if you only wrap the call to `format'
into `save-match-data'?  The patch would then look like this:

--- reftex-cite.el.~1.53.~	2009-03-01 15:42:06.000000000 +0100
+++ reftex-cite.el	2009-07-04 14:39:48.000000000 +0200
 <at>  <at>  -702,8 +702,9  <at>  <at> 
                        (equal arg '(4))))
           (let ((start 0) (nth 0) value)
             (while (setq start (string-match "\\[\\]" string start))
-              (setq value (read-string (format "Optional argument %d: "
-                                               (setq nth (1+ nth)))))
+              (setq value (read-string (save-match-data
+					 (format "Optional argument %d: "
+						 (setq nth (1+ nth))))))
               (setq string (replace-match (concat "[" value "]") t t string))
               (setq start (1+ start)))))
         ;; Should we cleanup empty optional arguments?

(Continue reading)

Ralf Angeli | 4 Jul 2009 15:32

Re: Better documenting difference between AucTeX Texinfo and native Texinfo modes

* Vincent Belaïche (2009-06-30) writes:

> I think that the difference of AucTeX TeXinfo mode w.r.t. to native 
> TeXinfo mode should be better documented.

Well, AFAICS the Texinfo mode of AUCTeX is not documented at all.  At
least with respect to the manual.  So there is not really a basis to be
improved.

> This is because when you edit 
> a TeXinfo file you still rely on the native TeXinfo to make texinfo 
> specific thing (like updating node pointer).

Yes, but I'm not sure this technicality has to be prominently exposed in
the manual.  I'd probably document the functionality AUCTeX provides
itself or exposes from the native Texinfo mode via the menus and refer
to the documentation of the native mode for the rest.

In any case, the Texinfo mode in AUCTeX has always felt somewhat
inconsistent and unfinished to me.  When editing the AUCTeX and RefTeX
manuals I'm usually struggling with the insertion of sections and nodes
as they are used nowadays in these manuals and with updating the menus.
There is likely some potential for improvement.

--

-- 
Ralf

Andreas Breitbach | 4 Jul 2009 15:53
Picon

Re: 11.85; Biblatex vs. RefTex

Am Samstag, den 04.07.2009, 14:41 +0200 schrieb Ralf Angeli:
> * Andreas Breitbach (2009-07-01) writes:
> 
> > Am Samstag, den 27.06.2009, 16:33 +0200 schrieb Ralf Angeli:
> >> 
> >> Does it help if you apply the following patch to reftex-cite.el,
> >> recompile and reinstall?  Alternatively you can evaluate a patched
> >> version of `reftex-do-citation' in a running Emacs session by copying
> >> its definition into the *scratch* buffer and typing `C-M-x' with point
> >> in it.
> > With the applied patch it works:
> > \footcite[43]{InternationalSecurity.1Summer.2000}.
> 
> Hm, strange.  Does it still work if you only wrap the call to `format'
> into `save-match-data'?  The patch would then look like this:
> 
> --- reftex-cite.el.~1.53.~	2009-03-01 15:42:06.000000000 +0100
> +++ reftex-cite.el	2009-07-04 14:39:48.000000000 +0200
>  <at>  <at>  -702,8 +702,9  <at>  <at> 
>                         (equal arg '(4))))
>            (let ((start 0) (nth 0) value)
>              (while (setq start (string-match "\\[\\]" string start))
> -              (setq value (read-string (format "Optional argument %d: "
> -                                               (setq nth (1+ nth)))))
> +              (setq value (read-string (save-match-data
> +					 (format "Optional argument %d: "
> +						 (setq nth (1+ nth))))))
>                (setq string (replace-match (concat "[" value "]") t t string))
>                (setq start (1+ start)))))
>          ;; Should we cleanup empty optional arguments?
(Continue reading)

Vincent Belaïche | 4 Jul 2009 17:11
Picon

Re: Better documenting difference between AucTeX Texinfo and native Texinfo modes

answers embedded below.

Ralf Angeli a écrit :
> * Vincent Belaïche (2009-06-30) writes:
> 
>> I think that the difference of AucTeX TeXinfo mode w.r.t. to native 
>> TeXinfo mode should be better documented.
> 
> Well, AFAICS the Texinfo mode of AUCTeX is not documented at all.  At
> least with respect to the manual.  So there is not really a basis to be
> improved.
> 

I agree. Would you like me to draft an info node that would sumarize what 
AucTeX brings upon and when native Texinfo is needed from AucTeX.

>> This is because when you edit 
>> a TeXinfo file you still rely on the native TeXinfo to make texinfo 
>> specific thing (like updating node pointer).
> 
> Yes, but I'm not sure this technicality has to be prominently exposed in
> the manual.  

Yes, I was not meaning that you should document the native Texinfo function 
themself but rather the key-bindings to reach them when you are in AucTeX, as 
when using AucTeX you still rely on some of the native Texinfo functions.
This 1st node would be intended to the proficient AucTeX user to help him/here 
refer to the native Texinfo manual for only relevant parts.

Also it would be good to list briefly in a separate node all native Texinfo 
(Continue reading)

Pierre Lorenzon | 4 Jul 2009 20:03
Picon
Picon
Favicon

2009-04-05; Switching to web2c 7.5.6 buffer instead of source buffer


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

Be sure to consult the FAQ section in the manual before submitting
a bug report.  In addition check if the bug is reproducable with an
up-to-date version of AUCTeX.  So please upgrade to the version
available from http://www.gnu.org/software/auctex/ if your
installation is older than the one available from the web site.

If the bug is triggered by a specific (La)TeX file, you should try
to produce a minimal sample file showing the problem and include it
in your report.

Your bug report will be posted to the AUCTeX bug reporting list.
------------------------------------------------------------------------

When trying to go to next error with C-c ` after having
compiling a LaTeX file myfile.tex, I am put to a buffer Web2C
7.5.6.tex instead of myfile.tex. Indeed in the output buffer I
have : 
"This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)"
and this (Web2C 7.5.6) seems to be treated has the master file
name by the parser. The problem seems to me to be a matter of
balancing parenthesis. I could certainly look into the code to
find out where this come from but if anybody already encounter
this problem I could avoid westing time !

Regards,

(Continue reading)

Ralf Angeli | 5 Jul 2009 11:34

Re: 11.85; Biblatex vs. RefTex

* Andreas Breitbach (2009-07-04) writes:

> Am Samstag, den 04.07.2009, 14:41 +0200 schrieb Ralf Angeli:
>> 
>> Hm, strange.  Does it still work if you only wrap the call to `format'
>> into `save-match-data'?  The patch would then look like this:

> No, doesn't work: \footcite{Internati[43]mmer.2000}. 

Okay, then the problem seems to be with `read-string' or one of the
functions called by it.  I've now checked in the original patch.  Even
though you seem to be the only one with the problem, I guess the change
does no harm and is good as a safety net.

--

-- 
Ralf

Ralf Angeli | 5 Jul 2009 13:43

Re: Better documenting difference between AucTeX Texinfo and native Texinfo modes

[Karl and Glenn stripped from the list of recipients because I don't
think they need to be bothered with a discussion about changes in the
AUCTeX manual.]

* Vincent Belaïche (2009-07-04) writes:

> Ralf Angeli a écrit :
>> 
>> Well, AFAICS the Texinfo mode of AUCTeX is not documented at all.  At
>> least with respect to the manual.  So there is not really a basis to be
>> improved.
>
> I agree. Would you like me to draft an info node that would sumarize what 
> AucTeX brings upon and when native Texinfo is needed from AucTeX.

Sure.  But keep in mind that the manual currently contains a lot of
information which is common to all AUCTeX modes.  So this stuff does not
necessarily have to be repeated.  And if there nevertheless is a need
for repetition, it should be very brief.

> By the way   `C-c C-c C-d' (`texinfo-start-menu-description')  (cf "(texinfo) 
> Inserting") cannot be accessed in AucTeX.
>
> I suggest a new key `C-c C-u C-d'.
>
> This command is quite practical to pull section/subsection titles into the 
> menu entry description, and as such it deserves a key binding.

This sounds useful.  The proposed key binding also seems to be an
appropriate choice since since the other bindings prefixed with `C-c
(Continue reading)

Ralf Angeli | 5 Jul 2009 13:48

Re: 2009-04-05; Switching to web2c 7.5.6 buffer instead of source buffer

* Pierre Lorenzon (2009-07-04) writes:

> When trying to go to next error with C-c ` after having
> compiling a LaTeX file myfile.tex, I am put to a buffer Web2C
> 7.5.6.tex instead of myfile.tex. Indeed in the output buffer I
> have : 
> "This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)"
> and this (Web2C 7.5.6) seems to be treated has the master file
> name by the parser. The problem seems to me to be a matter of
> balancing parenthesis.

Probably.  But since you failed to include an example for reproducing
the problem I cannot say for certain.

> I could certainly look into the code to
> find out where this come from but if anybody already encounter
> this problem I could avoid westing time !

The regexp for error parsing can be found in `TeX-parse-error'.  In 2007
I already made a change regarding the handling of parentheses.

--

-- 
Ralf

Ralf Angeli | 5 Jul 2009 14:34

Re: 2009-04-05; Switching to web2c 7.5.6 buffer instead of source buffer

Please keep the mailing list copied!

* Pierre Lorenzon (2009-07-05) writes:

> From: Ralf Angeli <angeli <at> caeruleus.net>
>
>> Probably.  But since you failed to include an example for reproducing
>> the problem I cannot say for certain.
>
>   Here is the beginning of the output. Anyway those buffers are so big
>   that I did not want to include it in the mail :
>
>   ---
>
> Running `LaTeX' on `Cahier' with ``latex  -interaction=nonstopmode "\input" Cahier.tex''
> This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
[...]
> Package amsmath Warning: Foreign command \over;
> (amsmath)                \frac or \genfrac should be used instead
> (amsmath)                 on input line 341.
[...]
> LaTeX Warning: Command \` invalid in math mode on input line 390.
>
>
> Overfull \hbox (655.6115pt too wide) detected at line 400
> \OML/cmm/m/it/12 x[]:x[]  \OT1/cmr/m/n/12 =  \OML/cmm/m/it/12 x[]\OT1/cmr/m/n/12
(\OML/cmm/m/it/12 x[]x[] \OMS/cmsy/m/n/12 ^^ <at>  \OT1/cmr/m/n/12 2\OML/cmm/m/it/
> 12 x[]\OT1/cmr/m/n/12 )  =  (\OML/cmm/m/it/12 x[] \OT1/cmr/m/n/12 + \OML/cmm/m/it/12
ix[]\OT1/cmr/m/n/12 )\OML/cmm/m/it/12 x[] \OMS/cmsy/m/n/12 ^^ <at>  \OT1/cmr/m/n/12
2\OML/cmm/m/it/12 x[]:x[]  \OT1/cmr/m/n/12 =  \OML/cmm/m/it/12 x[]x[] \OT1/cmr/m/n/12 +
(Continue reading)


Gmane