Commit graph

1267 commits

Author SHA1 Message Date
Takafumi Arakaki
7eee1e8cda Merge branch 'junk'
Move "scratch notebook" commands/configurables into
ein:junk-* namespace.
2012-09-01 19:07:26 +02:00
Takafumi Arakaki
dfee325f7b Update document and change log 2012-09-01 19:03:52 +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
6da1f729d7 Merge branch 'insert-html-shr'
* Support HTML rendering using shr-insert-document.
* Output type preference can be configured now.
2012-08-31 00:35:12 +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
a2e4268ea4 Update change log 2012-08-31 00:11:05 +02:00
Takafumi Arakaki
2c722fbf61 Fix failing tests in test-ein-cell-notebook.el 2012-08-31 00:11:04 +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
6c886cd561 Merge branch 'dont-save-cells-flag'
Detaching buffer from worksheet makes it impossible to close the
worksheet buffer (hence the notebook itself) afterwards.
This can be confirmed by the following two tests introduced in the
commit af989a377b

* ein:notebook-kill-kernel-then-close-when-its-alive
* ein:notebook-kill-kernel-then-close-when-already-dead

See also: d0a16798f4

Now, new `:dont-save-cells' slot is added to `ein:worksheet'.
`ein:worksheet-save-cells' do not save cells when this slot is
non-nil.
2012-08-30 17:56:55 +02:00
Takafumi Arakaki
b741840637 Merge branch 'test-notebook-kill-kernel-then-close' into dont-save-cells-flag
The failing tests pass now.
2012-08-30 17:50:30 +02:00
Takafumi Arakaki
af989a377b Add two failing tests for ein:notebook-kill-kernel-then-close 2012-08-30 17:49:42 +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
841ec71e41 Merge branch 'create-worksheet-command'
Add a few commands to make/delete worksheet.  Although they are not
well tested, they seem to work OK.
2012-08-30 03:59:47 +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
ebf933f42f Merge branch 'notebook-to-json-after-discarding-a-worksheet'
Fix two bugs in saving notebook.

1. When discarding a worksheet cells in the buffer should not be
   cached, so that saving the notebook afterward will note save
   the discarded data.

2. After saving a notebook, saved data should be cached so that
   discarding a worksheet and saving the notebook will save the
   data saved before.
2012-08-30 03:15:01 +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
2c8b8cce31 Add a failing test for notebook-to-json 2012-08-30 01:47:43 +02:00
Takafumi Arakaki
e32991a091 Merge branch 'worksheet-to-json-metadata'
Fixed: "metadata: null" was saved
2012-08-30 01:42:11 +02:00
Takafumi Arakaki
1674fcbc3e Add test for ein:worksheet-to-json with metadata 2012-08-30 00:39:19 +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
f1f94d772d Fix ein:testing-worksheet-to-json
The argument was not used.
2012-08-30 00:30:31 +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
795b27ddd8 Merge branch 'make-cells-in-worksheet-from-json'
* Cache cell instances instead of data sent from server.
  This way, to-json works smoothly as I don't need to implement
  plist to alist conversion.

* As a result, theoretically EIN can open notebook with multiple
  worksheets now, although it can edit only the first worksheet.

* Worksheet buffer can be closed (provided it is not modified)
  while notebook is still open.
2012-08-29 21:11:58 +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
271bb24b3e Naming fix on ein:testing-notebook-close-scratchsheet-open-and-close
s/ws-list/ss-list/g
2012-08-29 21:04:23 +02:00
Takafumi Arakaki
135ab1969b Fix failing tests for ein:notebook-close-worksheet
Actually the tests was wrong.  But as it should work if I test it
against scratch sheet instead of worksheet, I modified it to do so.
2012-08-29 21:04:21 +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