GNU bug report logs - #38258
12.2.0; reftex-view-crossref on citation pre- and postnotes

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: auctex; Reported by: Gustavo Barros <gusbrs.2016@HIDDEN>; dated Mon, 18 Nov 2019 17:17:02 UTC; Maintainer for auctex is bug-auctex@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Nov 2019 17:16:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 18 12:16:32 2019
Received: from localhost ([127.0.0.1]:46158 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iWkdb-0005sT-TT
	for submit <at> debbugs.gnu.org; Mon, 18 Nov 2019 12:16:32 -0500
Received: from lists.gnu.org ([209.51.188.17]:46192)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gusbrs.2016@HIDDEN>) id 1iWkda-0005sM-KP
 for submit <at> debbugs.gnu.org; Mon, 18 Nov 2019 12:16:31 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:55618)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <gusbrs.2016@HIDDEN>) id 1iWkdY-0000Mt-LH
 for bug-auctex@HIDDEN; Mon, 18 Nov 2019 12:16:30 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <gusbrs.2016@HIDDEN>) id 1iWkdX-0000zM-0l
 for bug-auctex@HIDDEN; Mon, 18 Nov 2019 12:16:28 -0500
Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]:39188)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <gusbrs.2016@HIDDEN>)
 id 1iWkdN-0000qj-O0
 for bug-auctex@HIDDEN; Mon, 18 Nov 2019 12:16:21 -0500
Received: by mail-qk1-x743.google.com with SMTP id 15so15101982qkh.6
 for <bug-auctex@HIDDEN>; Mon, 18 Nov 2019 09:16:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:user-agent:from:to:subject:message-id:date:mime-version;
 bh=zB6dzEjyyAkUI1ziATuOzSnQ8MhQgS68MCXqrDE3ccQ=;
 b=NotSVVl1a6Ghg3BYxbUivXssDhH5KT/o/d/02XdhnDGtE5vjmnIfEpriAlskNonFH/
 5WJu18cmDhPlwlzNYrqVY06Pe5nuOl1Q3u605eMHiZVvkNpDz53fxCysWxcSsa22llwX
 Vl2msD2fEiRZ/y/r2X16M/Kgj7BwZ8hZrprntWUZniSSBFtPki8YjPFLcZg+oShcd+Ny
 D3DADK3NcrEbe3UMHpag9zIAd03ZuXUbieraQmQAqKmrPdDmVWZ4twsDgLtpRnrfLurT
 ojDh/4R4jXTyYPjy6u3aPh4NJvqvKZD8yhbhc8uJvRiPEqvUQ4oCoDRd/As4I9KjhJ0g
 /CFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:user-agent:from:to:subject:message-id
 :date:mime-version;
 bh=zB6dzEjyyAkUI1ziATuOzSnQ8MhQgS68MCXqrDE3ccQ=;
 b=Dq+CxhNcJLqh86B/FPKq5BmzPA3HhujnGELgag+2ZlGtPrQBMtxs72wOWN+KlP4D5x
 R8ZI/b1yEi80VAg2z79tI/S8stF5r7IKEXapf7eqEZzJjAZ/Q6T9PWXJ8GrnQSuXQmsA
 WE5ZV0D50Y2YbhKPlORqYFIwPw8Vvs5/QNt2qcwPnDFzCt49HmViB/5+I1fy128+7xOp
 QiDaYfVNRyvlEGxqSbVOym33vMK4w0dFA9ybSoj9ZhJhvOCGG7UDToCeHUFOVJmxuk0r
 T7J8MEcnaWFs1+601pi/JXLoPAW+COYvHHnfkfhGdyzK/79bBejkidmYJRhgZWfCKxoz
 XCQQ==
X-Gm-Message-State: APjAAAWJHXM6znlhwj4HAJp2RZExXmkWwbZtTpw727GZc5JyV3T0APbv
 /cAqAeoPcvC8i+f3odhdv8D3r+8m4fI=
X-Google-Smtp-Source: APXvYqwidUpTgUAO+WXRfk6QOnzb6pWKG6ypBzxqnDzIXZOV1+cXaShzfH2rngDnwI+x8NiRktW2+Q==
X-Received: by 2002:a05:620a:3dd:: with SMTP id
 r29mr26067073qkm.370.1574097371761; 
 Mon, 18 Nov 2019 09:16:11 -0800 (PST)
Received: from gusbrs-laptop ([179.178.160.106])
 by smtp.gmail.com with ESMTPSA id u67sm8391609qkf.115.2019.11.18.09.16.10
 for <bug-auctex@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 18 Nov 2019 09:16:10 -0800 (PST)
