>>>> "ms" == Michael Sperber
<sperber(a)informatik.uni-tuebingen.de> writes:
ms> Dired sure isn't doing it.
It may be an accessory before the fact though. I ran into a problem
in latin-unity.el, which hangs a function on write-region-pre-hook,
where the hook gets called once, then dired's (yep) handler gets
called from write-region-internal, which calls the hook again. And
(like here) for some reason the standard "i'm-already-in-a-handler"
flag didn't do the right thing.
Now, this hook I'm talking about is right smack in the middle of the
coding system detection stuff. I don't _know_, but there's a certain
odor wafting from that general direction.... So if you can say "I
want binary and THAT IS THAT" you should bind `coding-system-for-read'
to binary. If you're already doing that, I'm not sure what's
happening.
There is also i-f-c-pre-hook which you should be able to
use to kneecap autodetection according to a computation in almost all
cases. (The only thing that it can't override is if
coding-system-for-read is bound.) That's what it's for.
HTH, if not I'll try to take a look at the code in question tomorrow.
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Don't ask how you can "do" free software business;
ask what your business can "do for" free software.