From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: esr@thyrsus.com (Eric S. Raymond) Newsgroups: gmane.emacs.bugs Subject: bug#42125: Python mode load failing due to some issue with tramp Date: Mon, 29 Jun 2020 10:48:17 -0400 (EDT) Message-ID: <20200629144817.5B8CFF800FD@snark.thyrsus.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="98500"; mail-complaints-to="usenet@ciao.gmane.io" To: 42125@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 29 16:49:11 2020 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 1jpv5r-000PW5-2H for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 16:49:11 +0200 Original-Received: from localhost ([::1]:38696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpv5q-0001dC-00 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 10:49:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpv5j-0001ci-0U for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 10:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpv5i-0002Zj-LV for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 10:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jpv5i-0006Rr-J0 for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 10:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: esr@thyrsus.com (Eric S. Raymond) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jun 2020 14:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42125 X-GNU-PR-Package: emacs X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159344212124742 (code B ref -1); Mon, 29 Jun 2020 14:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jun 2020 14:48:41 +0000 Original-Received: from localhost ([127.0.0.1]:49065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpv5N-0006R0-E9 for submit@debbugs.gnu.org; Mon, 29 Jun 2020 10:48:41 -0400 Original-Received: from thyrsus.com ([71.162.243.5]:56436 helo=snark.thyrsus.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpv5J-0006Qn-Sv for submit@debbugs.gnu.org; Mon, 29 Jun 2020 10:48:39 -0400 Original-Received: by snark.thyrsus.com (Postfix, from userid 1000) id 5B8CFF800FD; Mon, 29 Jun 2020 10:48:17 -0400 (EDT) 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:182529 Archived-At: Package: emacs Version: 26.3 Python mode load is failing due to some issue with tramp. Likely a loaddefs issue or something similar. To reproduce, simply visit a file with a .py extension. Stack trace: Debugger entered--Lisp error: (void-variable tramp-default-user-alist) (member x tramp-default-user-alist) (if (member x tramp-default-user-alist) tramp-default-user-alist (setq tramp-default-user-alist (cons x tramp-default-user-alist))) (let* ((x (cons (concat "\\`" (regexp-opt (quote ("su" "sudo" "doas" "ksu"))) "\\'") (quote (nil "root"))))) (if (member x tramp-default-user-alist) tramp-default-user-alist (setq tramp-default-user-alist (cons x tramp-default-user-alist)))) eval-buffer(# nil "/usr/share/emacs/26.3/lisp/net/tramp-sh.el" nil t) ; Reading at buffer position 15068 load-with-code-conversion("/usr/share/emacs/26.3/lisp/net/tramp-sh.el" "/usr/share/emacs/26.3/lisp/net/tramp-sh.el" nil t) require(tramp-sh) eval-buffer(# nil "/usr/share/emacs/26.3/lisp/progmodes/python.el" nil t) ; Reading at buffer position 12340 load-with-code-conversion("/usr/share/emacs/26.3/lisp/progmodes/python.el" "/usr/share/emacs/26.3/lisp/progmodes/python.el" nil t) python-mode() set-auto-mode-0(python-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/WWW/irker/irkerhook.py" nil nil "~/public_html/irker/irkerhook.py" (5771543 66307)) find-file-noselect("~/WWW/irker/irkerhook.py" nil nil t) find-file("~/WWW/irker/irkerhook.py" t) funcall-interactively(find-file "~/WWW/irker/irkerhook.py" t) call-interactively(find-file nil nil) command-execute(find-file) There's a workaround: deleting (require 'tramp-sh) from early in python.el. Of course this disables some remote features. -- Eric S. Raymond "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin, Historical Review of Pennsylvania, 1759.