From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Manheimer Newsgroups: gmane.emacs.bugs Subject: bug#22452: 24.4; Tramp remote shell fails on remote+sudo+homedir destination Date: Sun, 31 Jan 2016 12:09:49 -0500 Message-ID: References: <871t96c1il.fsf@gmx.de> <87d1sl98ki.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b3a813e28c68b052aa4579e X-Trace: ger.gmane.org 1454260294 8095 80.91.229.3 (31 Jan 2016 17:11:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Jan 2016 17:11:34 +0000 (UTC) Cc: 22452-done@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 31 18:11:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aPvWu-0004Be-6L for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2016 18:11:16 +0100 Original-Received: from localhost ([::1]:42543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPvWq-0008Qh-5c for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2016 12:11:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPvWl-0008Pg-8q for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 12:11:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPvWh-0008TO-8X for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 12:11:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPvWh-0008TJ-4a for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 12:11:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aPvWh-0007f6-11 for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 12:11:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Manheimer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Jan 2016 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22452-done@debbugs.gnu.org id=D22452.145426021629360 (code D ref 22452); Sun, 31 Jan 2016 17:11:02 +0000 Original-Received: (at 22452-done) by debbugs.gnu.org; 31 Jan 2016 17:10:16 +0000 Original-Received: from localhost ([127.0.0.1]:43356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPvVw-0007dT-6C for submit@debbugs.gnu.org; Sun, 31 Jan 2016 12:10:16 -0500 Original-Received: from mail-ob0-f182.google.com ([209.85.214.182]:33408) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPvVu-0007dG-BC for 22452-done@debbugs.gnu.org; Sun, 31 Jan 2016 12:10:14 -0500 Original-Received: by mail-ob0-f182.google.com with SMTP id is5so101087483obc.0 for <22452-done@debbugs.gnu.org>; Sun, 31 Jan 2016 09:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=KE/a4LD2w0elwiCBtBQP8mz1j8RrO7E6ZMfejvMz8ek=; b=SPMoUrOS0HszSf/XzXfAH9Mzj0gPIfahTvN5wmWvvjgB+G9XHDyCC5YMOsUguLZCFx hVdMGBGhvZA2TzS+rQkAMCE44aIkC9uuxXkjZ+gjkHEn614sxY38/7Ocef5sLVdw5thh gf8pXg3L30yK0d2yLmJXIF00ctXZ0pu0IFkbVpRgAT6g042WRG87QfJpm5qlxvEkq6Xr 4k1DQHImuExaL9CCzvKLnhzyC8NXNHE8vsc8L7T+Lmw7kDLtuKhfoOOxup352F6/kYKZ PF7ntPVsZfoDkMuuFv5Jm+pzsaFnPA7UBwVIxNRUDoQUjHKGwRrEOH1wYvjqUtkA+lLN 5iaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=KE/a4LD2w0elwiCBtBQP8mz1j8RrO7E6ZMfejvMz8ek=; b=UOQB1KchL3Uw2iHe+Ow2oRkwU5Ms7ubATpJI9ILVZ3C8O2blldE6tehritNaBKWiBj +zDsJVx8heQVyOuXR8X04QS6J3w+aBJ35rtrd1HlISFKa/ZJGPUNyfZ3l/YDnkzxDd9Q 2iVdONuwMGbt+BcB9lr2CFE9Io0dXgHb4vNBYssoXvxFQZk3APNoS55gn+9txXMJ1BRa L5ySNOk9Z3RuywXBySceuLofL6mvzzGE/3blzKbXn195KT3bbGGd+9fxbXKfWX4WXtTn QWKTIA2rfu6rWwvUkPBNVRanGBUIFCs4sX9mIZgycjZvWBqfLGLP2kzrkEJTzoBt9QFx YV1A== X-Gm-Message-State: AG10YORf3RmohnaHZWBlmyEM7m+NDXCRhpzitkS9VLa41kILnMVJT29ik41reGlvwuZKJU8UPRt1hRhLQfGOAg== X-Received: by 10.60.127.166 with SMTP id nh6mr13574222oeb.64.1454260208843; Sun, 31 Jan 2016 09:10:08 -0800 (PST) Original-Received: by 10.202.48.202 with HTTP; Sun, 31 Jan 2016 09:09:49 -0800 (PST) In-Reply-To: <87d1sl98ki.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112146 Archived-At: --047d7b3a813e28c68b052aa4579e Content-Type: text/plain; charset=UTF-8 Good job tracking that down - thanks much! I may not be able to examine it soon, but will keep alert for problems. Using `cd' instead of changing default-directory is proving to be a decent workaround, worth sticking with since that means my package can work with emacs 24 (and 23, for that matter). On Thu, Jan 28, 2016 at 7:45 AM, Michael Albinus wrote: > Version: 25.1 > > Ken Manheimer writes: > > > I'm glad you're investigating, Michael! > > > > Upshot is that I believe that there still is a bug worth unravelling > > [especially since it involves an aggravating and elusive "Selecting > > deleted buffer" event], in the way that shells start when > > default-directory is set to remote+sudo+homedir format, but I can > > avoid that by using `cd'. > > Finally, I could fix it. While establishing the connection, a > `file-remote-p` call was performed which included `expand-file-name' of > `default-directory'. Since the connection wasn't stablished yet, the > error occured. > > There won't be a new Emacs 24.x release, so I have fixed it in Emacs > 25.1 (commit deae005667516b7e1296527f7e34c54604a81882). You could check > it there. In case of problems, pls tell. > > > Ken > > Best regards, Michael. > --047d7b3a813e28c68b052aa4579e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Good job tracking that down - thanks much!

<= div>I may not be able to examine it soon, but will keep alert for problems.= Using `cd' instead of changing default-directory is proving to be a de= cent workaround, worth sticking with since that means my package can work w= ith emacs 24 (and 23, for that matter).

On Thu, Jan 28, 2016 at 7:45 AM, Michael = Albinus <michael.albinus@gmx.de> wrote:
Version: 25.1

Ken Manheimer <ken.manheimer@= gmail.com> writes:

> I'm glad you're investigating, Michael!
>
> Upshot is that I believe that there still is a= bug worth unravelling
> [especially since it involves an aggravating and elusive "Selecti= ng
> deleted buffer" event], in the way that shells start when
> default-directory is set to remote+sudo+homedir format, but I can
> avoid that by using `cd'.

Finally, I could fix it. While establishing the connection, a
`file-remote-p` call was performed which included `expand-file-name' of=
`default-directory'. Since the connection wasn't stablished yet, th= e
error occured.

There won't be a new Emacs 24.x release, so I have fixed it in Emacs 25.1 (commit deae005667516b7e1296527f7e34c54604a81882). You could check
it there. In case of problems, pls tell.

> Ken

Best regards, Michael.

--047d7b3a813e28c68b052aa4579e--