From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QJNhOWbV+GAUrQAAgWs5BA (envelope-from ) for ; Thu, 22 Jul 2021 04:18:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IOQgNWbV+GDtAQAAbx9fmQ (envelope-from ) for ; Thu, 22 Jul 2021 02:18:14 +0000 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 6E7609BB3 for ; Thu, 22 Jul 2021 04:18:14 +0200 (CEST) Received: from localhost ([::1]:50464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6OHt-0001K9-G3 for larch@yhetil.org; Wed, 21 Jul 2021 22:18:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6OHP-0001Jj-V4 for emacs-orgmode@gnu.org; Wed, 21 Jul 2021 22:17:43 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:51175) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6OHO-0000h6-7h for emacs-orgmode@gnu.org; Wed, 21 Jul 2021 22:17:43 -0400 Received: by mail-wm1-x333.google.com with SMTP id l6so2421827wmq.0 for ; Wed, 21 Jul 2021 19:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2KsTZkBSTNvaRr7J91+9TJ8Hm9q741TE9x0CF8ngJ7M=; b=ai7QyS6pdXou2DMICF4xwAbHERkpqK3J/JXPtlNo0RddY5MXqC9XB4vmzVqh4/uKS4 C0rLvHOrF0PlKDifRU/x4xsu1ig6FMeLmuoUfR9JYiwAQq0oDuL1sZqZHNWAqvl4fOIV /gtviBcky2ujW8fWMvhhBNDd1opTUc22AVajoZUQ8/ItasRBDsDX8s+J8IvpqwoWbk5H 7OXVTxSA2/fOo+uZwRGmPTabYF+bKjFSM60hAbB2j8J68TaYCit0hCu6kvYDfwWbFUEh 8Tl9EIN1CivfoMKPmiCMk2iTMmNBZzqKtFcAYtiEodqPsV/FxjtrkHCSKHoE0TQuKD69 yUQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=2KsTZkBSTNvaRr7J91+9TJ8Hm9q741TE9x0CF8ngJ7M=; b=B3q//0TNXGgh7c1AicY+uBEM0XNR1P8DFLZbPfUYbMz0B+Az9R5iWpT2OUSm+/3Vuc ocSCg7dvKBsfWORUIHmXiHKG2s3z7L92IKpc+dgXf7lpVNEL0PcPJfWJ0ND5nMdRUuxf jqLWc0elGsjXUfodw7G4nqw6u0hEBjvIui+2RP9cz1sHzVNgDcEeANVN6BoxO6euUeXW FL50BrQcg5OVDgiJJB77rNsw6HFl6GmoTeiLx9CaMrPQy7e+Yk/QjN4exUk7+0xeCxsI t2/X6VZOgnJUKlRGNDN/YYN/CuM00O43CGUIsdOIamXFdc2yP9x1pYXOvWVvfbkUDokn /LdA== X-Gm-Message-State: AOAM5315ngPcDsmIa/KfZ2pBg3mE4jeTzeFjvBpqF1EJVE1g88KnQu1s 9t+QKrr/jEN1JXuO46f4ZlIUscWZ+/Qatn698Gb/AF0URIXDdg== X-Google-Smtp-Source: ABdhPJwMFtm1r+0/4ITIQi1LjoZoLkVWlDseCsEpCXA95Y3JaHvaKgQ/SEN+I3zh5pDjnGrstXFWKu1R+44wl/m8QFc= X-Received: by 2002:a05:600c:2290:: with SMTP id 16mr40334686wmf.32.1626920260158; Wed, 21 Jul 2021 19:17:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Bruce D'Arcus" Date: Wed, 21 Jul 2021 22:17:28 -0400 Message-ID: Subject: Re: [org-cite] issues with org-cite-make-insert-processor select-style To: org-mode-email Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=bdarcus@gmail.com; helo=mail-wm1-x333.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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626920294; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2KsTZkBSTNvaRr7J91+9TJ8Hm9q741TE9x0CF8ngJ7M=; b=ELCRmAk0eNX5SMQEPh1czrkzopZFtpAYXHCK7XbFkmjdS3/wKZFgfDTRRWmeRaqUqg5SP2 CKP7PxELClK4I6VG+3EpVF0sOceqSXKUOQgBd3RZ3TISkcRtseOW27GeKHKif0/DvMwmuP RIPUbQcYcBFjSH4uKQ09//ls4LmcYugRgX3pSnUs8WFMRZEJbPOmLCqVZCq+3DyPTs/sw1 o100KSSGfo0WnI8lft2dpGcWM5QMbKUrcztC2zYbSDG7uWqkEmn0PCttkaIVbEU9mIQSpn rdQM/a45aDlQpdFiTlBNLdQ1OXGRzR3UwLO7HSkF7ngEeYUrDfwq0EvpbXRq8Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626920294; a=rsa-sha256; cv=none; b=keaemePZqgXrect1fM7zhG8OueNti8TjBDSgaW5Qzidst/CalungZ1RBd8GW7T+2Ur5tXC ht8noCLc6vwUc4MI9/MwNKjlygH9QywUONBEfAbRuWm4TmEGpljnJd8oYFwedhKOTz50S7 EKHFSWoqmeDlQ6Bffw5DAbhQUuLEdkCvbUCi4Jt1Pif/i8bEge8nAxVvWeam3tkG4Mo719 4n3pIs1rwFSCnAMujIKZWQUMgzME5a+GtwKaG9F96scbNM7Td6ftVXfFua+IvYwB+CfkMr 1z+SwgB3vQVcGnR22f9Ew2ze4orFwuGMI45yo3X5bCKb0BEzPrKUoTUU8Mh3Jw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ai7QyS6p; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ai7QyS6p; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6E7609BB3 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: fYU8l5uGhHeu BTW, here's the info from the debugger: Debugger entered--Lisp error: (error "Wrong argument type(s)") error("Wrong argument type(s)") org-cite-make-insert-processor(bibtex-actions-org-cite-insert bibtex-actions-org-cite-select-style) (org-cite-register-processor 'bibtex-actions-org-cite :insert (org-cite-make-insert-processor #'bibtex-actions-org-cite-insert #'bibtex-actions-org-cite-select-style) :follow #'bibtex-actions-org-cite-follow) load-with-code-conversion("/home/bruce/.config/emacs/.local/straight/build-28..." "/home/bruce/.config/emacs/.local/straight/build-28..." nil t) require(bibtex-actions-org-cite nil nil) On Wed, Jul 21, 2021 at 11:14 AM Bruce D'Arcus wrote: > > I have run into a problem in implementing a "select-style" function > for an org-cite-insert-processor. > > The WIP code is here: > > https://github.com/bdarcus/bibtex-actions/pull/182 > > It was running correctly yesterday morning, but now it doesn't. > > I have two related issues: > > 1. I think, but am not sure, I may have run into a bug in > org-cite-make-insert-processor, as the function I am using for the > select-style parameter runs correctly outside of the insert processor, > and returns the same results as the "org-cite-basic--complete-style" > function. But when I uncomment the parameter to use it on the org-cite > insert processor, it not only doesn't work correctly, but Emacs won't > even load fully. > > 2. The error I get "wrong type" is so general it literally took me > hours to realize it was coming from this function; I was looking > elsewhere for the issue. > > So if I'm right about a bug, obviously it would be great if that could be fixed. > > But better error handling and reporting would also be really great. > > Bruce > > PS - I"m still learning elisp, and so am not super knowledgeable about > debugging in general. If anyone has any tips on that, that could help > me narrow down the source of the error, that would be much > appreciated.