emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] org.el: Warning for unsupported markers in `org-set-emphasis


From: Max Nikulin
Subject: Re: [PATCH] org.el: Warning for unsupported markers in `org-set-emphasis-alist'
Date: Fri, 4 Nov 2022 19:31:15 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2

On 04/11/2022 13:53, Ihor Radchenko wrote:

I have reviewed the patch, and I'd like to suggest a new version with the
following changes:

Great! I have not tried your patch in action, but I do not see substantial changes.

1. Use `set-default-toplevel-value' instead of `set' that might be
    quirky in some scenarios.

Almost certainly it is an improvement. Docs in the Emacs repo have been updated, but the published variant still suggests `set-default' https://www.gnu.org/software/emacs/manual/html_node/elisp/Variable-Definitions.html

2. Use `warn' instead of `message' as more alarming.

I do not mind.

3. Remove verbatim in ("=" org-verbatim verbatim), ("~" org-code
    verbatim), and the :type spec.  AFAIU, they are unused. But can you
    please double-check?

It seems, before the following commit, verbatim was used to suppress flyspell, but now "~" and "=" are hardcoded.

9fb2e047d 2016-12-08 09:44:26 +0100 Nicolas Goaziou: Split `org-emph-re' and `org-verbatim-re'

I think, verbatim option should not be removed from `defcustom' :type just now. For some users it might cause fallback to raw lisp value in easy customization UI. Perhaps another warning should be added to the `org-set-emphasis-alist' validator and the option should be labeled as unused in the :type definition.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]