unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: running ./temacs
Date: Tue, 31 May 2011 02:36:38 -0400	[thread overview]
Message-ID: <yxqboyjwf49.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <yxq39jvih16.fsf@fencepost.gnu.org> (Dan Nicolaescu's message of "Tue, 31 May 2011 01:19:01 -0400")

Dan Nicolaescu <dann@gnu.org> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>>> >>>>> [Hacking around this so that Vprocess_environment is initialized when
>>>> >>>>> not dumping makes ./temacs work correctly]
>>>> >>>> In case anyone wants to see the difference in behavior, here's the
>>>> >>>> ugly hack:
>>>> >>> Could you explain your code (i.e. why you need those strcmp hacks, why
>>>> >>> you need to set&unset initialized, ...)?
>>>> >> set_initial_environment only initializes Vprocess_environment if
>>>> >> `initialized' is set.
>>>> > Do you happen to know why?
>>>> No idea.  I'd speculate that it's undesirable to initialize it when
>>>> dumping...
>>> Yes, probably.
>>
>> So `initialized' is not the right variable to test.
>> Maybe Vpurify_flag would be closer since it is a better indicator of
>> whether we're about to dump or not, AFAIK.
>
> Vpurify_flag does not quite work. lread.c:init_obarray sets it
> unconditionally:
>
>   /* Qt is correct even if CANNOT_DUMP.  loadup.el will set to nil at end.  */
>   Vpurify_flag = Qt;
>
> I checked in a simplified version of this and of
> set_initial_environment.
> ./temacs runs now.  It starts up in -nw mode, but that's a different
> issue.  It would be great if someone could solve that one too...

It looks like this is enough to get ./temacs run in X11 mode:

=== modified file 'src/dispnew.c'
--- src/dispnew.c 2011-05-25 03:45:04 +0000
+++ src/dispnew.c 2011-05-31 06:17:37 +0000
@@ -6235,9 +6235,6 @@ init_display (void)
     }
 
   if (!inhibit_window_system && display_arg
-#ifndef CANNOT_DUMP
-     && initialized
-#endif
      )
     {
       Vinitial_window_system = Qx;

=== modified file 'src/frame.c'
--- src/frame.c   2011-05-29 00:45:00 +0000
+++ src/frame.c   2011-05-31 06:13:37 +0000
@@ -544,10 +544,8 @@ make_initial_frame (void)
   /* The default value of menu-bar-mode is t.  */
   set_menu_bar_lines (f, make_number (1), Qnil);
 
-#ifdef CANNOT_DUMP
   if (!noninteractive)
     init_frame_faces (f);
-#endif
 
   return f;
 }

Any reason not to check this in?



  reply	other threads:[~2011-05-31  6:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-17  6:57 running ./temacs Dan Nicolaescu
2010-11-17  7:43 ` Óscar Fuentes
2010-11-18  4:44 ` Dan Nicolaescu
2010-11-18 14:26   ` Stefan Monnier
2010-11-18 21:20     ` Dan Nicolaescu
2010-11-18 22:17       ` Stefan Monnier
2010-11-18 22:19         ` Dan Nicolaescu
2010-11-19  7:51           ` Eli Zaretskii
2010-11-20  7:28             ` Dan Nicolaescu
2010-11-21  5:48             ` Stefan Monnier
2011-05-31  5:19               ` Dan Nicolaescu
2011-05-31  6:36                 ` Dan Nicolaescu [this message]
2011-05-31  6:47                   ` Eli Zaretskii
2011-05-31  6:55                     ` Dan Nicolaescu
2011-05-31  8:44                       ` Eli Zaretskii
2011-05-31 14:53                         ` Dan Nicolaescu
2011-05-31  6:40                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yxqboyjwf49.fsf@fencepost.gnu.org \
    --to=dann@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).