From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iNttC9XkzmHxOgAAgWs5BA (envelope-from ) for ; Fri, 31 Dec 2021 12:09:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YK0HBNXkzmGp0wAAG6o9tA (envelope-from ) for ; Fri, 31 Dec 2021 12:09:09 +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 8B7AC310E6 for ; Fri, 31 Dec 2021 12:09:08 +0100 (CET) Received: from localhost ([::1]:38050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3FmV-0005F6-Gq for larch@yhetil.org; Fri, 31 Dec 2021 06:09:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3Flw-0005Ek-1Q for emacs-orgmode@gnu.org; Fri, 31 Dec 2021 06:08:32 -0500 Received: from mout02.posteo.de ([185.67.36.66]:58061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3Flu-0003zS-5D for emacs-orgmode@gnu.org; Fri, 31 Dec 2021 06:08:31 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 16D74240104 for ; Fri, 31 Dec 2021 12:08:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1640948908; bh=z8g3EXYo/KHr88ApnXWiSSSk9Hmf3hKeH2C9ydcOG5Q=; h=From:To:Subject:Date:From; b=c9cSLg92XkoEY0+4RdInL5LEyaFFCY6StwgJaieY+55d5ABXqMqWFPXf2fZiE9g6P 3zFrPzUDiw4hxAnTGFd9eHcoaIOS1yvKQvmFnCRzl6WitfdIrgJfawh077NgqH6q/z lXGN4dJHwSWRxFHaLuUhEbsvK4ZuIGzpnb7DTFQDXCpVN/bBt0k8mvWXLz4yWQKxcl lGUkMUq7B5ij9wOyaj98+5CvgzrR0f/mcgKCEp7ea3kGHcKqA3UZOJOrl/KATV92YK PzJGlwUlEjZZdM68+qGhHSYdJVxpoOp6d7V+td5iF7iZ/HsPN/hRSIYJhUWYwPDSb+ u97DucE3Fjfjg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JQMnl2m9kz6tnh for ; Fri, 31 Dec 2021 12:08:27 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: Re: [BUG] Underlined text in parentheses is not exported correctly References: <874k6p3wtq.fsf@posteo.net> Date: Fri, 31 Dec 2021 11:08:25 +0000 In-Reply-To: <874k6p3wtq.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?= =?utf-8?Q?as=22's?= message of "Fri, 31 Dec 2021 10:14:41 +0000") Message-ID: <87zgoh2frq.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640948948; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=dMN84p79VRhzsnRFpVxwF4uCbh9PRBe57xZ1rv4s188=; b=ib3S71RZcC1udlKcbuKH+DkYCIxavx2JDpGR4NuXc1Yx9LuUuIuc9yjRpqGreNPCtKrNQe 8l8L3W5BoSBc+9R8wloLe+fZhTBRveJW5MqUJmNtygIuw2pzWaxFlNb2AW4CEdlDFBi04e 4RarxlvJk0xgP3M5IGmwbrdTHZJ9KftJ4S8O7mmhRZIMQmUs32W7BMxcLPoQXK9BiIfBfI /Gmk0IeviZA9ibbHkmjj5qsQNtp71a7MzG6qMEKUHYDzRJoaEFnjSC6c8WZmS2+CRUadO/ x7g6I53wfbtAWh+I+VCM6OI2JUVTbF98gmSeqwMjU9pUrHjvqid6sTP1+XGE3A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640948948; a=rsa-sha256; cv=none; b=dWvofGQauxxBxGOlPqfY80weuw+U5ccryjV/C9uvo9Xqo4KLErGa1NeTmpif1OYO2I8WjE /hjZq1LjrI0Qjivwzg9Z1mEur0hX07yNs3mQeXQSGkSSkFIs4GIR6cAXqO+l2GPLocUGfQ p81ts7QJzf6Kdq4OH4+a48zWTthPTpXCSdJDdOjkrMvj4du5rt0L1r1nvJxmYcb/24oFzf 3MCFGXSWnRgjzKKlSE7FIiCcdfTAGZ7p6QCzhIOfYFC8Yo1eCkuOD5NzeONu+J8ylGkr1+ yRuwTXJOCm1EcnzGwYQw5ey3ulk81Xml4etugiXsk5FOSGovFkwm7Pj2PmcDOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=c9cSLg92; 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" X-Migadu-Spam-Score: -9.28 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=c9cSLg92; 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" X-Migadu-Queue-Id: 8B7AC310E6 X-Spam-Score: -9.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: g3cwtpRHu+mW Juan Manuel Mac=C3=ADas writes: > If I do M-! (occur org-match-substring-regexp) > > I get: > > 10:(_underline_) > 22:(_underline_ text) Well, in my case the temporary workaround was to force super/subscripts with braces: #+begin_src emacs-lisp (defun my-org-element-subscript-with-braces-parser () (save-excursion (unless (bolp) (backward-char)) (when (looking-at org-match-substring-with-braces-regexp) (let ((bracketsp (match-beginning 4)) (begin (match-beginning 2)) (contents-begin (or (match-beginning 4) (match-beginning 3))) (contents-end (or (match-end 4) (match-end 3))) (post-blank (progn (goto-char (match-end 0)) (skip-chars-forward " \t"))) (end (point))) (list 'subscript (list :begin begin :end end :use-brackets-p bracketsp :contents-begin contents-begin :contents-end contents-end :post-blank post-blank)))))) (advice-add 'org-element-subscript-parser :override #'my-org-element-subscr= ipt-with-braces-parser) #+end_src