Commit b8a1d5a1 authored by Chong Yidong's avatar Chong Yidong

Fix crash on NextStep terminal (Bug#5837)

* xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
terminal frames (Bug#5837).
parent ebb5722e
......@@ -327,6 +327,11 @@
(gif_load): Put GIF extension data to the property
`Qextension_data'.
2010-04-05 Chong Yidong <cyd@stupidchicken.com>
* xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
terminal frames (Bug#5837).
2010-03-31 Chong Yidong <cyd@stupidchicken.com>
* nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
......
......@@ -9831,7 +9831,8 @@ prepare_menu_bars ()
update_tool_bar (f, 0);
#endif
#ifdef HAVE_NS
if (windows_or_buffers_changed)
if (windows_or_buffers_changed
&& FRAME_NS_P (f))
ns_set_doc_edited (f, Fbuffer_modified_p
(XWINDOW (f->selected_window)->buffer));
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment