Commit graph

75 commits

Author SHA1 Message Date
Takafumi Arakaki
7971143d64 Add section comments on ein-cell.el
I will need to reorder functions, but it's better than nothing.
2012-05-11 18:39:40 +02:00
Takafumi Arakaki
62b1ecfb62 Add ein:notebook-goto-next/prev-cell command 2012-05-11 16:39:06 +02:00
Takafumi Arakaki
c42a9e8fa0 Remove ein:notebook-in-buffer macro
It was used for command.  But command is executed via keybind, which
is defined only in notebook buffer.  So checking if in a notebook
buffer does not makes sense much.
2012-05-11 16:22:30 +02:00
Takafumi Arakaki
ad48bb9ed2 Refactor ein:notebook-insert-cell-below
ein:notebook-get-current-cell is removed from ein:notebook-insert-cell-below.
Try to avoid implicit use of cursor information in non-command function.
2012-05-11 14:47:38 +02:00
Takafumi Arakaki
a80e7d09d5 Add ein:notebook-with-cell macro
... to simplify command functions
2012-05-11 14:40:54 +02:00
Takafumi Arakaki
2b84d5f409 Remove already fixed FIXME comments 2012-05-11 14:21:04 +02:00
Takafumi Arakaki
9edfcdcbee Simple implementation for ein:cell-finish-completing 2012-05-11 10:15:08 +02:00
Takafumi Arakaki
7f385b77cb Add ein:notebook-complete-cell-command
The call back handler is not implemented so it won't work yet.
2012-05-11 09:59:02 +02:00
Takafumi Arakaki
93d8688928 Implement ein-pager.el: help? works now 2012-05-11 05:24:34 +02:00
Takafumi Arakaki
1a36c9bf3f Hack to shorten *Backtrace* lines 2012-05-11 04:24:05 +02:00
Takafumi Arakaki
5a978ae577 Add a command to remove cell 2012-05-11 00:48:22 +02:00
Takafumi Arakaki
1bfa3ad35d Markdown cell can be inserted by command now. 2012-05-11 00:23:42 +02:00
Takafumi Arakaki
35e47bbe69 Call set-buffer-modified-p from save callback 2012-05-11 00:18:17 +02:00
Takafumi Arakaki
c7bf96e689 Improve usage section in README 2012-05-11 00:12:16 +02:00
Takafumi Arakaki
22e9190bfa Update requirements section of README.rst 2012-05-11 00:01:31 +02:00
Takafumi Arakaki
af0fdf7714 Remove suspicious code "(not end)"
It works without this code, so let's go without it.
It is just a remnant of try-and-error.
2012-05-10 23:14:00 +02:00
Takafumi Arakaki
a613ba949c Fix mumamo error: "curr-max is not >= curr-min"
input-pos was not set to nil in the `ein:aif'-clause when there is no
next cell (i.e., when it is the last cell).
2012-05-10 23:08:51 +02:00
Takafumi Arakaki
f32afffb0c Warn when try to execute non-codecell 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
5074b11247 Fix: saving fails on codecell with empty prompt 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
360bcfff67 Add fallback mode for mumamo 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
63dfb4ee18 Fix ein:mumamo-find-edge: treat cell-p correctly 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
7fed946777 Add ein:cell-from-ewoc-node 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
029c02c5eb Correct argument name of ein:cell(-ewoc)-node-p 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
0e55cd3f11 Add debugging message in ein:mumamo-find-edge 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
371876b910 Add all mumamo modes for all cell types
... and fix a bug in ein:mumamo-find-edge.
2012-05-10 22:39:30 +02:00
Takafumi Arakaki
6bef01e0c6 Add a macro ein:mumamo-define-chunk
And use it to define ein:mumamo-chunk-codecell
2012-05-10 22:39:30 +02:00
Takafumi Arakaki
d67e5f2160 Rename: s/notebook-mumamo-python/mumamo-chunk-codecell/g 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
928e5eb8a4 Rename: s/notebook-mumamo-python/mumamo-chunk-python/g 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
4b15523e49 Check cell type in ein:mumamo-find-edge 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
b1f6760691 Rename: s/:.*-python-chunk/:mumamo-find-edge/g 2012-05-10 22:39:29 +02:00
Takafumi Arakaki
c95f505287 Add ein:notebook-get-nearest-cell-ewoc-node 2012-05-10 22:39:29 +02:00
Takafumi Arakaki
2675facfe5 Fix a bug in ein:notebook-mumamo-python-chunk
Previous code sets ewoc-node to nil. It was working by luck.
2012-05-10 22:39:29 +02:00
Takafumi Arakaki
a77e60b40a Merge branch 'cell-eieio' 2012-05-10 22:38:58 +02:00
Takafumi Arakaki
6826493498 Fix ein:cell-next: mumamo highlighting works again 2012-05-10 14:16:48 +02:00
Takafumi Arakaki
2a7d2fa07c Fix ein-cell.el: code execution works again now 2012-05-10 13:20:07 +02:00
Takafumi Arakaki
1d45ee715a Fix ein:notebook-get-current-cell 2012-05-10 13:05:02 +02:00
Takafumi Arakaki
5719226241 Fix ein-cell.el bugs: rendering works now
But notebook saving still fails.
2012-05-10 12:48:49 +02:00
Takafumi Arakaki
a2ee981bd0 Fix ein:cell-from-type/json 2012-05-10 12:47:37 +02:00
Takafumi Arakaki
a9ad26233c Fix: calling undefined function ein:cell-new 2012-05-10 12:46:59 +02:00
Takafumi Arakaki
f0442c2a0c Fix notebook. Compile goes fine now. 2012-05-10 12:46:46 +02:00
Takafumi Arakaki
ab82b7f6c1 Go through ein-cell.el and change funcs to method 2012-05-10 12:46:23 +02:00
Takafumi Arakaki
d142183f40 Add class creation methods 2012-05-10 12:45:38 +02:00
Takafumi Arakaki
e7070ce5ed Start rewriting ein-cell.el using EIEIO
To support multiple cell types efficiently, I need a way to define
multiple cell types efficiently. EIEIO should do the job.

Defining classes is done.
2012-05-10 12:44:57 +02:00
Takafumi Arakaki
16a0df341b Add ein:{code,text}cell-to-json 2012-05-10 02:20:21 +02:00
Takafumi Arakaki
afe9374e05 Add ein:$cell-type 2012-05-10 00:30:42 +02:00
Takafumi Arakaki
b3407f83fb Refactor ein:cell-new 2012-05-10 00:26:47 +02:00
Takafumi Arakaki
8ba408d209 Fix ein:kernel-complete 2012-05-09 14:35:23 +02:00
Takafumi Arakaki
14d926103b Removed newlines from ein:kernel--websocket-closed 2012-05-09 09:07:47 +02:00
Takafumi Arakaki
6533d01811 ein:kernel--websocket-closed is called properly now
ein:kernel-start-channels is fixed.
2012-05-09 09:06:30 +02:00
Takafumi Arakaki
612689a17a Add ein:$websocket-closed-by-client (~= wasClean)
Use this until websocket support wasClean.
2012-05-09 08:54:02 +02:00