From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Enriched/Org is a colorful Org Date: Wed, 10 Apr 2013 13:26:33 +0200 Message-ID: <79ACBBC4-8DD0-4C06-AC61-F53BDC48EC4B@gmail.com> References: <87a9p79gnv.fsf@gmail.com> <20130410095450.GA31506@kuru.dyndns-at-home.com> <20130410104802.GE27647@kuru.dyndns-at-home.com> <86wqsabpj0.fsf@somewhere.org> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPtAj-0006DZ-Ca for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 07:26:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPtAh-00067v-Oz for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 07:26:37 -0400 Received: from ezel.ic.uva.nl ([146.50.108.158]:57361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPtAh-00067l-ET for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 07:26:35 -0400 In-Reply-To: <86wqsabpj0.fsf@somewhere.org> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org On 10 apr. 2013, at 13:20, "Sebastien Vauban" = wrote: > Carsten Dominik wrote: >> On 10 apr. 2013, at 12:48, Suvayu Ali = wrote: >>> On Wed, Apr 10, 2013 at 12:16:28PM +0200, Carsten Dominik wrote: >>>> On 10 apr. 2013, at 11:54, Suvayu Ali = wrote: >>>>> On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote: >>>>>>=20 >>>>>> See "Side note" towards the end of this message >>>>>>=20 >>>>>> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14157#8 >>>>>>=20 >>>>>=20 >>>>> This request is common enough; every time it comes up overlays are >>>>> proposed as a solution. It would be good if this is available = even as a >>>>> library outside of Org. >>>>=20 >>>> Yes, overlays are better. However, maybe I am just no getting it, = but >>>> what is even the purpose of facemenu? AFAICS, the faces are >>>> non-permanent, so when I save the file and reopen it, all the faces >>>> are gone. I really cannot see a useful application for this. >>>=20 >>> AFAIR, the use cases presented so far involved adding = highlighting-like >>> information in Org files. If the overlays are generated = consistently >>> based on the user's setup, it doesn't matter if they are = non-permanent >>> (as in not part of the Org file, but dependent on the Emacs setup >>> instead). Of course this means the highlighting information will = not be >>> portable; but I don't think people mind that. >>>=20 >>> I personally do not find any use for the feature as such; although = it >>> might be interesting to be able to insert plain text cookies in Org >>> files and have them highlighted in some fashion. I could then use a >>> list of ideas like this: >>>=20 >>> Some topic ... >>> 1. Idea 1 >>> 2. Idea 2 (?) >>>=20 >>> where I'm doubtful about idea (2); having (?) highlighted would = remind >>> me of that. Just an idea. >>=20 >> Yes, this would make sense if the highlighting would be reestablished >> automatically next time you visit the file. If not, it would be = pretty >> useless in my eyes. >=20 > IIUC, I do use something similar: automatic highlighting of some = words, hooked > on the mode (so, permanent... for me). >=20 > --8<---------------cut here---------------start------------->8--- > (defface lvn/highlight-face > '((t (:weight normal :slant normal :box '(:line-width 1 :color = "#CC0000") > :foreground "#CC0000" :background "#FFFF88"))) > "Face for making FIXME and other warnings stand out.") >=20 > (defvar lvn/highlight-org-regexps > "\\(FIXME\\|BUG\\|XXX\\|[Ee]rror\\|[Ww]arning\\|WARNING\\)" > "Patterns to highlight (for Org mode only).") >=20 > ;; set up highlighting of special patterns for Org mode only > (dolist (mode '(org-mode)) > (font-lock-add-keywords mode > `((,lvn/highlight-org-regexps 1 'lvn/highlight-face prepend)))) > --8<---------------cut here---------------end--------------->8--- Yes, this is definitely very useful, I do similar stuff for FIXME etc. - Carsten >=20 > Best regards, > Seb >=20 > --=20 > Sebastien Vauban >=20 >=20