bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5837: 23.1.95; Nextstep emacs -nw segfaults on startup in ns_set_doc


From: Chong Yidong
Subject: bug#5837: 23.1.95; Nextstep emacs -nw segfaults on startup in ns_set_doc_edited
Date: Mon, 05 Apr 2010 10:06:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.95 (gnu/linux)

Steve Revilak <steve@srevilak.net> writes:

> I've just built emacs 23.1.95 on two Mac OS X systems; one Mac OS
> 10.6.2 (x86_64), and one Mac OS 10.4.11 (PPC G5).  On both systems
> "emacs -nw" segfaults on startup.  The segfault happens so early that
> I cannot use M-x report-emacs-bug on the affected systems.
>
> When I run emacs as a windowed application (without "-nw"), then there
> is no segfault.

Thanks for the bug report.  Does the following patch fix the problem?

=== modified file 'src/xdisp.c'
*** src/xdisp.c 2010-03-30 17:26:58 +0000
--- src/xdisp.c 2010-04-05 14:05:48 +0000
***************
*** 9570,9576 ****
          update_tool_bar (f, 0);
  #endif
  #ifdef HAVE_NS
!           if (windows_or_buffers_changed)
              ns_set_doc_edited (f, Fbuffer_modified_p
                               (XWINDOW (f->selected_window)->buffer));
  #endif
--- 9570,9577 ----
          update_tool_bar (f, 0);
  #endif
  #ifdef HAVE_NS
!           if (windows_or_buffers_changed
!             && FRAME_NS_P (f))
              ns_set_doc_edited (f, Fbuffer_modified_p
                               (XWINDOW (f->selected_window)->buffer));
  #endif







reply via email to

[Prev in Thread] Current Thread [Next in Thread]