aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfilenotify.c
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/gfilenotify.c
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/gfilenotify.c')
-rw-r--r--src/gfilenotify.c11
1 files changed, 7 insertions, 4 deletions
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);