emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Re: mouse cannot be used in *grep* buffer if font-lo


From: Daniel Pfeiffer
Subject: Re: address@hidden: Re: mouse cannot be used in *grep* buffer if font-lock is turned off]
Date: Tue, 19 Oct 2004 21:06:56 +0200

Saluton,

Richard Stallman <address@hidden> skribis:

> Can you arrange to make compile mode's propertization
> that is necessary for RET and Mouse-1 to work properly
> operate independently of whether Font Lock mode is enabled?

I had to put the additional properties I set, into some variable.  This might
have been in order to get them unset when turning off font-lock.  If that's
not desired, we could not set that variable.

> One idea would be to use the mechanisms of font-lock mode, but not
> fontify.  The idea is that some special hack would make font-lock
> operate pretty much normally even though font-lock-mode is nil, but it
> would not put on any `face' properties.  This could be a feature for
> modes that "need" font-lock in order to "work right".

This sounds like a step further: font-lock without fonts, i.e. a property lock
mode.  Actually I can't for the life of me imagine why anybody would not want
font-locking, even vi can do it nowadays.  It adds so much legibility, I feel
it should be on by default.  My oldish 500MHz P3 can handle it easily and I'm
pretty sure I used without great penalty way back on my 100MHz box.

An easy workaround for those who want it, is to customize the faces to
default.

> I think this could be done fairly easily.

While I find font-lock very useful, I must admit its inner workings are
somewhat of black magic to me, especially the complicated way it gets set up. 
But I think the requester only meant a means of making font-lock not
unsettable, or such that an warning question gets asked first.

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

-- 
lerne / learn / apprends / lär dig / ucz się    Esperanto:
                              http://lernu.net/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]