emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org fontifies outside of src blocks
@ 2011-01-10  2:54 Jeff Horn
  2011-01-10  3:16 ` Thomas S. Dye
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Horn @ 2011-01-10  2:54 UTC (permalink / raw)
  To: Org-mode ml

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/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org fontifies outside of src blocks
  2011-01-10  2:54 org fontifies outside of src blocks Jeff Horn
@ 2011-01-10  3:16 ` Thomas S. Dye
  2011-01-10  4:31   ` Jeff Horn
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas S. Dye @ 2011-01-10  3:16 UTC (permalink / raw)
  To: Jeff Horn; +Cc: Org-mode ml

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org fontifies outside of src blocks
  2011-01-10  3:16 ` Thomas S. Dye
@ 2011-01-10  4:31   ` Jeff Horn
  2011-01-10 13:06     ` Dan Davison
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Horn @ 2011-01-10  4:31 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: Org-mode ml

Beautiful. Thanks, Tom!

On Sun, Jan 9, 2011 at 10:16 PM, Thomas S. Dye <tsd@tsdye.com> 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
>
>



-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org fontifies outside of src blocks
  2011-01-10  4:31   ` Jeff Horn
@ 2011-01-10 13:06     ` Dan Davison
  2011-01-10 15:31       ` Thomas S. Dye
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Davison @ 2011-01-10 13:06 UTC (permalink / raw)
  To: emacs-orgmode

Jeff Horn <jrhorn424@gmail.com> 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 <tsd@tsdye.com> 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
>>
>>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: org fontifies outside of src blocks
  2011-01-10 13:06     ` Dan Davison
@ 2011-01-10 15:31       ` Thomas S. Dye
  2011-01-10 18:20         ` Dan Davison
  2011-01-11  4:35         ` Jeff Horn
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas S. Dye @ 2011-01-10 15:31 UTC (permalink / raw)
  To: Dan Davison; +Cc: emacs-orgmode

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 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 <jrhorn424@gmail.com> 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 <tsd@tsdye.com> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org fontifies outside of src blocks
  2011-01-10 15:31       ` Thomas S. Dye
@ 2011-01-10 18:20         ` Dan Davison
  2011-01-11  4:35         ` Jeff Horn
  1 sibling, 0 replies; 7+ messages in thread
From: Dan Davison @ 2011-01-10 18:20 UTC (permalink / raw)
  To: emacs-orgmode

"Thomas S. Dye" <tsd@tsdye.com> 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 <jrhorn424@gmail.com> 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 <tsd@tsdye.com> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: org fontifies outside of src blocks
  2011-01-10 15:31       ` Thomas S. Dye
  2011-01-10 18:20         ` Dan Davison
@ 2011-01-11  4:35         ` Jeff Horn
  1 sibling, 0 replies; 7+ messages in thread
From: Jeff Horn @ 2011-01-11  4:35 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode, Dan Davison

> On Jan 10, 2011, at 3:06 AM, Dan Davison wrote:
>> 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

Yes, it is weird. As I said, I continued to get the same verbatim
messages in my buffer while in terminal emacs, which I've installed
from source. Hard to believe OSX did something funky to terminal
emacs, but it is possible.

However, I can confirm that org/emacs is fontifying everything
correctly in the buffer when I type between src blocks. For instance,
typing "("")" in a source block gets it indented and makes the quote
fontified. Outside source blocks, it is apparently rendered as
plaintext.

-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-11  4:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-10  2:54 org fontifies outside of src blocks Jeff Horn
2011-01-10  3:16 ` Thomas S. Dye
2011-01-10  4:31   ` Jeff Horn
2011-01-10 13:06     ` Dan Davison
2011-01-10 15:31       ` Thomas S. Dye
2011-01-10 18:20         ` Dan Davison
2011-01-11  4:35         ` Jeff Horn

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).