From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "d.henman" Newsgroups: gmane.emacs.devel Subject: Re: cygwin emacs gtk2 problem fix Date: Tue, 08 Jul 2008 12:03:14 +0900 Message-ID: <20080708120314.3780@blackhawk> References: <48729BAA.9090102@alice.it> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1215486215 22776 80.91.229.12 (8 Jul 2008 03:03:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 03:03:35 +0000 (UTC) Cc: eliz@gnu.org, Angelo Graziosi To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 08 05:04:22 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KG3V6-0007s8-TD for ged-emacs-devel@m.gmane.org; Tue, 08 Jul 2008 05:04:21 +0200 Original-Received: from localhost ([127.0.0.1]:48158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KG3UE-0007JF-Fm for ged-emacs-devel@m.gmane.org; Mon, 07 Jul 2008 23:03:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KG3U8-0007H4-AR for emacs-devel@gnu.org; Mon, 07 Jul 2008 23:03:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KG3U6-0007G4-ET for emacs-devel@gnu.org; Mon, 07 Jul 2008 23:03:19 -0400 Original-Received: from [199.232.76.173] (port=57148 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KG3U6-0007Fy-9n for emacs-devel@gnu.org; Mon, 07 Jul 2008 23:03:18 -0400 Original-Received: from mail1.asahi-net.or.jp ([202.224.39.197]:53852 helo=mail.asahi-net.or.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KG3U1-0008QA-73; Mon, 07 Jul 2008 23:03:13 -0400 Original-Received: from blackhawk (p044227.dynamic.ppp.asahi-net.or.jp [221.113.44.227]) by mail.asahi-net.or.jp (Postfix) with ESMTP id E5A1E188934; Tue, 8 Jul 2008 12:03:07 +0900 (JST) In-reply-to: Your message of Tue, 08 Jul 2008 00:41:46 +0200 <48729BAA.9090102@alice.it> X-Mailer: MH-E 8.0.3+cvs; GNU Mailutils 1.9.90; GNU Emacs 23.0.60 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100443 Archived-At: Thanks for the confirmation that the fix works for you as well. As to your question: "> Now the question is: could that be done at level of source code?" I am not familiar with the source code, though I did try something like the following in "../lisp/startup.el", thinking it might work. Ideally I7d use the below (if (and ...)) structure, but I don't now how to determine the toolkit emacs was built with. I simply wrote "x-toolkit" to illustrate. (if (and (string= system-type "cygwin") (string= x-toolkit "gtk2")) (setenv "G_SLICE" "always-malloc")) but, since I don't know how to find the toolkit used I just used the below: (if (string= system-type "cygwin") (setenv "G_SLICE" "always-malloc")) But, this did not work. emacs just crashed. I guess startup.el is called after doing some processing with the toolkit. Regards, Darel Henman Angelo Graziosi wrote: > d.henman wrote: > > > I have found a simple fix to for the cygwin emacs gtk2 problem, > > as mentioned in the etc/PROBLEM file. > > [...] > > > > + $ export G_SLICE=always-malloc > > + $ emacs > > Confirmed. It works just fine! > > Now the question is: could that be done at level of source code? > > > Cheers, > Angelo.