[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/coding.c
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/coding.c |
Date: |
Thu, 08 Aug 2002 09:01:56 -0400 |
Index: emacs/src/coding.c
diff -c emacs/src/coding.c:1.252 emacs/src/coding.c:1.253
*** emacs/src/coding.c:1.252 Fri Jul 26 07:53:25 2002
--- emacs/src/coding.c Thu Aug 8 08:34:27 2002
***************
*** 6878,6883 ****
--- 6878,6890 ----
if (nargs < 1 + XINT (target_idx))
error ("Too few arguments for operation: %s",
SDATA (SYMBOL_NAME (operation)));
+ /* For write-region, if the 6th argument (i.e. VISIT, the 5th
+ argument to write-region) is string, it must be treated as a
+ target file name. */
+ if (EQ (operation, Qwrite_region)
+ && nargs > 5
+ && STRINGP (args[5]))
+ target_idx = 4;
target = args[XINT (target_idx) + 1];
if (!(STRINGP (target)
|| (EQ (operation, Qopen_network_stream) && INTEGERP (target))))
- [Emacs-diffs] Changes to emacs/src/coding.c, Kenichi Handa, 2002/08/08
- [Emacs-diffs] Changes to emacs/src/coding.c, Kenichi Handa, 2002/08/08
- [Emacs-diffs] Changes to emacs/src/coding.c,
Kenichi Handa <=
- [Emacs-diffs] Changes to emacs/src/coding.c, Ken Raeburn, 2002/08/08
- [Emacs-diffs] Changes to emacs/src/coding.c, Kenichi Handa, 2002/08/10
- [Emacs-diffs] Changes to emacs/src/coding.c, Gerd Moellmann, 2002/08/13
- [Emacs-diffs] Changes to emacs/src/coding.c, Stefan Monnier, 2002/08/15
- [Emacs-diffs] Changes to emacs/src/coding.c, Kenichi Handa, 2002/08/21