8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a63792 commit 76591e0Copy full SHA for 76591e0
lisp/ein-shared-output.el
@@ -199,7 +199,10 @@ shared output buffer. You can open the buffer by the command
199
;; ... so error will be raised before user typing code if it
200
;; is impossible to execute
201
(code (read-string
202
- "IP[y]: " nil 'ein:shared-output-eval-string-history)))
+ "IP[y]: "
203
+ (when (region-active-p)
204
+ (buffer-substring (region-beginning) (region-end)))
205
+ 'ein:shared-output-eval-string-history)))
206
(list code nil t kernel)))
207
(unless kernel (setq kernel (ein:get-kernel-or-error)))
208
(let ((cell (ein:shared-output-get-cell)))
0 commit comments