aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Albinus2013-06-05 14:17:02 +0200
committerMichael Albinus2013-06-05 14:17:02 +0200
commit90db87027fadf1c67325659caea4a5ea41e8a27a (patch)
tree54a8af07e52f44ebe93a511e211da2fabc74985c /src
parent976cb066286ab3f1ca8356ac850d9a9a34c15406 (diff)
downloademacs-90db87027fadf1c67325659caea4a5ea41e8a27a.tar.gz
emacs-90db87027fadf1c67325659caea4a5ea41e8a27a.zip
* emacs.c (main) [HAVE_GFILENOTIFY]: Call globals_of_gfilenotify.
* gfilenotify.c (globals_of_gfilenotify): New function. (syms_of_gfilenotify): Move global initialization there. * lisp.h (globals_of_gfilenotify) [HAVE_GFILENOTIFY]: Add prototype.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/emacs.c4
-rw-r--r--src/gfilenotify.c11
-rw-r--r--src/lisp.h1
4 files changed, 21 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bfb9b1a4c83..67b1b482f3f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12013-06-05 Michael Albinus <michael.albinus@gmx.de>
2
3 * emacs.c (main) [HAVE_GFILENOTIFY]: Call globals_of_gfilenotify.
4
5 * gfilenotify.c (globals_of_gfilenotify): New function.
6 (syms_of_gfilenotify): Move global initialization there.
7
8 * lisp.h (globals_of_gfilenotify) [HAVE_GFILENOTIFY]: Add prototype.
9
12013-06-05 Stefan Monnier <monnier@iro.umontreal.ca> 102013-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 11
3 * keymap.c (Fcurrent_active_maps, Fdescribe_buffer_bindings): 12 * keymap.c (Fcurrent_active_maps, Fdescribe_buffer_bindings):
diff --git a/src/emacs.c b/src/emacs.c
index 4e439a601b1..0035daa1da2 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1250,6 +1250,10 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1250 tzset (); 1250 tzset ();
1251#endif /* MSDOS */ 1251#endif /* MSDOS */
1252 1252
1253#ifdef HAVE_GFILENOTIFY
1254 globals_of_gfilenotify ();
1255#endif
1256
1253#ifdef WINDOWSNT 1257#ifdef WINDOWSNT
1254 globals_of_w32 (); 1258 globals_of_w32 ();
1255#ifdef HAVE_W32NOTIFY 1259#ifdef HAVE_W32NOTIFY
diff --git a/src/gfilenotify.c b/src/gfilenotify.c
index 4ccc430d815..9b93961f172 100644
--- a/src/gfilenotify.c
+++ b/src/gfilenotify.c
@@ -233,10 +233,15 @@ WATCH-DESCRIPTOR should be an object returned by `gfile-add-watch'. */)
233 233
234 234
235void 235void
236syms_of_gfilenotify (void) 236globals_of_gfilenotify (void)
237{ 237{
238
239 g_type_init (); 238 g_type_init ();
239 watch_list = Qnil;
240}
241
242void
243syms_of_gfilenotify (void)
244{
240 245
241 DEFSYM (Qgfile_add_watch, "gfile-add-watch"); 246 DEFSYM (Qgfile_add_watch, "gfile-add-watch");
242 defsubr (&Sgfile_add_watch); 247 defsubr (&Sgfile_add_watch);
@@ -255,8 +260,6 @@ syms_of_gfilenotify (void)
255 DEFSYM (Qunmounted, "unmounted"); 260 DEFSYM (Qunmounted, "unmounted");
256 DEFSYM (Qmoved, "moved"); 261 DEFSYM (Qmoved, "moved");
257 262
258 /* Initialize internal objects. */
259 watch_list = Qnil;
260 staticpro (&watch_list); 263 staticpro (&watch_list);
261 264
262 Fprovide (intern_c_string ("gfilenotify"), Qnil); 265 Fprovide (intern_c_string ("gfilenotify"), Qnil);
diff --git a/src/lisp.h b/src/lisp.h
index 517d0abbb61..ba36a320a8f 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3786,6 +3786,7 @@ extern Lisp_Object Qfont_param;
3786 3786
3787/* Defined in gfilenotify.c */ 3787/* Defined in gfilenotify.c */
3788#ifdef HAVE_GFILENOTIFY 3788#ifdef HAVE_GFILENOTIFY
3789extern void globals_of_gfilenotify (void);
3789extern void syms_of_gfilenotify (void); 3790extern void syms_of_gfilenotify (void);
3790#endif 3791#endif
3791 3792