From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.devel Subject: Suggestion: default value of `font-lock-verbose' should be nil Date: Mon, 10 Jan 2011 18:30:27 +0000 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1294685719 3662 80.91.229.12 (10 Jan 2011 18:55:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2011 18:55:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 10 19:55:16 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PcMtf-0001vY-VA for ged-emacs-devel@m.gmane.org; Mon, 10 Jan 2011 19:55:16 +0100 Original-Received: from localhost ([127.0.0.1]:32936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcMtf-0005du-Gg for ged-emacs-devel@m.gmane.org; Mon, 10 Jan 2011 13:55:15 -0500 Original-Received: from [140.186.70.92] (port=45896 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcMtY-0005ae-W4 for emacs-devel@gnu.org; Mon, 10 Jan 2011 13:55:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcMtX-0003EX-Ff for emacs-devel@gnu.org; Mon, 10 Jan 2011 13:55:08 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:33196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcMtX-0003Dt-A5 for emacs-devel@gnu.org; Mon, 10 Jan 2011 13:55:07 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PcMtU-0001qJ-Q9 for emacs-devel@gnu.org; Mon, 10 Jan 2011 19:55:04 +0100 Original-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:55:04 +0100 Original-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:55:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 94.196.2.154.threembb.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:BFJXzhfS7Mb3a+uxP3MwD7I4Wz0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134412 Archived-At: 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)