Mercurial > emacs
diff src/callproc.c @ 15440:87c6c9287f45
(Fcall_process): Handle t or nil as STDERR_FILE.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 16 Jun 1996 23:09:17 +0000 |
parents | 99d01b1b8799 |
children | cdf40972804f |
line wrap: on
line diff
--- a/src/callproc.c Sun Jun 16 18:47:08 1996 +0000 +++ b/src/callproc.c Sun Jun 16 23:09:17 1996 +0000 @@ -245,8 +245,16 @@ if (CONSP (buffer)) { if (CONSP (XCONS (buffer)->cdr)) - error_file = Fexpand_file_name (XCONS (XCONS (buffer)->cdr)->car, - Qnil); + { + Lisp_Object file_for_stderr; + stderr_file = XCONS (XCONS (buffer)->cdr)->car; + + if (NILP (stderr_file) || EQ (Qt, stderr_file)) + error_file = stderr_file; + else + error_file = Fexpand_file_name (stderr_file, Qnil); + } + buffer = XCONS (buffer)->car; }