Commit graph

400 commits

Author SHA1 Message Date
Takafumi Arakaki
dfd79228db Move ein:version to ein-core.el 2012-09-01 21:10:43 +02:00
Takafumi Arakaki
2cfaed7c88 Require ein-loaddefs.el from ein.el 2012-09-01 21:09:15 +02:00
Takafumi Arakaki
15fa518ce0 Generate lisp/ein-loaddefs.el
$ tools/update-autoloads.sh
2012-09-01 20:55:07 +02:00
Takafumi Arakaki
6f1a11be30 Add autoload cookies 2012-09-01 20:51:55 +02:00
Takafumi Arakaki
16efe28448 Fix compile warning in ein-dev.el 2012-09-01 20:30:05 +02:00
Takafumi Arakaki
21be4c430c ein:junk-new can take prefix arguments now 2012-09-01 19:34:46 +02:00
Takafumi Arakaki
62d5188446 ein:junk-new is bit wise about url-or-port now 2012-09-01 19:20:37 +02:00
Takafumi Arakaki
ed813c2b8e Add notebook list menu 2012-09-01 19:18:12 +02:00
Takafumi Arakaki
ef77ab03d0 Add ein:junk-* commands in notebook menu 2012-09-01 19:03:51 +02:00
Takafumi Arakaki
38038f0fc5 Autolaod ein:junk-new and ein:junk-rename 2012-09-01 19:03:50 +02:00
Takafumi Arakaki
453f625559 Clarify ein:junk-rename docstring 2012-09-01 19:03:49 +02:00
Takafumi Arakaki
7eae61030a Rename junk notebook commands 2012-09-01 19:03:18 +02:00
Takafumi Arakaki
a186e3de02 ein:scratch-... -> ein:junk-notebook-name-template 2012-09-01 19:03:17 +02:00
Takafumi Arakaki
fe1d76278c Move scratch notebook functions to ein-junk.el 2012-09-01 18:29:09 +02:00
Takafumi Arakaki
df449b3350 Scratchsheet can be opened from connected buffer now 2012-08-31 17:21:19 +02:00
Takafumi Arakaki
0bc4c9e8e0 Add a note on ein:insert-html-shr 2012-08-31 00:52:48 +02:00
Takafumi Arakaki
45c129b4f9 Use ASCII table for pandas output 2012-08-31 00:30:31 +02:00
Takafumi Arakaki
9e031b7c4c Document ein:shr-env 2012-08-31 00:11:07 +02:00
Takafumi Arakaki
db104fc836 Make preferred output type configurable 2012-08-31 00:10:14 +02:00
Takafumi Arakaki
50da228b92 Render HTML using shr 2012-08-30 22:51:14 +02:00
Takafumi Arakaki
13f372b3d8 Deactivate cached cells in ein:worksheet-save-cells
The test ein:notebook-to-json-after-closing-a-worksheet passes at this
point.
2012-08-30 16:51:33 +02:00
Takafumi Arakaki
80f210d346 Remove unused ein:worksheet-detach-from-buffer 2012-08-30 16:26:05 +02:00
Takafumi Arakaki
d0a16798f4 Set :dont-save-cells instead of detaching buffer
Detaching buffer caused problem in the command
ein:notebook-kill-kernel-then-close-command
because after detaching buffer ein:notebook-close
does not work.

