From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uI/SAyN3xmOnnwAAbAwnHQ (envelope-from ) for ; Tue, 17 Jan 2023 11:23:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eIz3AyN3xmOScQAA9RJhRA (envelope-from ) for ; Tue, 17 Jan 2023 11:23:31 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D41F524308 for ; Tue, 17 Jan 2023 11:23:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHj7C-0000xy-In; Tue, 17 Jan 2023 05:22:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHj6x-0000uq-VU for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 05:22:35 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHj6v-0003jL-PY for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 05:22:35 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5FB3D24018D for ; Tue, 17 Jan 2023 11:22:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673950951; bh=eH+W7PnpyMw5n89iul6WM0fF5rlGnsXthTSfAKBRGdQ=; h=From:To:Cc:Subject:Date:From; b=e/xYn9cr7Ch85SvjHPVZUkmE3fDc275c3nVBNAw1v0NKl6LA4Jf1Iq/QmQ0pyMlFu WpcGFnOLMZdcdkDH+J0wK0k1KPBcxDL6Wyyaggm8M5pEQLjJrC8l8lHLGp305cr5I+ btSlU08AOT80XdiMXDAulA+2B7KBK5tFbfVZx+TXy9gVxbxjI63apFrEE4Zu2lHTk6 M+ScI+T/WAIPryzpJRPZ3vIwhLy9srKP9hhG6izjlSk/hf7/NHhfPwchyR+2Rsakcr zmlvyp6f7A8HBFMRZ+TJ+nYFW0huqpvT34AzcwPm45tkvFBACycLSLu5wTeW7IpScD YqsmG7rUeGhcg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nx4hP6McTz9rxP; Tue, 17 Jan 2023 11:22:29 +0100 (CET) From: Ihor Radchenko To: "Fraga, Eric" Cc: Emacs Org mode mailing list Subject: [BUG] org-cite-insert only searches on truncate author list In-Reply-To: <87lem17a51.fsf@ucl.ac.uk> References: <878ri28i84.fsf@ucl.ac.uk> <878ri1k12h.fsf@localhost> <87lem17a51.fsf@ucl.ac.uk> Date: Tue, 17 Jan 2023 10:22:59 +0000 Message-ID: <87cz7dihoc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-TUID: td9IWrepRjAH "Fraga, Eric" writes: >> org-cite-insert simply calls whatever is provided by the citation >> backend you use. Please tell us which oc-*.el backend is creating the >> problem. > > Maybe I'm doing something wrong somewhere because whether I try basic, > biblatex, or csl, they appear the same in terms of selection interface. > Maybe it's something in vertico although I cannot see what it would be. In oc-basic, there is `org-cite-basic-author-column-end' and it indeed truncates the match. oc-csl and oc-biblatex do not specify insert processor and thus the default is used (from oc-basic). So, I confirm the bug. Eric, as temporary workaround, you can try to increase `org-cite-basic-author-column-end'. Note that completion might look ugly though. One needs to rewrite `org-cite-basic--complete-key' adding 'annotation function to `completing-read' call instead of passing the truncated author/title list as completion table. See 21.6.7 Programmed Completion section of Elisp manual. https://github.com/alphapapa/org-ql/blob/master/org-ql-completing-read.el also contains an example of implementing the annotations. Patches welcome! -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at