From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Support showing stars as pretty bullets Date: Thu, 05 Apr 2018 14:50:16 +0200 Message-ID: <87r2nt4y2f.fsf@nicolasgoaziou.fr> References: <874lkutzg8.fsf@gmail.com> <878ta51m3w.fsf@nicolasgoaziou.fr> <87sh8di0je.fsf@gmail.com> <87woxoztd5.fsf@nicolasgoaziou.fr> <87k1tofjlo.fsf@gmail.com> <87vad8vxld.fsf@nicolasgoaziou.fr> <87370ak4a0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f44LS-0004cu-TH for emacs-orgmode@gnu.org; Thu, 05 Apr 2018 08:50:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f44LO-0004Nl-TI for emacs-orgmode@gnu.org; Thu, 05 Apr 2018 08:50:26 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:39311) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f44LO-0004N9-K5 for emacs-orgmode@gnu.org; Thu, 05 Apr 2018 08:50:22 -0400 In-Reply-To: <87370ak4a0.fsf@gmail.com> (Alex Branham's message of "Wed, 04 Apr 2018 17:14:47 -0500") 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: Alex Branham Cc: Org Mode List Hello, Alex Branham writes: > The issue I see with putting it into org-art.el is that users won't be > able to just call M-x prettify-symbols-mode in an org buffer. They'll > have to do something like > > (require 'org-art) > (add-hook 'org-mode-hook #'org-art-prettify) I don't think users should call M-x prettify-symbols-mode. Instead, they could call `org-art-prettify-buffer', an autoloaded function, which would properly initialize `prettify-symbols-mode' and so on. What mechanism is behind prettification is not important. BTW, we could have a defcustom listings all eye candy `org-art-prettify-buffer' -- or simply `org-prettify-buffer' if the library is called "org-prettify" -- could do (e.g., headlines, bullets...). > prettify-symbols-alist isn't, so I don't think this should be either. Of course. But Org users may want to control what symbol is used. Anyway, I don't have a strong opinion about it. >>> +(defun org-pretty-compose-p (start end match) >>> + "Return t if the symbol should be prettified. >> >> "Non-nil if symbol between START and END should be prettified. >> MATCH is ..." > > Sure thing Actually, I was mistaken: this is a function, not a variable. So, it should be more like: Return non-nil when symbol between START and END is to be prettified. >> Can it be tested somehow? > > I'll look into it Thank you. Regards, -- Nicolas Goaziou 0x80A93738