From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 CNxgATOPwmL7xQAAbAwnHQ (envelope-from ) for ; Mon, 04 Jul 2022 08:56:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UIAaATOPwmI1KwEAauVa8A (envelope-from ) for ; Mon, 04 Jul 2022 08:56:51 +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 A949F2F977 for ; Mon, 4 Jul 2022 08:56:50 +0200 (CEST) Received: from localhost ([::1]:45664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8G0n-0005QO-PN for larch@yhetil.org; Mon, 04 Jul 2022 02:56:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8Fxy-0002i4-2t for emacs-orgmode@gnu.org; Mon, 04 Jul 2022 02:53:54 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:43953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8Fxw-0006wU-I9 for emacs-orgmode@gnu.org; Mon, 04 Jul 2022 02:53:53 -0400 Received: by mail-ej1-x62c.google.com with SMTP id fw3so14983477ejc.10 for ; Sun, 03 Jul 2022 23:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=I465eEl281U235bnSzW5WTvI16T39yjsQMpNqZniR7o=; b=U+RKw8qI/1x1pCx9II0W9rcpJiQKJ6G0GatkRZEZN4VABopJ98Aa+YxQUvuXsKikRv CWg4ru6m5cE5BYP9M03NyhU8sOn1axIHuIA6Q+nJoMH/QaZb1pJoxZ+BP/iQ3fCIRpcf E6yaFTnfVlDRZAH9oxDTI6DaFFhgZiKOD/gmdEqg54wplPNIKzV3TA1wdyx+8PjwzylH Q84LEi48sobQ5xveUxW7L93thaybz886XV9++YGiOmOsiZgz9bEeBSBVJP+JmO2BVuT2 ckJ3DzjtxgSCIMlBnMScA1sHj4O5Ep1IOX8mvxdEGaQamUDY+HoyE55W4xQuYcE8zoZf +4hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=I465eEl281U235bnSzW5WTvI16T39yjsQMpNqZniR7o=; b=XO31u9uxEprBdjvOtCERRBxBY35flGsI9K8S5EXwtVgUhsndWdb9Z/U1t9WayQ78ro Sl8Enmh7AXtEOovqata+aNNIeuryo0vrNJ8CsDlNbcTT0s1T7CGdeSD5xtiLhWVTekGN q/E/2YZJiH4hIq1aMYld+2izBUseKRzjIBlrGfJtRQMngK5BW4KaciMMZXvr/hyw0uET 4x4TWWOD6snlMsIAB/b7ePn4zNWon2r+eFkt0URYGPRsqjOpNmrKBtOvm4ZYtYkmkQvs lMGj/U9lDlRwrNRvqG6Rq4AE60MUMS1P0mP1cZMIm8Igh53tZ4yKW9/9m/laA+V8ISAm xq0A== X-Gm-Message-State: AJIora9DM3xNCX5Q+9tseDStthd9+IiI1DzjIUOrqn6SNVNRPDAvWbJY NufP6Rb/qwUlUMEVbR4QZ2ryhVwLwWU4cLqfSUs= X-Google-Smtp-Source: AGRyM1sumCK3z9FcWTQu3WJe0+8Ug474J/WTpJNrCrCu8y6tK5dP0Q2xKLejvbpx+g/Rfq8OUC62lQ3BA253E2aXJtU= X-Received: by 2002:a17:906:58cf:b0:722:e4e1:c174 with SMTP id e15-20020a17090658cf00b00722e4e1c174mr27418402ejs.85.1656917630444; Sun, 03 Jul 2022 23:53:50 -0700 (PDT) MIME-Version: 1.0 References: <87k08wi0wu.fsf@localhost> <875ykeh0gi.fsf@localhost> <8735figyqk.fsf@localhost> <87zghqfijk.fsf@localhost> In-Reply-To: <87zghqfijk.fsf@localhost> From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Mon, 4 Jul 2022 08:53:39 +0200 Message-ID: Subject: Re: [BUG] @* in [cite/nocite:@*] is a valid special LaTeX bibliography key, but it is highlighted using "error" face by oc.el (was: [PATCH] oc-csl: Add support for nocite citations) To: Ihor Radchenko Cc: John Kitchin , "Bruce D'Arcus" , emacs-orgmode list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=andras.simonyi@gmail.com; helo=mail-ej1-x62c.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, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656917810; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=I465eEl281U235bnSzW5WTvI16T39yjsQMpNqZniR7o=; b=enrQN1H0YTGeroNu5Sr1OKN2QR2MJfv7Jgoe2p9cjwm2ShmkX7DAmd6js7NuaeyU/eqrvA +bbM0WrlEkBuw0pdeYj/ouV2NpoKr5t+p7hfbebQ7PfK6WXsOG23IBjVkTSZJUzSvB6/+o EDJY3s48lBkU4vhKff+SshnqEtOt+CDmdX0NkIVP42OwKGDCpOs8sfz4Lk5XT+atbFN3nA F0Yt/XFDDafg0Y6A2j8DRzCH4KrejYqFuhK2MQrnsxIrbWjfyXJ2x9bm1sk1Eb/wWCaVag nZjCXg989KjwDJETQ1IK97Cv5UWQRYst+7ik9XcHS5NsUKLW6bWK+mhT//avIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656917810; a=rsa-sha256; cv=none; b=g++scPyf648H3tmFSoU1wsBItNeovkKnYlNe0fQEkzcQCxkMoR6GR+J6tNMg52ry5bRZ2b pfXPa7oJkJai+gzTcUp3mie2itlQa2jLcFVEEtytk7/5zVIbnzaKdOPduOIAt58p8rQ1n7 QqyrmcXxfEB+6J7V+lX+We4FuxRSIJE+7fNEZUY76HuzOseKJkdLwbjfc5duyRtFzyivdA IbQTwnmRDkcBZDEVxE2lN5V5jU2VxXUILjA8j2Gu1hFIHgCkQ5SWs0bhIkukO+MRo3n0R4 ZC91QJnbOlY/opfIRQ+yODue0xnGKXgIB5otI3Ce6uZA8wav90wTEhch+K057w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U+RKw8qI; 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: -7.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U+RKw8qI; 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: A949F2F977 X-Spam-Score: -7.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: dfopLfrsAqV8 Dear All, On Sun, 3 Jul 2022 at 15:09, Ihor Radchenko wrote: > Then, oc-natbib, oc-biblatex, and oc-csl should be modified to provide > an alternative activation function that will not highlight @* as > non-existing key. > > Probably, we can even use an alternative "special" key face, not > 'org-cite-key. AFAICS, the situation is rather complex: Org (the main branch) currently contains five export processors (basic, bibtex, natbib, biblatex and csl), but only a single activation processor called "basic". Of the five export processors the three LaTeX-based ones already support the "*" key in nocite citations, and the CSL processor could also with my proposed patch, leaving only the "basic" one without this feature. I think that the problem with simply adding one or more new activation processors with different fontification for the "*" key is that Org has no way of knowing (at least for sure) which export processor will be used for a exporting a certain Org buffer, since it can depend on the chosen export backend (see the variable org-cite-export-processors). E.g., org-cite could be set up to use the "natbib" processor for "LaTeX" export and the "basic" processor for any other format. I think that it'd be more in the spirit of the "basic" activation processor to be more permissive and not treat "*" as an error, similarly to citation styles not supported by the "basic" export processor but supported by others. best wishes, Andr=C3=A1s