xemacs-patches removed from cc list.
>>>> "Andy" == Andy Piper
<andy(a)xemacs.org> writes:
Andy> And your suggestion is? The comparison is done against
Andy> insert-file-contents which will have already applied those
Andy> auto-detected things.
And what if the user intentionally _hasn't_? The point is that this
works correctly in the most common case but it does absolutely
_nothing_ to handle cases where the user knows better than the
autodetect logic.
OK, here's an automatic example that hits you where you live. Text
file. Autodetect EOL. In the repository, somebody global-replaces
LF with CRLF. Buffer needs reversion, your algorithm gets it wrong.
The best thing I can think of is to save the buffer to a temporary
file and compare that with the file on disk. Use
insert-file-contents-literally if you're going to do in an in Emacs
buffer.
--
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.