From: Gregory Heytings <gregory@heytings.org>
To: "Trent W. Buck" <trentbuck@gmail.com>
Cc: 58137@debbugs.gnu.org
Subject: bug#58137: 28.1; M-x setenv RET PATH RET should default to the current $PATH
Date: Wed, 28 Sep 2022 12:42:23 +0000 [thread overview]
Message-ID: <9cd520eb0899ebcb2f5e@heytings.org> (raw)
In-Reply-To: <87o7uzg6ul.fsf@gmail.com>
>
> I wish M-x setenv, when setting a variable that already has a value,
> defaulted to that value (instead of the empty string).
>
> This would make it easier to make minor adjustments to a long messy
> value. The history is already there (M-p), but it's input history. If
> the variable was initially set outside of Emacs, it won't be in history.
>
That's what Emacs calls "future history", which you can get with M-x
setenv RET PATH RET M-n. It defaults to the value of (getenv "PATH").
Is that what you want?
next prev parent reply other threads:[~2022-09-28 12:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-28 9:56 bug#58137: 28.1; M-x setenv RET PATH RET should default to the current $PATH Trent W. Buck
2022-09-28 11:14 ` Lars Ingebrigtsen
2022-09-29 3:26 ` Trent W. Buck
2022-09-28 12:42 ` Gregory Heytings [this message]
2022-09-28 12:45 ` Andreas Schwab
2022-09-28 13:09 ` Robert Pluim
2022-09-28 14:28 ` Gregory Heytings
2022-09-28 14:56 ` Robert Pluim
2022-09-28 13:35 ` Stefan Kangas
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=9cd520eb0899ebcb2f5e@heytings.org \
--to=gregory@heytings.org \
--cc=58137@debbugs.gnu.org \
--cc=trentbuck@gmail.com \
/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.