all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yurivkhan@gmail.com>
To: "João Távora" <joaotavora@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, Paul Eggert <eggert@cs.ucla.edu>,
	Emacs developers <emacs-devel@gnu.org>
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	[thread overview]
Message-ID: <CAP_d_8Uv=xRGQZzgy9oqBUfC2HR0w5Dpf-Wdbxv01d8QbF+Q5w@mail.gmail.com> (raw)
In-Reply-To: <jjb4lbivrux.fsf@siscog.pt>

On Wed, Dec 12, 2018 at 7:43 PM João Távora <joaotavora@gmail.com> wrote:

> With HOME="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’d say both are wrong.

Setting HOME="z:" says “Whichever is the current directory on drive Z,
that’s my home”. ~/blabla means “file named blabla in my home”, i.e.
“blabla in the current directory on drive Z”, i.e. "z:blabla". Further
expansion depends on the actual current directory on Z:; if that’s
/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’d say those are broken already. A slashless drive letter refers to
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’t mind a useless
console window. If you do, you’ll probably need to write and compile a
(GUI-targeted but windowless) program in a language of your choice,
that runs runemacs.exe with a modified environment.



  reply	other threads:[~2018-12-12 13:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-12 12:42 900276502f..: Paul Eggert 2018-11-13 Act like POSIX sh if $HOME is relative João Távora
2018-12-12 13:19 ` Yuri Khan [this message]
2018-12-12 14:54   ` João Távora
2018-12-12 15:22   ` Eli Zaretskii
2018-12-12 15:29     ` Drew Adams
2018-12-12 16:35       ` Eli Zaretskii
2018-12-12 13:28 ` Óscar Fuentes
2018-12-12 14:53   ` João Távora
2018-12-12 15:14     ` Óscar Fuentes
2018-12-12 15:28       ` João Távora
2018-12-12 16:55         ` Óscar Fuentes
2018-12-12 17:19           ` João Távora
2018-12-12 17:20           ` Eli Zaretskii
2018-12-12 15:16   ` Stefan Monnier
2018-12-12 16:30     ` Eli Zaretskii
2018-12-12 15:20 ` Eli Zaretskii
2018-12-12 15:30   ` João Távora
2018-12-12 16:35     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_d_8Uv=xRGQZzgy9oqBUfC2HR0w5Dpf-Wdbxv01d8QbF+Q5w@mail.gmail.com' \
    --to=yurivkhan@gmail.com \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=joaotavora@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.