From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] emacs lib-src/ChangeLog lib-src/emacsclient.c l... Date: Tue, 10 Mar 2009 16:13:57 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236698084 14678 80.91.229.12 (10 Mar 2009 15:14:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Mar 2009 15:14:44 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 10 16:15:52 2009 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 1Lh3g5-0005Ar-RG for ged-emacs-devel@m.gmane.org; Tue, 10 Mar 2009 16:15:34 +0100 Original-Received: from localhost ([127.0.0.1]:55367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lh3ej-0000zK-Tq for ged-emacs-devel@m.gmane.org; Tue, 10 Mar 2009 11:14:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lh3ee-0000xB-Vg for emacs-devel@gnu.org; Tue, 10 Mar 2009 11:14:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lh3eZ-0000nj-MR for emacs-devel@gnu.org; Tue, 10 Mar 2009 11:14:03 -0400 Original-Received: from [199.232.76.173] (port=35360 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lh3eZ-0000nY-Iv for emacs-devel@gnu.org; Tue, 10 Mar 2009 11:13:59 -0400 Original-Received: from mail-ew0-f179.google.com ([209.85.219.179]:33932) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lh3eZ-0007Yf-9r for emacs-devel@gnu.org; Tue, 10 Mar 2009 11:13:59 -0400 Original-Received: by ewy27 with SMTP id 27so1519887ewy.42 for ; Tue, 10 Mar 2009 08:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=gl1E/7EUPR5TazXaW5JGLtifxL0cr9PqbxRD7ECjZsM=; b=rsPUUsgM74d4q7IGjYLfQ979Y2nqqkXwMaeXWgO4bBc+rmQK1g0Ihx19B0oHI2AUeC 8ZJycFN4PLAEMtEVwBQu8iUn5iiT/YaBEPjgIziYJ/a5NL1Vo/jAw8JbYho6oMsVhi6/ dsLpBs4jyS8vIrtDuPmr0cGl3bfs7Qw2ARDwM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ik+T7ukjuVnMtMKAmN05Js6dtiFFpTcnI5lVsntkCNndxzNv0ECsAub8BOhDmRtCvi pNEjDPX4esmx8AzH0mRULlIx7c4/Vc8iJxqmupMK4kLh1z13ASvYhbmj5+dNi9nqx4+j ZsnFaK2XkioLrzZVoPwM4tLsmxJ5zZSfsdF/c= Original-Received: by 10.210.34.5 with SMTP id h5mr4658635ebh.59.1236698038006; Tue, 10 Mar 2009 08:13:58 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:109541 Archived-At: On Tue, Mar 10, 2009 at 15:09, Stefan Monnier wr= ote: > =C2=A0 =C2=A0 =C2=A0 =C2=A0* emacsclient.c (main): Always pass cwd via "-= dir". =C2=A0Pass the file > =C2=A0 =C2=A0 =C2=A0 =C2=A0names without prepending cwd to them, so Emacs= uses its customary > =C2=A0 =C2=A0 =C2=A0 =C2=A0rules to determine how to interpret the file n= ame. This change breaks useful Windows behavior. Previously: C:\> g: G:\> cd test G:\test> c: C:\> emacsclient g:myfile.txt opened g:\test\myfile.txt. Now it tries to open g:/myfile.txt. The problem is that the "Emacs [...] customary rules to determine how to interpret the file name" do not help, because the interpretation of g:myfile.txt depends on the shell where you do run emacsclient (you can perfectly have two different default directories in g: in different shell invocations). Juanma