* how to find out which user instantiated this emacs process
@ 2004-02-25 6:36 leo
2004-02-25 8:09 ` Pascal Bourguignon
0 siblings, 1 reply; 4+ messages in thread
From: leo @ 2004-02-25 6:36 UTC (permalink / raw)
hi there
on unix usually i instantiate emacs as a normal user, but for special
purposes i instantiate emacs sometimes as root with the same home directory.
in this case i'd like to set the background to red or so... how can i find
out in emacs lisp what user owns this emacs?
thanks, leo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to find out which user instantiated this emacs process
2004-02-25 6:36 how to find out which user instantiated this emacs process leo
@ 2004-02-25 8:09 ` Pascal Bourguignon
2004-02-25 23:26 ` leo
0 siblings, 1 reply; 4+ messages in thread
From: Pascal Bourguignon @ 2004-02-25 8:09 UTC (permalink / raw)
"leo" <halloleo@noospaam.myrealbox.com> writes:
> hi there
>
> on unix usually i instantiate emacs as a normal user, but for special
> purposes i instantiate emacs sometimes as root with the same home directory.
>
> in this case i'd like to set the background to red or so... how can i find
> out in emacs lisp what user owns this emacs?
Did you really try, or are you asking just to increase the trafic?
(when (= (user-uid) 0) (set-background-color "Red"))
--
__Pascal_Bourguignon__ http://www.informatimago.com/
There is no worse tyranny than to force a man to pay for what he doesn't
want merely because you think it would be good for him.--Robert Heinlein
http://www.theadvocates.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to find out which user instantiated this emacs process
2004-02-25 8:09 ` Pascal Bourguignon
@ 2004-02-25 23:26 ` leo
2004-02-25 23:46 ` Joakim Hove
0 siblings, 1 reply; 4+ messages in thread
From: leo @ 2004-02-25 23:26 UTC (permalink / raw)
"Pascal Bourguignon" <spam@thalassa.informatimago.com> wrote in message
news:87n0774m3f.fsf@thalassa.informatimago.com...
> "leo" <halloleo@noospaam.myrealbox.com> writes:
>
> > in this case i'd like to set the background to red or so... how can i
find
> > out in emacs lisp what user owns this emacs?
>
> Did you really try, or are you asking just to increase the trafic?
i looked up (with C-h a) everything containing "user", but couldn't find
anything.
> (when (= (user-uid) 0) (set-background-color "Red"))
thanks a lot! user-uid seems to be a non-user-command.
cheers, leo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to find out which user instantiated this emacs process
2004-02-25 23:26 ` leo
@ 2004-02-25 23:46 ` Joakim Hove
0 siblings, 0 replies; 4+ messages in thread
From: Joakim Hove @ 2004-02-25 23:46 UTC (permalink / raw)
"leo" <halloleo@noospaam.myrealbox.com> writes:
> i looked up (with C-h a) everything containing "user", but couldn't find
> anything.
M-x apropos gives much more output (including the function
user-uid).
C-h a only finds *commands* containg "user", whereas M-x apropos finds
functions/variables/commands/...
Joakim
--
/--------------------------------------------------------------------\
/ Joakim Hove / hove@bccs.no / (55 5) 84076 | \
| Unifob AS, Avdeling for Beregningsvitenskap (BCCS) | Stabburveien 18 |
| CMU | 5231 Paradis |
\ Thormøhlensgt.55, 5020 Bergen. | 55 91 28 18 /
\--------------------------------------------------------------------/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-02-25 23:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-25 6:36 how to find out which user instantiated this emacs process leo
2004-02-25 8:09 ` Pascal Bourguignon
2004-02-25 23:26 ` leo
2004-02-25 23:46 ` Joakim Hove
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.