running as a daemon, before detaching.
+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.
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),