[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (font-lock-mode 1) does not always force font-lock
From: |
Alexander Pohoyda |
Subject: |
Re: (font-lock-mode 1) does not always force font-lock |
Date: |
24 Oct 2003 07:22:09 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Hrvoje Niksic <address@hidden> writes:
> > what code tests this?
>
> I don't have the sources handy. It seems that the code recognizes
> the buffer as temporary by checking for names that begins with
> space. For instance, this works (returns t):
>
> (let ((newbuf (generate-new-buffer "*foo*")))
> (with-current-buffer newbuf
> (c-mode)
> (font-lock-mode 1)
> (prog1 font-lock-mode
> (kill-buffer (current-buffer)))))
>
> Change "*foo*" to " *foo*", and it no longer works, i.e. it returns
> nil.
I have just tested it on recent Emacs and this code always works
(returns t).
--
Alexander Pohoyda <address@hidden>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44
- Re: (font-lock-mode 1) does not always force font-lock, Richard Stallman, 2003/10/23
- Re: (font-lock-mode 1) does not always force font-lock, Hrvoje Niksic, 2003/10/23
- Re: (font-lock-mode 1) does not always force font-lock,
Alexander Pohoyda <=
- Re: (font-lock-mode 1) does not always force font-lock, Hrvoje Niksic, 2003/10/24
- Re: (font-lock-mode 1) does not always force font-lock, Alexander Pohoyda, 2003/10/24
- Re: (font-lock-mode 1) does not always force font-lock, Hrvoje Niksic, 2003/10/24
- Re: (font-lock-mode 1) does not always force font-lock, Alexander Pohoyda, 2003/10/25
- Re: (font-lock-mode 1) does not always force font-lock, Hrvoje Niksic, 2003/10/25
- Re: (font-lock-mode 1) does not always force font-lock, Alexander Pohoyda, 2003/10/26
- Re: (font-lock-mode 1) does not always force font-lock, Hrvoje Niksic, 2003/10/26
- Re: (font-lock-mode 1) does not always force font-lock, Stefan Monnier, 2003/10/26
- Re: (font-lock-mode 1) does not always force font-lock, Richard Stallman, 2003/10/27
- Re: (font-lock-mode 1) does not always force font-lock, Alexander Pohoyda, 2003/10/28