From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AHbMNd4jQmc2vQAAqHPOHw:P1 (envelope-from ) for ; Sat, 23 Nov 2024 18:50:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AHbMNd4jQmc2vQAAqHPOHw (envelope-from ) for ; Sat, 23 Nov 2024 19:50:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=kWcB8YaH; dmarc=pass (policy=none) header.from=posteo.net; 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=1732387805; a=rsa-sha256; cv=none; b=lisZGtU6SPXV/qj0uwWuys6lmz+DKjmOSE9ykKwlL8AYzhyn17XbSMYiZ7jDGyijM7OlVW 2PrBWqFpz5Muy2CGfeB/lx+GxrJAqgUakDPxnLSkwqv3SmSWzjXL2BDu5VCv6jifyvJm73 c4pwZ5tl11bOop5OsQHHAhjWZiP3HuMzeE3Tq6WRGjuIrZcIxkeIsS/ao/HFIRy+iR61QV arYjvxQj4ciM5N5yPrFVgbzHRMRSGp8+f3VHgQGmfjWd9VBKEsJPeXUpcc49wn8vG7otQW eCI+FuuEI04hwOgU5kbcnqYiDu4M0IOD8e9KfayQdKRuB2dGDyzzs9DtGclemw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=kWcB8YaH; dmarc=pass (policy=none) header.from=posteo.net; 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=1732387805; 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=6dcvWfSv1PN/AMbgB2DolEF9VTrYrUiCVsTMtQjrFHA=; b=ZStMaOs1wC7Fwg9s5VbPt9KYIds4gbmSAPTEr2gNY9BgQiaUUUcwIDjruql7hn9fkEi2J1 /DQfavIQ/p6Z6iFfZoXH6NU5pWk+/14grUwRbyV3UKarrnDAIYw3KTdlJxUHqPT6QvDjf8 9OQZB7HwkBpNOCRI4DcdT15VEF8c/ouo7qq+zKGmGa1HoFaXbOuYWxbGYYDBovr5aLdKKt WlxMolNLrthupD4goeP1TS2KKX7CA8lPRcY18HNJ9Q0tu6JnClvghqALQDSDiqf0SX3UZF Ib+Bu8fmtKhcrnQyqDzW0e0etXrDZoq3VJm4tSB8JNRZYXwn6f5VX7Fs5O0/6A== 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 CCE872EE6 for ; Sat, 23 Nov 2024 19:50:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEvCE-00057g-Io; Sat, 23 Nov 2024 13:49:30 -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 1tEvC8-00057F-UD for emacs-orgmode@gnu.org; Sat, 23 Nov 2024 13:49:24 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEvC6-0000Bi-MM for emacs-orgmode@gnu.org; Sat, 23 Nov 2024 13:49:24 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4DD6E240101 for ; Sat, 23 Nov 2024 19:49:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1732387760; bh=oIgiemqLEN3bZNmhVU3f0Meuzcq8YXmoCj0LwBONuJs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=kWcB8YaHJEoBoNYHj55jplHTVwwtEuU5Nz2s/32iJNcqUoILA/WcFHk2k/2pu5ukV BFeJ7/r9pb6vxnqtJ92G7MBO3UfoXtMsQtDVHUcvhAkY8mMDUgFLIpQkpTwlwBI1xV TcLWOJHN89oVEajVE+ANX++w1YkJg2nfxI8R35KfuAAOVYDRcPj2neNU9HiBbw5AQe tjLLDKSJmhh3xvSkxufR3z+hJWUO+aNflaKrkabetb46Ueckn67z4xCHkt2Q84PwXK No5Y1TpWPXpu/SUPuacycDxHdv2kMIxoIMuaymg806UCNY6ovHAMEy2uZP58/DKXjA sx85gqLyKswIA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XwgxC00lXz9rxK; Sat, 23 Nov 2024 19:49:18 +0100 (CET) From: Ihor Radchenko To: Robert Klein Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] emphasis marker inside macro breaks macro [9.7.16 (release_9.7.16 @ /home/roklein/ot/org-mode/lisp/)] In-Reply-To: <20241113131945.26fe6c33@pcedv2.poly.mpip-mainz.mpg.de> References: <20241113131945.26fe6c33@pcedv2.poly.mpip-mainz.mpg.de> Date: Sat, 23 Nov 2024 18:50:53 +0000 Message-ID: <874j3x4wdu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: CCE872EE6 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.94 X-Spam-Score: -8.94 X-TUID: /nc2RRdY6exU Robert Klein writes: > When I have an emphasized section with a macro inside and the macro > contains the emphasis delimiter, macro expansion is broken (i.e. doesn't > happen, it is exported verbatim, including the braces and the macro name). > > In for / and * the emphasis section ends where the delimiter shows up in the Macro > though not for =. > ... > - wrong: > > /Open the file {{{Pathname(/ bashrc)}}}/ > > /Open the file {{{Pathname(alpha/ bashrc)}}}/ > > /Open the file {{{Pathname(~/.bashrc)}}}/ > > *bold faced Macro {{{Pathname(*.org)}}}* > > `another {{{Pathname(a = is an equal sign)}}} example' This is not a bug. You just gave Org ambiguous markup and Org resolved the ambiguity in a way you did not expect. /Open the file {{{Pathname(/ bashrc)}}}/ could be parsed in two ways Open the file Pathname(/ bashrc) or Open the file {{{Pathname( bashrc)}}}/ Org happens to use "first matching markup wins" rule, leading to what you have observed. You can resolve such ambiguity in two ways: 1. Use zero-width space, as we suggest in https://orgmode.org/manual/Escape-Character.html 2. Use \slash entity to specify slash explicitly where you do not want it to be treated as markup delimiter. Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at