From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou 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: Fri, 22 Sep 2017 23:38:55 +0200 Message-ID: <87vaka5s7k.fsf@nicolasgoaziou.fr> References: <871sn3b4z4.fsf@nicolasgoaziou.fr> <87wp4ua3wq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvVf6-0004c9-0v for emacs-orgmode@gnu.org; Fri, 22 Sep 2017 17:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvVf2-0006PR-Uh for emacs-orgmode@gnu.org; Fri, 22 Sep 2017 17:39:04 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:37190) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dvVf2-0006P1-OQ for emacs-orgmode@gnu.org; Fri, 22 Sep 2017 17:39:00 -0400 In-Reply-To: (Jens Lange's message of "Thu, 21 Sep 2017 03:02:00 +0200") 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: Jens Lange Cc: emacs-orgmode@gnu.org Hello, Jens Lange 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. Regards, -- Nicolas Goaziou