Edwin Steiner wrote:
When hexl-find-file finds a file, which is already
visited by a live buffer, font-lock is not disabled.
I wonder, if it should be disabled (*before* the
buffer is hexlified, to save time. Deactivating
font-lock in a hexl-mode-hook will not avoid the
unneccessary font-locking.)
If font-locking is disabled by hexlify-buffer, it
will still be off, if you leave hexl-mode via
hexl-mode-exit. Would this be a problem?
If someone uses customized font-locking for hexl-mode
(as I do sometimes), how can the original font-locking
be restored after hexl-mode-exit?
I think that this is a more general problem with changing the major
mode, particularly when changing to or from a "special" mode.
change-major-mode-hook is probably run too early on for this purpose.
It would be useful if there was a hook which was called after the
corresponding function had completed; but, AFAICT, there isn't one.
--
Glynn Clements <glynn.clements(a)virgin.net>