From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sG5+IfgncWXmCAEAauVa8A:P1 (envelope-from ) for ; Thu, 07 Dec 2023 03:03:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sG5+IfgncWXmCAEAauVa8A (envelope-from ) for ; Thu, 07 Dec 2023 03:03:36 +0100 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 118003C384 for ; Thu, 7 Dec 2023 03:03:36 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=KLQVHJaN; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701914616; 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=shZ2euORN1SRC5GV4PiGNGV0n9Yjc9e9zinsCka1X5k=; b=dfObSOut7QI8c01INqMQiaIXC0fQ25UT0w8vnNgpPdBvDJ0mNo1x/JjBdyO33TgglUS4Dj gpkRDL3YrS7qo5Xl1fJpT5TSPU4ptBXSVwQIClaQYSH4ncn6kBFa7bNjlsJnZtsWvH2iBW V2vv8uUHo/tsD1tgksR7covlnKR/uKiMs/4a5GZ9fT9QVPbXVFSmsnah3O0StxKdU90h6K +Ar2fei/iW4xVOKYB/9awJSXbKgq+rRjc+k2Rg4Davmit4XDDoY0VzWe3D4kw5xO1WRMJu XUNX9pl6c634d5FSIOH0iCB4nTxSSF2ewtw1bWlYCKwvAJ+v6jRZWYNOCcRy5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701914616; a=rsa-sha256; cv=none; b=bzJpdaJ23yDK2avtZ/0iklreSvWW3NEs4HVBz6zP1sh3yiKs7g+dI9Lik1jf/Xr7BaTtBL D0u5RgqE0ffdgIiVnaFUSHt2WmbU1i1RSSN8dKGA171tBIxRZ7+cF07Eku+7i+R9Wdq83S A9h9JH5RnbqSN67ZDmIQLKUFZm2PLqNLrr1Ud9FJnkrz79Lli2JPFzxHDUhw9RV1z8lqry eHNhfwTBfaQ+58bJpz8No616HlZuKULlB9RkxtdChl73Xoq1kx3X+b9mbNaQ603CzYoB55 Hb/Dgxop4XKS+PcAaNcH/xA4tdromjIevDByrFt6MmQ96Y2yT0V5+RUG+ccYzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=KLQVHJaN; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rB3ij-0000vw-S7; Wed, 06 Dec 2023 21:02:33 -0500 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 1rB3ii-0000vY-BJ for emacs-orgmode@gnu.org; Wed, 06 Dec 2023 21:02:32 -0500 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rB3ig-0001lt-JA for emacs-orgmode@gnu.org; Wed, 06 Dec 2023 21:02:32 -0500 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a1eb6b2771fso15092566b.3 for ; Wed, 06 Dec 2023 18:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701914548; x=1702519348; darn=gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=shZ2euORN1SRC5GV4PiGNGV0n9Yjc9e9zinsCka1X5k=; b=KLQVHJaNb02UF8e6DLDDxhHi0byi2sF5wURxDn9oXJvlNQQP5Ci4kZOs8iyFnK+aW+ n5T7r5amd1PVoDvHZcagylzWRBeWlTJK0j5gXGs/iwRM9QI0JZOpymI0waReTGHcZOGX wKKncxBvJP6HR45p/5qeGoxGgAwOagwcc30x2H/WAWnH86CbItchHIUYFrELwwXqfPUh lvPoXVM20kouv02hs+iaPJDxgc/9OjBh6mNJaLh05CFElVjzdg9IoL/eX5D9V0+1jEc4 3SGezXmKARp1eQ8WZPyc71jyHAa8xWEOZqSVth14km4lf4LHUdQa5Q31ljcjtuFUEhgm W0Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701914548; x=1702519348; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=shZ2euORN1SRC5GV4PiGNGV0n9Yjc9e9zinsCka1X5k=; b=oxSG82wcc3NmIxGmJFkxbUvkG0/CVxpa+tRr8vlUleP/hyU759ShV2mk7ekPHqtN4y fv/XPqPe4K4xr2UnqGrmD1t29g4xUOCUBNV1MvegKvAa1L1qbuJJOXsmYmdev1hff2OE LrsFTrgQvI6fo0j+DSiNeNh4jQQcCy8tO+Rtmh1KaBsKSBaVlod5JsC6xaWhm9C2GCF5 TsRgVV7Uh3JwYwYjO59KJaFgSqnCnn/0hs2AMI1ekOdM3+SDbdUvkt03qtVczbWextz8 zdaan2fHTixDeRqSvMJgMnHvjBx2fzl+W3DvGY63SCmW3ajcSjLOZt0k0wKn43AmOCfE xtEQ== X-Gm-Message-State: AOJu0Yy+7c4z6Hr9AsU9L3YGss4f1fo/aSrm3lTRp58U7lqxXB/RWXWr 0K77iYNjH4sutUnptuhPcuc= X-Google-Smtp-Source: AGHT+IHkoMLepmB2uZi3lVEWTL7PS+EWY8gEAjHbpEpmIeBFW55Y+6SMneTMdRLfFOkEEAEGE3LLjQ== X-Received: by 2002:a17:906:19c8:b0:a18:d66e:c62b with SMTP id h8-20020a17090619c800b00a18d66ec62bmr1083569ejd.29.1701914547925; Wed, 06 Dec 2023 18:02:27 -0800 (PST) Received: from nixos.localnet (aaubervilliers-157-1-5-2.w83-200.abo.wanadoo.fr. [83.200.44.2]) by smtp.gmail.com with ESMTPSA id n24-20020a17090673d800b009ff783d892esm155862ejl.146.2023.12.06.18.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 18:02:27 -0800 (PST) From: chris To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Using backticks for the inline code delimiter? (now with `org-publish-all`) Date: Thu, 07 Dec 2023 02:02:25 +0000 Message-ID: <4548214.LvFx2qVVIh@nixos> In-Reply-To: <87leaam80y.fsf@localhost> References: <4396644.LvFx2qVVIh@pluto> <5030515.31r3eYUQgx@nixos> <87leaam80y.fsf@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=inkbottle007@gmail.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -6.73 X-Spam-Score: -6.73 X-Migadu-Queue-Id: 118003C384 X-TUID: ePCpry3W/VII On Monday, December 4, 2023 1:06:37 PM UTC you wrote: > chris writes: > > The code below is working fine as long as I stay in `org-mode`. But it > > shows its limitations when I do `M-x org-publish-all`, at which time, > > instead of having the text with style verbatim, I get the text within > > backticks. > > > > Is there any improvement you could think of that would fix that? > > You will need to patch the parser in org-element.el. Yes, that seems a very good idea. I've never "patched" emacs before: in the hack I've been using so far I was doing some `(advice-add 'org-do-emphasis-faces :override #'org-do-emphasis- faces-fixed)` thing. In any case the problem (or part of it) lies in `org-element.el` because I've observed the backticks constructions were not recognised as an "element". But okay, patch emacs, no worries. Since I'm using NixOS, it will take a bit of time for me to figure out how to do it the NixOS way. > > We do not officially support extending markup syntax. So, even changing > org-element may still leave other bugs. Caveat emptor. The backticks for inline code or verbatim are very pleasing to the eye, and are used literally universally.