From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gL4NHdN1mmGdtQAAgWs5BA (envelope-from ) for ; Sun, 21 Nov 2021 17:37:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iCG7GNN1mmEZUwAA1q6Kng (envelope-from ) for ; Sun, 21 Nov 2021 16:37:39 +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 1DB98A504 for ; Sun, 21 Nov 2021 17:37:39 +0100 (CET) Received: from localhost ([::1]:44118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mopqT-00054l-W1 for larch@yhetil.org; Sun, 21 Nov 2021 11:37:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moppo-00054b-6l for emacs-orgmode@gnu.org; Sun, 21 Nov 2021 11:36:56 -0500 Received: from ciao.gmane.io ([116.202.254.214]:52522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moppm-0003ru-Cq for emacs-orgmode@gnu.org; Sun, 21 Nov 2021 11:36:55 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1moppi-0007Si-I5 for emacs-orgmode@gnu.org; Sun, 21 Nov 2021 17:36:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: =?UTF-8?Q?Re=3a_c47b535bb_origin/main_org-element=3a_Remove_depende?= =?UTF-8?Q?ncy_on_=e2=80=98org-emphasis-regexp-components=e2=80=99?= Date: Sun, 21 Nov 2021 23:36:44 +0700 Message-ID: References: <87o86mw86r.fsf@localhost> <87fsrxkahq.fsf@nicolasgoaziou.fr> <87fsrxa1j5.fsf@localhost> <878rxoa6lk.fsf@localhost> <87pmqtj09r.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:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <87pmqtj09r.fsf@localhost> Content-Language: en-US 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: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 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.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-3.022, 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637512659; 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=iBqjsV1tzd0lLzgc/vbmJukLdcp3otza5OMWcfhfSJ0=; b=QT2eziS6zY2kGDtNdGQR1iVYn2cX4qii5I+FNTmmeAmJG52WkbUSW8RKLlVgnGKg7df6gz LKYp8AMEap3xOC2MiyiNjbcqp+wcT3Bfyt54Z5vNr4VlSuLtW436TQkqcn1SRqTy1H8XBu mRbVIE9CoTMEeWUzFaZrrkQ8Etm5QNmFR60iXPiGopPdStbxjOwQssYd04e9LO3ArGqSBh exH+pXO+dJaHhI/wqX4QJgIswrEQk/jY9dqTVuO+S5/hC2t+Fd6/yKWuummYaQ/mttLp/A u3WKYTV6eudyeIEhJIV8MEQXadZzwvAEMXn/3G0Vigf9W0E/1jQCH1FE0Kg0nA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637512659; a=rsa-sha256; cv=none; b=fWsZynhp/YTXhpQFdOmpUQxhhhmhbpQ8wQ2VMmKoJiG8clyfy+4eM44DZ1L5HS4WRKKwOT y31dScCl/+DmjAA0xCvBfBgcQILoSwVjD8mRYG6eBHpV0KJW45DTcTgVlnBrWNOgpJ0NTJ dGGzxaLCHmCCnh/fzpSMoXVldrgLVlSd4P+sJM6oYZJR3bmWfCSbmzvmPG40mbtd0cKCUI OBMlQdpcEXNlPwjCcM1rnIvqd6WPjIu0BIZpC+w2W43RKEWhhdjtDf3eGg5Di/pPk3lwCk g62rldErg9SKPjCe+HzrLKXkZDxtfigFNdtZoMAVQx/p8J7q7l7PCAR3hdWg9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -2.28 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 1DB98A504 X-Spam-Score: -2.28 X-Migadu-Scanner: scn1.migadu.com X-TUID: aVmP/G3MCYGg On 21/11/2021 17:01, Ihor Radchenko wrote: > Max Nikulin writes: > >> My draft version is attached. Ihor, thank you for inspiration. Feel free >> to improve it. I hope, it makes problem more apparent to user who tries >> to customize markers. Have I missed some undesired side effects? > >> Unfortunately with "set" type in defcustom "catch inappropriate" item is >> not hidden for valid configuration. > > I am not very familiar with :set customisation. Could you elaborate what > you mean? I do not understand what "catch inappropriate" refers to. I am afraid of confusion of ":set" defcustom parameter and "set" type in ":type" parameter. I mean "set" instead of "repeat" (or "list" in your patch). It is collection of *unique* items. Other variants allow to add several entries for the same marker, e.g. "*". Set does not allow users to add duplicated entries. I started from your description of allowed entries and changed rigid "list" type to "set" and added (approximately) (list :tag "Unsupported ignored" (string :tag "Marker") (choice :tag "Font" (face :tag "Face") (plist :tag "Property list")) (option (const verbatim)) to notify user that some part of configuration does not work, it is always shown in `customize-variable' interface, even as a disabled option for default configuration. With repeat, "Unsupported" options are not present in customization buffer, unless user has something like (custom-set-variables '(org-emphasis-alist (quote ( ("*" bold) ("_" underline) ("=" org-verbatim verbatim) ("/" italic) ("~" org-code verbatim) ("!" org-todo) ;; does not work ("+" (:strike-through t))))) ) It is possible to add "seq" entry to catch list entries having completely invalid structure, but I decided that it is redundant. So with "repeat" type user may notice "Unsupported ignored" option in customization interface. I think, it is not enough, so I added ":set" function that issues a warning during load time. Invalid configuration may still remain hidden in the case of `setq' instead of `custom-set-variables' in the init file or `eval-after-load' hook. I am afraid, nothing could be done to reliably detect the last case. >> + ... It is possible to customize >> +~org-emphasis-alist~ variable, but it will be deprecated. > > We probably do not need to mention to-be-deprecated variables in manual. > It will only confuse users. I do not insist. My intention is to inform users that wide spread recipes should be avoided. > Maybe we should also take a chance and deprecate org-emphasis-alist now? > We can introduce org-bold/italics/... faces and use them in > org-emphasis-alist default value. I do not mind. I have never experimented with themes, so I would leave this part of work to someone else.