Mercurial > emacs
comparison src/dispnew.c @ 88050:449ffc76e463
* window.c (run_window_configuration_change_hook): New function.
Code extracted from set_window_buffer. Set the selected frame.
(set_window_buffer): Use it.
* window.h (run_window_configuration_change_hook): Declare.
* dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 28 Jan 2008 19:05:13 +0000 |
parents | 107ccd98fa12 |
children | c70e45a7acfd |
comparison
equal
deleted
inserted
replaced
88049:3f51de0dbaee | 88050:449ffc76e463 |
---|---|
6384 | 6384 |
6385 UNBLOCK_INPUT; | 6385 UNBLOCK_INPUT; |
6386 | 6386 |
6387 record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); | 6387 record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); |
6388 | 6388 |
6389 /* This isn't quite a no-op: it runs window-configuration-change-hook. */ | 6389 run_window_configuration_change_hook (f); |
6390 Fset_window_buffer (FRAME_SELECTED_WINDOW (f), | |
6391 XWINDOW (FRAME_SELECTED_WINDOW (f))->buffer, Qt); | |
6392 | 6390 |
6393 unbind_to (count, Qnil); | 6391 unbind_to (count, Qnil); |
6394 } | 6392 } |
6395 | 6393 |
6396 | 6394 |