all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: rms@gnu.org
Cc: jasonr@gnu.org, emacs-devel@gnu.org
Subject: Re: Post-22.1 development?
Date: Wed, 13 Jun 2007 13:39:04 -0400	[thread overview]
Message-ID: <jwvzm33221r.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1HyVbg-0001Yj-Ty@fencepost.gnu.org> (Richard Stallman's message of "Wed\, 13 Jun 2007 12\:22\:04 -0400")

>     Actually, the value of TERM is only for internal use and should never be
>     passed on to subprocesses, so its presence in process-environment is
>     not important.

> That is true, in a sense.  However, at present the primitives to create
> subprocesses just pass TERM along to the subprocess.  Thus, it is up to
> the Lisp code to set it.

Yes and it's a bug (which occasionally causes things like subprocesses
returning to Emacs ASCII escape sequences where they're not expected).
This bug was temporarily "fixed" (by yours truly) some time in the past on
the CVS trunk by removing TERM from process-environment at startup (or
rather setting it to a safe default such as "TERM=dumb").  This is
fundamentally the right thing to do, although the way I did this was wrong
(which is why it was later reverted).

The right way to do it is to remove it from process-environment
(i.e. remove it from the environment passed to subprocesses) but store it
elsewhere.  I think in general, we should be careful to distinguish the
environment inherited from our parent process (which is currently available
only through process-environment but should be stored elsewhere so as to be
available even after modifying process-environment) from the environment
that will be passed to subprocesses (which is obviously
process-environment, as the name clearly implies).

> Should this work differently?  Should we do something in call-process
> and start-process to set TERM?

It should be done directly at startup.


        Stefan

  reply	other threads:[~2007-06-13 17:39 UTC|newest]

Thread overview: 178+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-04  3:31 Post-22.1 development? Chong Yidong
2007-06-04  6:59 ` Release announcement [was Re: Post-22.1 development?] Glenn Morris
2007-06-04  8:44   ` Kim F. Storm
2007-06-04 23:20     ` Richard Stallman
2007-06-04  9:11   ` Yavor Doganov
2007-06-04  8:58 ` Post-22.1 development? Andreas Schwab
2007-06-04  9:20   ` Ulrich Mueller
2007-06-04  9:24     ` Andreas Schwab
2007-06-04 19:28       ` Eli Zaretskii
2007-06-04  9:25     ` David Kastrup
2007-06-04 19:31       ` Eli Zaretskii
2007-06-04 23:20     ` Richard Stallman
2007-06-04 16:44 ` Richard Stallman
2007-06-04 17:31   ` Drew Adams
2007-06-17 21:49     ` Richard Stallman
2007-06-04 18:53   ` new Emacs maintainer(s)? (was: Re: Post-22.1 development?) Dan Nicolaescu
2007-06-04 19:34     ` new Emacs maintainer(s)? David Kastrup
2007-06-04 19:37       ` Eli Zaretskii
2007-06-04 19:44         ` David Kastrup
2007-06-04 20:01           ` Lennart Borgman (gmail)
2007-06-05  5:17     ` new Emacs maintainer(s)? (was: Re: Post-22.1 development?) Richard Stallman
2007-06-05 16:32       ` Dan Nicolaescu
2007-06-05 16:39         ` new Emacs maintainer(s)? David Kastrup
2007-06-05 18:39           ` Karl Fogel
2007-06-06  0:21         ` Chong Yidong
2007-06-06  7:56           ` Kim F. Storm
2007-06-06  8:45             ` David Kastrup
2007-06-06  9:22               ` Juanma Barranquero
2007-06-06 10:25               ` Kim F. Storm
2007-06-06 10:54                 ` David Kastrup
2007-06-06 12:02                   ` Thien-Thi Nguyen
2007-06-06 12:06                     ` David Kastrup
2007-06-06 13:19                       ` Thien-Thi Nguyen
2007-06-06 13:44                         ` David Kastrup
2007-06-06 12:38                   ` Kenichi Handa
2007-06-06 15:11                     ` Kim F. Storm
2007-06-06 19:33                       ` Chong Yidong
2007-06-06 12:29           ` Stefan Monnier
2007-06-07  5:33             ` Miles Bader
2007-06-07  6:12               ` Kenichi Handa
2007-06-04 19:31   ` Post-22.1 development? David Kastrup
2007-06-04 21:18     ` Jason Rumney
2007-06-05  5:17       ` Richard Stallman
2007-06-05 16:10       ` Chong Yidong
2007-06-05 21:35         ` Nick Roberts
2007-06-05 22:33         ` Richard Stallman
2007-06-06  7:58           ` Michael Albinus
2007-06-06 13:07             ` Johan Bockgård
2007-06-06 13:47               ` David Kastrup
2007-06-07 15:45               ` Michael Albinus
2007-06-07 17:05                 ` Andreas Schwab
2007-06-07 19:01                   ` Michael Albinus
2007-06-07 17:24                 ` Stefan Monnier
2007-06-09  9:50                   ` David House
2007-06-06 22:09             ` Richard Stallman
2007-06-07 20:25               ` Michael Albinus
2007-06-08 14:27           ` Vinicius Jose Latorre
2007-06-10 15:59   ` Dan Nicolaescu
2007-06-11  9:44     ` Richard Stallman
2007-06-11 10:04       ` David Kastrup
2007-06-11 11:25         ` Miles Bader
2007-06-11 17:02         ` Dan Nicolaescu
2007-06-11 19:08           ` David Kastrup
2007-06-11 22:23             ` Dan Nicolaescu
2007-06-13  8:07           ` Richard Stallman
2007-06-12 16:00         ` Richard Stallman
2007-06-12 16:29           ` Stefan Monnier
2007-06-12 16:57             ` Jason Rumney
2007-06-12 17:43               ` Stefan Monnier
2007-06-12 22:09                 ` David Kastrup
2007-06-12 23:38                   ` Chong Yidong
2007-06-13 16:22                     ` Richard Stallman
2007-06-13 18:19                       ` Chong Yidong
2007-06-13 19:15                         ` David Kastrup
2007-06-13 18:44                     ` David Kastrup
2007-06-13 19:22                       ` Chong Yidong
2007-06-13 19:47                         ` David Kastrup
2007-06-13 20:08                       ` Jeremy Maitin-Shepard
2007-06-14  6:11                         ` Miles Bader
2007-06-14  6:18                           ` David Kastrup
2007-06-14  6:57                             ` Miles Bader
2007-06-14  7:33                               ` David Kastrup
2007-06-14  8:08                                 ` Miles Bader
2007-06-14  8:39                                   ` David Kastrup
2007-06-14  9:22                                     ` Miles Bader
2007-06-13  0:09                   ` Stefan Monnier
2007-06-13 16:22                     ` Richard Stallman
2007-06-13 17:39                       ` Stefan Monnier [this message]
2007-06-13 16:21                   ` Richard Stallman
2007-06-13 20:57                     ` Michael Albinus
2007-06-13 22:17                       ` Stefan Monnier
2007-06-15  6:09                         ` Michael Albinus
2007-06-15 14:02                           ` Stefan Monnier
2007-06-14  7:49               ` Richard Stallman
2007-06-14  8:57                 ` David Kastrup
2007-06-15  8:48                   ` Richard Stallman
2007-06-15  9:02                     ` David Kastrup
2007-06-16 18:51                       ` Richard Stallman
2007-06-04 19:35 ` Eli Zaretskii
2007-06-05  5:17   ` Richard Stallman
2007-06-05  6:17     ` David Kastrup
2007-06-05 19:17       ` Richard Stallman
2007-06-05 20:52         ` David Kastrup
2007-06-06 16:59           ` Richard Stallman
2007-06-05 19:54       ` Eli Zaretskii
2007-06-05 21:13         ` David Kastrup
2007-06-06 16:59           ` Richard Stallman
2007-06-06 21:10             ` Nick Roberts
2007-06-07  6:51               ` Jan Djärv
2007-06-07  6:57                 ` Miles Bader
2007-06-07  8:21                   ` Jan Djärv
2007-06-07  9:04                     ` Nick Roberts
2007-06-08 14:23                     ` Richard Stallman
2007-06-08 18:06                       ` Jan Djärv
2007-06-07 18:33                 ` Tom Tromey
2007-06-07 18:53                   ` David House
2007-06-07 18:47                     ` Tom Tromey
2007-06-08  5:54                   ` Jan Djärv
2007-06-08  7:17                     ` IPP under emacs [was: Re: Post-22.1 development?] Thien-Thi Nguyen
2007-06-08 14:25                       ` Vinicius Jose Latorre
2007-06-08 18:37                         ` Ken Raeburn
2007-06-08 20:20                           ` Jason Rumney
2007-06-08 20:59                             ` Ken Raeburn
2007-06-08 21:16                               ` Jason Rumney
2007-06-08 21:40                                 ` Ken Raeburn
2007-06-08 21:43                                   ` Jason Rumney
2007-06-09  1:41                                     ` Ken Raeburn
2007-06-09  9:46                         ` Richard Stallman
2007-06-10  3:47                           ` Vinicius Jose Latorre
2007-06-10  7:11                             ` Jan Djärv
2007-06-10 13:18                             ` Richard Stallman
2007-06-08 17:49                   ` Post-22.1 development? Ken Raeburn
2007-06-08 18:41                     ` Andreas Schwab
2007-06-08 20:12                     ` Tom Tromey
2007-06-08 14:23                 ` Richard Stallman
2007-06-08 18:01                   ` Jan Djärv
2007-06-08 19:20                     ` Stefan Monnier
2007-06-08 22:25                       ` desktop.el/session.el [was: Post-22.1 development?] Davis Herring
2007-06-08 23:06                         ` desktop.el/session.el Stefan Monnier
2007-06-09 21:32                         ` desktop.el/session.el Juri Linkov
2007-06-09 20:24                     ` Post-22.1 development? Richard Stallman
2007-06-10  7:23                       ` Jan Djärv
2007-06-09 20:24                     ` Richard Stallman
2007-06-08  7:11               ` Richard Stallman
2007-06-08  9:01                 ` Nick Roberts
2007-06-07 19:48             ` Sean O'Rourke
2007-06-07 21:18               ` Nick Roberts
2007-06-07 22:17                 ` Sean O'Rourke
2007-06-07 22:53                   ` Miles Bader
2007-06-07 23:58                   ` Alan Mackenzie
2007-06-07 23:06                     ` 48 line console [was Re: Post-22.1 development]? Nick Roberts
2007-06-08  0:03                       ` 48 line console Thien-Thi Nguyen
2007-06-08  1:34                         ` Nick Roberts
2007-06-08  7:19                           ` Thien-Thi Nguyen
2007-06-08  8:59                             ` Nick Roberts
2007-06-08  9:50                               ` Thien-Thi Nguyen
2007-06-08 10:40                       ` 48 line console [was Re: Post-22.1 development]? Alan Mackenzie
2007-06-07 22:25               ` Post-22.1 development? David Reitter
2007-06-07 22:42                 ` Sean O'Rourke
2007-06-07 22:53                   ` David Reitter
2007-06-08 13:57                     ` Mathias Dahl
2007-06-08 14:24                     ` Richard Stallman
2007-06-08 17:23                       ` csant
2007-06-08 19:17                         ` Jan Djärv
2007-06-08  1:23                 ` YAMAMOTO Mitsuharu
2007-06-05 10:24 ` Nick Roberts
2007-06-05 10:55   ` David Kastrup
2007-06-05 11:19   ` Kenichi Handa
2007-06-05 21:07     ` Nick Roberts
2007-06-06  0:37       ` Kenichi Handa
2007-06-05 19:17   ` Richard Stallman
2007-06-05 19:55     ` Jason Rumney
2007-06-06 16:58       ` Richard Stallman
2007-06-05 21:22     ` Nick Roberts
2007-06-06 16:59       ` Richard Stallman
2007-06-06 15:28 ` Neal Becker
2007-06-06 15:32   ` David House
2007-06-12 18:39 ` Jay Belanger

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

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

  git send-email \
    --in-reply-to=jwvzm33221r.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    --cc=rms@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.