Refactor ein:pytools-jump-to-source (destructuring-bind)

This commit is contained in:
Takafumi Arakaki 2012-06-10 01:03:34 +02:00
parent 712485a587
commit dd42d1db19

View file

@ -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)