From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: how to find out which user instantiated this emacs process Date: 25 Feb 2004 09:09:08 +0100 Organization: [posted via Easynet Spain] Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87n0774m3f.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1077697188 23706 80.91.224.253 (25 Feb 2004 08:19:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Feb 2004 08:19:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 25 09:19:40 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AvuGZ-0005YN-00 for ; Wed, 25 Feb 2004 09:19:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AvuEM-0004ic-Cw for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Feb 2004 03:17:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!easynews.net!newsfeed3.easynews.net!195.40.0.165.MISMATCH!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 19 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=lbdLmEjhbg?@eCPkgnW7Z7i_giQ7bjRV:bBd4DjF1d]1 Original-Xref: shelby.stanford.edu gnu.emacs.help:121238 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17189 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17189 "leo" 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/