From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id bcOnI3o+2GR0YQEASxT56A (envelope-from ) for ; Sun, 13 Aug 2023 04:22:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id JZ8SI3o+2GR+EgAA9RJhRA (envelope-from ) for ; Sun, 13 Aug 2023 04:22:50 +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 3438051F01 for ; Sun, 13 Aug 2023 04:22:50 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pacbell.net header.s=s2048 header.b="oFQGO/ao"; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691893370; h=from:from:sender:sender:reply-to: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=QRd10moJ5sXGMEoINRknwU1lICvGtHDUAgn4z/GQY5A=; b=difMqzBQ5BzNEu0D49weglrY5FdUYl7uRakSIv5rOThuC4ReeV1hkW/vTUKFZWczMm1/7H pis/EFvRiCWK+cG1z+6r9Wc57XifK8PtRsv80QQCQ4MqF4hHn8/yK5SqY9IZj8VGsbFN1F 7TQEwEAhcSvnKzw1JznSs4ltqBgQGibeUaIeb4hytnDtmCTKHWU6PL9Kl32+PbMC6YskyW 9vWTn0J6w++uLQdXffoAvNXeWMJUbjpGOZEFPGJE4XIH0R74Nrg/zoImyGNCg7/u1ynKtR RSG9VyrywKyc7GLFT1wSoy5NIRy9BDMdOrRB0Uqg0wNrtmk8a+C6/UPB9gYJXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pacbell.net header.s=s2048 header.b="oFQGO/ao"; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691893370; a=rsa-sha256; cv=none; b=l50NFS6xK/Y7uhLOkw5rnCv7rCXzXuRg5uDrX81dy2w/0VwMVBcHbB2NDdPwrXR5t9GpLD xb+tvLqF7r1F1VE5nd2BXXZmRdB1E2xj4xbDBKNsFIs2Q/YCeK/PmQa3stfdNdpk7bGi+S Zed5gQieEis9/IBAtnDkz3C9SorDXrtZqDE4o2mFOQZDfd02fp9TS0xwHaV2+lAHFH9/6p 3ir96OoGBJh/Z637MkNGz1aW+hwX7qesONgKI7pBO3dMtBBIqr6EC7UW+K9rOSusMFkIl9 M3MWbtjpZXqREDxiAQ6dT1Q3RC6dmFE/mhWrFY6g0U1gWOvaz8BodevOv2O6DQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qV0jf-00049f-C5; Sat, 12 Aug 2023 22:21:43 -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 1qUg2P-0003br-8E for emacs-orgmode@gnu.org; Sat, 12 Aug 2023 00:15:41 -0400 Received: from sonic307-13.consmr.mail.ne1.yahoo.com ([66.163.190.36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUg2N-00056r-9a for emacs-orgmode@gnu.org; Sat, 12 Aug 2023 00:15:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacbell.net; s=s2048; t=1691813736; bh=QRd10moJ5sXGMEoINRknwU1lICvGtHDUAgn4z/GQY5A=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=oFQGO/aoWuNxBtlgP+vxDfauKOjIrhFd5Ac/49KghScxr0J6vtaVu9qR3CzC/wb7+nLzAhGa3d5I97/nOXjtD56Krpfo4TsF5cKWjwaWxzqg+9bQ0D4tGqC4U6rBI7SDqNZF2WDS9mL4w6sjYw8EkNMhmZvFBxYGyKPqApz0p2Ba17kKvmsvNStnWqu8LEM8QqTyqCaWQReKbMBQy/dtfwQi2hjK37t8RXbw8cqiCu4Wft2WKxQjrTVXcfl862SVxIwoOy44Au+w+G3cEVJ+XDuDQLnPIIUNepEukUscHZU1iuB6Y7Pf1RCucSuhEifQHgSTtvDhS5cMLV8W71QF1A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691813736; bh=RhRBH/H0IbhGmdmeiI9DXPrtnTUhet22/2qTwcxknmb=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=qVFRsCFWMWpZNak+hLofn9uMg6EjX/7G9nHfNM3/DyMyKI/ti5kmCxDWpsH4rtm7q2Dqq7Z1+rEaC/7wruVwN5cPlGqqZmaq5abccKvhnQ1Hgyn5mVIfFhrj8moUXpoFSXHQBUjbJHvW8YOkuiNQW8xs+jnAR3Qb0ltXXgtKmSLRkBSdJ+rR5sJO5X4xMPjHhL6vHoaev4YjN06FBxlUiOoC/b8/8hVOzygNcbhdNgHcUKdA1fDd1ginelX6vjomsbkb0R9+ed1ow8XTcaoiQ1xtpTzZrzRjpaU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Tfx2I_NylHGKqolxhLh27cGOYnnLH0jkqQlg v7r688K4cdY4mxE1I1mkCBlzDR.fURbBz5h.isKIuErnPvo1t.qHP515kikK9Ofw0dMLhjaCEsoY r25SI2cMicJuObEMybw7VuRVIYEbDwP0QU7YMbumje7RPW98LaHWQCxEK1xXwo4HG8DQYndh7pKT YSy.cz6PcnCNFmqnAnYg.oIPIWrlAWMFth9k9CTzRnFbosMYIo2RflIssdEBkyvEmrbXx5A-- X-Sonic-MF: X-Sonic-ID: 0f617ac2-e00f-43d3-bd45-98c4a1e67a7f Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sat, 12 Aug 2023 04:15:36 +0000 Date: Sat, 12 Aug 2023 04:15:26 +0000 (UTC) From: "J. G." To: Org-Mode Mailing List Message-ID: <324290413.3530604.1691813726246@mail.yahoo.com> In-Reply-To: <1939460027.3272000.1691771671040@mail.yahoo.com> References: <1939460027.3272000.1691771671040.ref@mail.yahoo.com> <1939460027.3272000.1691771671040@mail.yahoo.com> Subject: Re: org-bibtex-yank failing with error Wrong type argument: stringp, nil MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3530603_123922970.1691813726245" X-Mailer: WebService/1.1.21695 YMailNorrin Received-SPF: none client-ip=66.163.190.36; envelope-from=jerzor@pacbell.net; helo=sonic307-13.consmr.mail.ne1.yahoo.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 12 Aug 2023 22:21:39 -0400 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: , Reply-To: "J. G." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.00 X-Migadu-Queue-Id: 3438051F01 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.00 X-TUID: mdghJm5S8dBZ ------=_Part_3530603_123922970.1691813726245 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Friday, August 11, 2023 at 09:34:31 AM PDT, J. G. w= rote:=20 > Hi, I'm trying to figure out why I'm getting consistent failures using or= g-bibtex-yank. This appears to be identical to the problem posted here: On further investigation I have pinpointed the precise error as referenced = by the comment in the Stackoverflow thread. One of the nested function call= s stemming from org-bibtex-yank is to bibtex-parse-entry in bibtex.el, and = that in turn attempts to make use of the internal variable=C2=A0bibtex-entr= y-maybe-empty-head. That variable, among others, has documentation that the= y are nil until initialized by bibtex-set-dialect, which sets a number of o= ther internal variables along with bibtex-dialect. That default nil value b= ubbles up to cause the error I am experiencing. The solution in my original= email of opening a dummy.bib file works because it calls bibtex-mode and t= hat calls bibtex-set-dialect. Adding the following two lines to my init fixes the error in my case: (require 'bibtex)(bibtex-set-dialect 'biblatex nil) where the first line seems to be necessary in my barebones case because bib= tex isn't yet loaded, and the second line sets my dialect of choice (biblat= ex) and sets the internal variables for bibtex globally (nil), not locally = (t). Given the disconnect between the error and the solution (as I understand it= at least), and the absence of this necessity in the documentation (I have = read through at least ol-bibtex.el), perhaps a small mention of this in the= documentation in ol-bibtex.el is in order, and I can submit a patch for re= view? ------=_Part_3530603_123922970.1691813726245 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Fr= iday, August 11, 2023 at 09:34:31 AM PDT, J. G. <jerzor@pacbell.net> = wrote:

> Hi, I'm trying to figure out why I'm = getting consistent failures using org-bibtex-yank. This appears to be ident= ical to the problem posted here:

On further investigation I have pinpointed the precise err= or as referenced by the comment in the Stackoverflow thread. One of the nes= ted function calls stemming from org-bibtex-yank is to bibtex-parse-entry i= n bibtex.el, and that in turn attempts to make use of the internal variable=  bibtex-entry-maybe-empty-head. That variable, among others, has= documentation that they are nil until initialized by bibtex-set-dialect, w= hich sets a number of other internal variables along with bibtex-dialect. T= hat default nil value bubbles up to cause the error I am experiencing. The = solution in my original email of opening a dummy.bib file works because it = calls bibtex-mode and that calls bibtex-set-dialect.

Adding the following two lines to my init fixes the= error in my case:

(require 'bi= btex)
(bibtex-set-= dialect 'biblatex nil)
<= span>
where th= e first line seems to be necessary in my barebones case because bibtex isn'= t yet loaded, and the second line sets my dialect of choice (biblatex) and = sets the internal variables for bibtex globally (nil), not locally (t).

Given the disconnect between the e= rror and the solution (as I understand it at least), and the absence of thi= s necessity in the documentation (I have read through at least ol-bibtex.el= ), perhaps a small mention of this in the documentation in ol-bibtex.el is = in order, and I can submit a patch for review?
------=_Part_3530603_123922970.1691813726245--