aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-07-22 16:55:01 +0000
committerJim Blandy1992-07-22 16:55:01 +0000
commit3eac99106c84691923f004e3cd251c358c04276f (patch)
tree51e912b4cdbc50914538b71c3bf3fc72742eb0a4 /src
parent434e6714820315c7e27ec615b0c9b8ab32435e7f (diff)
downloademacs-3eac99106c84691923f004e3cd251c358c04276f.tar.gz
emacs-3eac99106c84691923f004e3cd251c358c04276f.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 95e570a666d..9910fa3858a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -157,7 +157,7 @@ find_file_handler (filename)
157 Lisp_Object filename; 157 Lisp_Object filename;
158{ 158{
159 Lisp_Object chain; 159 Lisp_Object chain;
160 for (chain = Vfile_handler_alist; XTYPE (chain) == Lisp_Cons; 160 for (chain = Vfile_name_handler_alist; XTYPE (chain) == Lisp_Cons;
161 chain = XCONS (chain)->cdr) 161 chain = XCONS (chain)->cdr)
162 { 162 {
163 Lisp_Object elt; 163 Lisp_Object elt;
@@ -1705,7 +1705,7 @@ This happens for interactive use with M-x.")
1705 call the corresponding file handler. */ 1705 call the corresponding file handler. */
1706 handler = find_file_handler (filename); 1706 handler = find_file_handler (filename);
1707 if (!NILP (handler)) 1707 if (!NILP (handler))
1708 return call3 (handler, Qmake_symbolic_link, filename, newname); 1708 return call3 (handler, Qmake_symbolic_link, filename, linkname);
1709 1709
1710 if (NILP (ok_if_already_exists) 1710 if (NILP (ok_if_already_exists)
1711 || XTYPE (ok_if_already_exists) == Lisp_Int) 1711 || XTYPE (ok_if_already_exists) == Lisp_Int)
@@ -2336,6 +2336,7 @@ to the file, instead of any buffer contents, and END is ignored.")
2336#ifdef VMS 2336#ifdef VMS
2337 unsigned char *fname = 0; /* If non-0, original filename (must rename) */ 2337 unsigned char *fname = 0; /* If non-0, original filename (must rename) */
2338#endif /* VMS */ 2338#endif /* VMS */
2339 Lisp_Object handler;
2339 2340
2340 /* Special kludge to simplify auto-saving */ 2341 /* Special kludge to simplify auto-saving */
2341 if (NILP (start)) 2342 if (NILP (start))
@@ -2352,6 +2353,7 @@ to the file, instead of any buffer contents, and END is ignored.")
2352 /* If the file name has special constructs in it, 2353 /* If the file name has special constructs in it,
2353 call the corresponding file handler. */ 2354 call the corresponding file handler. */
2354 handler = find_file_handler (filename); 2355 handler = find_file_handler (filename);
2356
2355 if (!NILP (handler)) 2357 if (!NILP (handler))
2356 { 2358 {
2357 Lisp_Object args[7]; 2359 Lisp_Object args[7];
@@ -2641,9 +2643,9 @@ This means that the file has not been changed since it was visited or saved.")
2641 2643
2642 /* If the file name has special constructs in it, 2644 /* If the file name has special constructs in it,
2643 call the corresponding file handler. */ 2645 call the corresponding file handler. */
2644 handler = find_file_handler (filename); 2646 handler = find_file_handler (b->filename);
2645 if (!NILP (handler)) 2647 if (!NILP (handler))
2646 return call2 (handler, Qverify_visited_file_modtime, filename); 2648 return call2 (handler, Qverify_visited_file_modtime, b->filename);
2647 2649
2648 if (stat (XSTRING (b->filename)->data, &st) < 0) 2650 if (stat (XSTRING (b->filename)->data, &st) < 0)
2649 { 2651 {
@@ -2682,6 +2684,7 @@ or if the file itself has been changed for some known benign reason.")
2682{ 2684{
2683 register Lisp_Object filename; 2685 register Lisp_Object filename;
2684 struct stat st; 2686 struct stat st;
2687 Lisp_Object handler;
2685 2688
2686 filename = Fexpand_file_name (current_buffer->filename, Qnil); 2689 filename = Fexpand_file_name (current_buffer->filename, Qnil);
2687 2690