all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Fontification in ' *' buffers.
@ 2007-08-23 17:16 Michaël Cadilhac
  2007-08-26 19:26 ` Michaël Cadilhac
  0 siblings, 1 reply; 8+ messages in thread
From: Michaël Cadilhac @ 2007-08-23 17:16 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 1933 bytes --]

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
===================================================================
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
--- 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 running a
!   ;; batch job) or if the buffer is invisible (the name starts with a space).
!   (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.
--- 144,153 ----
  `font-lock-function'. "
    nil nil nil
    ;; 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)
!   ;; 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.

-- 
 |   Michaël `Micha' Cadilhac       |  Un certain Blaise Pascal              |
 |   http://michael.cadilhac.name   |    etc... etc...                       |
 |   JID/MSN:                       |  -- Prévert (Les paris stupides)       |
 `----  michael.cadilhac@gmail.com  |                                   -  --'

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

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

end of thread, other threads:[~2007-08-31 13:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-23 17:16 Fontification in ' *' buffers Michaël Cadilhac
2007-08-26 19:26 ` Michaël Cadilhac
2007-08-27  4:27   ` Stefan Monnier
2007-08-27  7:25     ` Michaël Cadilhac
2007-08-27 14:17       ` Stefan Monnier
2007-08-27 14:46         ` Michaël Cadilhac
2007-08-27 20:13           ` Stefan Monnier
2007-08-31 13:33           ` Michaël Cadilhac

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.