From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pepijn Kenter Newsgroups: gmane.emacs.help Subject: Re: GNU emacs locks files modified with CVS Date: Tue, 16 Dec 2003 15:51:58 +0100 Organization: SURFnet BV Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3FDF1C0E.50106@tpd.tno.nl> References: Reply-To: kenter_remove_spam@tpd.tno.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1071586799 23368 80.91.224.253 (16 Dec 2003 14:59:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2003 14:59:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 15:59:48 2003 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 1AWGfr-0002d7-01 for ; Tue, 16 Dec 2003 15:59:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWHcx-0002aL-Ts for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2003 11:00:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!solnet.ch!solnet.ch!surfnet.nl!news.surfnet.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: tpd221025064.tpd.tno.nl Original-X-Trace: news.surfnet.nl 1071586339 7275 134.221.25.64 (16 Dec 2003 14:52:19 GMT) Original-X-Complaints-To: usenet@news.surfnet.nl Original-NNTP-Posting-Date: Tue, 16 Dec 2003 14:52:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en Original-Xref: shelby.stanford.edu gnu.emacs.help:119386 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:15325 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15325 gebser@speakeasy.net wrote: > There's two ways which will keep/set the DISPLAY variable: > > First, if the DISPLAY variable is set in user1 and you do "su user2", > then the environment of user1 will carry into user2. IOW, you're good. > > Second, if you, instead, do "su - user2", then you will have a fresh > environment, that of user2. If user2's environment doesn't have the > DISPLAY variable set properly, you can do this by setting this in > user2's ~/.bashrc file... if user2's default shell is bash-- if you're > using some other shell, consult the manpage for the proper file and > command syntax for setting the environment. > > Thanks for your reply but the .bashrc seems to me the wrong place to set the DISPLAY variable. If you login from another machine it won't be set properly. Pepijn.