aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-10-28 04:25:11 +0000
committerDan Nicolaescu2008-10-28 04:25:11 +0000
commitff808935f5c5473dc699a7fa095fbe82cf605c5d (patch)
tree4da128b5899716e974ec91548e7b54b30c458f96
parent9fc10007e93fe4f6349976f5a32cae55b5cdb4c8 (diff)
downloademacs-ff808935f5c5473dc699a7fa095fbe82cf605c5d.tar.gz
emacs-ff808935f5c5473dc699a7fa095fbe82cf605c5d.zip
* 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.
-rw-r--r--src/ChangeLog9
-rw-r--r--src/dispnew.c4
-rw-r--r--src/emacs.c4
-rw-r--r--src/lisp.h8
4 files changed, 18 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ba79e504b53..1c1c6aa5b74 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * emacs.c (daemon_pipe): Make non-static.
4 (IS_DAEMON): Move definition ...
5 * lisp.h (IS_DAEMON): ... here.
6 (daemon_pipe): Declare.
7 (is_daemon): Remove.
8 * dispnew.c (init_display): Use IS_DAEMON.
9
12008-10-28 Stefan Monnier <monnier@iro.umontreal.ca> 102008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2 11
3 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog) 12 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
diff --git a/src/dispnew.c b/src/dispnew.c
index 9c810a53e69..60caaa091eb 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6843,8 +6843,8 @@ init_display ()
6843#endif /* SIGWINCH */ 6843#endif /* SIGWINCH */
6844 6844
6845 /* If running as a daemon, no need to initialize any frames/terminal. */ 6845 /* If running as a daemon, no need to initialize any frames/terminal. */
6846 if (is_daemon) 6846 if (IS_DAEMON)
6847 return; 6847 return;
6848 6848
6849 /* If the user wants to use a window system, we shouldn't bother 6849 /* If the user wants to use a window system, we shouldn't bother
6850 initializing the terminal. This is especially important when the 6850 initializing the terminal. This is especially important when the
diff --git a/src/emacs.c b/src/emacs.c
index b3dee7776a2..d707f4f758d 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -240,9 +240,7 @@ static char *daemon_name;
240 240
241/* Pipe used to send exit notification to the daemon parent at 241/* Pipe used to send exit notification to the daemon parent at
242 startup. */ 242 startup. */
243static int daemon_pipe[2]; 243int daemon_pipe[2];
244
245#define IS_DAEMON (daemon_pipe[1] != 0)
246 244
247/* Save argv and argc. */ 245/* Save argv and argc. */
248char **initial_argv; 246char **initial_argv;
diff --git a/src/lisp.h b/src/lisp.h
index df7f9669175..bffdfba020d 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3118,8 +3118,12 @@ void synchronize_system_time_locale P_ ((void));
3118void shut_down_emacs P_ ((int, int, Lisp_Object)); 3118void shut_down_emacs P_ ((int, int, Lisp_Object));
3119/* Nonzero means don't do interactive redisplay and don't change tty modes */ 3119/* Nonzero means don't do interactive redisplay and don't change tty modes */
3120extern int noninteractive; 3120extern int noninteractive;
3121/* Nonzero means Emacs was started as a daemon. */ 3121
3122extern int is_daemon; 3122/* Pipe used to send exit notification to the daemon parent at
3123 startup. */
3124extern int daemon_pipe[2];
3125#define IS_DAEMON (daemon_pipe[1] != 0)
3126
3123/* Nonzero means don't do use window-system-specific display code */ 3127/* Nonzero means don't do use window-system-specific display code */
3124extern int inhibit_window_system; 3128extern int inhibit_window_system;
3125/* Nonzero means that a filter or a sentinel is running. */ 3129/* Nonzero means that a filter or a sentinel is running. */