Scot Becker | 13 Sep 2010 14:08
Picon

TAB key does not let me insert a non-existing label

(sorry I can't use reftex-report-bug, it doesn't work ATM since I have
a problem in my mail setup)  I'm using a recent bzr pull of emacs
(emacs-version says  24.0.50.4) and standalone Reftex 4.34 under
Gnome/Ubuntu.  The Reftex manual leads me to believe that when looking
for a citation key I find I don't have, I can press TAB and type a new
one out which will then be inserted in the citation command I have
chosen.  The following:

C-c [ c somregex RET TAB mynewcitekey_2000 RET

should get me:

\cite{mynewcitekey_2000}

Instead all I get is "mynewcitekey_2000" echoed in the echo
area/minibuffer, and no cite key inserted.

The relevant manual section is here:

http://www.gnu.org/software/emacs/manual/html_mono/reftex.html#Creating-Citations

Can anyone confirm this behaviour?

Other RefTeX functions seem to work as advertised.
I have my bibliography file defined in reftex-default-bibliography,
rather than in a \bibliography{} line.

Scot

(Continue reading)

Ralf Angeli | 13 Sep 2010 19:38

Re: TAB key does not let me insert a non-existing label

* Scot Becker (2010-09-13) writes:

> (sorry I can't use reftex-report-bug, it doesn't work ATM since I have
> a problem in my mail setup)

A common workaround is to copy the text generated by `reftex-report-bug'
into a message to be sent through a configured mail client.

> I'm using a recent bzr pull of emacs
> (emacs-version says  24.0.50.4) and standalone Reftex 4.34 under
> Gnome/Ubuntu.  The Reftex manual leads me to believe that when looking
> for a citation key I find I don't have, I can press TAB and type a new
> one out which will then be inserted in the citation command I have
> chosen.  The following:
>
> C-c [ c somregex RET TAB mynewcitekey_2000 RET
>
> should get me:
>
> \cite{mynewcitekey_2000}
>
> Instead all I get is "mynewcitekey_2000" echoed in the echo
> area/minibuffer, and no cite key inserted.

Hm, this is working fine here with a one-year-old development version of
Emacs 23.  Can you check if it works with Emacs 23 for you?

--

-- 
Ralf

(Continue reading)

Scot Becker | 14 Sep 2010 13:10
Picon

Re: TAB key does not let me insert a non-existing label

Ralf,

Thanks for the reply.  I tried it now on both Emacs 23 and 24, with
both my full setup and with emacs -Q, with identical results.  When
you tried it, did you test it by typing a citation key that is not in
your database?  It works fine if I only use keys in my database, but
not if I type one that isn't there.  (This is presumably designed for
the case where you want to cite something that isn't in your database
yet.  In my case I have to go through an external database [Zotero]
and export to BibTeX, which I don't want to stop and do when I
discover I need to cite something new.)

Here's what I did to test Emacs 23, (this time with the inbuilt RefTeX):

$ /usr/bin/emacs -Q

Then I evaluate:
(setq reftex-default-bibliography
      (quote
       ("/home/scot/lin/01_Thesis.bib")))

Then I do (in the scratch buffer, for example):

M-x reftex-citation RET try RET

(which gives me a list of items matching 'try'.  But I don't have the
entry I want in my list, so I do:)

TAB mykey2000 RET

(Continue reading)

Ralf Angeli | 14 Sep 2010 20:15

Re: TAB key does not let me insert a non-existing label

* Scot Becker (2010-09-14) writes:

> Thanks for the reply.  I tried it now on both Emacs 23 and 24, with
> both my full setup and with emacs -Q, with identical results.  When
> you tried it, did you test it by typing a citation key that is not in
> your database?

Oohh, sorry I failed to get this piece of information from your original
message.  So I tried it with an existing entry.  My bad.

> It works fine if I only use keys in my database, but
> not if I type one that isn't there.

Okay, I can reproduce this now.  The flashing in the echo area you see
is actually an error which is thrown deliberately.  Carsten added the
piece of code which does this in 2005 to reftex-cite.el.  I'm not sure
why because after that statement there has still been some code which
deals with non-existent keys.  It just needed a bit of tweaking to work
again.  So I've now reinstated the functionality as advertised in the
manual and hope I did not break too much in course of that.  At least
for the cases I've tested it with, it worked.

>> A common workaround is to copy the text generated by `reftex-report-bug'
>> into a message to be sent through a configured mail client.
>
> Somehow an appropriately broken mail setup throws up an error even
> before any text is generated by `reftex-report-bug'.  I can remove the
> setup if it would help us debug, but the above recipe is with emacs
> -Q, so I guess it's not needed.

(Continue reading)

Scot Becker | 14 Sep 2010 22:45
Picon

Re: TAB key does not let me insert a non-existing label

Ralf,

That does it.  Thanks.

>  Eventually I should update my installation to
> get the new bugs, too ...

Oh, yeah.  They're waaay better than the old bugs.

Keep yourself well,

Scot

Liu Chang | 17 Sep 2010 16:22
Picon

2010-09-17; AUCTeX cannot compile ConTeXt file

When I am using C-c C-c context command to compile a context file, auctex shows output like this

------------------------------------------------------------------------
Running `ConTeXt' on `123' with ``texexec --once --texutil --engine=ConTeXt-engine --interface=en --nonstop 123.tex''
TeXExec | processing document '123.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | writing option file 123.top
TeXExec | using randomseed 10
TeXExec | tex engine: false
TeXExec | tex format: cont-en
TeXExec | runtime: 0.034210686

ConTeXt finished at Fri Sep 17 22:13:42
------------------------------------------------------------------------
And it says it produce a output file with 0 pages. I think the option '--engine=ConTeXt-engine' is the problem. How can I remove it from contex command?

I think it is a bug because I does not change any settings in ConTeXt area in AUCTeX.
------------------------------------------------------------------------



Emacs  : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-05-08 on pidsley.hoetzel.info
Package: 2010-09-12

current state:
==============
(setq
 AUCTeX-date "2010-09-12"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("/var/auctex" "/usr/share/emacs/site-lisp/auctex/style" "/home/elf/.emacs.d/auctex/auto" "/home/elf/.emacs.d/auctex/style" "auto"
          "style")
 TeX-auto-save t
 TeX-parse-self nil
 TeX-master t
 TeX-command-list '(("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX")
            ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
            ("Makeinfo" "makeinfo %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output")
            ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output")
            ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
            ("ConTeXt" "texexec --once --texutil %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
            ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion")
            ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")
            ("Print" "%p" TeX-run-command t t :help "Print the file")
            ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command)
            ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help "Generate PostScript file")
            ("Index" "makeindex %s" TeX-run-command nil t :help "Create index file")
            ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness")
            ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document")
            ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files")
            ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files")
            ("Other" "" TeX-run-command t t :help "Run an arbitrary command"))
 )
