diff options
| author | Richard M. Stallman | 1995-08-05 05:04:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-05 05:04:46 +0000 |
| commit | 9ae77b81920386c75ef8ea1c028ef68dfd80eec6 (patch) | |
| tree | 89d0fc3dd4d7199c34422f1ad229f99f6c17d263 | |
| parent | 4254fe58456d2e1b9e9d8746ca802efc53ef2dad (diff) | |
| download | emacs-9ae77b81920386c75ef8ea1c028ef68dfd80eec6.tar.gz emacs-9ae77b81920386c75ef8ea1c028ef68dfd80eec6.zip | |
(Ffocus_frame, Funfocus_frame): Make them no-ops.
| -rw-r--r-- | src/xfns.c | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/xfns.c b/src/xfns.c index 9ed565adf4a..10d8fab1109 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3143,39 +3143,17 @@ x_get_focus_frame (frame) | |||
| 3143 | } | 3143 | } |
| 3144 | 3144 | ||
| 3145 | DEFUN ("focus-frame", Ffocus_frame, Sfocus_frame, 1, 1, 0, | 3145 | DEFUN ("focus-frame", Ffocus_frame, Sfocus_frame, 1, 1, 0, |
| 3146 | "Set the focus on FRAME.") | 3146 | "This function is obsolete, and does nothing.") |
| 3147 | (frame) | 3147 | (frame) |
| 3148 | Lisp_Object frame; | 3148 | Lisp_Object frame; |
| 3149 | { | 3149 | { |
| 3150 | CHECK_LIVE_FRAME (frame, 0); | ||
| 3151 | |||
| 3152 | if (FRAME_X_P (XFRAME (frame))) | ||
| 3153 | { | ||
| 3154 | BLOCK_INPUT; | ||
| 3155 | x_focus_on_frame (XFRAME (frame)); | ||
| 3156 | UNBLOCK_INPUT; | ||
| 3157 | return frame; | ||
| 3158 | } | ||
| 3159 | |||
| 3160 | return Qnil; | 3150 | return Qnil; |
| 3161 | } | 3151 | } |
| 3162 | 3152 | ||
| 3163 | DEFUN ("unfocus-frame", Funfocus_frame, Sunfocus_frame, 0, 0, 0, | 3153 | DEFUN ("unfocus-frame", Funfocus_frame, Sunfocus_frame, 0, 0, 0, |
| 3164 | "If a frame has been focused, release it.") | 3154 | "This function is obsolete, and does nothing.") |
| 3165 | () | 3155 | () |
| 3166 | { | 3156 | { |
| 3167 | if (FRAME_X_P (selected_frame)) | ||
| 3168 | { | ||
| 3169 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (selected_frame); | ||
| 3170 | |||
| 3171 | if (dpyinfo->x_focus_frame) | ||
| 3172 | { | ||
| 3173 | BLOCK_INPUT; | ||
| 3174 | x_unfocus_frame (dpyinfo->x_focus_frame); | ||
| 3175 | UNBLOCK_INPUT; | ||
| 3176 | } | ||
| 3177 | } | ||
| 3178 | |||
| 3179 | return Qnil; | 3157 | return Qnil; |
| 3180 | } | 3158 | } |
| 3181 | 3159 | ||