[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
font-lock with make-indirect-buffer
From: |
Martin Rudalics |
Subject: |
font-lock with make-indirect-buffer |
Date: |
Fri, 11 Mar 2005 08:22:04 +0100 |
On GNU Emacs 21.3.50.1 (i386-mingw-windows98.3000) of 2005-01-30 on
NONIQPC I write the following variant of `clone-indirect-buffer':
(defun my-clone-buffer ()
(interactive)
(make-indirect-buffer
(current-buffer) (generate-new-buffer-name (buffer-name)) t))
I now open a larger file say `simple.el'. Describing `font-lock-mode'
in buffer `simple.el' gets me:
font-lock-mode's value is t
Local in buffer simple.el; global value is nil
Automatically becomes buffer-local when set in any fashion.
Non-nil if Font-Lock mode is enabled.
Use the command `font-lock-mode' to change this variable.
Defined in `font-core'.
I next do M-x my-clone-buffer which gets me a buffer say `simple.el<2>'.
I open `simple.el<2>', the mode-line says its in Emacs-Lisp mode hence
the major mode got inherited correctly. However, font-lock has stopped
fontifying at the position where it left off in `simple.el' which leaves
me with a partially fontified `simple.el<2>'.
Describing `font-lock-mode' gets me
font-lock-mode's value is t
Local in buffer simple.el<2>; global value is nil
Automatically becomes buffer-local when set in any fashion.
Non-nil if Font-Lock mode is enabled.
Use the command `font-lock-mode' to change this variable.
Defined in `font-core'.
At this moment font-lock has also decided to stop any further
fontification of `simple.el'.
My Emacs 21.2 does not have such problems.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- font-lock with make-indirect-buffer,
Martin Rudalics <=