escott%deis.UCI.EDU@ROME.UCI.EDU.UUCP (05/06/87)
Well I'm well on my way to writing a sort of "filter-mode" for GNU
Emacs. I'm not sure if people will find it useful, or if my
inexperience with LISP will limit the practicality of the software,
but that remains to be seen. At any rate, I've encountered another
problem (you'll remember my first one was indecision which of the
multiple ways to cause a file to write through a filter was the best).
Here's the problem:
There is no "auto-save-hook". Although I am able to relatively easily
read and write files through a filter, the auto-save will still be an
unfiltered copy of the buffer. This isn't what I want. A perusal
through the source code shows that auto-save uses "write-region":
perhaps the answer is a "write-region-hook" ? Are there drawbacks to
being able to write a customized auto-save function, or to implement a
hook? Is there any way I can "fake" auto-saving, using my own
function, under v18 without changing the C source code? I am doing
this partially to teach myself LISP, and as I have been professionally
writing C code for some time it wouldn't be as much fun to implement
my solution in the source!
Thanks.
+-------------------------------------------------------------------------+
Scott Menter UCI ICS Computing Support Group Univ. of Calif. at Irvine
(714) 856 7552 Irvine, California 92717
Internet: escott@ics.uci.edu UUCP: ...!ucbvax!ucivax!escott
Bitnet: escott@uci CSNet: escott%ics.uci.edu@csnet-relay
Internet (with Name Server): escott@deis.uci.edu
+-------------------------------------------------------------------------+