Mercurial > emacs
comparison src/frame.c @ 90127:30ad2795fdab
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-28
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 180-191)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 39-44)
- Merge from emacs--cvs-trunk--0
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sat, 19 Mar 2005 02:42:17 +0000 |
parents | 29e773288013 3f2da5ea6238 |
children | 13796b0653c7 |
comparison
equal
deleted
inserted
replaced
90126:8ee106ee2dc8 | 90127:30ad2795fdab |
---|---|
1 /* Generic frame functions. | 1 /* Generic frame functions. |
2 Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000, 2001, 2003, 2004 | 2 Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000, 2001, 2003, 2004, 2005 |
3 Free Software Foundation. | 3 Free Software Foundation. |
4 | 4 |
5 This file is part of GNU Emacs. | 5 This file is part of GNU Emacs. |
6 | 6 |
7 GNU Emacs is free software; you can redistribute it and/or modify | 7 GNU Emacs is free software; you can redistribute it and/or modify |
764 call1 (Vrun_hooks, Qmouse_leave_buffer_hook); | 764 call1 (Vrun_hooks, Qmouse_leave_buffer_hook); |
765 return do_switch_frame (event, 0, 0); | 765 return do_switch_frame (event, 0, 0); |
766 } | 766 } |
767 | 767 |
768 DEFUN ("ignore-event", Fignore_event, Signore_event, 0, 0, "", | 768 DEFUN ("ignore-event", Fignore_event, Signore_event, 0, 0, "", |
769 doc: /* Do nothing, but preserve any prefix argument already specified. | 769 doc: /* Do nothing. |
770 This is a suitable binding for `iconify-frame' and `make-frame-visible'. */) | 770 This is a suitable binding for `iconify-frame' and `make-frame-visible'. */) |
771 () | 771 () |
772 { | 772 { |
773 current_kboard->Vprefix_arg = Vcurrent_prefix_arg; | 773 /* Contrary to `handle-switch-frame', `ignore-event' is used from |
774 `special-event-map'. Commands from that map are run in a special | |
775 way that automatically preserves the prefix-arg. Restoring | |
776 the prefix arg here is not just redundant but harmful: | |
777 - C-u C-x v = | |
778 - current-prefix-arg is set to non-nil, prefix-arg is set to nil. | |
779 - after the first prompt, the exit-minibuffer-hook is run which may | |
780 iconify a frame and thus push a `iconify-frame' event. | |
781 - after running exit-minibuffer-hook, current-prefix-arg is | |
782 restored to the non-nil value it had before the prompt. | |
783 - we enter the second prompt. | |
784 current-prefix-arg is non-nil, prefix-arg is nil. | |
785 - before running the first real event, we run the special iconify-frame | |
786 event, but we pass the `special' arg to execute-command so | |
787 current-prefix-arg and prefix-arg are left untouched. | |
788 - here we foolishly copy the non-nil current-prefix-arg to prefix-arg. | |
789 - the next key event will have a spuriously non-nil current-prefix-arg. | |
790 current_kboard->Vprefix_arg = Vcurrent_prefix_arg; */ | |
774 return Qnil; | 791 return Qnil; |
775 } | 792 } |
776 | 793 |
777 DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0, | 794 DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0, |
778 doc: /* Return the frame that is now selected. */) | 795 doc: /* Return the frame that is now selected. */) |