X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/d8e18df75ccbb4eef287b98981c90c1dd7565e64..6a350b06e2d2d3e092a6de644f742e0e52e6517b:/src/dired.c diff --git a/src/dired.c b/src/dired.c index e833ceb216..87b48ba2d7 100644 --- a/src/dired.c +++ b/src/dired.c @@ -1,5 +1,5 @@ /* Lisp functions for making directory listings. - Copyright (C) 1985, 1986, 1993, 1994, 1999, 2000, 2001, 2004 + Copyright (C) 1985, 1986, 1993, 1994, 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -26,10 +26,10 @@ Boston, MA 02111-1307, USA. */ #include #include -#ifdef VMS -#include "vms-pwd.h" -#else +#ifdef HAVE_PWD_H #include +#endif +#ifndef VMS #include #endif @@ -114,7 +114,6 @@ extern void filemodestring P_ ((struct stat *, char *)); extern int completion_ignore_case; extern Lisp_Object Vcompletion_regexp_list; -extern Lisp_Object Vfile_name_coding_system, Vdefault_file_name_coding_system; Lisp_Object Vcompletion_ignored_extensions; Lisp_Object Qcompletion_ignore_case; @@ -907,6 +906,7 @@ Elements of the attribute list are: #endif char modes[10]; Lisp_Object handler; + struct gcpro gcpro1; filename = Fexpand_file_name (filename, Qnil); @@ -922,7 +922,9 @@ Elements of the attribute list are: return call3 (handler, Qfile_attributes, filename, id_format); } + GCPRO1 (filename); encoded = ENCODE_FILE (filename); + UNGCPRO; if (lstat (SDATA (encoded), &s) < 0) return Qnil;