From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yDvhOAR5+WBMewAAgWs5BA (envelope-from ) for ; Thu, 22 Jul 2021 15:56:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kIqhNAR5+WBtQwAA1q6Kng (envelope-from ) for ; Thu, 22 Jul 2021 13:56:20 +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 71B541B88A for ; Thu, 22 Jul 2021 15:56:20 +0200 (CEST) Received: from localhost ([::1]:44926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6ZBT-0002h4-Gr for larch@yhetil.org; Thu, 22 Jul 2021 09:56:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6ZAU-0002fq-DB for emacs-orgmode@gnu.org; Thu, 22 Jul 2021 09:55:18 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:37649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6ZAS-0001qT-Mn for emacs-orgmode@gnu.org; Thu, 22 Jul 2021 09:55:18 -0400 Received: by mail-wm1-x329.google.com with SMTP id m38-20020a05600c3b26b02902161fccabf1so1614176wms.2 for ; Thu, 22 Jul 2021 06:55:16 -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 :cc; bh=6y9ryr+F65p+D0WLuJby3pjmiM4rDQjCwuYwxRduEWQ=; b=P5Vr40lNrcwiEjplY9/fLB7ruvBQwCZkRJAGpbwQvu4UO/5wyP4bLSUVDrXxsoEvkq XcEMZ+2pvVTnQfwFbm0mN9kitJfFW9jCgvvFnGMq3bAx69oR/DO2lj+bfEzaWaSHLVys QmnNKQv21NxXKg9eHA/+A0VQDntWK+goOCAz2N8oYC29CkEuVXvqblfn4/1S9AsQikWe SMK9xBRlrrWdBpZTEd4cVVv47g3jdzlQhFrizaW2IUvHWg1BRKqza0h8a1PcjZ9ISRMK C0Jo/daTtAuXrpv1SMNFS4vL4SDZ7fyMqnJhRt7MqthpUYXmcl74tp7ieQ7tXloH7ENn Db+w== 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:cc; bh=6y9ryr+F65p+D0WLuJby3pjmiM4rDQjCwuYwxRduEWQ=; b=ltXFOdlgMtrmxaZ+IXDKbA2ww+tOyNFDfnQhP/eZnEJZaAjHiKyQIplWzSmG3Am7l6 ZtqSY/FYotEp5iJCvC2mXNzyDWfa8t7+6naMawfquRD2rwRp9mLbmTcvPLNC/mjQpsTB Z3Hh5AR6GMCiXohzS5WJ2fnnNuveVZrG32DjgZTDJGAXshOgboEH+Qh5ncjEURafGQYW C7ywHPpAUS1nQ5cjUM8S7gJ+7GWzXso8b5BX1tUhkBa3l1z7UVJZiISCkJ+P3PAZHl9K B7In1oCck52W/52DSilSEYyCfpNLz2ObR1D9ZDc5maMLh6o5BXXFalcp0DTBANOzOlIy EI8w== X-Gm-Message-State: AOAM533hLJZjA8+ctwYjjkphLkFXVkdAz5mqEkmFIlzEibwR7SoupucW LWPTIfu13RaiaN0HJJ3dD8lYZzcplHbA0Hwqun0= X-Google-Smtp-Source: ABdhPJzYaNf8avxvfrruzj5Q4Mnc+1tq663CC3dYOI/CN500NFGLQXGtig+bXMdxYgHyR5mcuVUFwr2H0UPebBVjnN0= X-Received: by 2002:a7b:cf29:: with SMTP id m9mr41682672wmg.13.1626962115143; Thu, 22 Jul 2021 06:55:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Bruce D'Arcus" Date: Thu, 22 Jul 2021 09:55:04 -0400 Message-ID: Subject: Re: [org-cite] issues with org-cite-make-insert-processor select-style To: Matt Price Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=bdarcus@gmail.com; helo=mail-wm1-x329.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: , Cc: org-mode-email 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=1626962180; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=6y9ryr+F65p+D0WLuJby3pjmiM4rDQjCwuYwxRduEWQ=; b=dm8z1bO6viEneZLU2TZEKkBtPGVX2oYf9vCZKr+P7WMXIQhp65x7f5l6NYBOSGDXlgCWFE 2rI/FkEWPbyvcmhSdde0Pm1mPfXi8LU+YVlPq/IpiJUXkFCwjimGXsf5cSZdU1U748T/cS exjTThD7P+c3Fs1/zfvBLB8oRl8qBtsdVgZUQlSHlQCEdqrlY8hBrptgSnvNmdIJTpz9PP FV8qVmm12rcrLS/tI01YDXDgxgcpPm9OJBUb0qF/wp5iyKgW4N/HHjFc4YQMIwV3DCUYSt 0rFLaDlRunBG6qa03EUHBKKLnAA6RSjveNlGN7y+rFvUjPbDothBHpJAhICzAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626962180; a=rsa-sha256; cv=none; b=CgptYF92ZMvz6h6tjO/O1TIE4jKSce56ip57W23gUE+dSAjAMzl83u2FxxVsI1XQcdaPc/ FKNdt0TgxRPgW0x0i86gUdDeECTEE+fF/PwLXAjXzJH5vnD4bZpW6ZwbFvPKvH7i+FoVoa QRNpDS6lpDFVLyMEzIbygteMNS5825EVywXEzVoTJzM2xG1eFyuGYrlZCZl/ZQ5QhRl9bn aQ0WoaU86Kr3/PHfys+gVydRvFxUuDn/jeWtm6QeDYkkp6jE5ot5lxi1rc9vN2+rG+MsRQ +kZGZ8GrRqmezX6QQd8pn25XPjxzwSiZwVyaSDDZ/u8vIY5wdMTXuK4P7c9YHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=P5Vr40lN; 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=P5Vr40lN; 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: 71B541B88A X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: vHekn4EbsVLe Matt - that's not really the problem. In general, these core org-cite functions (org-cite-make-insert-processor and org-cite-register-processor) must be loaded after anything they refer to; e.g. placed at the end of the package file. But if they aren't, the resulting error message is really confusing, and emacs shouldn't break. On Thu, Jul 22, 2021 at 9:27 AM Matt Price wrote: > > Bruce, are you loading this code with use-package? If so, and if I'm reading this right, you can perhaps add the missing functions to the > > :commands > > directive for org-mode? IIUC that should ensure that they are available to your package, as long as you have an > :after (org oc) > line in the package's use-package directive. > > On Thu, Jul 22, 2021 at 6:31 AM Bruce D'Arcus wrote: >> >> The problem was load order I guess; putting this of the file fixes it. >> >> So when org-citemake-insert-processor is first loaded, it looks for >> the two functions, which haven't been loaded yet. >> >> I still think a) the error message could say that (that the functions >> aren't found or some such), and b) that it shouldn't break starting >> Emacs. >> >> On Thu, Jul 22, 2021 at 4:27 AM Bruce D'Arcus wrote: >> >> > 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. >>