1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-08 15:35:02 +00:00

Fix crash on NextStep terminal (Bug#5837)

* xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
terminal frames (Bug#5837).
This commit is contained in:
Chong Yidong 2010-04-17 11:53:55 -04:00
parent ebb5722ecf
commit b8a1d5a14b
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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