all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: esr@thyrsus.com (Eric S. Raymond)
To: 42125@debbugs.gnu.org
Subject: bug#42125: Python mode load failing due to some issue with tramp
Date: Mon, 29 Jun 2020 10:48:17 -0400 (EDT)	[thread overview]
Message-ID: <20200629144817.5B8CFF800FD@snark.thyrsus.com> (raw)

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(#<buffer  *load*-849947> 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(#<buffer  *load*> 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(#<buffer irkerhook.py> "~/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.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

"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.





             reply	other threads:[~2020-06-29 14:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-29 14:48 Eric S. Raymond [this message]
2020-06-29 15:03 ` bug#42125: Python mode load failing due to some issue with tramp Eli Zaretskii
2020-10-18  1:39   ` Stefan Kangas

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=20200629144817.5B8CFF800FD@snark.thyrsus.com \
    --to=esr@thyrsus.com \
    --cc=42125@debbugs.gnu.org \
    /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.