--engine=ConTeXt-engine

<div><p>When I am using C-c C-c context command to compile a context file, auctex shows output like this<br><br>------------------------------------------------------------------------<br>Running `ConTeXt' on `123' with ``texexec --once --texutil --engine=ConTeXt-engine --interface=en --nonstop 123.tex''<br>
TeXExec | processing document '123.tex'<br>TeXExec | no ctx file found<br>TeXExec | tex processing method: context<br>TeXExec | writing option file 123.top<br>TeXExec | using randomseed 10<br>TeXExec | tex engine: false<br>
TeXExec | tex format: cont-en<br>TeXExec | runtime: 0.034210686<br><br>ConTeXt finished at Fri Sep 17 22:13:42<br>------------------------------------------------------------------------<br>And it says it produce a output file with 0 pages. I think the option '--engine=ConTeXt-engine' is the problem. How can I remove it from contex command?<br><br>I think it is a bug because I does not change any settings in ConTeXt area in AUCTeX.<br>------------------------------------------------------------------------<br><br><br><br>Emacs&nbsp; : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)<br>
&nbsp;of 2010-05-08 on <a href="http://pidsley.hoetzel.info">pidsley.hoetzel.info</a><br>Package: 2010-09-12<br><br>current state:<br>==============<br>(setq<br>&nbsp;AUCTeX-date "2010-09-12"<br>&nbsp;window-system 'x<br>&nbsp;LaTeX-version "2e"<br>
&nbsp;TeX-style-path '("/var/auctex" "/usr/share/emacs/site-lisp/auctex/style" "/home/elf/.emacs.d/auctex/auto" "/home/elf/.emacs.d/auctex/style" "auto"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; "style")<br>
&nbsp;TeX-auto-save t<br>&nbsp;TeX-parse-self nil<br>&nbsp;TeX-master t<br>&nbsp;TeX-command-list '(("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX")<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Makeinfo" "makeinfo %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output")<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("ConTeXt" "texexec --once --texutil %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion")<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Print" "%p" TeX-run-command t t :help "Print the file")<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help "Generate PostScript file")<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Index" "makeindex %s" TeX-run-command nil t :help "Create index file")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness")<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files")<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ("Other" "" TeX-run-command t t :help "Run an arbitrary command"))<br>
&nbsp;)<br>--engine=ConTeXt-engine <br></p></div>
Liu Chang | 18 Sep 2010 09:56
Picon

