X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/8825930890470898883be9841d6a0aa3d6ff6623..ac1a0ce1c6ba60a3faddc64463cb7a697b9d8fd2:/src/fileio.c diff --git a/src/fileio.c b/src/fileio.c index c6e2eea508..8b69ed5eae 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -40,8 +40,8 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" #include "intervals.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "coding.h" #include "window.h" #include "blockinput.h" @@ -3014,8 +3014,10 @@ The value is an integer. */) int realmask; Lisp_Object value; + BLOCK_INPUT; realmask = umask (0); umask (realmask); + UNBLOCK_INPUT; XSETINT (value, (~ realmask) & 0777); return value; @@ -3735,7 +3737,7 @@ variable `last-coding-system-used' to the coding system actually used. */) /* If display currently starts at beginning of line, keep it that way. */ if (XBUFFER (XWINDOW (selected_window)->buffer) == current_buffer) - XWINDOW (selected_window)->start_at_line_beg = Fbolp (); + XWINDOW (selected_window)->start_at_line_beg = !NILP (Fbolp ()); replace_handled = 1; } @@ -3892,7 +3894,7 @@ variable `last-coding-system-used' to the coding system actually used. */) /* If display currently starts at beginning of line, keep it that way. */ if (XBUFFER (XWINDOW (selected_window)->buffer) == current_buffer) - XWINDOW (selected_window)->start_at_line_beg = Fbolp (); + XWINDOW (selected_window)->start_at_line_beg = !NILP (Fbolp ()); /* Replace the chars that we need to replace, and update INSERTED to equal the number of bytes