changeset 5758:23821c197271

(Fwrite_region): If FILENAME has no handler, see if VISIT has one.
author Richard M. Stallman <rms@gnu.org>
date Thu, 03 Feb 1994 05:56:36 +0000
parents a2346a4ebfe2
children e4bd64404a43
files src/fileio.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Thu Feb 03 05:55:12 1994 +0000
+++ b/src/fileio.c	Thu Feb 03 05:56:36 1994 +0000
@@ -2803,6 +2803,9 @@
   /* If the file name has special constructs in it,
      call the corresponding file handler.  */
   handler = Ffind_file_name_handler (filename);
+  /* If FILENAME has no handler, see if VISIT has one.  */
+  if (NILP (handler) && XTYPE (visit) == Lisp_String)
+    handler = Ffind_file_name_handler (visit);    
 
   if (!NILP (handler))
     {