Commit graph

158 commits

Author SHA1 Message Date
dickmao
3f30422f0a missed a spot 2020-02-22 12:22:02 -05:00
dickmao
4403b65a04 Wrap comint-carriage-motion in disabling of buffer-undo-list 2020-02-22 11:26:29 -05:00
dickmao
58e73f2e9a autoload, not declare-function, for ob-ein 2020-02-19 09:27:13 -05:00
dickmao
caa760f9d7 test undo in combination with worksheet-execute-all-cells 2020-02-08 19:04:18 -05:00
dickmao
f4d6d4e9a8 remove pytools cruft, only print polymode-mode-name-aliases warning once 2020-01-23 11:25:27 -05:00
dickmao
be137e0564 hack to replace nil with empty hashtable in output metadata 2020-01-16 18:39:49 -05:00
dickmao
43e53f0eae mm-display-external 2020-01-13 15:40:58 -05:00
dickmao
6ea920dd0f notebooklist delete 2020-01-12 23:01:26 -05:00
dickmao
702f04064a :image/png not :png 2020-01-11 16:03:54 -05:00
dickmao
8a545c508b close notebook on delete 2020-01-10 23:58:51 -05:00
dickmao
cfb30c606d more time 2020-01-09 17:53:03 -05:00
dickmao
7f4b65cba3 fix bugs 2020-01-09 15:36:20 -05:00
dickmao
0e45658bb3 confused more 2020-01-09 15:06:45 -05:00
dickmao
98742013df less confused 2020-01-09 13:51:56 -05:00
dickmao
9ac1bf62e5 confused about pyouts 2020-01-09 13:12:41 -05:00
dickmao
290e5fc88e gha 2020-01-04 10:46:21 -05:00
dickmao
f7180405d6 makes test 2020-01-02 20:09:42 -05:00
dickmao
f1bd684ee8 ein:cluster-login 2020-01-02 09:15:27 -05:00
dickmao
e12a33588d replace ein:aif with aif 2019-11-24 00:17:52 -05:00
dickmao
dc9bbbb627 remove log/README 2019-11-14 19:35:40 -05:00
dickmao
d0d13c8277 get 25.1 to compile 2019-11-13 17:46:50 -05:00
dickmao
49a1c54b00 compile properly (very suspect :mode slot misspecifications in poly-ein) 2019-11-13 13:54:29 -05:00
dickmao
5a23c06df6 burrow the disabling of buffer-undo-list down deep 2019-11-09 11:31:38 -05:00
dickmao
131a4d0517 more grief regarding undo
use ein:with-live-buffer instead of the current-buffer at the call site.
2019-11-08 23:29:51 -05:00
dickmao
5e9c30e170 more bad undo bug
printed output also doesn't properly set the buffer
before disabling `buffer-undo-list`
2019-11-08 21:06:15 -05:00
dickmao
bcf1c2ac55 purge
purge

align pm:get-span no major mode error with diagnostic

purge
2019-11-08 16:05:11 -05:00
dickmao
539c3339dd Undo did not account for slideshow
C-c C-d breaks undo.  Fix as follows:

Before: turn on slide indicator via C-c S, toggle type with C-c C-d

After: toggle type with C-c S.

Benefits: Fixes undo, simplifies slideshow operation, elpy users are
accustomed to having C-c C-d be "jump to doc"
2019-04-04 05:45:34 -04:00
dickmao
234cf391f9 Polymode
M-x customize-group RET ein
Toggle Ein:Polymode

Avoid trying to emulate jump-to-definition, eldoc, and autocompletion
functionalities that Elpy will always do better.

Fixes #497 #482 #418
2019-04-02 09:35:17 -04:00
dickmao
7985387178 :text/plain is also :text
Notebooks with :text/plain and :text/html outputs opt for
:text/html which looks bad in emacs.

