From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: csant Newsgroups: gmane.emacs.devel Subject: [multi-tty] emacsclient resets working directory Date: Thu, 17 May 2007 15:11:11 +0200 Organization: csant.info Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1179407660 5449 80.91.229.12 (17 May 2007 13:14:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 May 2007 13:14:20 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 17 15:14:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hofo5-0003KN-LK for ged-emacs-devel@m.gmane.org; Thu, 17 May 2007 15:14:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hofw6-00067e-TC for ged-emacs-devel@m.gmane.org; Thu, 17 May 2007 09:22:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hofvw-00065C-BA for emacs-devel@gnu.org; Thu, 17 May 2007 09:22:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hofvo-00061M-J2 for emacs-devel@gnu.org; Thu, 17 May 2007 09:22:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hofvo-00061J-EF for emacs-devel@gnu.org; Thu, 17 May 2007 09:22:12 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hofnb-0003Kr-9Z for emacs-devel@gnu.org; Thu, 17 May 2007 09:13:43 -0400 Original-Received: from csant.info ([69.36.171.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HofnI-0003v3-Ld for emacs-devel@gnu.org; Thu, 17 May 2007 09:13:24 -0400 Original-Received: from fiore.malebolge (csant.info [69.36.171.12]) (authenticated bits=0) by csant.info (8.12.11.20060308/8.12.11) with ESMTP id l4HDBBdt010989 for ; Thu, 17 May 2007 07:11:12 -0600 User-Agent: Opera Mail/9.21 (Linux) X-detected-kernel: Linux 2.4-2.6 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71231 Archived-At: I am not sure this is really a bug (I would consider it such), but it certainly is a major annoyance (is it expected behaviour?). Not sure it has been already addressed by David Kastrup when speaking about environment. Start an emacs session $ cd ~ && emacs -Q and `M-x server-start'. When finding a file from the *scratch* buffer, it will start looking from $PWD ( ~/ ) Connect an emacsclient, go back to the main server emacs and find a file in *scratch*: it will start looking from the emacsclient's $PWD. Even though I might imagine some use cases, this sounds more like an unexpected behaviour: to the user both the server and the client frame are perceived as separate emacs instances and the $PWD of the emacsclient should not modify the server's one. /c