From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: 900276502f..: Paul Eggert 2018-11-13 Act like POSIX sh if $HOME is relative Date: Wed, 12 Dec 2018 20:19:55 +0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1544620722 7458 195.159.176.226 (12 Dec 2018 13:18:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2018 13:18:42 +0000 (UTC) Cc: Eli Zaretskii , Paul Eggert , Emacs developers To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 12 14:18:37 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gX4PN-0001nv-7l for ged-emacs-devel@m.gmane.org; Wed, 12 Dec 2018 14:18:37 +0100 Original-Received: from localhost ([::1]:44722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX4RT-0000NZ-JO for ged-emacs-devel@m.gmane.org; Wed, 12 Dec 2018 08:20:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX4RH-0000M6-Am for emacs-devel@gnu.org; Wed, 12 Dec 2018 08:20:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX4R9-0002WH-KZ for emacs-devel@gnu.org; Wed, 12 Dec 2018 08:20:32 -0500 Original-Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]:35169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX4Qy-0002FY-6u; Wed, 12 Dec 2018 08:20:21 -0500 Original-Received: by mail-ot1-x32a.google.com with SMTP id 81so17589546otj.2; Wed, 12 Dec 2018 05:20:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XKMjs0hXEUk15vkHPJZ+KROblYyuoOZGZlZwLLwcqgs=; b=mU8gdjmF26JgLlNuS5zVgDkAhw6bQ54lmYrG2sZeQ/rECJ50ETreTyFSc7aiXL/1nC NGLcj47eT9cX0CSELI2OdiKHqSDY7yQZVYU86E1IJNkSimScYiCAOrIqCvSSm3a4EWws Pp50/6Ry0wSWzkHVywU7qrh7H0GSlev5KfYIfhZf3T/gQGcfJ7HI1k701bTij/MLMxD+ 0z8fSJpbMU0ulBZJze+zLA2d9KizznyQ2buLOp+TpErbwdH+RMLOF0ErELY93pbP/934 n1MkaQjoZby8EonIyEq15b55VqxK7AiQW1SkGKCysoVFpHN0tyEX8JhnP7C6VVI9ULw3 TWJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=XKMjs0hXEUk15vkHPJZ+KROblYyuoOZGZlZwLLwcqgs=; b=fRkzpJKClO4TGssSaeohHidaWpAZu0hqhgA4eQjZIsOCiEKfe2v7D2Au0RufgWvO6t xA92R5rCV/A6L3eaLKka5nmZI++OnDNz/w6i2tTHYJYh1OsIwQR3FHsjSKhZ0lada/nH ZfE9y33eB6Fms8ofSMcojA8VTmD5ql6sOtZdmVd46g70507TRjcPmQUOU/07Q8JjtLfl 7ULPSfCS37crLR9WI49kmxnSGBbbvwmG64xXwz0Iurt3ggqq1IG2OuKxooA1GNTvYQSu FszMphNbPzzJi2dMUXGKN8v6xJTuOtWpuufKxqcYtDjYLcACn6OZsRqeblO4psszi7XC lbWg== X-Gm-Message-State: AA+aEWY1KKzq7k+hqHVgaPXrtYLvRTWdFbDs4znrG/b3rcQegtoELZhY 1t3hhu/pfZfTE/BiKRpZlYdKgLMdjiVHuEMtDoM= X-Google-Smtp-Source: AFSGD/WI+Ml4FqYhb4sGzQPA7ZdZyB+vZlYp5xybGiYS3WDfw18X6ecrE/gtTpyr82e9tDxNwTLthyQdas0bjNM9NzA= X-Received: by 2002:a9d:401:: with SMTP id 1mr13736668otc.78.1544620807033; Wed, 12 Dec 2018 05:20:07 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231776 Archived-At: On Wed, Dec 12, 2018 at 7:43 PM Jo=C3=A3o T=C3=A1vora wrote: > With HOME=3D"z:", it used to be that (expand-file-name "~/blabla") > returned "z:/blabla" but now it returns > "z:/source/emacs/emacs/src/z:/blabla", which is not a valid Windows > pathname. As a former Windows user, I=E2=80=99d say both are wrong. Setting HOME=3D"z:" says =E2=80=9CWhichever is the current directory on dri= ve Z, that=E2=80=99s my home=E2=80=9D. ~/blabla means =E2=80=9Cfile named blabla = in my home=E2=80=9D, i.e. =E2=80=9Cblabla in the current directory on drive Z=E2=80=9D, i.e. "z:blabl= a". Further expansion depends on the actual current directory on Z:; if that=E2=80=99s /source/emacs/emacs/src, then "z:/source/emacs/emacs/src/blabla". > All of this can be fixed by me by setting HOME to "z:/", but > unfortunately I am breaking other applications that expected it > slash-less. I=E2=80=99d say those are broken already. A slashless drive letter refers t= o the current directory there, not the root. > An alternative would be: * get those other applications fixed; > * for this part of the change to be reverted in Emacs; > > * for me to set the correct environment var from the Windows shortcut > that points to runemacs.exe. Can it be done easily? Easiest is probably to change it to run a .cmd file that sets the variable and then runs runemacs.exe, if you don=E2=80=99t mind a useless console window. If you do, you=E2=80=99ll probably need to write and compil= e a (GUI-targeted but windowless) program in a language of your choice, that runs runemacs.exe with a modified environment.