>>>> "APA" == Adrian Aichner
<aichner(a)ecf.teradyne.com> writes:
APA> Right on:
APA> With an unpatched vc.elc? fontification survives
APA> vc-revert-buffer
APA> when I have this in my .emacs:
APA> (setq font-lock-support-mode 'fast-lock-mode)
Oops, I tested this incorrectly. Fontification is lost for me in
fast-lock-mode too!
APA> Fontification is lost when I use any of these:
APA> (setq font-lock-support-mode 'font-lock-mode)
APA> (setq font-lock-support-mode 'lazy-lock-mode)
APA> For font-lock-mode fontification is lost after `revert-buffer' calls
APA> `insert-file-contents'.
This is still true. Actually it happens when `insert-file-contents'
calls `insert-file-contents-internal'.
I don't understand yet why insert-file-contents get called twice for
find-file and for vc-revert-buffer.
vc-revert-buffer calls insert-file-contents with a t REPLACE argument.
Adrian
find-file:
======================================================================
1 -> insert-file-contents: filename="e:\\tmp\\RFID\\4W1H926668975.pl" visit=t
beg=nil end=nil replace=nil
| 2 -> insert-file-contents: filename="e:\\tmp\\RFID\\4W1H926668975.pl"
visit=t beg=nil end=nil replace=nil
| 2 <- insert-file-contents: ("e:\\tmp\\RFID\\4W1H926668975.pl" 13338)
1 <- insert-file-contents: ("e:\\tmp\\RFID\\4W1H926668975.pl" 13338)
vc-revert-buffer:
======================================================================
1 -> insert-file-contents: filename="e:\\tmp\\RFID\\4W1H926668975.pl" visit=t
beg=nil end=nil replace=t
| 2 -> insert-file-contents: filename="e:\\tmp\\RFID\\4W1H926668975.pl"
visit=t beg=nil end=nil replace=t
| 2 <- insert-file-contents: ("e:\\tmp\\RFID\\4W1H926668975.pl" 13328)
1 <- insert-file-contents: ("e:\\tmp\\RFID\\4W1H926668975.pl" 13328)
APA> All of this in 21.1.4 WindowsNT4sp4 native.