From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: Fontification in ' *' buffers. Date: Thu, 23 Aug 2007 19:16:51 +0200 Organization: Epita/LRDE Message-ID: <87k5rm2mt8.fsf@cadilhac.name> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2121100398==" X-Trace: sea.gmane.org 1187889327 15697 80.91.229.12 (23 Aug 2007 17:15:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2007 17:15:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 23 19:15:14 2007 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.50) id 1IOGH3-0007da-FL for ged-emacs-devel@m.gmane.org; Thu, 23 Aug 2007 19:15:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOGH2-0001tu-Hh for ged-emacs-devel@m.gmane.org; Thu, 23 Aug 2007 13:15:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOGGy-0001sk-Jm for emacs-devel@gnu.org; Thu, 23 Aug 2007 13:15:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOGGx-0001sU-69 for emacs-devel@gnu.org; Thu, 23 Aug 2007 13:15:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOGGw-0001sR-TB for emacs-devel@gnu.org; Thu, 23 Aug 2007 13:15:07 -0400 Original-Received: from ext.lri.fr ([129.175.15.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IOGGw-0002pu-FA for emacs-devel@gnu.org; Thu, 23 Aug 2007 13:15:06 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id 2449AA472B for ; Thu, 23 Aug 2007 19:15:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at lri.fr Original-Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jf8pu-fvAsQ8 for ; Thu, 23 Aug 2007 19:15:00 +0200 (CEST) Original-Received: from smtp.lri.fr (vhost3-23 [129.175.3.23]) by ext.lri.fr (Postfix) with ESMTP id 0161BA4703 for ; Thu, 23 Aug 2007 19:15:00 +0200 (CEST) Original-Received: from lri4-154 (pc4-154 [129.175.4.154]) by smtp.lri.fr (Postfix) with ESMTP id E7496E04FB for ; Thu, 23 Aug 2007 19:14:59 +0200 (CEST) X-Website: http://michael.cadilhac.name Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWPh+Tai+5r5YKBAEU CQQzGAtiq7gjAAACR0lEQVQ4jW2UzW7lIAyFzVW8BzTZX5DmCZLuU2H2pMXv/ypzbK7aSh2kRCRf /HNsE0q7Sg+RQ7JFKaqtrRNAl5AIIKe6D5DBqgbmUAe5hBI1wIRFAHjeM0RKtZi7XVVEpb0BSNfA IddChChT5DildSLWOWhY5IEItMnncZgFcUAc/5jjwCMsDosRNdfKPDTFEdVBW8C+RebDb4N5Orio RhM1+11IJyx0ng2+LryFHBMPDQDYHrY6IfGuU3ouiXTQNE8LIJDKOWpNxERTFrggQwRPd7USUsTW fJ0XbR3bdj5KgBYy4SACpxDeUYEUAzLmtJ1iIrD2gczPq8Qomjhsh/RjGIgKIO8p7NITjwlx7WID nsnQe5NeuTvoBpi8LX6vLLOh5icjOHqBypgnuSp7M+RE1agbQKHQr5E2z1WObhYW4gMqeGQL7joM jCf2DxSk5ApADSYHfFF4igNfJZL1z0GKP0FN02s4XiDXr7V5P94W6I9v8MfBOQDmfwAaVYt+x8Da v4DJvX8BAdin3Knm5yMZYAO4ABDkDniZLLfi4P40gP1F0TPGZOu0CGwA1lcowxwlGy6A9705mD0V jHCxwVZT/hYdRJVUGZNlx6l7ScQBTluof6Wj6bsPYlvpwoTvXFD9gHPn2TZPF3ntI2ecxVrW5MrV XiCie5EeNa7BlWu/HNSkprDUva163PHxAv5jyGV7gVzyAghSKOTnat85UIYFICXbD2NV9rRiv0BS tKQsg6OHH4A15F1WW+UHKHHa32h6aPnAm3/pUcWp+WYnTQAAAABJRU5ErkJggg== User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Detected-Kernel: 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:77038 Archived-At: --===============2121100398== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I may more or less understand why buffers which names start with a space are not fontified, but I happen to have downloaded files misnamed with one of those leading spaces, and was surprised that the fontification wasn't made. This is a minor issue, but shouldn't we check if we're in a file before? Index: font-core.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/lisp/font-core.el,v retrieving revision 1.46 diff -c -r1.46 font-core.el *** font-core.el 26 Jul 2007 05:26:24 -0000 1.46 =2D-- font-core.el 23 Aug 2007 17:13:45 -0000 *************** *** 144,151 **** `font-lock-function'. " nil nil nil ;; Don't turn on Font Lock mode if we don't have a display (we're runni= ng a ! ;; batch job) or if the buffer is invisible (the name starts with a spa= ce). ! (when (or noninteractive (eq (aref (buffer-name) 0) ?\s)) (setq font-lock-mode nil)) (funcall font-lock-function font-lock-mode) ;; Arrange to unfontify this buffer if we change major mode later. =2D-- 144,153 ---- `font-lock-function'. " nil nil nil ;; Don't turn on Font Lock mode if we don't have a display (we're runni= ng a ! ;; batch job) or if the buffer is invisible (the name starts with a spa= ce) ! ;; and not a file. ! (when (or noninteractive (and (eq (aref (buffer-name) 0) ?\s) ! (not buffer-file-name))) (setq font-lock-mode nil)) (funcall font-lock-function font-lock-mode) ;; Arrange to unfontify this buffer if we change major mode later. =2D-=20 | Micha=EBl `Micha' Cadilhac | Un certain Blaise Pascal = | | http://michael.cadilhac.name | etc... etc... = | | JID/MSN: | -- Pr=E9vert (Les paris stupides) = | `---- michael.cadilhac@gmail.com | - = --' --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.5 (GNU/Linux) iD8DBQFGzcEHUJhDmOfFA3URAofvAJ9z1fNimI4EMKE39hATlj5jCsC7TACfScal 8S6WewkmpBvrIuMYzl1Cdgg= =tdD3 -----END PGP SIGNATURE----- --=-=-=-- --===============2121100398== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============2121100398==--