Use Frun_hooks rather than calling Vrun_hooks manually
[bpt/emacs.git] / src / callint.c
index 282d8a8..bb815a5 100644 (file)
@@ -423,8 +423,7 @@ invoke it.  If KEYS is omitted or nil, the return value of
                error ("Attempt to select inactive minibuffer window");
 
              /* If the current buffer wants to clean up, let it.  */
-             if (!NILP (Vmouse_leave_buffer_hook))
-               call1 (Vrun_hooks, Qmouse_leave_buffer_hook);
+              Frun_hooks (1, &Qmouse_leave_buffer_hook);
 
              Fselect_window (w, Qnil);
            }