emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38079: closed (On Windows tramp hangs after server-start is called)


From: GNU bug Tracking System
Subject: bug#38079: closed (On Windows tramp hangs after server-start is called)
Date: Thu, 07 Nov 2019 17:46:02 +0000

Your message dated Thu, 07 Nov 2019 18:45:08 +0100
with message-id <address@hidden>
and subject line Re: bug#38079: On Windows tramp hangs after server-start is 
called
has caused the debbugs.gnu.org bug report #38079,
regarding On Windows tramp hangs after server-start is called
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
38079: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38079
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: On Windows tramp hangs after server-start is called Date: Tue, 5 Nov 2019 19:52:59 -0500 User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 On Windows, after M-x server-start, tramp no longer works. When I tried to connect to a "pscp" remote Linux host, it just hangs at the message "Remote prompt found" (something like that).

Today I finally figured out what the problem is, and put in a work around as following:

;; On Windows, after "server-start" is called, somehow (system-name) will return lower case host name. If the original ;; (system-name) returns upper case host name now tramp-restricted-shell-hosts-alist will be out-of-date and cause
;; tramp not to function properly.
(defadvice server-start (after update-restricted-host-list last activate)
  (setf tramp-restricted-shell-hosts-alist
        (when (memq system-type '(windows-nt))
          (list (concat "\\`" (regexp-quote (system-name)) "\\'")))))

But the proper fix should be to make sure (system-name) always returns the same string consistently. I found it is this sexp in "server-start" function that changes the return value of (system-name):

      (setq server-process
        (apply #'make-network-process ....))

This bug has bothered me for a long time. Even Emacs 26.3 still has it (although I am still using 26.2 for daily work). I hope this can lead to a fix that saves some frustration for other fellow Emacs users.

Here is my set up:

In GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)
 of 2019-04-13 built on CIRROCUMULUS
Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749

Warren




--- End Message ---
--- Begin Message --- Subject: Re: bug#38079: On Windows tramp hangs after server-start is called Date: Thu, 07 Nov 2019 18:45:08 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Version: 27.1

Wanrong Lin <address@hidden> writes:

> Yes it does. Thanks.

Thanks for the feedback. I've committed the patch to the repositories,
closing the bug.

> Wanrong

Best regards, Michael.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]