GNU logs - #38258, boring messages


Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes
Resent-From: Gustavo Barros <gusbrs.2016@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Mon, 18 Nov 2019 17:17:02 +0000
Resent-Message-ID: <handler.38258.B.157409739222601 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 38258
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: 38258 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-auctex@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.157409739222601
          (code B ref -1); Mon, 18 Nov 2019 17:17:02 +0000
Received: (at submit) by debbugs.gnu.org; 18 Nov 2019 17:16:32 +0000
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>
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-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"))
 )




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Gustavo Barros <gusbrs.2016@HIDDEN>
Subject: bug#38258: Acknowledgement (12.2.0; reftex-view-crossref on
 citation pre- and postnotes)
Message-ID: <handler.38258.B.157409739222601.ack <at> debbugs.gnu.org>
References: <87v9rhumyp.fsf@HIDDEN>
X-Gnu-PR-Message: ack 38258
X-Gnu-PR-Package: auctex
Reply-To: 38258 <at> debbugs.gnu.org
Date: Mon, 18 Nov 2019 17:17:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-auctex@HIDDEN

If you wish to submit further information on this problem, please
send it to 38258 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
38258: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D38258
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes
Resent-From: Arash Esbati <arash@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Tue, 25 Aug 2020 18:13:02 +0000
Resent-Message-ID: <handler.38258.B38258.159837914113908 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 38258
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: Gustavo Barros <gusbrs.2016@HIDDEN>
Cc: 38258 <at> debbugs.gnu.org
Received: via spool by 38258-submit <at> debbugs.gnu.org id=B38258.159837914113908
          (code B ref 38258); Tue, 25 Aug 2020 18:13:02 +0000
Received: (at 38258) by debbugs.gnu.org; 25 Aug 2020 18:12:21 +0000
Received: from localhost ([127.0.0.1]:36022 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kAdQi-0003cG-Pl
	for submit <at> debbugs.gnu.org; Tue, 25 Aug 2020 14:12:20 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40268)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1kAdQi-0003c1-0t
 for 38258 <at> debbugs.gnu.org; Tue, 25 Aug 2020 14:12:20 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43290)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <arash@HIDDEN>)
 id 1kAdQc-0005U4-Qg; Tue, 25 Aug 2020 14:12:14 -0400
Received: from pd9fb7655.dip0.t-ipconnect.de ([217.251.118.85]:49272
 helo=MUTANT)
 by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
 (Exim 4.82) (envelope-from <arash@HIDDEN>)
 id 1kAdQc-0002fP-Dc; Tue, 25 Aug 2020 14:12:14 -0400
