[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug of auto saving
From: |
Kenichi Handa |
Subject: |
Re: bug of auto saving |
Date: |
Wed, 11 Jun 2003 10:05:59 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <address@hidden>, Richard Stallman <address@hidden> writes:
> I agree with you, and your fix seems correct. However, it
> would be cleaner to call save_restriction_save and
> save_restriction_restore.
Oops, you are right! Then, the total change can be just
like this:
*** fileio.c.~1.487.~ Sat May 31 10:52:35 2003
--- fileio.c Wed Jun 11 10:01:46 2003
***************
*** 4892,4902 ****
--- 4892,4905 ----
return val;
}
+ record_unwind_protect (save_restriction_restore, save_restriction_save ());
+
/* Special kludge to simplify auto-saving. */
if (NILP (start))
{
XSETFASTINT (start, BEG);
XSETFASTINT (end, Z);
+ Fwiden ();
}
record_unwind_protect (build_annotations_unwind, Fcurrent_buffer ());