From b56ad927c40bc61d53b07ec343a75f202d432dbf Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 3 Feb 1994 05:56:36 +0000 Subject: [PATCH] (Fwrite_region): If FILENAME has no handler, see if VISIT has one. --- src/fileio.c | 3 +++ 1 file changed, 3 insertions(+) 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.") /* 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)) { -- 2.39.5