[Top][All Lists]

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

Re: [O] Bug: org-emphasis-alist not fully applied [9.1.1 (9.1.1-1-g80cbf

From: Jens Lange
Subject: Re: [O] Bug: org-emphasis-alist not fully applied [9.1.1 (9.1.1-1-g80cbf9-elpa @ x:/folder/user/.emacs.d/elpa/org-20170918/)]
Date: Sat, 23 Sep 2017 13:42:03 +0200


I understand the dilemma. But then I must ask for a format enhancment. Before crying out loud please read my argumentation. Why did I create my own "fancy" markers? Because there is no default way to recreate the "Textmarker-Experience" - or at least I couldn't find any. All default emphasis markers recreate what I would call the "Ballpoint-Experience". This puzzles me because marking text on a piece of paper is one of the most basic things. Do I have a point here or not?

I just opened my pen-drawer and took out the text-markers. I found (the typical) neon-yellow, neon-green, neon-pink and neon-blue. How about adding four markers using something like "org-emphasis-colours-alist" and let the users be able to define the colours?

Just one final remark: Tobias, the guy on stackexchange who helped me out here gave me a working solution, so I can live with that but currently I still think the "Textmarker-Experience" is missing in org-mode and should be inside it without any user defined functions.

With kind regards,
Jens Lange

2017-09-22 23:38 GMT+02:00 Nicolas Goaziou <address@hidden>:

Jens Lange <address@hidden> writes:

> "If they don't want items added to org-emphasis-alist they shouldn't use
> the repeat customization type which allows insertion and deletion.
> Furthermore, they should add a note about this restriction in the doc
> string of org-emphasis-alist. Maybe, you can give a follow-up in the
> bug-report about that."

Indeed, the customize type needs to be fixed. Patch welcome!

> So I did what he requested. He also provided me with a working solution.
> Even with that said I might ask if you could consider supporting adding new
> emphasis definitions in the future?

I'm not even sure about what you are talking about.

Allowing to extend `org-emphasis-alist' with any marker means there is
not anymore a single Org format. Any one can define its own with fancy
markers. This is not portable.Besides, having syntax you cannot control
is asking for trouble. I'm totally against this idea.

Org already provides 6 emphasis markers, which is enough in my book.

On the other hand, you may be only interested in marking some text with
a special face in a buffer. Both Org and Emacs provide ways to do that
without messing with Org syntax. As pointed out in the thread,
`org-font-lock-set-keywords-hook' is one of them.


Nicolas Goaziou

Mit freundlichen GrĂ¼ssen / With kind regards:
Jens Lange

reply via email to

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