Re: 2010-09-17; AUCTeX cannot compile ConTeXt file

I have found the problem in context.el

- - - - -
diff -aur auctex/context.el auctex.new/context.el
--- auctex/context.el    2010-06-19 08:47:11.000000000 +0800
+++ auctex.new/context.el    2010-09-18 15:43:50.000000000 +0800
<at> <at> -1486,7 +1486,7 <at> <at>
 (defun ConTeXt-expand-options ()
   "Expand options for texexec command."
   (concat
-   (let ((engine (nth 4 (assq TeX-engine (TeX-engine-alist)))))
+   (let ((engine (eval (nth 4 (assq TeX-engine (TeX-engine-alist))))))
      (when engine
        (format "--engine=%s " engine)))
    (unless (eq ConTeXt-current-interface "en")
- - - - -

It should evaluate the value of variable. Hope it can be fixed soon.

<div><p>I have found the problem in context.el<br><br>- - - - -<br>diff -aur auctex/context.el auctex.new/context.el<br>--- auctex/context.el&nbsp;&nbsp;&nbsp; 2010-06-19 08:47:11.000000000 +0800<br>+++ auctex.new/context.el&nbsp;&nbsp;&nbsp; 2010-09-18 15:43:50.000000000 +0800<br>
 <at>  <at>  -1486,7 +1486,7  <at>  <at> <br>&nbsp;(defun ConTeXt-expand-options ()<br>&nbsp;&nbsp; "Expand options for texexec command."<br>&nbsp;&nbsp; (concat<br>-&nbsp;&nbsp; (let ((engine (nth 4 (assq TeX-engine (TeX-engine-alist)))))<br>+&nbsp;&nbsp; (let ((engine (eval (nth 4 (assq TeX-engine (TeX-engine-alist))))))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (when engine<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (format "--engine=%s " engine)))<br>&nbsp;&nbsp;&nbsp; (unless (eq ConTeXt-current-interface "en")<br>- - - - -<br><br>It should evaluate the value of variable. Hope it can be fixed soon.<br><br></p></div>
Ralf Angeli | 18 Sep 2010 10:49

Re: [Sanjoy Mahajan <sanjoy <at> olin.edu>] Bug#597006: auctex: runs ConTeXt with incorrect --engine switch

* Davide G. M. Salvetti (2010-09-17) writes:

> the following bug has been reported with the Debian bug tracking
> system.  I believe it should be evaluated upstream.

It's fixed in CVS now.

--

-- 
Ralf

Ralf Angeli | 18 Sep 2010 10:51

Re: 2010-09-17; AUCTeX cannot compile ConTeXt file

* Liu Chang (2010-09-17) writes:

> When I am using C-c C-c context command to compile a context file, auctex
> shows output like this
>
> ------------------------------------------------------------------------
> Running `ConTeXt' on `123' with ``texexec --once --texutil
> --engine=ConTeXt-engine --interface=en --nonstop 123.tex''

Should be fixed in CVS, thanks for the report.

Besides, please don't send HTML messages to this mailing list.

--

-- 
Ralf

Ralf Angeli | 18 Sep 2010 10:52

Re: 2010-09-17; AUCTeX cannot compile ConTeXt file

* Liu Chang (2010-09-18) writes:

> I have found the problem in context.el
>
> - - - - -
> diff -aur auctex/context.el auctex.new/context.el
> --- auctex/context.el    2010-06-19 08:47:11.000000000 +0800
> +++ auctex.new/context.el    2010-09-18 15:43:50.000000000 +0800
>  <at>  <at>  -1486,7 +1486,7  <at>  <at> 
>  (defun ConTeXt-expand-options ()
>    "Expand options for texexec command."
>    (concat
> -   (let ((engine (nth 4 (assq TeX-engine (TeX-engine-alist)))))
> +   (let ((engine (eval (nth 4 (assq TeX-engine (TeX-engine-alist))))))
>       (when engine
>         (format "--engine=%s " engine)))
>     (unless (eq ConTeXt-current-interface "en")
> - - - - -
>
> It should evaluate the value of variable. Hope it can be fixed soon.

Right.  I probably should have looked at this message earlier.  The fix
I've checked in is essentially the same. (c:

--

-- 
Ralf


Gmane