Commit graph

98 commits

Author SHA1 Message Date
Takafumi Arakaki
585739e6b2 Add a command ein:worksheet-dedent-cell-text 2012-10-09 14:02:39 +02:00
Takafumi Arakaki
9162d497f7 Fix ein:worksheet-beginning-of-cell-input when repeating 2012-10-05 15:49:43 +02:00
Takafumi Arakaki
859c96f4df Test (ein:worksheet-end-of-cell-input) and fix it 2012-10-05 14:37:54 +02:00
Takafumi Arakaki
1eb44ad5b3 Test (ein:worksheet-beginning-of-cell-input 2) and fix it 2012-10-05 14:21:00 +02:00
Takafumi Arakaki
b74debf2b7 Test (ein:worksheet-beginning-of-cell-input) and fix it 2012-10-05 14:12:51 +02:00
Takafumi Arakaki
0f8a789826 Fix ein:worksheet-goto-next-cell-element error 2012-10-05 13:12:13 +02:00
Takafumi Arakaki
92971fbc42 Add ein:worksheet-beginning/end-of-cell-input 2012-10-05 13:00:07 +02:00
Takafumi Arakaki
c91ac20493 Add NTH option to ein:worksheet-next-input-cell 2012-10-05 12:41:11 +02:00
Takafumi Arakaki
9630f8f82a Add ein:org-src-back-to-prev-node 2012-09-04 14:16:47 +02:00
Takafumi Arakaki
6e24c989de Add new function ein:worksheet-next-input-cell 2012-09-04 01:56:38 +02:00
Takafumi Arakaki
0373abd2c1 Fix: worksheet could not be renamed to the name in use 2012-09-02 01:47:41 +02:00
Takafumi Arakaki
d07ec3a7d9 Add a command to rename worksheet name 2012-09-02 01:27:40 +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
3313f97325 Add :dont-save-cells slot 2012-08-30 16:18:56 +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
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
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
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
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
Takafumi Arakaki
cbe1ab3904 Add discard-output-p slot in ein:worksheet 2012-08-28 20:51:18 +02:00
Takafumi Arakaki
848771a724 Remove two more notebook functions from ein-notebook.el 2012-08-28 18:12:51 +02:00
Takafumi Arakaki
7f0f5ea382 Remove ein:$notebook-url-or-port from ein-worksheet.el 2012-08-28 18:03:41 +02:00
Takafumi Arakaki
e93801f101 Add get-notebook-name slot in ein:worksheet 2012-08-28 18:00:32 +02:00
Takafumi Arakaki
380d5504f1 Add nbformat slot in ein:worksheet
So that I can remove the line:
(declare-function ein:$notebook-nbformat "ein-notebook")
2012-08-28 18:00:29 +02:00
Takafumi Arakaki
1f7e6ec857 s/\(maybe_reset_undo\).Notebook/\1.Worksheet/g 2012-08-28 16:42:07 +02:00
Takafumi Arakaki
8ffc065a5a Move maybe_reset_undo event to worksheet 2012-08-28 16:39:32 +02:00
Takafumi Arakaki
5e22f31dfe ein:notebook-enable-undo -> ein:worksheet-enable-undo 2012-08-28 16:28:14 +02:00
Takafumi Arakaki
ca8c1678fe (require 'ein-utils) -> (require 'ein-core) 2012-08-28 15:26:32 +02:00
Takafumi Arakaki
4d6043652d Fix: minimum history is 1 now 2012-08-28 13:10:37 +02:00
Takafumi Arakaki
5ef22cccaa Fix docstring of history commands 2012-08-28 12:40:57 +02:00
Takafumi Arakaki
7a53f05af4 Document history functions 2012-08-28 12:34:24 +02:00
Takafumi Arakaki
a31184a5b6 Add commands ein:worksheet-previous/next-input-history 2012-08-28 12:23:47 +02:00
Takafumi Arakaki
caab214989 Add tests for set_dirty.Worksheet and fixed a bug 2012-08-28 01:38:41 +02:00
Takafumi Arakaki
c7d5cebd41 Make set_next_input.Worksheet class-level handler 2012-08-27 23:25:49 +02:00
Takafumi Arakaki
d461afeccb set_dirty.Notebook -> set_dirty.Worksheet 2012-08-27 23:21:47 +02:00
Takafumi Arakaki
785355c3ca Activate codecell menu conditionally 2012-08-27 14:22:27 +02:00
Takafumi Arakaki
1620bc4fe1 Simplify how ein:notebook-setup-kill-buffer-hook is called 2012-08-27 00:02:36 +02:00
Takafumi Arakaki
0fb3f9ea3e Add ein:connect-to-default-notebook 2012-08-26 21:38:18 +02:00
Takafumi Arakaki
438926a5cc Rename: ...collapsed-all -> ...output-visibility-all 2012-08-26 18:16:53 +02:00
Takafumi Arakaki
4e299ae137 Fix ein:worksheet-set-collapsed-all
See also #68
2012-08-26 18:02:03 +02:00