From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iXX+JgEs+WAVbwEAgWs5BA (envelope-from ) for ; Thu, 22 Jul 2021 10:27:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cDLrIQEs+WCiBgAAbx9fmQ (envelope-from ) for ; Thu, 22 Jul 2021 08:27:45 +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 B3104ED2B for ; Thu, 22 Jul 2021 10:27:44 +0200 (CEST) Received: from localhost ([::1]:43298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6U3T-0000Ak-JQ for larch@yhetil.org; Thu, 22 Jul 2021 04:27:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6U36-0000Ac-V2 for emacs-orgmode@gnu.org; Thu, 22 Jul 2021 04:27:20 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:38557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6U35-0007UJ-3C for emacs-orgmode@gnu.org; Thu, 22 Jul 2021 04:27:20 -0400 Received: by mail-wr1-x429.google.com with SMTP id c15so4982583wrs.5 for ; Thu, 22 Jul 2021 01:27:18 -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=xxoM94PDAPaKQgmtNwERxYPfu+QXtPnb+1xoNWU29yA=; b=rSkCLD2IXj1O5Uh/YT/wKu8VajCrTWNGyM1Sw62N+DyQKdmiN/kwUUSvylQI1qMyS5 TJwsw8bjleH+yCwcCYOD8sWTke214rvksbxqZkPflsHbGWfLTevQqHdy6RWpgqLGEbBm wNb7cOqABb0RbFuARc3d3629WgY9SZFUxfNW14eQouykFSDJyJ1qGjDBNqU61ZFPFOrR moWfyf40ljUNZ6wZrS12FbjXNZ4ReqWbzY93YTotCqbbThAkhclmPvAhVzrqdC2tRDSB tR5yuaPrTUmhqS2FjCHIL8N6vg6q/r6rDJqzGCmzDXMLG/4zroV6p5yN592cjV3c3NA1 wzAQ== 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=xxoM94PDAPaKQgmtNwERxYPfu+QXtPnb+1xoNWU29yA=; b=cJLgVwgLKoXCl1DD9tXS3JgBoMgDKaqMKWtDSUkfd73TBSgHuM1TkH9xbw2Bck+6cj DdjDz2vTZY1lECn8XXWFrzJzddM16kqQHjkaJD6nJiKhqMGtdJB97sEayzw86F9GKVha 9u4GulW5m2MyKogY8fjThkh8Pc9Dg50Ezifbem4HgXJeZUkkPsG+VdoOHszpDdQ8PEVP xhSPCiU4piaQtYG4edHpynSGDhkyReBdR2faBS1f1kwzfXbtSS/eKYZ6xOpF0WvfCu+M BEXdaX8WPibw+aBvyJiRVZhKVZoKWYwvZoquMVakcSF5syJ0C+zbKro8/aqXF1dhYFxu moIg== X-Gm-Message-State: AOAM532ABNReSU7unQNAHT19evrKUwCxMZnlBOpTgWyYXTHsh4MgAsB2 PNA8TxwwG99ZCzI7U3TFpwJpE/z0BfjBlxtw6A0QS4mAQ94= X-Google-Smtp-Source: ABdhPJwm2RkTg1lz23aC8Kiw5Z/b77iPM7ZRnNjeA2i8yfgwa2WlnUif7gEi77HhI6x1kFCydrHZQUro7zrYTv2DAhQ= X-Received: by 2002:a05:6000:1841:: with SMTP id c1mr45534699wri.423.1626942436954; Thu, 22 Jul 2021 01:27:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Bruce D'Arcus" Date: Thu, 22 Jul 2021 04:27:05 -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::429; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x429.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=1626942465; 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=xxoM94PDAPaKQgmtNwERxYPfu+QXtPnb+1xoNWU29yA=; b=SZONgwlKElyABQXRZhtc30Vj7wUGp7E/+TJgCpSK0LNl7TeL7aoGw4EgtCLapfZ90aVMZJ J4gZ9SDlWCUHQ3TFiK5dExZWd6zsfiLNXEYWa2bB5dfgtjR+vlbF4xnu91lFs0dePMTzyW BJowD2H/ENxuyILheeLFaiQ/djInikQc2GASc2k3rdk/iA74TTHd07tg4mlyv80Zvfzyy7 BBe8GVKm0NV4UG77lede0vvlEypNSFMg2nHom7MQysS5ytr58oTHccw7Yf/IfylO7S6Pgl 9OiebdXwycgyp/ur83QpPyM2qPtsbYW+hopNG4bROESJPtrIxNVUhqsvskumwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626942465; a=rsa-sha256; cv=none; b=Yb3BssOD9Cc9Tre91yLs5B8HQzcr4q+yVUsDcdZp2XxxjoZeSSnVF/VD6+2ulfwnJJLODw mZN14m9Dm3jSsyOiH6ok5ObzLmhDdKfCR7mf+KbYsnikRkoPj11gf5HbCbkytP93MCvHnG i8FBUCXzzMiZuXHMJkloLMLXWM+sxeQgA+vqTtBdxMfJNvqOV/BC2/b1YoK5VW5QbYd6zC w/nqSdebnOwnX3+iS2ll7RJoRZvG/QXdMYZkNXWWVu2bRzMJaJyHrXv0EochXWVw90oZtU LvsThwOsg9o65mmRBN9jhHQb4pkx57o9FLk5xek5R2vfSifwH9QoqLBlEgdk7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=rSkCLD2I; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=rSkCLD2I; 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: B3104ED2B X-Spam-Score: -3.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: k3lmsgI0fstI Another odd thing. If I comment out those lines and use the oc-basic style selector instead to start emacs, and from there reactivate this function and compile and reload the code from the buffer, THEN it works without error. On Wed, Jul 21, 2021 at 10:17 PM Bruce D'Arcus wrote: > > 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.