[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 1072155: Avoid duplicate entries in process-env
Re: [Emacs-diffs] master 1072155: Avoid duplicate entries in process-environment after re-dumping
Tue, 2 Apr 2019 13:11:53 -0700
>> Date: Tue, 2 Apr 2019 12:02:55 -0700
>> From: "Daniel Colascione" <address@hidden>
>> > + /* Reset process-environment -- this is for when they re-dump a
>> > + pdump-restored emacs, since set_initial_environment wants always
>> > + to cons it from scratch. */
>> > + Vprocess_environment = Qnil;
>> Don't we want to reset process-environment to its old value in
> You are thinking about re-dumping from an interactive session?
> that case, probably yes. But currently we only support dumping from
> batch sessions, and in that case I don't see a need to restore
> process-environment, am I missing something?
We "support" dumping only from dedicated batch instances in that for now
we should consider only bugs in that use case release-blocking, but I
don't want to gratuitously break other use cases like dumping interactive
sessions without killing them, since these use cases are meant to work and
we'll give them the same level of support someday soon.
>> > + garbage_collect ();
>> > +
>> > CHECK_STRING (filename);
>> > filename = Fexpand_file_name (filename, Qnil);
>> > filename = ENCODE_FILE (filename);
>> Does it make sense to move this chunk before the
>> garbage-collect-until-we-run-all-finalizers loop above? That way, we'd
>> one fewer GC.
> Probably. I just wanted to do this as close to the actual dumping as
> possible, but maybe it's not that important.