summaryrefslogtreecommitdiff
path: root/src/xfns.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2013-09-13 20:46:18 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2013-09-13 20:46:18 +0400
commitfcd42c11c0e0e5fa3ab931ad2126b1d855ba240f (patch)
tree292f51c029f5651ef19e3058132385c9b03f15a3 /src/xfns.c
parentbc2c0769db73f5acd7545b4c3f74cae29e4e4315 (diff)
Unify Fx_focus_frame between all ports.
* src/frame.h (x_focus_frame): New prototype. * src/xfns.c (Fx_focus_frame): Remove. (syms_of_xfns): Do not defsubr it. (x_focus_frame): X implementation. * src/nsfns.m (Fx_focus_frame): Remove. (syms_of_nsfns): Do not defsubr it. (x_focus_frame): NS implementation. * src/w32term.c (Fx_focus_frame): Remove. (x_focus_on_frame): Rename to... (x_focus_frame): W32 implementation. * src/w32term.h (x_focus_on_frame): Remove prototype. * src/w32fns.c (Fx_focus_frame): Remove. (syms_of_w32fns): Do not defsubr it. * src/frame.c (Fx_focus_frame): Define here. (syms_of_frame): Defsubr here. * src/gtkutil.c (xg_tool_bar_callback): Use x_focus_frame. * lisp/frame.el (x-focus-frame): Mark as declared in frame.c.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/xfns.c b/src/xfns.c
index df5f0a742d..ecd1ce7bc9 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3252,12 +3252,9 @@ x_get_focus_frame (struct frame *frame)
policy. But I think it's okay to use when it's clearly done
following a user-command. */
-DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0,
- doc: /* Set the input focus to FRAME.
-FRAME nil means use the selected frame. */)
- (Lisp_Object frame)
+void
+x_focus_frame (struct frame *f)
{
- struct frame *f = decode_window_system_frame (frame);
Display *dpy = FRAME_X_DISPLAY (f);
block_input ();
@@ -3279,8 +3276,6 @@ FRAME nil means use the selected frame. */)
x_uncatch_errors ();
unblock_input ();
-
- return Qnil;
}
@@ -6170,7 +6165,6 @@ When using Gtk+ tooltips, the tooltip face is not used. */);
defsubr (&Sx_close_connection);
defsubr (&Sx_display_list);
defsubr (&Sx_synchronize);
- defsubr (&Sx_focus_frame);
defsubr (&Sx_backspace_delete_keys_p);
defsubr (&Sx_show_tip);