From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gDy0BCJtWWHeFwAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 10:43:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4OJ0OyFtWWHFOgAAB5/wlQ (envelope-from ) for ; Sun, 03 Oct 2021 08:43:13 +0000 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 68AC01208A for ; Sun, 3 Oct 2021 10:43:13 +0200 (CEST) Received: from localhost ([::1]:52248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWx5U-0005GK-KI for larch@yhetil.org; Sun, 03 Oct 2021 04:43:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWx4W-0005GB-1P for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 04:42:12 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:44877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWx4U-00058F-F0 for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 04:42:11 -0400 Received: by mail-pj1-x102b.google.com with SMTP id oa12-20020a17090b1bcc00b0019f715462a8so4717022pjb.3 for ; Sun, 03 Oct 2021 01:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=4S/TtnBXju0cfEklG/MXNqSqjpX0x0LaIvNua6fNNjU=; b=b0N0bvPiEGRjs0dXwTKkclD+N2eKhuckeM0MmMzOHYaSPpu4s0pBotAqTdBKZ/qUE1 //H9qHsJ/lT6xA4sM0vGQ3HR/6x6LeYW6X/tpVbWxt6Gw+qIOS2CdPSyB5MyzXaGyCiq 5kOQX+m3kXXoS8NXtl2ZvK2OzWUx7lbpk/HQ+FVY++HQpPTVg5JRS5ejBEVskRqv/XKk AGHEs53898lzurAuHYtKPWtfnAE/+sKEiT0ltzTI5HRkOJh7Z3XY/GEgKu/WAbPkMrjo cKFU+gC5GT174HuUZhYNuROPQcxAOg4e37hsrJOvah0u2L85t1I1ELy79XhmbZs7eZZG lHrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=4S/TtnBXju0cfEklG/MXNqSqjpX0x0LaIvNua6fNNjU=; b=zOHGYqSkjHkJ7XNTQufNQrfKuTk153gm/zAISoqoKWsg3o8mNvSfYWTaGjdUzFrp+q t4uJyI0v7NtPmGydVV/bRapdqptCszfJd9llkZLBDjz7bp0RJ8y+TDKesAH4Z9L05VM9 L9rOz7FggLEWKKQS9l8VgjuBK51ejxneHDiL8IGi2cZmGpu5wTSMPva1cMl7l4daaP78 vur4uTHmNyMHyB5CY3hT14siqLR5+31wS4N/IUInIDFWtXCCePQfLisNGZlc6yUpor5g kBorerwsfpDJDW7uV/Rk9cPQoWbcRBpPlnb5wqUv89NAYKt3F2bIXQizbMzFslOT80y2 0EbQ== X-Gm-Message-State: AOAM532Z6LBaBiiSDeXowRGc3HM9CIE+GrJlG72+xqhIMAzhrSGGQ/2O OUXBPnLD8Rp0f+Lw92za5vc= X-Google-Smtp-Source: ABdhPJx6SyTpqspQ/YnFoUP49l0EH5/2uyYHuCAPDnnc5YBT89ai2aB6P5IFxoxKo+I0bTs5UUzBhA== X-Received: by 2002:a17:902:b717:b029:11a:fae3:ba7c with SMTP id d23-20020a170902b717b029011afae3ba7cmr19146853pls.28.1633250529048; Sun, 03 Oct 2021 01:42:09 -0700 (PDT) Received: from localhost ([210.3.160.226]) by smtp.gmail.com with ESMTPSA id g8sm10992093pfv.51.2021.10.03.01.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 01:42:08 -0700 (PDT) From: Ihor Radchenko To: Protesilaos Stavrou Subject: Re: Possible bug? Combine emphasis marker faces? In-Reply-To: <87tui4wx41.fsf@protesilaos.com> References: <87tui4wx41.fsf@protesilaos.com> Date: Sun, 03 Oct 2021 16:43:27 +0800 Message-ID: <87zgrq5wi8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633250593; 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=4S/TtnBXju0cfEklG/MXNqSqjpX0x0LaIvNua6fNNjU=; b=uEO3f66F82gmYnNtquhkpD44xdEGyRwqKe8VI5ugnUOSYRWyM7C0/b3rP6Mq8EECUmIFW/ linRj21xFVMsFUeFUh6DgwRLXwmdEzcssou7IR9BLvbuJhlFEFnH+PcbmZvUnQORjx+1Rt GMluHC2dDJVAeAIrjxzKy0T499fZjcsGUK8KGwGr2uxNOPolRp90+Y1rD7z4JsPw6Ni1AL qYUYZHqFbDwmr4c1kdT1UJoxyEmRIxl1iGpJCUyQwqK5aoZlH3YBlDeuN13+hiSI8eh83g xUKtdgic6nhqTPEBbkVmkua5Fm/+cmTvsQOQ5LB2zUBEMXWogu113NtytZt4QA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633250593; a=rsa-sha256; cv=none; b=iNzeo7MJnyULEP3kVxGoAC4ts9XkER5MGgD57GbtOtfEgcNb44DkTYOOqu4vX65FfhVXIC ct2GuMR4aaeAhR1/yubOk1T2rnWu5oGmRBotOKC0mDfCdGjpRVrQG6TEDBxxejPUNSJ3nZ 4Jvdruwm3/0seV0Y26G8SNXsgqKHdrSxcZxvqbMAtQsRvm77qgvKYekWQHdGxtnMSnIVgZ MsdTK1qId7nakoPVw5O6ZyVLH/LeM4Q9kfiv2WGdrjJA500MxgWKfr7y5dI2/rQWXtJeQu 0bOvX/OI9yzX6+CeJATsFNsqf6EfOKmUUSOjPQTMQ8FKla5eAtZZ9BVd1+Qd+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=b0N0bvPi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=b0N0bvPi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 68AC01208A X-Spam-Score: -1.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: mLNKntA3FQT8 Protesilaos Stavrou writes: > Hello everyone, > > I have noticed that it is not possible to combine org-emphasis-alist > characters. When applying multiple types of emphasis, the face > corresponding to the outermost pair overrides its innermost counterparts. > > For example, */emphasise/* will render with the 'bold' face, while > /*emphasise*/ will use the 'italic' face. Confirmed > Looking at the code, this seems to be intentional or unavoidable, while > I do not know of a way to blend faces dynamically. > > Is there a way to get composite styles? Such as bold and italic or > verbatim and underline, etc.? org-element-context does return nested emphasis, so it is certainly possible to combine composite styles (at least, during export). Fontification code does not work with elements though and I do not see an easy way to change it. Rewriting fontification using org-element API would eliminate this type of issues. However, I am not sure about performance (maybe with org-element-cache?). Best, Ihor