all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arash Esbati <arash@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: bug-auctex@gnu.org, Michael Hoffman <fklv2wf02@sneakemail.com>,
	12483@debbugs.gnu.org
Subject: bug#12483: Feature request: reftex-citation: skip menu for exact match
Date: Thu, 12 May 2022 13:18:59 +0200	[thread overview]
Message-ID: <861qwzq9r0.fsf@gnu.org> (raw)
In-Reply-To: <87a6bpk33t.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 10 May 2022 14:02:14 +0200")

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





  reply	other threads:[~2022-05-12 11:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2022-05-12 11:52     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=861qwzq9r0.fsf@gnu.org \
    --to=arash@gnu.org \
    --cc=12483@debbugs.gnu.org \
    --cc=bug-auctex@gnu.org \
    --cc=fklv2wf02@sneakemail.com \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.