User-agent: mu4e 1.2.0; emacs 26.3
From: Gustavo Barros <gusbrs.2016@HIDDEN>
To: bug-auctex@HIDDEN
Subject: 12.2.0; reftex-view-crossref on citation pre- and postnotes
Message-ID: <87v9rhumyp.fsf@HIDDEN>
Date: Mon, 18 Nov 2019 14:16:07 -0300
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::743
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

Hi all,

`reftex-view-crossref', when called from a prenote or postnote of a 
citation macro will assume it is a citation key and run 
`reftex-view-cr-cite' in whatever is around point, which of course won't 
be found in the bibfiles, and returns an error of "no such database 
entry", when it would be expected it to return error "Not on a crossref 
macro argument". As a result, when the point is left on a prenote or 
postnote of a citation macro, a spurious echo of "no such database 
entry" is generated.

Steps to reproduce:

Build Emacs from source (as of today, commit 
ed52618e707682e812002c98b99efe4baf43e1ca).
Start ~emacs -Q~.

Setup:

#+begin_src emacs-lisp
(add-to-list 'load-path "~/.emacs.d/elpa/auctex-12.2.0")
(load "auctex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq reftex-plug-into-AUCTeX t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
#+end_src

Place files `mwe.tex' and `mwe_bib.bib' (respectively below) on the same 
directory.

#+begin_export latex
\documentclass{article}

\usepackage{biblatex}

\addbibresource{mwe_bib.bib}

\begin{document}

\cite[45]{sigfridsson}

\end{document}
#+end_export

#+begin_example
@article{sigfridsson,
  author       = {Sigfridsson, Emma and Ryde, Ulf},
  title        = {Comparison of methods for deriving atomic charges from 
  the electrostatic potential and moments},
  journaltitle = {Journal of Computational Chemistry},
  date         = 1998,
  volume       = 19,
  number       = 4,
  pages        = {377-395},
  doi          = 
  {10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P},
}
#+end_example

Visit `mwe.tex' and place point in the entrykey `sigfridsson'.  Call 
`reftex-view-crossref' ("C-c &"), it will show the reference, as 
expected.

Now move point to somewhere on the prenote ("[45]"), and call 
`reftex-view-crossref' again. It returns "cite: no such database entry: 
\cite[45]", instead of the expected "reftex-view-crossref: Not on a 
crossref macro argument". Also, moving point out of the prenote and back 
to it again, and leaving it there for a while as usual, will echo "cite: 
no such database entry: \cite[45]", whereas no echo was to be expected.

Best regards,
Gustavo Barros.



Emacs  : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.22.30)
 of 2019-11-18
Package: 12.2.0

current state:
==============
(setq
 AUCTeX-date "2019-10-31"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex" 
 "/home/gustavo/.emacs.d/elpa/auctex-12.2.0/style"
		  "/home/gustavo/.emacs.d/auctex/auto" 
		  "/home/gustavo/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) 
 %`%(extraopts) %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 %(extraopts) %t" 
		    TeX-run-compile nil (texinfo-mode) :help
		     "Run Makeinfo with Info output")
		    ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" 
		    TeX-run-compile nil (texinfo-mode) :help
		     "Run Makeinfo with HTML output")
		    ("AmSTeX" "amstex %(PDFout) %`%(extraopts) 
		    %S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode)
		     :help "Run AMSTeX")
		    ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) 
		    %(execopts)%t" TeX-run-TeX nil
		     (context-mode) :help "Run ConTeXt once")
		    ("ConTeXt Full" "%(cntxcom) %(extraopts) 
		    %(execopts)%t" TeX-run-TeX nil (context-mode) :help
		     "Run ConTeXt until completion")
		    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode context-mode) :help
		     "Run BibTeX")
		    ("Biber" "biber %s" TeX-run-Biber nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode) :help "Run Biber")
		    ("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-dvips t
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode) :help
		     "Generate PostScript file")
		    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode) :help
		     "Convert DVI file to PostScript")
		    ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode) :help
		     "Convert DVI file to PDF with dvipdfmx")
		    ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode) :help
		     "Convert PostScript file to PDF")
		    ("Glossaries" "makeglossaries %s" TeX-run-command 
		    nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode) :help
		     "Run makeglossaries to create glossary\n     file")
		    ("Index" "makeindex %s" TeX-run-index nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode) :help
		     "Run makeindex to create index file")
		    ("upMendex" "upmendex %s" TeX-run-index t
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode) :help
		     "Run upmendex to create index file")
		    ("Xindy" "texindy %s" TeX-run-command nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode 
		     texinfo-mode) :help
		     "Run xindy to create index file")
		    ("Check" "lacheck %s" TeX-run-compile nil 
		    (latex-mode) :help
		     "Check LaTeX file for correctness")
		    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil 
		    (latex-mode) :help
		     "Check LaTeX file for common mistakes")
		    ("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"))
 )




Acknowledgement sent to Gustavo Barros <gusbrs.2016@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#38258; Package auctex. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.