Edwin Steiner writes:
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.)
Yes, I think that it should.
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?
Yes, it would be best if when hexl mode exits, the buffer were back in
its original state, with font-locking intact.
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?
Good question. But for the most common case, anyhow, there will be no
font-locking for hexl mode.
There are still problems with hexl-mode. I found that
revert-buffer doesn't always work, and sometimes XEmacs
crashes when switching hexl-mode on or off (on my
Win98 machine). If I have enough time I will try to
debug this.
Excellent, good luck with the debugging.