From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kMiZA1tik2E5NQAAgWs5BA (envelope-from ) for ; Tue, 16 Nov 2021 08:48:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QGPgOlpik2FxHQAAB5/wlQ (envelope-from ) for ; Tue, 16 Nov 2021 07:48:42 +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 9FA8BDA7A for ; Tue, 16 Nov 2021 08:48:42 +0100 (CET) Received: from localhost ([::1]:38286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmtCr-0004B6-Nw for larch@yhetil.org; Tue, 16 Nov 2021 02:48:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmt6K-0007zN-KN for emacs-orgmode@gnu.org; Tue, 16 Nov 2021 02:41:56 -0500 Received: from [2607:f8b0:4864:20::434] (port=43855 helo=mail-pf1-x434.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmt6I-0008G3-UU for emacs-orgmode@gnu.org; Tue, 16 Nov 2021 02:41:56 -0500 Received: by mail-pf1-x434.google.com with SMTP id n85so17380542pfd.10 for ; Mon, 15 Nov 2021 23:41:54 -0800 (PST) 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=Tp8crsjyRii1wKsLEADZql2/3ddBE0B6hbOKxxJ9urw=; b=eHeV+G9x5JcNw0212+xsAoWtUhHqFiYJvv9GpTUckQ0C+kwimtiwBdn0CsEGh/+YO7 5ye/YqtvCyfWyxCsupb9rMadvwjeEZvRhIM2eM3NgFMbzwQjnIUv+8FpshBwx2Jipi1R 48i3nYSErWaLjbSLT4LnYv8xPEL4tzhQhLMlK+YDA85KXXw2M/inX06tvlLZ353g2Tmv xSuHd2/BlghSRIUVBn1bK52/Aa6djO+pboyEDXtBwZrWNFcmv1lObdhs3r8o5e4roun6 r29T438/lR8Riyf+8LSJ48KyBiSsCP2KTN9JHfaFutkQLcBADvVVnejqtreqF8ISn+Sf ITJg== 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=Tp8crsjyRii1wKsLEADZql2/3ddBE0B6hbOKxxJ9urw=; b=73UTBTDHOwUcAWhcwhGvc592lT4XRje/Ltz/bf2kqqSciE9WwUwTSESWeLtxYA5nOJ ubeawucZv1VUsOx7wrB16EJLqBzG5Wj52VbKHWhqu5iBN8F1jpUbLBdfLaPqaQimHVLb RT2XkF6eWwMuMD6EsJ07rLWmXnzg7A35rsmCefQYxh47DMmCT5FEfTFRxjfaYC6XOqhR oaoPe4sd0BhhnZqAk9Je3+G8qIdPaN3m1pJpO/jR7TI5PRZwXD7oLqaXk2/ReIKTzYRz 9+5DcBNPVI1+UhSEKJKTcEXyaQKHJvlkceEMpf/NeBCTG6H/LLiiGaC0V4l9WsscWnje N62g== X-Gm-Message-State: AOAM532aYozjQFK/4nn0C/7DKin4wftDzLQ6g4La+XUjqPIuCjLJb/tL BnPwBSN5yj9De+yLrbtmhJ4= X-Google-Smtp-Source: ABdhPJxBICTSUHdYDUdpUXbNKTmjgscUekekNRBkihp6TNXoVqAqVFkkjY96LBkYlUQf3EH5BEb0MQ== X-Received: by 2002:a62:1b86:0:b0:47b:d112:96d4 with SMTP id b128-20020a621b86000000b0047bd11296d4mr39283283pfb.52.1637048513653; Mon, 15 Nov 2021 23:41:53 -0800 (PST) Received: from localhost ([210.3.160.226]) by smtp.gmail.com with ESMTPSA id on6sm1738301pjb.47.2021.11.15.23.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 23:41:53 -0800 (PST) From: Ihor Radchenko To: Max Nikulin Subject: Re: c47b535bb origin/main org-element: Remove dependency on =?utf-8?Q?=E2=80=98org-emphasis-regexp-components=E2=80=99?= In-Reply-To: References: <87o86mw86r.fsf@localhost> <87fsrxkahq.fsf@nicolasgoaziou.fr> <87fsrxa1j5.fsf@localhost> Date: Tue, 16 Nov 2021 15:43:19 +0800 Message-ID: <878rxoa6lk.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::434 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=yantar92@gmail.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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: , 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=1637048922; 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=Tp8crsjyRii1wKsLEADZql2/3ddBE0B6hbOKxxJ9urw=; b=QfcqfWEMOVUWr964cvAbpxLpSS5opG+I1YylIugz4Mt2PB9o9HHLBfF6kiYQyO6YE4iFuv 0q7YVzwd5DW31k1ycYu0DT/gEuQ7fzoeFY28EkJtfuIQdbK95M86hnGh/+KIL9dhUvEJm4 inCv3Kd3TFwq5s0BmOZ6wfdQzO/0Iy9KsTdsrLQAULstA4fhCMAvy5vMQ2i8SATyA8Umm/ doXtV50IkbEi91H2FwrtNQDw8BkPgy/iy8vMKgIRuJQlk6Qy1ocN9avz2TJHepSsVAEeYM 9cV1YnJJ0Yw7F7EkvagidDugxspF7N2at3cs9WWp7pLRBlhMNpztUQo9P4yfxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637048922; a=rsa-sha256; cv=none; b=Sdq0bEapJFws1QdkvmokkzejILTR6J+F6EfwZsqxVHajJwWVRtEe1iRFigXhOspOLFhuHA ghjvKn6MBkyth9T08UVaAoUZmqqM2doMf2XCdv4fTf7hqZCh5IJsp2/8H9X/+LH8R8nN5I IFzbTWJ9yntxsXyAewefZbTKUPaIU5uWyTYvt42OWiK05BNgD48kZu/w6XW3higf/ANx/7 Au+TORUL3DSYFO6H2EICUrWtUNM0kFucoNem7gHcV1fjlDhfNys2c1LB2pQXtxQrMqDEUB E9JXTCdfL1XHcHlDX8kTLeVtWgZHTxmMCmLOfgRkUWUAG5ieWUNbXgaqZCdnNg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eHeV+G9x; 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: -3.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eHeV+G9x; 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: 9FA8BDA7A X-Spam-Score: -3.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: tinTHGapFOIb --=-=-= Content-Type: text/plain Max Nikulin writes: > Better docs and some restriction on defcustom values were discussed earlier: > https://list.orgmode.org/87k0oyd3pw.fsf@nicolasgoaziou.fr/ > Nicolas Goaziou. Re: Using backticks for the inline code delimeter? Mon, > 19 Apr 2021 11:27:07 +0200 > > Sorry, I have not prepared a patch. I am not confident with defcustom > fine tuning and have not experimented with it since that time. Maybe something like the attached? Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-org-emphasis-alist-Update-defcustom-making-emphasis-.patch >From 8057cdb57f6600443b3605c1e7f00a30bea2a9ea Mon Sep 17 00:00:00 2001 Message-Id: <8057cdb57f6600443b3605c1e7f00a30bea2a9ea.1637048505.git.yantar92@gmail.com> From: Ihor Radchenko Date: Tue, 16 Nov 2021 15:40:35 +0800 Subject: [PATCH] org-emphasis-alist: Update defcustom making emphasis characters constant * lisp/org.el (org-emphasis-alist): Mention that emphasis characters should not be changed by user. Update the defcustom type accordingly. --- lisp/org.el | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 603b57279..7af5e26c6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3833,18 +3833,47 @@ (defcustom org-emphasis-alist marker characters and the face to be used by font-lock for highlighting in Org buffers. +The characters in the alist must not be changed. They do not affect +the actual Org syntax, just fontification. + You need to reload Org or to restart Emacs after customizing this." :group 'org-appearance :set 'org-set-emph-re :version "24.4" :package-version '(Org . "8.0") - :type '(repeat + :type '(list (list - (string :tag "Marker character") + (const "*") + (choice + (face :tag "Bold emphasis face") + (plist :tag "Bold emphasis face property list"))) + (list + (const "/") + (choice + (face :tag "Italic emphasis face") + (plist :tag "Italic emphasis face property list"))) + (list + (const "_") + (choice + (face :tag "Underline emphasis face") + (plist :tag "Underline emphasis face property list"))) + (list + (const "=") + (choice + (face :tag "Verbatim emphasis face") + (plist :tag "Verbatim emphasis face property list")) + (const verbatim)) + (list + (const "~") + (choice + (face :tag "Code emphasis face") + (plist :tag "Code emphasis face property list")) + (const verbatim)) + (list + (const "+") (choice - (face :tag "Font-lock-face") - (plist :tag "Face property list")) - (option (const verbatim))))) + (face :tag "Strike-through emphasis face") + (plist :tag "Strike-through emphasis face property list"))))) (defvar org-protecting-blocks '("src" "example" "export") "Blocks that contain text that is quoted, i.e. not processed as Org syntax. -- 2.32.0 --=-=-=--