From: Arash Esbati <arash@HIDDEN>
References: <87v9rhumyp.fsf@HIDDEN>
Date: Tue, 25 Aug 2020 20:11:42 +0200
In-Reply-To: <87v9rhumyp.fsf@HIDDEN> (Gustavo Barros's message of "Mon, 18
 Nov 2019 14:16:07 -0300")
Message-ID: <86lfi2lhnl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

Hi Gustavo,

Gustavo Barros <gusbrs.2016@HIDDEN> writes:

> `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.

first of all, sorry for the very late response.  It seems to me this is
more a documented feature[1]:

Command: reftex-view-crossref

    View cross reference of macro at point. Point must be on the key
    argument. ...

Note the word `must'.  Having point on pre- or postnote is expected not
to work.

Best, Arash

Footnotes:
[1]  https://www.gnu.org/software/auctex/manual/reftex.html#IDX240





Message sent to bug-auctex@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes
Resent-From: Gustavo Barros <gusbrs.2016@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-auctex@HIDDEN
Resent-Date: Tue, 25 Aug 2020 18:37:02 +0000
Resent-Message-ID: <handler.38258.B38258.159838059716373 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 38258
X-GNU-PR-Package: auctex
X-GNU-PR-Keywords: 
To: Arash Esbati <arash@HIDDEN>
Cc: 38258 <at> debbugs.gnu.org
Received: via spool by 38258-submit <at> debbugs.gnu.org id=B38258.159838059716373
          (code B ref 38258); Tue, 25 Aug 2020 18:37:02 +0000
Received: (at 38258) by debbugs.gnu.org; 25 Aug 2020 18:36:37 +0000
Received: from localhost ([127.0.0.1]:36085 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kAdoD-0004G0-KM
	for submit <at> debbugs.gnu.org; Tue, 25 Aug 2020 14:36:37 -0400
Received: from mail-pf1-f169.google.com ([209.85.210.169]:37460)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gusbrs.2016@HIDDEN>) id 1kAdoA-0004Fm-SX
 for 38258 <at> debbugs.gnu.org; Tue, 25 Aug 2020 14:36:36 -0400
Received: by mail-pf1-f169.google.com with SMTP id x25so8015528pff.4
 for <38258 <at> debbugs.gnu.org>; Tue, 25 Aug 2020 11:36:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:references:user-agent:from:to:cc:subject:in-reply-to
 :message-id:date:mime-version;
 bh=qVNXoE5ZSihSWGmMKDQ3arTdoaZkKBbL/w9JWSV4Ldc=;
 b=U2MeN5+ihdQoieVb51iR+SelnWmwJA47bHPpGAZa+fAFA0ZaJutiAZzhMXQ3Q6j3Tz
 2fXAylYgojJOSDvd69p67XSBlkf22D+4XArfZW1LawgD4gIEK9vb6PnHOJxbBpUT60ci
 Ual8k/KKG0UetVwusvtCURZXpfMF+y9UazQiQ6xlrHAIpuJzyAbxcAwTPe+3IKLVqki0
 0xirArWDRKZ27MpXhLRSbsrHMlK3wrFHHPZDpbte+gVfBb1w0V/ARDV8l0Y4f6YZDodV
 gG9XtEJvW5sEqMFb2vL1oSfi4udn9aIZZ3OTK9u9nfiEddAfWDQb3FXlIqEBbUUyDaf9
 UYcg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject
 :in-reply-to:message-id:date:mime-version;
 bh=qVNXoE5ZSihSWGmMKDQ3arTdoaZkKBbL/w9JWSV4Ldc=;
 b=ZNUhjArFyUEKHn0uxXikdh3vQIcXndaCiWTuCOvZurZKBybV15pRWHyN7ox6tt7JWU
 mL0HN/Lp2aCTUPlKtsAMcwgaDtMiDbf3nQ+PsEGBR1ie+fSA4TTCfNCUCJPwfuvcQiFq
 m6b7IKJYkw+mykeYgmmcddfMkHaKVQJu9dMUO2oNXQq5t1Sp9fQ+qXDbCSA7pk+iXl2y
 QqP75SgxoOd7ruBtF1i9vobkJzjks7Wi4SyxDWLSaVzQL9MFZEXzNitXNCX2/4R3UJUq
 zMn23vYpFADMXVLexH4m3U3dl5BDeKEoaXHPOfhP4D66o3kNe0U1CTs26BE0dkpdn0io
 st5A==
X-Gm-Message-State: AOAM530fcD6BPHL4wtFYuXUBkHYwfyMKVSPGdjtjT+CRybbh/cs4ZVa6
 1UpieiPayg6QHxZD01JPXvuRI2A8NK2CAw==
X-Google-Smtp-Source: ABdhPJzChxyRZM4iHkHXgvojKVsgh324hEBaIQC6kbHWVndwDuF2Rof49XmXr2wn16gUra+a9odzqw==
X-Received: by 2002:a62:754f:: with SMTP id q76mr2034273pfc.284.1598380588686; 
 Tue, 25 Aug 2020 11:36:28 -0700 (PDT)
Received: from gusbrs-laptop ([89.187.187.162])
 by smtp.gmail.com with ESMTPSA id my8sm3148104pjb.11.2020.08.25.11.36.26
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 25 Aug 2020 11:36:27 -0700 (PDT)
References: <87v9rhumyp.fsf@HIDDEN> <86lfi2lhnl.fsf@HIDDEN>
User-agent: mu4e 1.4.13; emacs 27.1
From: Gustavo Barros <gusbrs.2016@HIDDEN>
In-reply-to: <86lfi2lhnl.fsf@HIDDEN>
Message-ID: <877dtmtvx4.fsf@HIDDEN>
Date: Tue, 25 Aug 2020 15:36:23 -0300
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
X-Spam-Score: 0.3 (/)
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: -0.7 (/)

Hi Arash,

thank you for your answer.

On Tue, 25 Aug 2020 at 15:11, Arash Esbati <arash@HIDDEN> wrote:

> Hi Gustavo,
>
> Gustavo Barros <gusbrs.2016@HIDDEN> writes:
>
>> `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.
>
> first of all, sorry for the very late response.  It seems to me this 
> is
> more a documented feature[1]:
>
> Command: reftex-view-crossref
>
>     View cross reference of macro at point. Point must be on the key
>     argument. ...
>
> Note the word `must'.  Having point on pre- or postnote is expected 
> not
> to work.
>
> Best, Arash
>
> Footnotes:
> [1]  https://www.gnu.org/software/auctex/manual/reftex.html#IDX240

But my point is not that it should work outside of the key argument, 
which is, as you noted, documented behavior.  The point is that the 
command will do a bibfile search when it is not on the key argument, and 
on top of that, gives the user the wrong error message of "no such 
database argument", when it should be giving "Not on a crossref macro 
argument".  Besides, one does not even need to call it to get the 
spurious echo of "no such database entry", by just leaving point on a 
prenote/postnote.

(Disclaimer: I haven't tested the current state of things, I'm relying 
on my old report.)

Best,
Gustavo.





Last modified: Tue, 25 Aug 2020 18:45:02 UTC

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