From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: org fontifies outside of src blocks Date: Mon, 10 Jan 2011 18:20:30 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=34135 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcMML-0006cO-Ng for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 13:20:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcMMK-0004VC-GD for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 13:20:49 -0500 Received: from lo.gmane.org ([80.91.229.12]:40138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcMMK-0004V4-5C for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 13:20:48 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PcMMI-0004X3-QN for emacs-orgmode@gnu.org; Mon, 10 Jan 2011 19:20:46 +0100 Received: from 94.196.2.154.threembb.co.uk ([94.196.2.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jan 2011 19:20:46 +0100 Received: from dandavison7 by 94.196.2.154.threembb.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jan 2011 19:20:46 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Thomas S. Dye" writes: > Hi Dan and Jeff, > > I remember slow response time and output to *Messages* when working > outside code blocks, but no erroneous fontification of text outside > code blocks. My hunch at the time The slowness and superfluous output to *Messages* during fontification is something which emacs does on OS X which is not related to code blocks or Org-mode. I think the default value of `font-lock-verbose' should be changed to nil in emacs24. I'll suggest it. Dan > was that emacs was determining what > text to display and how to fontify it, and that it would do this > regardless of whether code blocks were actually displayed. It has > been a while since someone on the list pointed out the fix to me, but > I haven't run into any problems since then and my buffers are > fontified correctly. > > All the best, > Tom > > On Jan 10, 2011, at 3:06 AM, Dan Davison wrote: > >> Jeff Horn writes: >> >>> Beautiful. Thanks, Tom! >> >> Hi Jeff, so you had two problems: >> >> 1. Erroneous fontification outside of blocks >> 2. Slowness and too much output to *Messages* >> >> I was aware that Tom's fix fixes (2) on OS X, but I haven't heard of >> (1) >> before. Isn't it a bit weird that the same fix should fix (1)? >> >> Dan >> >>> >>> On Sun, Jan 9, 2011 at 10:16 PM, Thomas S. Dye wrote: >>>> Aloha Jeff, >>>> >>>> I think I had this issue. IIRC, this is a Mac issue. I think you >>>> can fix >>>> it with this: >>>> >>>> (setq font-lock-verbose nil) >>>> >>>> If not, let me know and I'll look harder. >>>> >>>> Tom >>>> >>>> On Jan 9, 2011, at 4:54 PM, Jeff Horn wrote: >>>> >>>>> Hey list, >>>>> >>>>> I have an annoying issue. When in *either* Aquamacs or terminal >>>>> emacs, >>>>> if I view my init file (it's in org rather than elisp) and I edit >>>>> *anything* in the buffer, org attempts to fontify the text as >>>>> emacs-lisp. >>>>> >>>>> It takes a few seconds for anything to show up in windowed emacsen. >>>>> Terminal experiences no lag, so it's less of an issue. After >>>>> typing a >>>>> sentences, the message buffer has tens of instances of the >>>>> following >>>>> text: >>>>> >>>>> Fontifying org-src-fontification:emacs-lisp-mode... >>>>> (regexps.................) >>>>> >>>>> Is this the expected behavior? I like fontification. I just only >>>>> expect it to happen within a block, not outside of it. And yes, >>>>> all of >>>>> the blocks are closed correctly (I've double checked, but I used >>>>> yasnippet to fill the buffer in the first place). >>>>> >>>>> Where should I start looking? :) >>>>> >>>>> -- >>>>> Jeffrey Horn >>>>> http://www.failuretorefrain.com/jeff/ >>>>> >>>>> _______________________________________________ >>>>> Emacs-orgmode mailing list >>>>> Please use `Reply All' to send replies to the list. >>>>> Emacs-orgmode@gnu.org >>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>>> >>>> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode