Commit b56ad927 authored by Richard M. Stallman's avatar Richard M. Stallman

(Fwrite_region): If FILENAME has no handler, see if VISIT has one.

parent 990a7421
......@@ -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))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment