APPROVE COMMIT
NOTE: This patch has been committed.
# HG changeset patch
# User Aidan Kehoe <kehoea(a)parhasard.net>
# Date 1314526828 -3600
# Node ID 97df8ecdf78ed94e41c08d309afc645eece9f62b
# Parent c9d335183ef0519a6903f25f286f88b351e428b1
Correct a call to va_run_hook_with_args(), event-gtk.c
src/ChangeLog.GTK addition:
2011-08-28 Aidan Kehoe <kehoea(a)parhasard.net>
* select-gtk.c:
* select-gtk.c (emacs_gtk_selection_handle):
* select-gtk.c (syms_of_select_gtk):
va_run_hook_with_args needs to be called with the symbol name of the
hook, not its value. Make it so.
diff -r c9d335183ef0 -r 97df8ecdf78e src/ChangeLog.GTK
--- a/src/ChangeLog.GTK Sat Aug 27 16:46:10 2011 +0100
+++ b/src/ChangeLog.GTK Sun Aug 28 11:20:28 2011 +0100
@@ -1,3 +1,11 @@
+2011-08-28 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * select-gtk.c:
+ * select-gtk.c (emacs_gtk_selection_handle):
+ * select-gtk.c (syms_of_select_gtk):
+ va_run_hook_with_args needs to be called with the symbol name of the
+ hook, not its value. Make it so.
+
2011-08-27 Aidan Kehoe <kehoea(a)parhasard.net>
* device-gtk.c:
diff -r c9d335183ef0 -r 97df8ecdf78e src/select-gtk.c
--- a/src/select-gtk.c Sat Aug 27 16:46:10 2011 +0100
+++ b/src/select-gtk.c Sun Aug 28 11:20:28 2011 +0100
@@ -43,6 +43,8 @@
static gboolean waiting_for_selection;
Lisp_Object Vgtk_sent_selection_hooks;
+Lisp_Object Qgtk_sent_selection_hooks;
+
extern int lisp_to_time (Lisp_Object, time_t *);
extern Lisp_Object time_to_lisp (time_t);
@@ -230,7 +232,7 @@
UNGCPRO;
/* Let random lisp code notice that the selection has been asked for. */
- va_run_hook_with_args (Vgtk_sent_selection_hooks, 3, selection_symbol,
+ va_run_hook_with_args (Qgtk_sent_selection_hooks, 3, selection_symbol,
target_symbol, successful_p);
}
@@ -473,6 +475,7 @@
void
syms_of_select_gtk (void)
{
+ DEFSYMBOL (Qgtk_sent_selection_hooks);
}
void
--
‘Iodine deficiency was endemic in parts of the UK until, through what has been
described as “an unplanned and accidental public health triumph”, iodine was
added to cattle feed to improve milk production in the 1930s.’
(EN Pearce, Lancet, June 2011)
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches