Mercurial > emacs
comparison src/fileio.c @ 9266:811ad893828b
(Fdefault_file_modes, Finsert_file_contents, Fdo_auto_save): Use new accessor
macros instead of calling XSET directly.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 04 Oct 1994 12:05:13 +0000 |
parents | a309baaa249f |
children | 51aef3ec59f8 |
comparison
equal
deleted
inserted
replaced
9265:e44908d7323b | 9266:811ad893828b |
---|---|
2524 Lisp_Object value; | 2524 Lisp_Object value; |
2525 | 2525 |
2526 realmask = umask (0); | 2526 realmask = umask (0); |
2527 umask (realmask); | 2527 umask (realmask); |
2528 | 2528 |
2529 XSET (value, Lisp_Int, (~ realmask) & 0777); | 2529 XSETINT (value, (~ realmask) & 0777); |
2530 return value; | 2530 return value; |
2531 } | 2531 } |
2532 | 2532 |
2533 #ifdef unix | 2533 #ifdef unix |
2534 | 2534 |
2815 | 2815 |
2816 { | 2816 { |
2817 register Lisp_Object temp; | 2817 register Lisp_Object temp; |
2818 | 2818 |
2819 /* Make sure point-max won't overflow after this insertion. */ | 2819 /* Make sure point-max won't overflow after this insertion. */ |
2820 XSET (temp, Lisp_Int, total); | 2820 XSETINT (temp, total); |
2821 if (total != XINT (temp)) | 2821 if (total != XINT (temp)) |
2822 error ("maximum buffer size exceeded"); | 2822 error ("maximum buffer size exceeded"); |
2823 } | 2823 } |
2824 | 2824 |
2825 if (NILP (visit) && total > 0) | 2825 if (NILP (visit) && total > 0) |
3697 /* It has shrunk too much; turn off auto-saving here. */ | 3697 /* It has shrunk too much; turn off auto-saving here. */ |
3698 message ("Buffer %s has shrunk a lot; auto save turned off there", | 3698 message ("Buffer %s has shrunk a lot; auto save turned off there", |
3699 XSTRING (b->name)->data); | 3699 XSTRING (b->name)->data); |
3700 /* Turn off auto-saving until there's a real save, | 3700 /* Turn off auto-saving until there's a real save, |
3701 and prevent any more warnings. */ | 3701 and prevent any more warnings. */ |
3702 XSET (b->save_length, Lisp_Int, -1); | 3702 XSETINT (b->save_length, -1); |
3703 Fsleep_for (make_number (1), Qnil); | 3703 Fsleep_for (make_number (1), Qnil); |
3704 continue; | 3704 continue; |
3705 } | 3705 } |
3706 set_buffer_internal (b); | 3706 set_buffer_internal (b); |
3707 if (!auto_saved && NILP (no_message)) | 3707 if (!auto_saved && NILP (no_message)) |