From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: (font-lock-mode 1) does not always force font-lock Date: 26 Oct 2003 14:07:31 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87vfqffbwe.fsf@oak.pohoyda.family> <8765iephzh.fsf@oak.pohoyda.family> <87y8v9epmv.fsf@oak.pohoyda.family> <87ismcb5ek.fsf@oak.pohoyda.family> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067195340 18041 80.91.224.253 (26 Oct 2003 19:09:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Oct 2003 19:09:00 +0000 (UTC) Cc: Alexander Pohoyda , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Oct 26 20:08:58 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ADqG2-0002DS-00 for ; Sun, 26 Oct 2003 20:08:58 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ADqG2-0005cN-00 for ; Sun, 26 Oct 2003 20:08:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ADqFe-0004Hp-Ps for emacs-devel@quimby.gnus.org; Sun, 26 Oct 2003 14:08:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ADqFH-0004Co-OS for emacs-devel@gnu.org; Sun, 26 Oct 2003 14:08:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ADqEk-0003sj-1w for emacs-devel@gnu.org; Sun, 26 Oct 2003 14:08:09 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ADqEj-0003sD-N8 for emacs-devel@gnu.org; Sun, 26 Oct 2003 14:07:37 -0500 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id h9QJ7VnR002883; Sun, 26 Oct 2003 14:07:32 -0500 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id 92E163C63E; Sun, 26 Oct 2003 14:07:31 -0500 (EST) Original-To: Hrvoje Niksic In-Reply-To: Original-Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner: Found to be clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17444 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17444 >> ;; Don't turn on Font Lock mode if we don't have a display (we're running a >> ;; batch job) or if the buffer is invisible (the name starts with a space). >> (when (or noninteractive (eq (aref (buffer-name) 0) ?\ )) >> (setq font-lock-mode nil)) > I propose removing the buffer-name check, at least when the argument > to font-lock-mode is positive. I always thought that the whole thing should be removed (i.e. including the noninteractive check: after all, you might want to use it in batch with ps-print or htmlize), but I never cared enough to try and convince the rest of the developers. So for what it's worth, I completely agree, Stefan