all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: SK Kim <tttuuu888@gmail.com>
To: 30134@debbugs.gnu.org
Subject: bug#30134: ehsell and process-environment variable
Date: Tue, 16 Jan 2018 11:31:27 +0900	[thread overview]
Message-ID: <CAKYNWwS3AV9-czw2ZLpKPNRkHvK0jKKHayy8_NPzx+M-SWPF4Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1645 bytes --]

I found weird situation and looked into it by myself but I couldn't
solve it. so I'm writing down this mail now.

I wanted to make a new term with modifed process-environment but it
did not work properly when I make a new term from eshell buffer.  The
situation can be reproduced as below.

1) start emacs with 'emacs -Q'

2) evaluate below code in any buffer.
    (let ((process-environment (cons "TEST=1234" process-environment)))
        (make-term "test-term" "/bin/bash"))

3) moved to buffer 'test-term' and type 'echo $TEST' and you can see
   the result '1234'

Above is what I expected modified process-environment variable would
work and it actually works as I expected. However there is a condition
it doesn't work as I expected.

1) start emacs with 'emacs -Q'

2) 'M-x eshell' to open eshell buffer.

3) evaluate below code in eshell buffer.
    (let ((process-environment (cons "TEST=1234" process-environment)))
        (make-term "test-term" "/bin/bash"))

4) moved to buffer 'test-term' and type 'echo $TEST' and you can see
   nothing.

The modified process-environment variable is not properly affected if
the code is evaluated in eshell buffer. The eshell buffer is the only
buffer that I found the above code is not working properly.

This is tested on GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, X toolkit,
Xaw scroll bars) of 2017-12-13

Possibly this might not be a bug and there is specific reason it works
that way but I couldn't have found any information about this and
couldn't have solved this by myself neither. So now I am sending this
bug report.

Thanks for everyone contributing to emacs. I appreciate it.

Thanks.

[-- Attachment #2: Type: text/html, Size: 2345 bytes --]

             reply	other threads:[~2018-01-16  2:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-16  2:31 SK Kim [this message]
2018-01-16  3:40 ` bug#30134: ehsell and process-environment variable Eli Zaretskii
     [not found]   ` <CAKYNWwSCjTu=tU=Kx9x8-7RxaHyeaXE6OpkEBvWvNQGVM_GsFA@mail.gmail.com>
2018-01-16 17:04     ` Eli Zaretskii
2018-01-16 18:03   ` Glenn Morris
2018-01-18  6:11     ` SK Kim
2018-01-18 17:49       ` Glenn Morris
2018-01-18 17:54         ` Glenn Morris
2018-01-19  1:33           ` SK Kim
2018-01-18 17:52       ` Noam Postavsky

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=CAKYNWwS3AV9-czw2ZLpKPNRkHvK0jKKHayy8_NPzx+M-SWPF4Q@mail.gmail.com \
    --to=tttuuu888@gmail.com \
    --cc=30134@debbugs.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.