]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fwrite_region): If FILENAME has no handler, see if VISIT has one.
authorRichard M. Stallman <rms@gnu.org>
Thu, 3 Feb 1994 05:56:36 +0000 (05:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 3 Feb 1994 05:56:36 +0000 (05:56 +0000)
src/fileio.c

index b1066995ac505437cc37c6c5696457207cb295c3..b70f7121e8f319ece179ded3471e9f886c15b487 100644 (file)
@@ -2803,6 +2803,9 @@ to the file, instead of any buffer contents, and END is ignored.")
   /* 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))
     {