Commit graph

2910 commits

Author SHA1 Message Date
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
Takafumi Arakaki
934b54bd86 Combine ein:kernel--ws-closed-* functions together 2012-05-09 08:52:49 +02:00
Takafumi Arakaki
9b2bcf5a00 Add ein:$websocket-*-args for callbacks 2012-05-09 08:15:05 +02:00
Takafumi Arakaki
988e43138c Get rid of a lexical-let in ein:kernel-start-channels 2012-05-09 07:46:18 +02:00
Takafumi Arakaki
cc1db76a86 Fix ein-log.el: ein:log error in ein:log-setup
ein:log-setup uses ein:log macro.
2012-05-08 09:18:05 +02:00
Takafumi Arakaki
ce5ceb8b26 Change logging: use "all" buffer instead of "orphan"
There should be a buffer to track history of *all* events.
2012-05-08 09:10:52 +02:00
Takafumi Arakaki
cc03ccaa00 Save works now; fix ein:notebook-to-json/save-notebook
* output of `ein:notebook-to-json' was wrong. `worksheets' did not
  contain cells.
* `metadata' is plist where I assumed alist.
2012-05-08 08:50:09 +02:00
Takafumi Arakaki
2c3ba08aa7 Use alist in to-json functions
json.el prefers alist over plist (see json-encode-list).
Previous version outputs malformed json.

But still, server says "Invalid JSON data".
2012-05-08 08:26:56 +02:00
Takafumi Arakaki
db32fa4f21 Add ein:notebook-save-notebook (not functional yet) 2012-05-08 08:24:20 +02:00
Takafumi Arakaki
34dedb9270 Removed unused function ein:notebook-get-worksheet 2012-05-08 07:15:44 +02:00
Takafumi Arakaki
0c212e5485 Refactor ein:notebook-open 2012-05-08 07:05:11 +02:00
Takafumi Arakaki
005ea17204 Log start message in ein:log-setup 2012-05-08 06:52:28 +02:00
Takafumi Arakaki
218fee0479 Comment on ein:$notebook/cell 2012-05-08 06:47:03 +02:00
Takafumi Arakaki
a4ff94d761 Rename ein:notebook-create to ein:notebook-setup 2012-05-08 06:46:34 +02:00
Takafumi Arakaki
df3fa66698 Add ein:notebook-from-json and use it in ein:notebook-render 2012-05-08 06:42:10 +02:00
Takafumi Arakaki
85c27f1727 Add ein:notebook-to-json (not yet tested) 2012-05-08 06:15:23 +02:00