Mercurial > emacs
changeset 12283:fd9043d15414
[MULTI_FRAME] (Fignore_event): New function.
[MULTI_FRAME] (keys_of_frame): Bind iconify-frame and
make-frame-visible to it.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 16 Jun 1995 22:19:27 +0000 |
parents | 586e3ea81792 |
children | 07a76f045154 |
files | src/frame.c |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/frame.c Fri Jun 16 19:17:59 1995 +0000 +++ b/src/frame.c Fri Jun 16 22:19:27 1995 +0000 @@ -531,6 +531,14 @@ return do_switch_frame (frame, no_enter, 0); } +DEFUN ("ignore-event", Fignore_event, Signore_event, 0, 0, "", + "Do nothing, but preserve any prefix argument already specified.\n\ +This is a suitable binding for iconify-frame and make-frame-visible.") + () +{ + current_kboard->Vprefix_arg = Vcurrent_prefix_arg; + return Qnil; +} DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0, "Return the frame that is now selected.") @@ -1922,6 +1930,7 @@ defsubr (&Sframe_live_p); defsubr (&Smake_terminal_frame); defsubr (&Shandle_switch_frame); + defsubr (&Signore_event); defsubr (&Sselect_frame); defsubr (&Sselected_frame); defsubr (&Swindow_frame); @@ -1966,8 +1975,8 @@ { initial_define_lispy_key (global_map, "switch-frame", "handle-switch-frame"); initial_define_lispy_key (global_map, "delete-frame", "handle-delete-frame"); - initial_define_lispy_key (global_map, "iconify-frame", "ignore"); - initial_define_lispy_key (global_map, "make-frame-visible", "ignore"); + initial_define_lispy_key (global_map, "iconify-frame", "ignore-event"); + initial_define_lispy_key (global_map, "make-frame-visible", "ignore-event"); } #else /* not MULTI_FRAME */