I am using rope-goto-definition
to jump into a module's definition, link. But I cannot jump back to where I was. xref-pop-marker-stack
says Marker stack is empty
. Is it possible to jump back after running rope-goto-definition
? Similiar behavior is done using jedi:goto-definition-pop-marker
.
My setup:
(require 'pymacs)
(pymacs-load "ropemacs" "rope-")
(setq ropemacs-enable-autoimport 't)
(setq ropemacs-autoimport-modules '("os" "shutil"))
(defun goto-def-or-jedi ()
"Go to definition of thing at point or do an rgrep in project if that fails"
(interactive)
(condition-case nil (rope-goto-definition)
(error (rope-goto-definition (thing-at-point 'symbol)))))
Note: On there github its said that: ropemacs is completely unmaintained and abandoned.
link. So there is no hope to have support from developers. Maybe before jump, the location can be pushed into the stack?
xref-pop-marker-stack
works flawlessly.init.el
and comment out the lines 9..35 and 48 and add the following(use-package python :ensure nil),
save and install packages. Then open a python file, andM-x lsp
to start lsp,M-x lsp-find-definiton
of a function andM-x xref-pop-marker-stack
to return to source file. Or use the already binded keyss-l g g
andM-,
.(use-package python :ensure nil),
to line 9 ? including,
? How can I install it afterwards? like(load "standalone.el")
?