* bug#12483: Feature request: reftex-citation: skip menu for exact match
@ 2012-09-21 18:50 Michael Hoffman
2022-05-10 12:02 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Michael Hoffman @ 2012-09-21 18:50 UTC (permalink / raw
To: 12483
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12483: Feature request: reftex-citation: skip menu for exact match
2012-09-21 18:50 bug#12483: Feature request: reftex-citation: skip menu for exact match Michael Hoffman
@ 2022-05-10 12:02 ` Lars Ingebrigtsen
2022-05-12 11:18 ` Arash Esbati
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-10 12:02 UTC (permalink / raw
To: Michael Hoffman; +Cc: bug-auctex, 12483
Michael Hoffman <fklv2wf02@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12483: Feature request: reftex-citation: skip menu for exact match
2022-05-10 12:02 ` Lars Ingebrigtsen
@ 2022-05-12 11:18 ` Arash Esbati
2022-05-12 11:52 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Arash Esbati @ 2022-05-12 11:18 UTC (permalink / raw
To: Lars Ingebrigtsen; +Cc: bug-auctex, Michael Hoffman, 12483
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Michael Hoffman <fklv2wf02@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#12483: Feature request: reftex-citation: skip menu for exact match
2022-05-12 11:18 ` Arash Esbati
@ 2022-05-12 11:52 ` Lars Ingebrigtsen
0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-12 11:52 UTC (permalink / raw
To: Arash Esbati; +Cc: bug-auctex, Michael Hoffman, 12483
Arash Esbati <arash@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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-12 11:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 18:50 bug#12483: Feature request: reftex-citation: skip menu for exact match Michael Hoffman
2022-05-10 12:02 ` Lars Ingebrigtsen
2022-05-12 11:18 ` Arash Esbati
2022-05-12 11:52 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.