aboutsummaryrefslogtreecommitdiffstats
path: root/src/dired.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dired.c')
-rw-r--r--src/dired.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/dired.c b/src/dired.c
index 3aa27ecf920..4986f845101 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -101,9 +101,9 @@ static Lisp_Object
101directory_files_internal_unwind (Lisp_Object dh) 101directory_files_internal_unwind (Lisp_Object dh)
102{ 102{
103 DIR *d = (DIR *) XSAVE_VALUE (dh)->pointer; 103 DIR *d = (DIR *) XSAVE_VALUE (dh)->pointer;
104 BLOCK_INPUT; 104 block_input ();
105 closedir (d); 105 closedir (d);
106 UNBLOCK_INPUT; 106 unblock_input ();
107 return Qnil; 107 return Qnil;
108} 108}
109 109
@@ -164,9 +164,9 @@ directory_files_internal (Lisp_Object directory, Lisp_Object full,
164 /* Now *bufp is the compiled form of MATCH; don't call anything 164 /* Now *bufp is the compiled form of MATCH; don't call anything
165 which might compile a new regexp until we're done with the loop! */ 165 which might compile a new regexp until we're done with the loop! */
166 166
167 BLOCK_INPUT; 167 block_input ();
168 d = opendir (SSDATA (dirfilename)); 168 d = opendir (SSDATA (dirfilename));
169 UNBLOCK_INPUT; 169 unblock_input ();
170 if (d == NULL) 170 if (d == NULL)
171 report_file_error ("Opening directory", Fcons (directory, Qnil)); 171 report_file_error ("Opening directory", Fcons (directory, Qnil));
172 172
@@ -310,9 +310,9 @@ directory_files_internal (Lisp_Object directory, Lisp_Object full,
310 } 310 }
311 } 311 }
312 312
313 BLOCK_INPUT; 313 block_input ();
314 closedir (d); 314 closedir (d);
315 UNBLOCK_INPUT; 315 unblock_input ();
316#ifdef WINDOWSNT 316#ifdef WINDOWSNT
317 if (attrs) 317 if (attrs)
318 Vw32_get_true_file_attributes = w32_save; 318 Vw32_get_true_file_attributes = w32_save;
@@ -486,9 +486,9 @@ file_name_completion (Lisp_Object file, Lisp_Object dirname, bool all_flag,
486 486
487 encoded_dir = ENCODE_FILE (dirname); 487 encoded_dir = ENCODE_FILE (dirname);
488 488
489 BLOCK_INPUT; 489 block_input ();
490 d = opendir (SSDATA (Fdirectory_file_name (encoded_dir))); 490 d = opendir (SSDATA (Fdirectory_file_name (encoded_dir)));
491 UNBLOCK_INPUT; 491 unblock_input ();
492 if (!d) 492 if (!d)
493 report_file_error ("Opening directory", Fcons (dirname, Qnil)); 493 report_file_error ("Opening directory", Fcons (dirname, Qnil));
494 494
@@ -962,10 +962,10 @@ so last access time will always be midnight of that day. */)
962 962
963 if (!(NILP (id_format) || EQ (id_format, Qinteger))) 963 if (!(NILP (id_format) || EQ (id_format, Qinteger)))
964 { 964 {
965 BLOCK_INPUT; 965 block_input ();
966 uname = stat_uname (&s); 966 uname = stat_uname (&s);
967 gname = stat_gname (&s); 967 gname = stat_gname (&s);
968 UNBLOCK_INPUT; 968 unblock_input ();
969 } 969 }
970 if (uname) 970 if (uname)
971 values[2] = DECODE_SYSTEM (build_string (uname)); 971 values[2] = DECODE_SYSTEM (build_string (uname));