From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#49229: 27.2; `M-x shell' fails over TRAMP from local MS Windows Date: Thu, 1 Jul 2021 10:07:53 -0700 Message-ID: References: <87h7hkpufg.fsf@gmx.de> <87czs7pulr.fsf@gmx.de> <878s2upl5b.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29220"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49229@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 01 19:09:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lz0Bb-0007SY-3F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jul 2021 19:09:11 +0200 Original-Received: from localhost ([::1]:56342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lz0BZ-0000G5-Ts for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jul 2021 13:09:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lz0BS-0000Ft-9c for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 13:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lz0BS-0000Jd-1K for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 13:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lz0BR-0008F8-UR for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 13:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jul 2021 17:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49229 X-GNU-PR-Package: emacs Original-Received: via spool by 49229-submit@debbugs.gnu.org id=B49229.162515929131600 (code B ref 49229); Thu, 01 Jul 2021 17:09:01 +0000 Original-Received: (at 49229) by debbugs.gnu.org; 1 Jul 2021 17:08:11 +0000 Original-Received: from localhost ([127.0.0.1]:33633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lz0Ac-0008Dc-L4 for submit@debbugs.gnu.org; Thu, 01 Jul 2021 13:08:10 -0400 Original-Received: from mail-pj1-f51.google.com ([209.85.216.51]:33735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lz0Aa-0008DK-HZ for 49229@debbugs.gnu.org; Thu, 01 Jul 2021 13:08:09 -0400 Original-Received: by mail-pj1-f51.google.com with SMTP id mn20-20020a17090b1894b02901707fc074e8so6216593pjb.0 for <49229@debbugs.gnu.org>; Thu, 01 Jul 2021 10:08:08 -0700 (PDT) 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; bh=RpZRC2mlfBTtnWZrBHos674x6in1cjMZgYpUfH7W1KE=; b=lTKVqkMuoZATe2rOuBFQDrpKIqcraq1DjNvx0FEmT5PjF8qnkS5ESubOIk188A5ju+ /Si6W0s/U5x066bMIUA723XLP7MSsnFE+zVUKgfhYbSsFTeiCvgrFOxInDI1/rm0QLBh 5oF/2FGHhlft5ER6t12ZvxJkI2LR75tb+kBRZ8CkbhiLup/fRR7qtwBpNQa70RdAsWLq k5UOE5lvmBpYkQIkVAM4LP2R8840zJOkO9xWOz7hCkhZDYd1MxTkT3Cc1O8DkBPou8yC lcal+XAZhr40K/QlpofXDp3D6qJvI33hqpKS+tXcYe/0H0n7X1wxz6N3TxBsL3XmDvkI 1u3Q== 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; bh=RpZRC2mlfBTtnWZrBHos674x6in1cjMZgYpUfH7W1KE=; b=HeG8V6RluJlXIw1revyCEELxlyboMldnS8HetmodVlCx9MpHdjPTwc9WQ4wwkPgGl6 StJXwWDduhHlju3mu+Fqkzqp1SQ3vBJkPxUxtlBD9Xpb9rpNmgGMZC9SY77oubX9fG4p jZZbLrFczXDkOV5SRp8rOmrQpYLJntETviwrNGlAejVtB/UgJZwLLFNtuLQSNIW8Sr1b 49Szzeqefb6jTh2b0r261v/tH1HYaiwZ1/+xYoXuzWqY9T+ayFl1A+ww+uJEL7XNEOP7 jlPzdXgQbxzBnXOTloZcgItyIHRDNFIm1NNnEoQhOHAseuSZScmixq06sXp/24QoTDmX WE+w== X-Gm-Message-State: AOAM531SO8311cHd8uplvUva5rylqvnxN0obd23C/3UekVmAh+91Lgqx FWlkE/F5SXhNUjSqk4VZ2mUZzG6OGT0fvdoexbE= X-Google-Smtp-Source: ABdhPJwMeNpYTZO9OoENunyXJMQP80ks3wAFGmjMwSvk8zBaIvI86lZJ94BnY5dWzK+XgA7u8VAmKYRqnzhz+Fo0f6U= X-Received: by 2002:a17:902:dac2:b029:125:d557:cf55 with SMTP id q2-20020a170902dac2b0290125d557cf55mr593986plx.60.1625159282858; Thu, 01 Jul 2021 10:08:02 -0700 (PDT) In-Reply-To: <878s2upl5b.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209278 Archived-At: (Hopefully I don't need to do anything special to comment on a closed bug...) On Sun, Jun 27, 2021 at 11:18 PM Michael Albinus wrote: > > I've pushed the patch to master, closing the bug. The Tramp part of the > patch will appear with Tramp 2.5.1 on GNU ELPA. I discovered a minor issue with the Tramp part of the patch. On MS Windows, if I'm editing a remote file and then open a local file, the newly-opened local file's default directory doesn't have a volume letter. This still works overall, but it does break the "~" file alias. Here are steps to reproduce: C-x C-f /sshx:server:/path/to/file.txt ;; "/sshx:server:/path/to/" is pre-filled here: C-x C-f /sshx:server:/path/to//~/local.txt ;; local.txt opens/saves correctly, but... C-x C-f ;; Initial value in minibuffer is "/Users/Jim/Documents/". ;; Before Tramp 2.5.1, it was "~/". This might cause some problems in other places, but so far the only issue I've found is the file alias for "~" no longer working. However, the fact that `default-directory' for local.txt isn't an absolute path could cause issues if we use that `default-directory' elsewhere. Since "/Users/Jim/Documents/" is relative to the current drive, it can mean different things depending on what Emacs thinks the current drive is at the time. Maybe it would be best to revert the Tramp part of this patch and do something similar to the patch in my original message. That would ensure that nothing unexpected happens as a result of `default-directory' being relative to the current drive. If that makes sense, I can put together a proper patch for the `M-x shell' part.