all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Suggestion: default value of `font-lock-verbose' should be nil
@ 2011-01-10 18:30 Dan Davison
  2011-01-10 19:06 ` Drew Adams
  2011-01-10 20:02 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Davison @ 2011-01-10 18:30 UTC (permalink / raw)
  To: emacs-devel

I suggest changing the default value of `font-lock-verbose' to nil. The
fontification messages cause noticeable slowdowns on OS X[1] in certain
situations (e.g. viewing src code blocks in org-mode with
`org-src-fontify-natively' turned on). I suspect that the sorts of users
who might appreciate the output would be able to turn the variable on.

Thanks,
Dan

Footnotes:
[1] I don't know the reason for the platform-specificity.


diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index fe87329..c2620a4 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -276,7 +276,7 @@ decoration for buffers in C++ mode, and level 1 decoration otherwise."
 				      (integer :tag "level" 1)))))
   :group 'font-lock)
 
-(defcustom font-lock-verbose 0
+(defcustom font-lock-verbose nil
   "If non-nil, means show status messages for buffer fontification.
 If a number, only buffers greater than this size have fontification messages."
   :type '(choice (const :tag "never" nil)




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

* RE: Suggestion: default value of `font-lock-verbose' should be nil
  2011-01-10 18:30 Suggestion: default value of `font-lock-verbose' should be nil Dan Davison
@ 2011-01-10 19:06 ` Drew Adams
  2011-01-10 20:02 ` Stefan Monnier
  1 sibling, 0 replies; 6+ messages in thread
From: Drew Adams @ 2011-01-10 19:06 UTC (permalink / raw)
  To: 'Dan Davison', emacs-devel

> I suggest changing the default value of `font-lock-verbose' 
> to nil. The fontification messages cause noticeable slowdowns
> on OS X[1] in certain situations...
> [1] I don't know the reason for the platform-specificity.

Better to fix those "certain situations" on OS X.  Or, barring that possibility,
change the default value to nil for OS X only.  Consider filing a bug.

IOW, why change the default value for all of Emacs because you ran across a
problem on OS X?  You say that the problem is platform-specific.  So should be
the remedy.




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

* Re: Suggestion: default value of `font-lock-verbose' should be nil
  2011-01-10 18:30 Suggestion: default value of `font-lock-verbose' should be nil Dan Davison
  2011-01-10 19:06 ` Drew Adams
@ 2011-01-10 20:02 ` Stefan Monnier
  2011-01-11  4:32   ` Jambunathan K
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2011-01-10 20:02 UTC (permalink / raw)
  To: Dan Davison; +Cc: emacs-devel

> I suggest changing the default value of `font-lock-verbose' to nil.

I'd tend to agree.  I can't think of any reason the user would care
about those messages.  They're much like "garbage collecting" messages,
if you ask me.

> The fontification messages cause noticeable slowdowns on OS X[1] in
> certain situations (e.g. viewing src code blocks in org-mode with
> `org-src-fontify-natively' turned on).

Sounds like a bug that needs fixing, rather than a reason to change the
default of font-lock-verbose.

> I suspect that the sorts of users who might appreciate the output
> would be able to turn the variable on.

Agreed.


        Stefan



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

* Re: Suggestion: default value of `font-lock-verbose' should be nil
  2011-01-10 20:02 ` Stefan Monnier
@ 2011-01-11  4:32   ` Jambunathan K
  2011-01-11  5:07     ` Daniel Colascione
  0 siblings, 1 reply; 6+ messages in thread
From: Jambunathan K @ 2011-01-11  4:32 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Dan Davison, emacs-devel


>> The fontification messages cause noticeable slowdowns on OS X[1] in
>> certain situations (e.g. viewing src code blocks in org-mode with
>> `org-src-fontify-natively' turned on).

FWIW, I use Emacs on Windows. Having zero verbosity does improve the
user experience tremedously.

Speaking from Windows side of things, I second Dan's recommendation.

>
> Sounds like a bug that needs fixing, rather than a reason to change the
> default of font-lock-verbose.
>

Jambunathan K.



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

* Re: Suggestion: default value of `font-lock-verbose' should be nil
  2011-01-11  4:32   ` Jambunathan K
@ 2011-01-11  5:07     ` Daniel Colascione
  2011-01-11  5:35       ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Colascione @ 2011-01-11  5:07 UTC (permalink / raw)
  To: Jambunathan K; +Cc: Stefan Monnier, Dan Davison, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

On 1/10/11 8:32 PM, Jambunathan K wrote:
> 
>>> The fontification messages cause noticeable slowdowns on OS X[1] in
>>> certain situations (e.g. viewing src code blocks in org-mode with
>>> `org-src-fontify-natively' turned on).
> 
> FWIW, I use Emacs on Windows. Having zero verbosity does improve the
> user experience tremedously.

ISTR a "huge performance increase" in garbage collection that came about
solely as a result of making garbage-collection-messages default to nil.
Perception is important.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: Suggestion: default value of `font-lock-verbose' should be nil
  2011-01-11  5:07     ` Daniel Colascione
@ 2011-01-11  5:35       ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2011-01-11  5:35 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: Jambunathan K, Dan Davison, emacs-devel

>>>> The fontification messages cause noticeable slowdowns on OS X[1] in
>>>> certain situations (e.g. viewing src code blocks in org-mode with
>>>> `org-src-fontify-natively' turned on).
>> FWIW, I use Emacs on Windows. Having zero verbosity does improve the
>> user experience tremedously.
> ISTR a "huge performance increase" in garbage collection that came about
> solely as a result of making garbage-collection-messages default to nil.

I don't remember such a huge increase, but I do remember an immediate
stop to the recurring lament that "Emacs is slow, because of GC".

> Perception is important.

Amen,


        Stefan



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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 18:30 Suggestion: default value of `font-lock-verbose' should be nil Dan Davison
2011-01-10 19:06 ` Drew Adams
2011-01-10 20:02 ` Stefan Monnier
2011-01-11  4:32   ` Jambunathan K
2011-01-11  5:07     ` Daniel Colascione
2011-01-11  5:35       ` Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.