emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Max Nikulin
Subject: [PATCH] org.el: Warning for unsupported markers in `org-set-emphasis-alist'
Date: Wed, 24 Nov 2021 00:05:04 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

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.

A patch is attached. I have dropped changes in documentation since I am not the author of them.

For init file (entries may be in arbitrary order)

(custom-set-variables
  '(org-emphasis-alist
     (quote
       (
        ("*" bold)
        ("_" underline)
        ("=" org-verbatim verbatim)
        ("/" italic)
        ("~" org-code verbatim)
        ("!" org-todo) ;; does not work
        ("+" (:strike-through t)))))
  )

emacs --eval "(customize-variable 'org-emphasis-alist)"

looks as the following

Hide Org Emphasis Alist:
[INS] [DEL] :
            Marker: [Value Menu] *Bold*
Font: [Value Menu] Face: (sample) bold


[ ] verbatim


[INS] [DEL] :
            Marker: [Value Menu] _Underline_
Font: [Value Menu] Face: (sample) underline


[ ] verbatim


[INS] [DEL] :
            Marker: [Value Menu] =Verbatim=
Font: [Value Menu] Face: (sample) org-verbatim


            [X] verbatim
[INS] [DEL] :
            Marker: [Value Menu] /Italic/
Font: [Value Menu] Face: (sample) italic


[ ] verbatim


[INS] [DEL] :
            Marker: [Value Menu] ~Code~
Font: [Value Menu] Face: (sample) org-code


            [X] verbatim
[INS] [DEL] :
Marker: [Value Menu] Unsupported ignored character: !


Font: [Value Menu] Face: (sample) org-todo


[ ] verbatim


[INS] [DEL] :
            Marker: [Value Menu] +Strike-through+
            Font: [Value Menu] Property list:
                        [INS] [DEL] :
Key: :strike-through


Value: t


            [INS]
[ ] verbatim


[INS]
   [ State ]: SAVED and set.

Attachment: 0001-org.el-Warning-for-unsupported-markers-in-org-set-em.patch
Description: Text Data


reply via email to

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