From: Chong Yidong Date: Mon, 5 Apr 2010 15:46:29 +0000 (-0400) Subject: Fix crash on NextStep terminal (Bug#5837) X-Git-Tag: emacs-pretest-23.1.96~39^2~4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=84257d9314ac231a44eaa5f93b0247bedead1171;p=emacs.git Fix crash on NextStep terminal (Bug#5837) * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for terminal frames (Bug#5837). --- diff --git a/src/ChangeLog b/src/ChangeLog index cafbd2dda69..be916dff20d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-04-05 Chong Yidong + + * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for + terminal frames (Bug#5837). + 2010-03-31 Chong Yidong * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL. diff --git a/src/xdisp.c b/src/xdisp.c index 1b6cbfbe27a..734b60bc1dd 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -9570,7 +9570,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