The test ein:notebook-to-json-after-closing-a-worksheet fails at this
point.
2012-08-30 16:23:14 +02:00
Takafumi Arakaki
3313f97325 Add :dont-save-cells slot 2012-08-30 16:18:56 +02:00
Takafumi Arakaki
2a9a4e07ca Tweak ein:notebook-worksheet-open-next* commands 2012-08-30 03:57:18 +02:00
Takafumi Arakaki
df9cf20736 Document ein:notebook-worksheet-open-next* commands 2012-08-30 03:49:11 +02:00
Takafumi Arakaki
85c00a8509 Fix error message 2012-08-30 03:37:17 +02:00
Takafumi Arakaki
07198049b8 Add more variants for open command 2012-08-30 03:22:31 +02:00
Takafumi Arakaki
15cf3b1cc9 Add commands to create/delete worksheet 2012-08-30 03:22:31 +02:00
Takafumi Arakaki
94967849f6 Rename to ein:notebook-scratchsheet-render-new
s/ein:notebook-scratchsheet-new/ein:notebook-scratchsheet-render-new/
2012-08-30 03:22:31 +02:00
Takafumi Arakaki
9197238e61 Add ein:notebook-worksheet-render-new 2012-08-30 03:22:31 +02:00
Takafumi Arakaki
4a381098ac Deactivate cells when discarding worksheet 2012-08-30 03:07:21 +02:00
Takafumi Arakaki
a692185740 Set current buffer in ein:worksheet-save-cells 2012-08-30 03:07:20 +02:00
Takafumi Arakaki
92c0a4efdf Comment on ein:notebook-save-notebook-success 2012-08-30 03:07:16 +02:00
Takafumi Arakaki
473a16a0a7 Save cells in ein:notebook-save-notebook-success 2012-08-30 02:42:49 +02:00
Takafumi Arakaki
d25f6a1c02 Treat discarding case better in ein:notebook-ask-before-kill-buffer
Note that the test ein:notebook-to-json-after-closing-a-worksheet
fails now.
2012-08-30 02:34:25 +02:00
Takafumi Arakaki
0bf9cce4b7 Fix ein:worksheet-to-json
When there is no metadata, do not include it in JSON data to avoid
converting nil to JSON (which yields null).
2012-08-30 00:36:44 +02:00
Takafumi Arakaki
e34c6390e0 Include metadata in ein:worksheet-to-json 2012-08-29 21:34:18 +02:00
Takafumi Arakaki
1f301973c8 Set buffer in ein:worksheet-to-json 2012-08-29 21:32:06 +02:00
Takafumi Arakaki
b56644d9b6 Include scratch sheet in ein:notebook-buffer
Now it is possible to have worksheet buffer closed but scratchsheet
buffer opened.  In this case, ein:notebook-live-p should return t
and ein:notebook-buffer should return the scratchsheet buffer.
This is because notebook commands can such as save or rename can be
executed from the scratchsheet buffer.

ein:notebook-to-json-after-closing-a-worksheet is modified also
this test fails without the change in ein:notebook-buffer.
2012-08-29 21:04:24 +02:00
Takafumi Arakaki
1f8f7dd8c8 Fix ein:notebook-close-worksheet
What ein:notebook-close-worksheet did was horribly wrong.
It deleted a worksheet.  Instead, now it properly close worksheet.

The failing test added in the previous commit passes now
(ein:notebook-to-json-after-closing-a-worksheet).
2012-08-29 21:04:03 +02:00
Takafumi Arakaki
b559cca042 Document `:saved-cells' slot 2012-08-29 21:03:18 +02:00
Takafumi Arakaki
42b6363ca5 Support deactivated cell in ein:cell-get-text
This is needed for ein:cell-to-json to work with deactivated cell.
2012-08-29 21:03:14 +02:00
Takafumi Arakaki
95bd5aa950 Support saved-cells in ein:worksheet-get-cells
So ein:worksheet-to-json should work with worksheets without buffer.
2012-08-29 14:12:56 +02:00
Takafumi Arakaki
88f4e488f9 Set metadata in ein:worksheet-from-json
Note that metadata slow was not set elsewhere before.
2012-08-29 14:06:18 +02:00
Takafumi Arakaki
e03f8861b6 Make cells in ein:worksheet-from-json
This is needed to make ein:worksheet-to-json work with un-rendered
worksheets.
2012-08-29 14:05:17 +02:00
Takafumi Arakaki
fb0ea65943 Add a note on ein:notebook--worksheet-render 2012-08-28 22:42:14 +02:00
Takafumi Arakaki
e3f15e649c Simplify notification module setup 2012-08-28 21:48:06 +02:00
Takafumi Arakaki
3d76a1a225 Remove notification slot from ein:worksheet
What notification module needs to know is its buffer and the events
handler.  So there is no reason to keep it in the worksheet slot.
Besides, setting header-line-format before calling notebook-mode
is not good because setting major mode discards header-line-format.
So, notification is setup in notebook module now.
2012-08-28 21:43:57 +02:00
Takafumi Arakaki
cf30b4f74e Make ein:notebook-discard-output-on-save obsolete 2012-08-28 21:17:49 +02:00