aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index b1066995ac5..b70f7121e8f 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2803,6 +2803,9 @@ to the file, instead of any buffer contents, and END is ignored.")
2803 /* If the file name has special constructs in it, 2803 /* If the file name has special constructs in it,
2804 call the corresponding file handler. */ 2804 call the corresponding file handler. */
2805 handler = Ffind_file_name_handler (filename); 2805 handler = Ffind_file_name_handler (filename);
2806 /* If FILENAME has no handler, see if VISIT has one. */
2807 if (NILP (handler) && XTYPE (visit) == Lisp_String)
2808 handler = Ffind_file_name_handler (visit);
2806 2809
2807 if (!NILP (handler)) 2810 if (!NILP (handler))
2808 { 2811 {