GNU bug report logs - #12483
Feature request: reftex-citation: skip menu for exact match

Previous Next

Package: emacs;

Reported by: Michael Hoffman <fklv2wf02 <at> sneakemail.com>

Date: Fri, 21 Sep 2012 18:53:02 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12483 in the body.
You can then email your comments to 12483 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12483; Package emacs. (Fri, 21 Sep 2012 18:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Hoffman <fklv2wf02 <at> sneakemail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 21 Sep 2012 18:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Hoffman <fklv2wf02 <at> sneakemail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Feature request: reftex-citation: skip menu for exact match
Date: Fri, 21 Sep 2012 11:50:02 -0700
Hi all,

Would you consider changing reftex-citation so that if the supplied
argument exactly matches an existing citation key that it won't
display a menu of citations to choose from, but instead will just
enter the citation immediately?

Many thanks,
Michael Hoffman




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12483; Package emacs. (Tue, 10 May 2022 12:03:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Hoffman <fklv2wf02 <at> sneakemail.com>
Cc: bug-auctex <at> gnu.org, 12483 <at> debbugs.gnu.org
Subject: Re: bug#12483: Feature request: reftex-citation: skip menu for
 exact match
Date: Tue, 10 May 2022 14:02:14 +0200
Michael Hoffman <fklv2wf02 <at> sneakemail.com> writes:

> Would you consider changing reftex-citation so that if the supplied
> argument exactly matches an existing citation key that it won't
> display a menu of citations to choose from, but instead will just
> enter the citation immediately?

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Reftex is part of auctex, I think?  I've added the auctex bug list to
the CCs; perhaps they have some comments here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12483; Package emacs. (Tue, 10 May 2022 12:03:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12483; Package emacs. (Thu, 12 May 2022 11:20:02 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: bug-auctex <at> gnu.org, Michael Hoffman <fklv2wf02 <at> sneakemail.com>,
 12483 <at> debbugs.gnu.org
Subject: Re: bug#12483: Feature request: reftex-citation: skip menu for
 exact match
Date: Thu, 12 May 2022 13:18:59 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Michael Hoffman <fklv2wf02 <at> sneakemail.com> writes:
>
>> Would you consider changing reftex-citation so that if the supplied
>> argument exactly matches an existing citation key that it won't
>> display a menu of citations to choose from, but instead will just
>> enter the citation immediately?
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> Reftex is part of auctex, I think?  I've added the auctex bug list to
> the CCs; perhaps they have some comments here.

The way I see it this is by design.  Looking at the function
`reftex-extract-bib-entries-from-thebibliography' which does this part
of the work (invoked from `reftex-offer-bib-menu'), there is a comment
saying[1]:

;; Read a regexp, completing on known citation keys.

So you can choose one exact key but you're still "warped" to the
citation menu.  I suspect the reason is that you can do more stuff in
that buffer and not only saying "please insert this key".

If one wants to insert citation keys without the RefTeX procedure, I
suggest to use other complementary solutions like `TeX-complete-symbol'
(provided by AUCTeX) or possibly company-reftex-citations (provided by
company-reftex[2]).

Best, Arash

Footnotes:
[1]  http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/textmodes/reftex-cite.el?id=aeefa3a732c9dd815e23ed10c4582082acb0e29b#n404

[2]  https://github.com/TheBB/company-reftex




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12483; Package emacs. (Thu, 12 May 2022 11:20:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12483; Package emacs. (Thu, 12 May 2022 11:53:01 GMT) Full text and rfc822 format available.

Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Arash Esbati <arash <at> gnu.org>
Cc: bug-auctex <at> gnu.org, Michael Hoffman <fklv2wf02 <at> sneakemail.com>,
 12483 <at> debbugs.gnu.org
Subject: Re: bug#12483: Feature request: reftex-citation: skip menu for
 exact match
Date: Thu, 12 May 2022 13:52:21 +0200
Arash Esbati <arash <at> gnu.org> writes:

>> Reftex is part of auctex, I think?  I've added the auctex bug list to
>> the CCs; perhaps they have some comments here.
>
> The way I see it this is by design.  Looking at the function
> `reftex-extract-bib-entries-from-thebibliography' which does this part
> of the work (invoked from `reftex-offer-bib-menu'), there is a comment
> saying[1]:

Thanks; then I guess there conclusion is that we don't want to do this,
and I'm therefore closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12483; Package emacs. (Thu, 12 May 2022 11:53:01 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 12 May 2022 11:53:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 12483 <at> debbugs.gnu.org and Michael Hoffman <fklv2wf02 <at> sneakemail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 12 May 2022 11:53:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 10 Jun 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 314 days ago.

Previous Next


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