GSlice problem with emacs Gtk+ build

Ken Brown kbrown@cornell.edu
Mon Dec 7 22:18:00 GMT 2009


On 12/7/2009 2:13 PM, Yaakov (Cygwin/X) wrote:
> On 07/12/2009 10:06, Ken Brown wrote:
>> There's a known workaround, which is to set G_SLICE=always-malloc before
>> starting emacs. As emacs maintainer, I've been reluctant to provide the
>> Gtk+ version of emacs, because I don't want to answer hundreds of emails
>> telling people about the workaround. I could supply a wrapper script
>> that sets G_SLICE, but I'm still afraid that would cause a lot of
>> confusion; I suspect many people are in the habit of calling
>> emacs-X11.exe directly. I have therefore configured the emacs-X11
>> package to use Xaw instead of Gtk+. But Gtk+ is really much nicer, and I
>> would like to be able to provide an emacs-X11 that uses it.
> 
> What about adding to the beginning of main():
> 
> #ifdef __CYGWIN__
>     setenv("G_SLICE", "always-malloc", 1);
> #endif

Thanks, Yaakov!  I was looking for more complicated solutions and never 
thought of the easy one.  That fixes it.

Ken

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list