* Can desktop-save-mode remember setenv?
@ 2011-09-28 10:46 Bastian Ballmann
2011-09-29 2:36 ` Kevin Rodgers
0 siblings, 1 reply; 6+ messages in thread
From: Bastian Ballmann @ 2011-09-28 10:46 UTC (permalink / raw)
To: help-gnu-emacs
Hi Emacs lovers out there,
i wonder if I can make desktop-save-mode remember environment variables
I set with setenv.
Any hint on that?
Thx && have a nice day!
Basti
--
Bastian Ballmann / Web Developer
Notch Interactive GmbH / Badenerstrasse 571 / 8048 Zürich
Phone +41 43 818 20 91 / www.notch-interactive.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can desktop-save-mode remember setenv?
2011-09-28 10:46 Can desktop-save-mode remember setenv? Bastian Ballmann
@ 2011-09-29 2:36 ` Kevin Rodgers
2011-09-29 9:58 ` Bastian Ballmann
0 siblings, 1 reply; 6+ messages in thread
From: Kevin Rodgers @ 2011-09-29 2:36 UTC (permalink / raw)
To: help-gnu-emacs
On 9/28/11 4:46 AM, Bastian Ballmann wrote:
> Hi Emacs lovers out there,
>
> i wonder if I can make desktop-save-mode remember environment variables
> I set with setenv.
>
> Any hint on that?
`C-h f setenv' says "This function works by modifying `process-environment'."
`C-h v desktop-globals-to-save' explains what you need to modify.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can desktop-save-mode remember setenv?
2011-09-29 2:36 ` Kevin Rodgers
@ 2011-09-29 9:58 ` Bastian Ballmann
2011-09-29 10:50 ` Andreas Röhler
2011-10-03 1:26 ` Kevin Rodgers
0 siblings, 2 replies; 6+ messages in thread
From: Bastian Ballmann @ 2011-09-29 9:58 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
Am Mittwoch, den 28.09.2011, 20:36 -0600 schrieb Kevin Rodgers:
> `C-h f setenv' says "This function works by modifying `process-environment'."
>
> `C-h v desktop-globals-to-save' explains what you need to modify.
Well I can't find anything about environment or process in
desktop-globals-to-save therefore I guess I cannot save my environment
variables :(
Thx anyway && greets
Basti
--
Bastian Ballmann / Web Developer
Notch Interactive GmbH / Badenerstrasse 571 / 8048 Zürich
Phone +41 43 818 20 91 / www.notch-interactive.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can desktop-save-mode remember setenv?
2011-09-29 9:58 ` Bastian Ballmann
@ 2011-09-29 10:50 ` Andreas Röhler
2011-10-03 1:26 ` Kevin Rodgers
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Röhler @ 2011-09-29 10:50 UTC (permalink / raw)
To: help-gnu-emacs
Am 29.09.2011 11:58, schrieb Bastian Ballmann:
> Hi,
>
> Am Mittwoch, den 28.09.2011, 20:36 -0600 schrieb Kevin Rodgers:
>
>> `C-h f setenv' says "This function works by modifying `process-environment'."
>>
>> `C-h v desktop-globals-to-save' explains what you need to modify.
>
> Well I can't find anything about environment or process in
> desktop-globals-to-save therefore I guess I cannot save my environment
> variables :(
>
> Thx anyway&& greets
>
> Basti
>
as the function setenv exists, which may read values stored, should be a
way to perform this.
Cheers,
Andreas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can desktop-save-mode remember setenv?
2011-09-29 9:58 ` Bastian Ballmann
2011-09-29 10:50 ` Andreas Röhler
@ 2011-10-03 1:26 ` Kevin Rodgers
2011-10-09 13:56 ` Philipp Haselwarter
1 sibling, 1 reply; 6+ messages in thread
From: Kevin Rodgers @ 2011-10-03 1:26 UTC (permalink / raw)
To: help-gnu-emacs
On 9/29/11 3:58 AM, Bastian Ballmann wrote:
> Hi,
>
> Am Mittwoch, den 28.09.2011, 20:36 -0600 schrieb Kevin Rodgers:
>
>> `C-h f setenv' says "This function works by modifying `process-environment'."
>>
>> `C-h v desktop-globals-to-save' explains what you need to modify.
>
> Well I can't find anything about environment or process in
> desktop-globals-to-save therefore I guess I cannot save my environment
> variables :(
Try saving the process-environment variable.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can desktop-save-mode remember setenv?
2011-10-03 1:26 ` Kevin Rodgers
@ 2011-10-09 13:56 ` Philipp Haselwarter
0 siblings, 0 replies; 6+ messages in thread
From: Philipp Haselwarter @ 2011-10-09 13:56 UTC (permalink / raw)
To: help-gnu-emacs
I wouldn't do that, sounds like it cause a lot of hick-ups.
How about using a wrapper (or advice) on setenv that manipulates the
process environment and adds the manipulation to a user variable
`my-desktop-process-environment' which gets saved and restored with
desktop?
and then map setenv onto my-desktop-process-environment with
desktop-after-read-hook.
--
Philipp Haselwarter
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-10-09 13:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-28 10:46 Can desktop-save-mode remember setenv? Bastian Ballmann
2011-09-29 2:36 ` Kevin Rodgers
2011-09-29 9:58 ` Bastian Ballmann
2011-09-29 10:50 ` Andreas Röhler
2011-10-03 1:26 ` Kevin Rodgers
2011-10-09 13:56 ` Philipp Haselwarter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).