From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qNizDG7p5GP3dAEAbAwnHQ (envelope-from ) for ; Thu, 09 Feb 2023 13:39:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kB2+DG7p5GN8BwEA9RJhRA (envelope-from ) for ; Thu, 09 Feb 2023 13:39:10 +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 116623D705 for ; Thu, 9 Feb 2023 13:39:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ5mC-0007Yf-UW; Thu, 09 Feb 2023 07:11:44 -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 1pQ5mB-0007Y2-04 for emacs-orgmode@gnu.org; Thu, 09 Feb 2023 07:11:43 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQ5m9-0002R4-MV for emacs-orgmode@gnu.org; Thu, 09 Feb 2023 07:11:42 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pQ5m6-0000pM-Qs for emacs-orgmode@gnu.org; Thu, 09 Feb 2023 13:11:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Should we obsolete org-emphasis-alist? (was: [PATCH v5] org.el: Warning for unsupported markers in `org-set-emphasis-alist') Date: Thu, 9 Feb 2023 19:11:29 +0700 Message-ID: References: <87o86mw86r.fsf@localhost> <87fsrxkahq.fsf@nicolasgoaziou.fr> <87fsrxa1j5.fsf@localhost> <878rxoa6lk.fsf@localhost> <87pmqtj09r.fsf@localhost> <87mt9743di.fsf@localhost> <871qqhlskf.fsf@localhost> <87r0v8pcdb.fsf@localhost> <87cz6lah1n.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Content-Language: en-US In-Reply-To: <87cz6lah1n.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 17 X-Spam_score: 1.7 X-Spam_bar: + X-Spam_report: (1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-1.148, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675946350; a=rsa-sha256; cv=none; b=DyTDfGh3zjEHGjHlR53LPOD5ApQHId0DrkajT404ixm3Kg9qVVjABeQQ2JPLX7IF/EI40x 2OULSfzZt0oPd2yYVmA0xNZHIKw1whfOW81c/O3xzuLBAE8c0X9Mrqs9MsmaL1OU+81L9W GGzofxaR4ZnjDWEMPmx1ChlpOLfJbtess7rnGLJylhgjGsgTaFKr/d6hIyj3t8Q9olYaCX r3gcSez9naXoDSuP72iHdKZspmoP+AokhgU939SX7/HG2wcgnsQEh6AjHCVy+ZfzcwcC0s lN22fjSK6kfdfKkaUNOWrAQAbJl6F0Dvr2a0skwlZgFK7rcE5xxYdZ34+JoQrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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=1675946350; 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; bh=u87hF2WuI2y2htxxDx+Eigidoy6oXNP/QkaMNPZDrNQ=; b=GCw7Y1fnRKUxHKPbkZ4I+irdJW98gzAndNUfSPWmm6KF9ORcZ2OzFCRBAylDXKRWNQr1PW FnqW2uNZwGzSSK/wp6mVzx5zfpC06g9EA1twFWgo7h+HKnUpslaTZZu6YrvOOfjX0vyoK3 gIoAL0WnbRE0b02UyWkwyNUqLWIO/TkU12HnCwHI1gX3t4g+Wi8/M0BIpxrYYW64+XRgqM kYHyxaNvmyneIzmOSchGIUQhtqaS5VAa47VR+eciUvEhegKOCbjn+cgDAi+VxF+ohsTGFW SpR8X/yGvbz9du6lvSK7nvJ8rcB4Cyv9HVmA/u86ynRDoLsMCpagokDN6jYqoQ== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 4.10 X-Spam-Score: 4.10 X-Migadu-Queue-Id: 116623D705 X-Migadu-Scanner: scn1.migadu.com X-TUID: /9wtEVBWZHHr On 07/02/2023 17:47, Ihor Radchenko wrote: > > Upon looking closer, `org-set-emph-re' is not affected by the value of > `org-emphasis-alist' with a single exception when the value is nil. You are right, it is result of the following commit: 9fb2e047d 2016-12-08 09:44:26 +0100 Nicolas Goaziou: Split `org-emph-re' and `org-verbatim-re' > I think that we should simply obsolete `org-emphasis-alist' and > introduce individual faces for emphasis. I agree with your conclusions and proposal. If you are close to merging fontification based on org-element then we may just discard this patch. Otherwise it may be merged with minimal modifications: - Do not add the watcher - Instead of `org-set-emph-re' use a lambda calling new `org-emphasis-alist--check-value` as the :set attribute of `defcustom'. - Fix description of verbatim tag.