From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@speakeasy.net Newsgroups: gmane.emacs.help Subject: Re: GNU emacs locks files modified with CVS Date: Tue, 16 Dec 2003 11:26:59 -0500 (EST) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3FDF1C0E.50106@tpd.tno.nl> Reply-To: gebser@speakeasy.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1071592222 3971 80.91.224.253 (16 Dec 2003 16:30:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2003 16:30:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 17:30:16 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 1AWI5Q-0001LE-00 for ; Tue, 16 Dec 2003 17:30:16 +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 1AWJ2E-00010c-Ps for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2003 12:31:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AWJ0f-0000HC-Qu for help-gnu-emacs@gnu.org; Tue, 16 Dec 2003 12:29:25 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AWIzl-0007jQ-Rj for help-gnu-emacs@gnu.org; Tue, 16 Dec 2003 12:29:01 -0500 Original-Received: from [216.254.0.206] (helo=mail6.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AWIzk-0007gW-FC for help-gnu-emacs@gnu.org; Tue, 16 Dec 2003 12:28:28 -0500 Original-Received: (qmail 12322 invoked from network); 16 Dec 2003 16:27:00 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO heidegger.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 16 Dec 2003 16:27:00 -0000 Original-To: help-gnu-emacs@gnu.org In-Reply-To: <3FDF1C0E.50106@tpd.tno.nl> 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:15328 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15328 At 15:51 (UTC+0100) on Tue, 16 Dec 2003 Pepijn Kenter said: = 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. Obviously you have to edit the ~/.bashrc file on the box and for the account you're logging into. If it doesn't work, you're doing something wrong. Do you know that you're using the bash shell? If so, do "man bash" and it'll tell you about .bashrc and setting env vars. ken