From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 wPRmETjJVmMAEwEAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 19:19:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YK25EDjJVmMLGAEAG6o9tA (envelope-from ) for ; Mon, 24 Oct 2022 19:19:52 +0200 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 0498C21AAC for ; Mon, 24 Oct 2022 19:19:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1on0hl-0002BP-Q9; Mon, 24 Oct 2022 12:53:37 -0400 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 1on0hk-0002Ac-Mx for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 12:53:36 -0400 Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1on0hj-0006iP-A0 for emacs-orgmode@gnu.org; Mon, 24 Oct 2022 12:53:36 -0400 Received: by mail-qv1-xf36.google.com with SMTP id u7so6850160qvn.13 for ; Mon, 24 Oct 2022 09:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=UFGwMcSeVOzVGlUULgSAxyrATEq/pGmJ74H7OMPoajE=; b=afuBttcrpizO0LL79XE7x9+q0VfPSvj7ZgPNMWIHIZFmJjjwJX9cXwd+ViBWQDcI0l 9OZfLxNnoHi3w8bo4iem/6hdslh58G4ANggguFUPTIgUIAIpJ4Xcr/lvnLO6T6UQHW/6 oFjuF32emmjyKLenQ2JbNDV0VyeiWwljLzBPLjpRVCS1/JJdTmj0jnHfL7isgPMnQZEi FPSh8IXwgqqMXm4jU1eH44OUoELDF7qqy9PCD9V72rqJuWz3dln7Xef0s0muGY7qgoPW EkuICuwAafiFncTtSQIeLfWLAF3b1pM9iIp76ParbhesGsbvtWeuVkAkI+HZi1NvB0Vm FRTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UFGwMcSeVOzVGlUULgSAxyrATEq/pGmJ74H7OMPoajE=; b=o3UzrITYCAa/gVLlbYIHkHzvlCCUAjazkl7FRiM/JiF+GeCC1c/PBFKBZk/P41vzs9 hLVQKXvJkskOY0+JevUbANAnIHazU9PkEOAH4VuEqjgbMU9niQ6UgsPTGoduLW6XIRtt APlZNUbZM6oXmffrc2c8reJwEsbngozXL7dh32HquJ7SytgSGx2k4jgMF2qHD6ipT7pA hUu35/w+d7M5y1qS+XOrhB12POHJJsc1WbYZjITjbM+exMYfH9f3fDfA4ZU1IunzbefY mjZMsP54jhqzUoAdeJhY1JGj3VadSlyizwUYpd31++NJWBvKDGAoVDgaC33ubyi8Qwo2 N5bg== X-Gm-Message-State: ACrzQf3u0tx7RoOZdaQeLXvSFw3hXCMuOj7k8Krw2TaO6DxS5aVZBSxq k7KlagUct8js4k9QgUrUXFHfAV2CDlY= X-Google-Smtp-Source: AMsMyM55uPvcmgZNFwkd7Jr6eJBNP56rHdz8wfEkpJyB3wUec//oCGE3U6AWyV9s9/4cwSSArFU1JA== X-Received: by 2002:a05:6214:29c5:b0:4bb:65bd:5edf with SMTP id gh5-20020a05621429c500b004bb65bd5edfmr8083376qvb.60.1666630413676; Mon, 24 Oct 2022 09:53:33 -0700 (PDT) Received: from penguin (2603-7080-0903-9eea-0216-3eff-fec3-97a0.res6.spectrum.com. [2603:7080:903:9eea:216:3eff:fec3:97a0]) by smtp.gmail.com with ESMTPSA id f11-20020a05620a408b00b006eeb51bb33dsm279864qko.78.2022.10.24.09.53.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 09:53:33 -0700 (PDT) From: Kierin Bell To: emacs-orgmode@gnu.org Subject: [BUG] org-cite-insert error on style part Date: Mon, 24 Oct 2022 12:53:31 -0400 Message-ID: <875yg940z8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=bellkierin@gmail.com; helo=mail-qv1-xf36.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666631992; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=UFGwMcSeVOzVGlUULgSAxyrATEq/pGmJ74H7OMPoajE=; b=OsMEcrNM5MBUXXq+BhM9pdSzGP4LaJIaIe47REFzSBp+92bmH94p61Wktf3++CEFacKZHj CMZOtga5glA7JQBVtzmqhvVkXHZ8LrUXTLnX0fIsfX6qUc7T5J5ckIitBZS599Z8ShiHHi r8WHWwmnpX6UJAXfBlkJJdfrymZozgel2aBqP4ohzn1r6R9ZZAM7Oc4Xy55Lb3aT+FQt73 Ckp4+NXZTBKffJNWro7gA5KyQV9p3xWJIZRH1k1aQBmzBqBHsiEZuBrJoKR73IrMaExdIx gU1gqEGT7OcpY1SuU4+RRNi+ZEl1ECYUxWe3hIyDTabRJQlUIz7xyld/LM8MVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666631992; a=rsa-sha256; cv=none; b=bz/BCXR6C5qubDMvN3jg2HYLF2Sb9C6jml4A3WrO+AiIhvh9ICkTaJ2ZbutYBa1HucTm3S qYCN7Go9EVsMXln1CNQ3Ym/+oiSDQKpETzqvjwanpWm15HwXV/izoNgsczNukXCuwA3bMJ CkiqbM65YlRNFT78FnEm5tf2sMrqiQOWF/NKegEqPArCzMTY2g+1jVytkebCq5SMJtk6Xb vGxu2jMASsnJWtyJtCd91dI+EqugyU1EE0E8mziy71yMdWZwJyFzfzOxg7tEEm93MCT8vM szZQjUK9Gi7Jg8QcrHejdL+busabe1YTrJIMMrYgdta+yIW3ABq/9AEdK2V13w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=afuBttcr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=afuBttcr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0498C21AAC X-Spam-Score: -4.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: vLDSmKifttaY Hello, When I run 'org-cite-insert' with point before the initial colon of a citation element, Emacs signals a 'wrong-number-of-arguments' error. For example, 'C-c C-x @' with point below X in: X [cite:@author2022] ...Produces: Debugger entered--Lisp error: (wrong-number-of-arguments (1 . 1) 0) org-cite-basic--complete-style() #f(compiled-function (context arg) #)((citation (:style nil :begin 94 :post-blank 0 \\ :end 111 :contents-begin 100 :contents-end 110 :parent (paragraph \\ (:begin 94 :end 111 :contents-begin 94 :contents-end 111 \\ :post-blank 0 :post-affiliated 94 :parent nil)))) nil) org-cite-insert(nil) funcall-interactively(org-cite-insert nil) call-interactively(org-cite-insert nil nil) command-execute(org-cite-insert) The problem appears to be that my Emacs build doesn't like that 'org-cite-make-insert-processor' is calling 'org-cite-basic--complete-style' without any arguments on line 1636 of oc.el: (style (funcall select-style))) 'org-cite-insert' in other contexts works as expected, including with a prefix argument when point is outside of any citation, which creates a new citation by doing completion for a style. This may be more of an issue with my setup; I'm not an Elisp expert. But I'm filing it as a bug because I'm getting an error that is reproducible even with 'emacs -Q'. GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) Org mode version 9.5.4 (release_9.5.4-17-g6e991f @ /usr/local/share/emacs/29.0.50/lisp/org/) Thanks, Kierin