[IPython-User] copying last input
Andreas Röhler
andreas.roehler@online...
Fri Jul 23 13:54:22 CDT 2010
Hi all,
sometimes I want to pick the input .
Is there a canonical way to do it?
For the moment I use this.
(defun ar-copy-input ()
(interactive)
(lexical-let ((pos (point)))
;; from ipython-de-input-prompt-regexp
(re-search-backward "^In \\[[0-9]+\\]:" nil t 1)
(goto-char (1+ (match-end 0)))
(kill-new (buffer-substring-no-properties (point) pos))))
Thanks
Andreas
--
https://code.launchpad.net/~a-roehler/python-mode
https://code.launchpad.net/s-x-emacs-werkstatt/
More information about the IPython-User
mailing list