>>>> "Alan" == Alan Wehmann
<wehmann(a)fnal.gov> writes:
Alan> The text-mode-hook addition I picked up somewhere as a
Alan> device to hide "-*-text-*-" at the start of some of my files
Alan> that aren't put into text-mode by having ".txt" or the like
Alan> in their file names (i.e. by use of "auto-mode-alist").
The standard for Info files says that a node starts with ^_. This is
deliberate; it allows non-node header material, such as copyright
notices. On the other hand, there's nothing that say you can't have a
restricted buffer---eg, through a text mode hook. Then your proposed
change would break somebody else's hack.
Also, your patch and proposal are seriously incomplete. We need
assurance that this is GNU Emacs compatible, and the Info docs need to
be patched to inform users that hacks that present a restricted buffer
to Info are newly broken. I don't think it's worth it.
I conclude that your hook is buggy. Use some other control character.
I suggest ^L, which is normally associated with this kind of page-
division semantics.
Alternatively, detect that the file is an Info file and disable the
hook. Or you could make it do what it is supposed to do, by checking
that it's actually "-*-text-*-" that you're hiding.
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.