unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42125: Python mode load failing due to some issue with tramp
@ 2020-06-29 14:48 Eric S. Raymond
  2020-06-29 15:03 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S. Raymond @ 2020-06-29 14:48 UTC (permalink / raw)
  To: 42125

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-18  1:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 14:48 bug#42125: Python mode load failing due to some issue with tramp Eric S. Raymond
2020-06-29 15:03 ` Eli Zaretskii
2020-10-18  1:39   ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).