GNU bug report logs - #58137
28.1; M-x setenv RET PATH RET should default to the current $PATH

Previous Next

Package: emacs;

Reported by: "Trent W. Buck" <trentbuck <at> gmail.com>

Date: Wed, 28 Sep 2022 09:57:02 UTC

Severity: normal

Tags: moreinfo, notabug

Found in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 58137 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Trent W. Buck" <trentbuck <at> gmail.com>
Cc: 58137 <at> debbugs.gnu.org
Subject: Re: bug#58137: 28.1; M-x setenv RET PATH RET should default to the
 current $PATH
Date: Wed, 28 Sep 2022 13:14:10 +0200
"Trent W. Buck" <trentbuck <at> gmail.com> writes:

> 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.

M-x setenv RET PATH RET M-n

will bring you the current value from the "future history".  This is how
most prompting commands in Emacs work.




This bug report was last modified 2 years and 293 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.