There is already code to prefer :text over :text/html, so it should
prefer :text/plain as well.
2019-03-11 00:02:08 -04:00
dickmao
188b2c0dec Toggle output (C-c C-e) should also invalidate footer
Attempt fixing longstanding annoyance whereby `C-c C-e` leaves a
peachpuff or pink newline when toggling output with nonempty stderr.
2019-03-08 18:33:15 -05:00
dickmao
ed6482096e Add ob-ein tests
Also, speed up login and other cleanups
2019-02-19 10:06:15 -05:00
John Miller
111826958f Process all output types on json export.
We were only selectively fixing the mime type for execute_result outputs, now we
treat those the same as we do display outputs. Also fixed image/svg+xml MIME
type wherever I could find it.
2019-02-09 13:36:37 -06:00
John Miller
b276d6ad0a Fix mime type for svg images.
Update, part 1, for #467.
2019-02-09 12:59:55 -06:00
dickmao
34b30b5e60 User llcc reports read-only bug in fresh input cell under mingw32 2019-01-23 08:05:09 -05:00
John Miller
2f96fc33ac ein-skewer: Handle html in the browser.
If dynamic-javascript is enabled and we see HTML in the display data after
executing a cell, then we create a web page for it in the simple-httpd server.
2019-01-14 18:23:22 -06:00
dickmao
bead667ee0 Clean up multilang
Do not assume python... leverage ESS to improve R interaction.
Fix both undo and fontify in the presence of toggling cells (`C-c
C-t`)
Fix and test switching kernels
2018-12-08 21:25:48 -05:00
Jack Kamm
f96558004e Always prefer text to html for ob-ein output 2018-11-22 11:23:22 -08:00
Sam Steingold
25f2f49943 use cl-defmethod instead of defmethod
defmethod macro is obsolete.
it expands to a defun eieio-defmethod which cannot use cl-call-next-method
2018-11-08 16:24:28 -05:00
Sam Steingold
1c6270c425 update the code base to avoid compilation warnings about obsolete functions
call-next-method -> cl-call-next-method
set-slot-value -> (setf slot-value)
*-child-p -> cl-typep
oref <keyword> -> slot-value <symbol>
object-p -> eieio-object-p
Closes https://github.com/millejoh/emacs-ipython-notebook/issues/394
2018-11-08 09:36:35 -05:00
Sam Steingold
d3a1bf829b use substitute-command-keys instead of hard-coding keys in help 2018-11-07 09:17:04 -05:00
dickmao
11c2245c41 Asynchronize all server communication
Use deferred and callbacks instead of `:sync t` for tkf requests which
is known to have issues.  Query server attributes once on
notebooklist-open to avoid sequencing issue #176 (but allow Resync).
Under curl backend, a second request for the same "key" as a pending
request will abort the latter, which has resulted in a clobbered
curl-cookie-jar file, so merely warn and don't abort.

Fix #176
2018-10-07 00:40:48 -04:00
dickmao
ad8408dfb7 Implement undo
`M-x customize-group RET ein`
Toggle `Ein:Worksheet Enable Undo`
Save for Future Sessions
Restart emacs or kill/restart notebook

Fixes #338
2018-10-02 10:00:25 -04:00
dickmao
ec28cbe708 revive tkf tests
`make test-unit`
`make test-int` (formerly `cask exec ert-runner`)
An intermittent travis-melpa issue is solved by gonewest818.
2018-09-27 00:52:00 -04:00
Sam Steingold
3f970319fe every defcustom must have :type 2018-05-29 17:20:31 -04:00
John Miller
9ad9b4f4e6 Hooks to customize behavior during kernel execution.
New hooks `ein:pre-kernel-execute-functions', `ein:on-execute-reply-functions'
and `ein:on-shell-reply-functions'. See variable documentation for more
information.
2018-05-12 17:32:32 -05:00
John Miller
5f0921ea96
Merge pull request #302 from nealsid/master
Add overlay to output area with new faces.
2018-05-12 07:39:16 -05:00
Neal
56e72c11d3 Add overlay to output area with new faces.
Similar to having an input area face, we now have faces for errors &
normal output in the output area. They're currently empty to preserve
existing appearance.
2018-05-11 23:24:33 -06:00
Jared Flatow
229303a45c dont fail on image insertion failure, just warn 2018-05-11 15:34:11 -07:00
John Miller
fcf9bff0af ein-cell: Bugfix to keep everything from turning into hy cells.
Fix bug that was turning all the cells in a notebook without the ein.hycell
metadata tag present into hy-codecells.
2018-04-14 20:38:22 -05:00
John Miller
847f7ca5a1 Prepare for v0.14, properly save and load hy codecells. 2018-04-14 13:29:16 -05:00