[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: table-recognize and default-major-mode
From: |
Luc Teirlinck |
Subject: |
Re: table-recognize and default-major-mode |
Date: |
Thu, 4 Aug 2005 14:57:32 -0500 (CDT) |
Tak Ota wrote:
Why the hook is executed before the buffer content is ready is beyond
my knowledge but I believe the clue is outside of table.el code.
It certainly is documented in the default-major-mode docstring:
When a mode is used by default, `find-file' switches to it
before it reads the contents into the buffer and before
it finishes setting up the buffer. Thus, the mode and
its hooks should not expect certain variables such as
`buffer-read-only' and `buffer-file-coding-system' to be set up.
Sincerely,
Luc.