mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
Refactor ein:pytools-jump-to-source (destructuring-bind)
This commit is contained in:
parent
712485a587
commit
dd42d1db19
1 changed files with 3 additions and 3 deletions
|
@ -94,9 +94,9 @@
|
|||
it)
|
||||
(ein:log 'info
|
||||
"Jumping to the source of %s...Not found" object)
|
||||
(let* ((filename-lineno (split-string it "\n"))
|
||||
(filename (car filename-lineno))
|
||||
(lineno (string-to-number (cadr filename-lineno))))
|
||||
(destructuring-bind (filename &optional lineno &rest ignore)
|
||||
(split-string it "\n")
|
||||
(setq lineno (string-to-number lineno))
|
||||
(funcall (if other-window
|
||||
#'find-file-other-window
|
||||
#'find-file)
|
||||
|
|
Loading…
Add table
Reference in a new issue