diff options
| author | Richard M. Stallman | 1994-02-03 05:56:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-03 05:56:36 +0000 |
| commit | b56ad927c40bc61d53b07ec343a75f202d432dbf (patch) | |
| tree | 27477b97e28cac04e6e710e86489301b114607c6 /src | |
| parent | 990a74216b4a7ec2f8cc06ba0118b5bebaa26137 (diff) | |
| download | emacs-b56ad927c40bc61d53b07ec343a75f202d432dbf.tar.gz emacs-b56ad927c40bc61d53b07ec343a75f202d432dbf.zip | |
(Fwrite_region): If FILENAME has no handler, see if VISIT has one.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 3 |
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 | { |