(IS_DAEMON): Move definition ...
* lisp.h (IS_DAEMON): ... here.
(daemon_pipe): Declare.
(is_daemon): Remove.
* dispnew.c (init_display): Use IS_DAEMON.
+2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * emacs.c (daemon_pipe): Make non-static.
+ (IS_DAEMON): Move definition ...
+ * lisp.h (IS_DAEMON): ... here.
+ (daemon_pipe): Declare.
+ (is_daemon): Remove.
+ * dispnew.c (init_display): Use IS_DAEMON.
+
2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
* xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
#endif /* SIGWINCH */
/* If running as a daemon, no need to initialize any frames/terminal. */
- if (is_daemon)
- return;
+ if (IS_DAEMON)
+ return;
/* If the user wants to use a window system, we shouldn't bother
initializing the terminal. This is especially important when the
/* Pipe used to send exit notification to the daemon parent at
startup. */
-static int daemon_pipe[2];
-
-#define IS_DAEMON (daemon_pipe[1] != 0)
+int daemon_pipe[2];
/* Save argv and argc. */
char **initial_argv;
void shut_down_emacs P_ ((int, int, Lisp_Object));
/* Nonzero means don't do interactive redisplay and don't change tty modes */
extern int noninteractive;
-/* Nonzero means Emacs was started as a daemon. */
-extern int is_daemon;
+
+/* Pipe used to send exit notification to the daemon parent at
+ startup. */
+extern int daemon_pipe[2];
+#define IS_DAEMON (daemon_pipe[1] != 0)
+
/* Nonzero means don't do use window-system-specific display code */
extern int inhibit_window_system;
/* Nonzero means that a filter or a sentinel is running. */