Commit a9051c88 authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

(read_minibuf): Follow the non-interactive case when

running as a daemon, before detaching.
parent 348a60a8
2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
* minibuf.c (read_minibuf): Follow the non-interactive case when
running as a daemon, before detaching.
2008-12-22 Andreas Schwab <schwab@suse.de>
* buffer.c (init_buffer): Use realloc instead of xrealloc.
......
......@@ -525,7 +525,11 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
build_string ("Command attempted to use minibuffer while in minibuffer"));
}
if (noninteractive && NILP (Vexecuting_kbd_macro))
if ((noninteractive
/* In case we are running as a daemon, only do this before
detaching from the terminal. */
|| (IS_DAEMON && (daemon_pipe[1] >= 0)))
&& NILP (Vexecuting_kbd_macro))
{
val = read_minibuf_noninteractive (map, initial, prompt,
make_number (pos),
......
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