From: Pascal Bourguignon <spam@thalassa.informatimago.com>
Subject: Re: how to find out which user instantiated this emacs process
Date: 25 Feb 2004 09:09:08 +0100 [thread overview]
Message-ID: <87n0774m3f.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: c1hg9h$1pjd$1@otis.netspace.net.au
"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/
next prev parent reply other threads:[~2004-02-25 8:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-25 6:36 how to find out which user instantiated this emacs process leo
2004-02-25 8:09 ` Pascal Bourguignon [this message]
2004-02-25 23:26 ` leo
2004-02-25 23:46 ` Joakim Hove
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87n0774m3f.fsf@thalassa.informatimago.com \
--to=spam@thalassa.informatimago.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.
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).