From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs,gmane.emacs.auctex.bugs Subject: bug#12483: Feature request: reftex-citation: skip menu for exact match Date: Thu, 12 May 2022 13:18:59 +0200 Message-ID: <861qwzq9r0.fsf@gnu.org> References: <87a6bpk33t.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37641"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 Cc: bug-auctex@gnu.org, Michael Hoffman , 12483@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 13:20:50 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1np6sD-0009cZ-MG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 13:20:49 +0200 Original-Received: from localhost ([::1]:55170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np6sA-0005sa-Us for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 07:20:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np6rT-0005Y6-CC for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 07:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np6rT-00012B-3X for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 07:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1np6rS-0003f4-V8 for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 07:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 May 2022 11:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12483 X-GNU-PR-Package: emacs Original-Received: via spool by 12483-submit@debbugs.gnu.org id=B12483.165235437713999 (code B ref 12483); Thu, 12 May 2022 11:20:02 +0000 Original-Received: (at 12483) by debbugs.gnu.org; 12 May 2022 11:19:37 +0000 Original-Received: from localhost ([127.0.0.1]:39822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np6qp-0003dA-Os for submit@debbugs.gnu.org; Thu, 12 May 2022 07:19:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np6qo-0003cr-2R for 12483@debbugs.gnu.org; Thu, 12 May 2022 07:19:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np6qi-0000w2-3M; Thu, 12 May 2022 07:19:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=pmBhj2FN4etYthnS8ifnC5wyKeaAZvzxtSXoqq9PmNk=; b=itOqCM9bjmyeAM439X72 bXDsAHaLVulZEk6QBeTXtFLQYz+OHanZBkYN5vUpNAAdSl1UCgxVW4NTD6w2cL+Q5BQ/7ibZdXQVg zLjfOoL9lH2QVmXmApkhbdsNVKlTe5of85zTDGJgbs2eCXBAPK+m/CrhmnSn6NDT7BvZ8m4mbiTfb zwXvu3Ayq/fzS/nIKiSPu5WJIHBgL2ZZosOsi4XFmFmFLezTrIv3sce7Krxl/aq/pVQdrqGqZpd3h f3T1m4EC7XNMr9Oxg5WJSEIInHeo1sIWCJFv0IiUNtjuAWgAoAf10EICprcg2DtUIvE3BGoLY4QvA xn9WyI2kQe8c3A==; Original-Received: from p5b326363.dip0.t-ipconnect.de ([91.50.99.99]:58184 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np6qh-0005CM-2j; Thu, 12 May 2022 07:19:15 -0400 In-Reply-To: <87a6bpk33t.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 10 May 2022 14:02:14 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232035 gmane.emacs.auctex.bugs:4385 Archived-At: Lars Ingebrigtsen writes: > Michael Hoffman 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