From dd42d1db1902381c2310f29c62526af417400864 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sun, 10 Jun 2012 01:03:34 +0200 Subject: [PATCH] Refactor ein:pytools-jump-to-source (destructuring-bind) --- ein-pytools.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ein-pytools.el b/ein-pytools.el index 1ed248e..53d03a9 100644 --- a/ein-pytools.el +++ b/ein-pytools.el @@ -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)