From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Lange Subject: Re: 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 Message-ID: References: <871sn3b4z4.fsf@nicolasgoaziou.fr> <87wp4ua3wq.fsf@nicolasgoaziou.fr> <87vaka5s7k.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1146a1aaa6799f0559d9d16e" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvipI-0004Np-1t for emacs-orgmode@gnu.org; Sat, 23 Sep 2017 07:42:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvipG-0003vJ-N6 for emacs-orgmode@gnu.org; Sat, 23 Sep 2017 07:42:28 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:50293) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvipG-0003uA-Ck for emacs-orgmode@gnu.org; Sat, 23 Sep 2017 07:42:26 -0400 Received: by mail-wm0-x230.google.com with SMTP id b195so9355797wmb.5 for ; Sat, 23 Sep 2017 04:42:24 -0700 (PDT) In-Reply-To: <87vaka5s7k.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --001a1146a1aaa6799f0559d9d16e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Nicolas, 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 : > Hello, > > Jens Lange writes: > > > "If they don't want items added to org-emphasis-alist they shouldn't us= e > > 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. > > Regards, > > -- > Nicolas Goaziou > --=20 Mit freundlichen Gr=C3=BCssen / With kind regards: Jens Lange --001a1146a1aaa6799f0559d9d16e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Nicolas,

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? Becau= se there is no default way to recreate the "Textmarker-Experience"= ; - or at least I couldn't find any. All default emphasis markers recre= ate 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 pe= n-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 so= mething like "org-emphasis-colours-alis= t" and let the users be able to define the colours?
<= span style=3D"font-size:16px">
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 current= ly I still think the "Textmarker-Experience" is missing in org-mo= de 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 <mail@nicolasgoaziou.fr>:
Hello,

Jens Lange <jens.lange.de@gma= il.com> writes:

> "If they don't want items added to org-emphasis-alist they sh= ouldn't use
> the repeat customization type which allows insertion and deletion.
> Furthermore, they should add a note about this restriction in the doc<= br> > 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 solutio= n.
> Even with that said I might ask if you could consider supporting addin= g 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<= br> 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.

Regards,

--
Nicolas Goaziou



--
Mit fre= undlichen Gr=C3=BCssen / With kind regards:
Jens Lange
--001a1146a1aaa6799f0559d9d16e--