From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 12:16:32 2019 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 ) id 1iWkdb-0005sT-TT for submit@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 ) id 1iWkda-0005sM-KP for submit@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 ) id 1iWkdY-0000Mt-LH for bug-auctex@gnu.org; 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 ) id 1iWkdX-0000zM-0l for bug-auctex@gnu.org; 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 ) id 1iWkdN-0000qj-O0 for bug-auctex@gnu.org; Mon, 18 Nov 2019 12:16:21 -0500 Received: by mail-qk1-x743.google.com with SMTP id 15so15101982qkh.6 for ; 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 (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 To: bug-auctex@gnu.org Subject: 12.2.0; reftex-view-crossref on citation pre- and postnotes Message-ID: <87v9rhumyp.fsf@gmail.com> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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")) ) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 14:12:20 2020 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 ) id 1kAdQi-0003cG-Pl for submit@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 ) id 1kAdQi-0003c1-0t for 38258@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 ) 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 ) id 1kAdQc-0002fP-Dc; Tue, 25 Aug 2020 14:12:14 -0400 From: Arash Esbati To: Gustavo Barros Subject: Re: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes References: <87v9rhumyp.fsf@gmail.com> Date: Tue, 25 Aug 2020 20:11:42 +0200 In-Reply-To: <87v9rhumyp.fsf@gmail.com> (Gustavo Barros's message of "Mon, 18 Nov 2019 14:16:07 -0300") Message-ID: <86lfi2lhnl.fsf@gnu.org> 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-Debbugs-Envelope-To: 38258 Cc: 38258@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Gustavo, Gustavo Barros 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 14:36:37 2020 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 ) id 1kAdoD-0004G0-KM for submit@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 ) id 1kAdoA-0004Fm-SX for 38258@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@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@gmail.com> <86lfi2lhnl.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Gustavo Barros To: Arash Esbati Subject: Re: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes In-reply-to: <86lfi2lhnl.fsf@gnu.org> Message-ID: <877dtmtvx4.fsf@gmail.com> 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-Debbugs-Envelope-To: 38258 Cc: 38258@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi Arash, thank you for your answer. On Tue, 25 Aug 2020 at 15:11, Arash Esbati wrote: > Hi Gustavo, > > Gustavo Barros 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 16:12:22 2020 Received: (at 38258) by debbugs.gnu.org; 25 Aug 2020 20:12:23 +0000 Received: from localhost ([127.0.0.1]:36206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAfIs-0002YI-N8 for submit@debbugs.gnu.org; Tue, 25 Aug 2020 16:12:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAfIr-0002Y6-Du for 38258@debbugs.gnu.org; Tue, 25 Aug 2020 16:12:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45665) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAfIm-0004QV-5A; Tue, 25 Aug 2020 16:12:16 -0400 Received: from pd9fb7655.dip0.t-ipconnect.de ([217.251.118.85]:49494 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kAfIl-00064b-7D; Tue, 25 Aug 2020 16:12:15 -0400 From: Arash Esbati To: Gustavo Barros Subject: Re: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes References: <87v9rhumyp.fsf@gmail.com> <86lfi2lhnl.fsf@gnu.org> <877dtmtvx4.fsf@gmail.com> Date: Tue, 25 Aug 2020 22:11:50 +0200 In-Reply-To: <877dtmtvx4.fsf@gmail.com> (Gustavo Barros's message of "Tue, 25 Aug 2020 15:36:23 -0300") Message-ID: <86h7sqlc3d.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38258 Cc: 38258@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gustavo Barros writes: > But my point is not that it should work outside of the key argument, > which is, as you noted, documented behavior. Ok, sorry for getting this wrong. > 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". If I take your example and put point on the optional argument [45] and hit `C-c &', RefTeX says: No BibTeX entry with citation key \cite[45] which makes sense. > 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. True. You can disable this by setting the variable `reftex-auto-view-crossref': ,----[ C-h v reftex-auto-view-crossref RET ] | reftex-auto-view-crossref is a variable defined in =E2=80=98reftex-vars.e= l=E2=80=99. | Its value is t |=20 | You can customize this variable. | Probably introduced at or before Emacs version 20.4. |=20 | Documentation: | Non-nil means, initially turn automatic viewing of crossref info on. | Automatic viewing of crossref info normally uses the echo area. | Whenever point is idle for more than =E2=80=98reftex-idle-time=E2=80=99 s= econds on the | argument of a \ref or \cite macro, and no other message is being | displayed, the echo area will display information about that cross | reference. You can also set the variable to the symbol =E2=80=98window= =E2=80=99. In | this case a small temporary window is used for the display. | This feature can be turned on and off from the menu | (Ref->Options). `---- > (Disclaimer: I haven't tested the current state of things, I'm relying > on my old report.) It is safe to assume that nothing groundbreaking happened to RefTeX during the last 10 months or so :-) Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 16:43:00 2020 Received: (at 38258) by debbugs.gnu.org; 25 Aug 2020 20:43:01 +0000 Received: from localhost ([127.0.0.1]:36231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAfmW-0003Gy-LO for submit@debbugs.gnu.org; Tue, 25 Aug 2020 16:43:00 -0400 Received: from mail-pf1-f182.google.com ([209.85.210.182]:40948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAfmU-0003Gg-0E for 38258@debbugs.gnu.org; Tue, 25 Aug 2020 16:42:58 -0400 Received: by mail-pf1-f182.google.com with SMTP id k18so8255316pfp.7 for <38258@debbugs.gnu.org>; Tue, 25 Aug 2020 13:42:57 -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=J4Rf+zH10iff3Iq2iOJXvNCjDlUyu5YEceT0CYeDShs=; b=NlE4N2/1ge47Ha4Koj+sOIoBynJsDXrRvMNuxYj/Iuo8yrmOYsNxn+2MYaMNFvV4Hw eYRog6ws36+794pxqZWICeT0G5UOOmHbTRi91+i9t3l6FBgLlbf81Jqu02FNF7jO1kVu E1mQbzO6vdP3AH2aQ18BD0OGBv/giGzN1oFQHh99VcJCmIUvZzPrOPllFoRsLVKjKoxT gvK1hgIrF3KTJ+BflKdbwj5svsHTZkGAOLyh4OowQrbwbBScOIyV4XQm1KwTUnSEFmmQ CVH4WB3AKyCc4NiI/UB203Y0myZRdqedAUZkDXEgUk0Ao8PU5uM9ytbQRIhcF2NNzTeU 9fow== 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=J4Rf+zH10iff3Iq2iOJXvNCjDlUyu5YEceT0CYeDShs=; b=MjASAwtgSX7Z8eYpavOH3QvXT+HJCrGA8Ru/o7GKp5XTjO+mZZfVB5JcD/oMyssok1 hFiKggjOmdD9JnccJi+GvozAASWb/FfsIcEKQwBqsMdxClZgjBsnmidBx449KU/Asheu yPTyNh/kg9L+DVWIr5eNffxz80IBkCi39wy2bvAAqS5Gt8ZNff/MK55V0u4cgKHNctti eURgPkO+2txh44cZoJnLRksZJpDX0BTEuELnF9Uf91H6AWhSxD930Y+BPF0LckaSMkJ9 UNcIPUqL897H81UmrhUpUNg5JB3c31uAKTx7DJLdbTwyHe5jelq6hUxy7o9s2akNTKBU flhw== X-Gm-Message-State: AOAM531Mv5K2DTPgxffgWGSXZuXnvokyAzwPqaKCDPuIOwwyCl5NGbYl gYf8bNYrsGwETshmTcAK27mZeQphnLVWlA== X-Google-Smtp-Source: ABdhPJxAveDcgiKLqsFrPz0q0wA9AQeiec+1dz45zmMTIeqB2+4RSGo3H7A7j9V2/sZdkdlMkYV2iQ== X-Received: by 2002:a63:505b:: with SMTP id q27mr7642829pgl.91.1598388171598; Tue, 25 Aug 2020 13:42:51 -0700 (PDT) Received: from gusbrs-laptop ([89.187.187.162]) by smtp.gmail.com with ESMTPSA id h1sm790pgs.77.2020.08.25.13.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 13:42:50 -0700 (PDT) References: <87v9rhumyp.fsf@gmail.com> <86lfi2lhnl.fsf@gnu.org> <877dtmtvx4.fsf@gmail.com> <86h7sqlc3d.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Gustavo Barros To: Arash Esbati Subject: Re: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes In-reply-to: <86h7sqlc3d.fsf@gnu.org> Message-ID: <874koqtq2h.fsf@gmail.com> Date: Tue, 25 Aug 2020 17:42:46 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 38258 Cc: 38258@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi Arash, On Tue, 25 Aug 2020 at 17:11, Arash Esbati wrote: >> 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". > > If I take your example and put point on the optional argument [45] and > hit `C-c &', RefTeX says: > > No BibTeX entry with citation key \cite[45] > > which makes sense. > >> 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. > > True. You can disable this by setting the variable > `reftex-auto-view-crossref': > I know, Arash... I like `reftex-auto-view-crossref' and enable it, but the problem is not with the intended behavior, but with the not useful and annoying echo which comes when point is idle *outside* a key argument, if it happens to be in a pre/postnote. And why should `reftex-view-crossref' behave differently when point is between "4" and "5", in the MWE, and when it is in the following line, outside the citation macro altogether? Why run `reftex-view-cr-cite' when we already know we are not in a citation key, but in a postnote? To be very explicit, the command in question is `reftex-view-crossref`, and it is also called by `reftex-view-crossref-when-idle' which is responsible for the echo message. `reftex-view-crossref` checks if point is within a macro with `(car (reftex-what-macro-safe 1))', and later checks if it is a citation macro with `(string-match "\\`\\\\cite\\|cite\\([s*]\\|texts?\\)?\\'\\|bibentry" macro)'. My suggestion is just to add a further check to see if we are indeed in a mandatory argument (a citation key). Best, Gustavo. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 18:02:15 2020 Received: (at 38258) by debbugs.gnu.org; 25 Aug 2020 22:02:15 +0000 Received: from localhost ([127.0.0.1]:36299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAh1D-0005Cl-Gh for submit@debbugs.gnu.org; Tue, 25 Aug 2020 18:02:15 -0400 Received: from mail-pf1-f176.google.com ([209.85.210.176]:42950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAh1C-0005Ca-4v for 38258@debbugs.gnu.org; Tue, 25 Aug 2020 18:02:14 -0400 Received: by mail-pf1-f176.google.com with SMTP id 17so8398944pfw.9 for <38258@debbugs.gnu.org>; Tue, 25 Aug 2020 15:02:14 -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=OoLadP1IhQGcWHiXfuPq9JrWRjosJyCwe0KXt23GryA=; b=ToHiQd3XDNj6Dhhot+EPJPNWLHe94XDxudQe3RH8VcDVed/Tmftj15jTAyqtK35XHo sG9nYTltZpsQYp+YV6/hjaIvhgCKDhf3DocINKBsD5XCI7UASz8BPjMBSnNUZExn0bx+ MWnIpP/Wl24BTcSdFm9OM9dfZXkcK/59xbjkOHfqNOW0jiWcESnwpG7l6QqKo36ZmURT JbLeE9VragtFY2jo0wwPDUyfJ+lxC2uxXdqVblBkh2a3etw+k4ekJkxF6EtCC6pPfep8 OuC1xDg/U7tjh1AyA5sN+MpBagYNQQfF7Wn0nXO3yO27LUfKHHzZK14s9psQI2+CWaU4 ougA== 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=OoLadP1IhQGcWHiXfuPq9JrWRjosJyCwe0KXt23GryA=; b=ce4UytmntHh/dEZLkEhhUELNfBlb910bDISg+HK4Bk8NI7Vlp7v2ItMRwK4AhLQES9 NQ8GNQRpIoQGzDhHm5yay89jelUFxD5wa2W/fi/Jvt+U3aqI9kP0egC0Y+g2J6zgVmQG /DGycCgwqhHrsVoyd0ce/l7A7XxHdeEMSTo92BnXuNYYUcOmqTwQt4+4+qf5OdKQEIIG MohIvSLxXNIubI2zmBH8LhEwTi4h1TmGyKMKzlXRKW9gXQKZ5XAS9cJOXqL85glps9sO QDYX4o4o8ImQB4gZAIinrGZJCXvEHTntYiIxuEdG1GnDXeDkaGCZHyTM2KHrTPsTNAX5 Qg3w== X-Gm-Message-State: AOAM5330onR+rxXnW2YRWvbwLezn5/Wcj7ly2ahX7wpdNXjOxjv1NzZi bGY3nq3A8GZsR8Hb22I2XWQvdldSfGLrrw== X-Google-Smtp-Source: ABdhPJx3My8fD06PnWG6L99WdM9Wugf1HMjiGMsMouxAry/cM7zS/1W3Uf8AtJLU4McTh0bl3L/Uzg== X-Received: by 2002:a63:5721:: with SMTP id l33mr8046668pgb.100.1598392927738; Tue, 25 Aug 2020 15:02:07 -0700 (PDT) Received: from gusbrs-laptop ([89.187.187.162]) by smtp.gmail.com with ESMTPSA id w16sm244386pfq.13.2020.08.25.15.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 15:02:07 -0700 (PDT) References: <87v9rhumyp.fsf@gmail.com> <86lfi2lhnl.fsf@gnu.org> <877dtmtvx4.fsf@gmail.com> <86h7sqlc3d.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Gustavo Barros To: Arash Esbati Subject: Re: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes In-reply-to: <86h7sqlc3d.fsf@gnu.org> Message-ID: <871rjutmed.fsf@gmail.com> Date: Tue, 25 Aug 2020 19:02:02 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 38258 Cc: 38258@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) On Tue, 25 Aug 2020 at 17:11, Arash Esbati wrote: > >> (Disclaimer: I haven't tested the current state of things, I'm >> relying >> on my old report.) > > It is safe to assume that nothing groundbreaking happened to RefTeX > during the last 10 months or so :-) > > Best, Arash Ah, on a side note. That is perhaps true from your perspective. From my view, I've just put my hands with the recent release on some long waited goodies, especially support for biblatex multicite commands: https://lists.gnu.org/archive/html/bug-auctex/2018-04/msg00066.html https://tex.stackexchange.com/questions/451019/reftex-and-enumitem/455823?noredirect=1#comment1259017_455823 (That means: Thank you very much once again!) Best, Gustavo. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 10 05:21:23 2024 Received: (at 38258) by debbugs.gnu.org; 10 Apr 2024 09:21:23 +0000 Received: from localhost ([127.0.0.1]:52160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruU8w-0006EP-4g for submit@debbugs.gnu.org; Wed, 10 Apr 2024 05:21:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruU8t-0006D2-Fs for 38258@debbugs.gnu.org; Wed, 10 Apr 2024 05:21:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruU8f-0006ut-J5; Wed, 10 Apr 2024 05:21:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=HoEKQ0x5aejTX/yanhIPrm2eOQd7tJk2k8t5hvpNbk4=; b=jLvGaBN2XnnSJGQUrMSZ uFbzJTVMhXhvWdqWF6gGpDFb5fN9yYd/wMUspQYRnBQbsD24SlhYnjlmdPvt7IMCBPUB/dCHaRTUX DENnKj9pG52f87fb7ZQbSK42ztCjc0X0XklZSv8FsWhM+2UmXMntON8RUjBIfSZNN4uAcZ4u11j70 SjzjEAqj3oq6mpYh8Eu5rk+KLB4PtJubtPqiSmsOEUIvt/DTQGrB0Q4KBE6FrrUBK79vLPn52w0+p NvTgntyC8JtuyC7csxKvCKKVfiwurz7F73CG93kZm5Nc6tUsfs9EDvZXv8LoxoVEsQCVfMaE587Yy IPk8MMJ8y0+2tw==; From: Arash Esbati To: Gustavo Barros Subject: Re: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes In-Reply-To: <874koqtq2h.fsf@gmail.com> (Gustavo Barros's message of "Tue, 25 Aug 2020 17:42:46 -0300") References: <87v9rhumyp.fsf@gmail.com> <86lfi2lhnl.fsf@gnu.org> <877dtmtvx4.fsf@gmail.com> <86h7sqlc3d.fsf@gnu.org> <874koqtq2h.fsf@gmail.com> Date: Wed, 10 Apr 2024 11:21:02 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38258 Cc: 38258@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Gustavo, Gustavo Barros writes: > To be very explicit, the command in question is > `reftex-view-crossref`, and it is also called by > `reftex-view-crossref-when-idle' which is responsible for the echo > message. `reftex-view-crossref` checks if point is within a macro > with `(car (reftex-what-macro-safe 1))', and later checks if it is a > citation macro with `(string-match > "\\`\\\\cite\\|cite\\([s*]\\|texts?\\)?\\'\\|bibentry" macro)'. My > suggestion is just to add a further check to see if we are indeed in a > mandatory argument (a citation key). Thanks for the explicit pointer. I can think of something like this: --8<---------------cut here---------------start------------->8--- (defun reftex-view-crossref-when-idle () ;; Display info about crossref at point in echo area or a window. ;; This function was designed to work with an idle timer. ;; We try to get out of here as quickly as possible if the call is useless. (and reftex-mode ;; Make sure message area is free if we need it. (or (eq reftex-auto-view-crossref 'window) (not (current-message))) ;; Make sure we are not already displaying this one (not (memq last-command '(reftex-view-crossref reftex-mouse-view-crossref))) ;; Quick precheck if this might be a relevant spot ;; `reftex-view-crossref' will do a more thorough check. (save-excursion (search-backward "\\" nil t) (looking-at "\\\\[a-zA-Z]*\\(cite\\|ref\\|bibentry\\)")) ;; Also check if point is inside a mandatory argument where the ;; cite/ref key usually resides: (bug#38258) (save-excursion (condition-case nil (let ((forward-sexp-function nil)) (up-list -1) (= (following-char) ?\{)) (error nil))) (condition-case nil (let ((current-prefix-arg nil)) (cond ((eq reftex-auto-view-crossref t) (reftex-view-crossref -1 'echo 'quiet)) ((eq reftex-auto-view-crossref 'window) (reftex-view-crossref -1 'tmp-window 'quiet)) (t nil))) (error nil)))) --8<---------------cut here---------------end--------------->8--- Do you want to give it a try and see if it works as expected? I think you see the addition. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 10 15:47:48 2024 Received: (at 38258) by debbugs.gnu.org; 10 Apr 2024 19:47:48 +0000 Received: from localhost ([127.0.0.1]:54412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rudv8-0003MX-RT for submit@debbugs.gnu.org; Wed, 10 Apr 2024 15:47:48 -0400 Received: from mail-yw1-x112f.google.com ([2607:f8b0:4864:20::112f]:61927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rudv6-0003LD-Pd for 38258@debbugs.gnu.org; Wed, 10 Apr 2024 15:47:45 -0400 Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-6164d7a02d2so77310087b3.3 for <38258@debbugs.gnu.org>; Wed, 10 Apr 2024 12:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712778450; x=1713383250; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AmsgtlhVzkUj+pRll9kNlR5/FHUY9dADdCGwBcgDrxE=; b=JfRa4mReAYR4i4zIHPfdsBVbpIWSHHyrQ7SjF5fANKZdCj8NnNYduLi2ORxI1adA9x Uj4t6/5PaOQ4VqcQPUjmzbdMIdD8KiY8XYNpQD1CDhIxnr8vkgddJ17cjDtrnq71hAjh g7dnfAR7yoMDoyMcmpO9TzSlHsQrUT9yg0n2hEvnc0RGzcrusVcxk5qvZLtB0jbul0T6 uNOle2FlUJQO+qvDPnE98mrlmRJCxTsjVp+Ua1nPgS7c2fpJgePfO/UD+Y3nGk8Ux6eb m5H45JYlq/Bdr+eF13k+6LnduK1xCkvvMTgK2qYf8af7d4A7eJetOpFanF67kHI+hg1M pUhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712778450; x=1713383250; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AmsgtlhVzkUj+pRll9kNlR5/FHUY9dADdCGwBcgDrxE=; b=cf0XGkUdzIuzpWsg5lhr+L4avNzp6oN1BQ5tXEmi89EM0EoYIOYtxRseFXidKBLAu1 NPUGUKAclUCXoERVbv/C/JuqAqr6dMO6oFEii1Dcv3HQEuP9y1XS4XogvXWLkmy+ecvT WViyHZdqnZlZkaWVsPFgXVvfre+A2ugkpPBtOKvIM6P25XMfgOo5YxMA9xwFzyx9H4cQ OstayGFaCAvX3Ui0NBEDJD9frRiCW63znMrZxFaPY8WPa7ktEE7CKSZWxyAPMhfBNkFa Q4+g6uE70x4uMY0VAyfMYR7QxTHnSZV1ej28L7wGTPd3oWMGJGT+fX6HZqK30kWzD/5i syQw== X-Gm-Message-State: AOJu0Ywr7xE09jWA0tw8Ynqybgp0fDNYWK+ZgG32Vm6L2pXxNGwA+6gJ XOePYTcC9A3MfIWr430/+/KV2rhrgHzLbmlk4VhIEmaf+3+6YX8ZNkFMeiSwnFxecyabnFlSrJn aVnPKJ/eI9WNQKgcLuTFYUm1aKJ4= X-Google-Smtp-Source: AGHT+IGaSCB2OtcXFjItkp8d6Tp3KKiQDhDy4dHV4Vj5FmZVcIBunJU9berA6I97y0r+F9apOd5a6kYXqT0Alnh7wug= X-Received: by 2002:a25:684d:0:b0:dcf:313d:d4ab with SMTP id d74-20020a25684d000000b00dcf313dd4abmr3767337ybc.54.1712778450178; Wed, 10 Apr 2024 12:47:30 -0700 (PDT) MIME-Version: 1.0 References: <87v9rhumyp.fsf@gmail.com> <86lfi2lhnl.fsf@gnu.org> <877dtmtvx4.fsf@gmail.com> <86h7sqlc3d.fsf@gnu.org> <874koqtq2h.fsf@gmail.com> In-Reply-To: From: gusbrs Date: Wed, 10 Apr 2024 16:47:19 -0300 Message-ID: Subject: Re: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes To: Arash Esbati Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38258 Cc: 38258@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Arash, On Wed, 10 Apr 2024 at 06:21, Arash Esbati wrote: > Thanks for the explicit pointer. I can think of something like this: > > [...] > > Do you want to give it a try and see if it works as expected? I think > you see the addition. You knew already I'd love this one. Both thumbs up! :-) I've tested it and, as far as I can tell, it works as intended: the bogus idle echo is gone and things otherwise work as expected. Looks good to me. I've noticed you went in a slightly different direction than what I had envisioned/suggested, and intervened in `reftex-view-crossref-when-idle' instead of in `reftex-view-crossref'. While it is true that I cannot think of a citation or cross-reference macro in which the bibkey/label is given as an optional argument, I also have to admit this is not a particularly strong argument (black swans...). Hence, even though I'd favor the wider change and think it would make sense, I grant yours is a good call. It is your job to be cautious, after all. ;-) Thank you! Best, gusbrs From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 10 17:31:37 2024 Received: (at 38258-done) by debbugs.gnu.org; 10 Apr 2024 21:31:37 +0000 Received: from localhost ([127.0.0.1]:54449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rufXc-0001oy-1Z for submit@debbugs.gnu.org; Wed, 10 Apr 2024 17:31:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rufXV-0001mu-5D for 38258-done@debbugs.gnu.org; Wed, 10 Apr 2024 17:31:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rufXG-0004xh-S3; Wed, 10 Apr 2024 17:31:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=BYe/9zWmy9ctbZyIWTzPo5HX7vUepA8wDFbCAsv6m/I=; b=A3s61XrUhfMza2ZorPAe lz3da3u4I8eLjyPl79LWixBLhdsqAVuMAEj6373sYaZP7MYXPbJkpQn/ajLI0ChkFiYFrqvGu0i0q n0535FEjT+8tz3nLnHkejjwHJBh7V6+RrNHRJtanO7TsvC7YsKZZgKkiUm5ktBo7JNJI7bWM00zmt nAeIzbaLWI/vMfgalltugpUt13o13P0oej8OXxFMMFoRW88cCHvB0SuyffOo/9Ymcee1EXJD35K9R I+A99W1IE66xc+JYbl1CTK/jaDkMaxeyr4JSc1S5GxWQ+OXJzwTjPF+xIiKiwn96DPomIygmphLeM xm02SUHNnulxdA==; From: Arash Esbati To: gusbrs Subject: Re: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes In-Reply-To: (gusbrs's message of "Wed, 10 Apr 2024 16:47:19 -0300") References: <87v9rhumyp.fsf@gmail.com> <86lfi2lhnl.fsf@gnu.org> <877dtmtvx4.fsf@gmail.com> <86h7sqlc3d.fsf@gnu.org> <874koqtq2h.fsf@gmail.com> Date: Wed, 10 Apr 2024 23:31:11 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38258-done Cc: 38258-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Gustavo, gusbrs writes: > I've tested it and, as far as I can tell, it works as intended: the > bogus idle echo is gone and things otherwise work as expected. Looks > good to me. Thanks for testing. I installed it on Emacs master (ca528f7c6). > I've noticed you went in a slightly different direction than what I > had envisioned/suggested, and intervened in > `reftex-view-crossref-when-idle' instead of in `reftex-view-crossref'. Well, at some point of time you have to start submitting patches if you want to get things done your way ;-) (Just kidding, I know about your constraints). > While it is true that I cannot think of a citation or cross-reference > macro in which the bibkey/label is given as an optional argument, I > also have to admit this is not a particularly strong argument (black > swans...). Hence, even though I'd favor the wider change and think it > would make sense, I grant yours is a good call. Thanks, the heuristic seemed good enough to me. > It is your job to be cautious, after all. ;-) More importantly, I have to keep my sanity ;-) > Thank you! You're welcome. I'm closing this report. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 10 17:46:23 2024 Received: (at 38258-done) by debbugs.gnu.org; 10 Apr 2024 21:46:23 +0000 Received: from localhost ([127.0.0.1]:54466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruflu-0003yL-AL for submit@debbugs.gnu.org; Wed, 10 Apr 2024 17:46:23 -0400 Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]:54739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruflq-0003xE-Jy for 38258-done@debbugs.gnu.org; Wed, 10 Apr 2024 17:46:20 -0400 Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-dc6d8bd612dso7411387276.1 for <38258-done@debbugs.gnu.org>; Wed, 10 Apr 2024 14:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712785564; x=1713390364; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dSIb+8A1vml7VeBHiHT8essfTXaQM20Pdtv2F5jRbGc=; b=RSWuKmmhfcC4KvtFw0brsWLxxPLJIbh8Oylt1sp17fYPFsW4e2rBwv4lN34SwGyZaz Ygo0kVlfjXNhpUdlNJZkT/KLoeRYUUlWRs44w0pDAqH40R1zDykmhpM213zjI0u0XJG/ NnAqgOewS/lsmF4qFZVXt0G0fcg0e31Br2ib8alcnWbenbJHSPt5qx2oLmYgGqDPfmGz pC1Z8ykr2sMtRvlWxriCiAtUjTnYHDIY7u4iEXD3kRoCPm8TcuMF9bzbioLxQpyUCSoz QNcxNih0l13+JhHnpB0HdStFkMYMbwZrAG7A6Z4NKhyMFDrI3WTlq0joRlBcsqs+gPDf OFIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712785564; x=1713390364; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dSIb+8A1vml7VeBHiHT8essfTXaQM20Pdtv2F5jRbGc=; b=r73mA/Uf4SxDQQln4em3Qcu5ZMSaoxrjH0kvN1q1YncM8NHJiqnBRpTGJADuZnLCby r3hAp9YpfVlSQd45ZVel9ZBqEW3FhExMaEEkPJkOfkajtQOCQzJuoxeQPL31WKjVZoqj 7nme6hyK6mUNLwW/47ylQ4kBrsFK7PcCPL2Veq6jMWJdPtQWTrWtkOnytpzvl+Cljoju IJUDnc7nGxdYos8hjbhB3Os3Zgi+rv6H7c8KFmnPksHx1juRK9XJuNQ/rAwqbyEqNbgN C8zBrQMnTAwg26QpxnNsNdO5r/VDAYU/exXO7hgyZs5WDawm8z54Os0gGsF9DWrVsjhT OyFw== X-Gm-Message-State: AOJu0Yz92COf1MiJsMpJ5bnH57mKcqiVVzg5/kUAgBU57k56BOI9kVjZ qTaLDr/PJkq6P/TEOjJnezrceGChofn4u9vinaSyUDAdNgEAOlc3AThgn+lJTplf6Q7Sz+h0tGP ey1mEhdwCUBQ1Af+qSxnp4zuNCXJx3Pz7 X-Google-Smtp-Source: AGHT+IEed3XBEjn8IcM/SmYzT1jug6Qa554rzu+LwOadrfhhslk3c9JKpYO2pFXiAKVpdU18uOQ2s8eF7GZ/71CqpnA= X-Received: by 2002:a05:6902:18cd:b0:dcc:ec02:38b0 with SMTP id ck13-20020a05690218cd00b00dccec0238b0mr4016558ybb.64.1712785563925; Wed, 10 Apr 2024 14:46:03 -0700 (PDT) MIME-Version: 1.0 References: <87v9rhumyp.fsf@gmail.com> <86lfi2lhnl.fsf@gnu.org> <877dtmtvx4.fsf@gmail.com> <86h7sqlc3d.fsf@gnu.org> <874koqtq2h.fsf@gmail.com> In-Reply-To: From: gusbrs Date: Wed, 10 Apr 2024 18:45:52 -0300 Message-ID: Subject: Re: bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes To: Arash Esbati Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38258-done Cc: 38258-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Arash, On Wed, 10 Apr 2024 at 18:31, Arash Esbati wrote: > Well, at some point of time you have to start submitting patches if you > want to get things done your way ;-) (Just kidding, I know about your > constraints). Sigh... :-( > Thanks, the heuristic seemed good enough to me. True. Good bang for the buck. > > It is your job to be cautious, after all. ;-) > > More importantly, I have to keep my sanity ;-) I get it. I guess "once burned, twice shy" is the fate of the seasoned. Rational behavior. ;-) Best, gusbrs From unknown Sun Jun 15 08:49:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 09 May 2024 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator