Commit graph

60 commits

Author SHA1 Message Date
Takafumi Arakaki
07203e6ab4 Simplify code for stream output 2012-05-20 23:13:00 +02:00
Takafumi Arakaki
78d3468d9a Use 'font-lock-face property instead of 'face
Now ein:cell-output-stderr face is visible in mumamo.
However, to make it visible mumamo-background-chunk-major face must
have no background property.  Otherwise background color is overridden
by mumamo-background-chunk-major.
2012-05-20 22:51:45 +02:00
Takafumi Arakaki
4f9b583fac Highlight stderr output (not working with mumamo) 2012-05-20 22:43:56 +02:00
Takafumi Arakaki
8b8d12924c Add comments on ein:cell-insert-output 2012-05-20 21:14:42 +02:00
Takafumi Arakaki
8f125daa39 Pass the previously failing six cell output tests
The bug was in ein:cell-insert-output.
2012-05-20 21:12:53 +02:00
Takafumi Arakaki
ca685cbe36 Insert extra newline in footer if necessary
This is similar code I need to add to ein:cell-insert-output in the
previous commit.  Note that I need to invalidate footer ewoc node in
ein:cell-append-output.
2012-05-20 20:04:04 +02:00
Takafumi Arakaki
e96746d4e5 Better ewoc pretty printer for stream
ein:cell-insert-output handles flushed stream better.

But this change is kind of contaminating other output type because now
ein:cell-insert-output inserts newline in the region of other output
type node if the previous output is stream type.  Maybe I need something
more like DOM.
2012-05-20 19:54:21 +02:00
Takafumi Arakaki
633b64f336 Document ein:cell-append-* functions 2012-05-20 18:36:54 +02:00
Takafumi Arakaki
d738406645 Document ein:cell-insert-* functions 2012-05-20 18:31:33 +02:00
Takafumi Arakaki
32f4fc4357 Do not insert newline in ein:cell-insert-output 2012-05-20 18:24:00 +02:00
Takafumi Arakaki
9328ca1eb9 Tweak ein:cell-append-mime-type
"Preference order" is changed:

* latex is preferred over text
* text is preferred over javascript
2012-05-20 05:18:25 +02:00
Takafumi Arakaki
b06dc0780a Replace defun with defmethod wherever possible
This will add type checking, which should help debugging.
2012-05-20 00:21:07 +02:00
Takafumi Arakaki
10fb29f7d4 Add raw and heading cell types; Now it can read v3 2012-05-19 23:53:15 +02:00
Takafumi Arakaki
5180a3cafc Fix ein:cell-finish-tooltip fallback
When none of pos-tip or popup-tip installed, raw ansi string was shown
in the echo area.  This fixes the problem.
2012-05-19 16:31:16 +02:00
Takafumi Arakaki
cb1eab8d80 Add new function ein:cell-location and its tests 2012-05-19 13:10:44 +02:00
Takafumi Arakaki
00bf3a4322 Add implementation note on ein-cell.el 2012-05-18 04:01:37 +02:00
Takafumi Arakaki
cbbd118236 Add ein:notebook-split-cell-at-point command 2012-05-17 15:48:21 +02:00
Takafumi Arakaki
0d6d04463f Add ein:notebook-set-collapsed-all 2012-05-16 21:18:25 +02:00
Takafumi Arakaki
507a895710 Show hidden output as "." 2012-05-16 20:56:51 +02:00
Takafumi Arakaki
ad05fa8f8d Support collapsed cell 2012-05-16 20:47:05 +02:00
Takafumi Arakaki
93556a82b2 Remove already fixed FIXME comment 2012-05-16 20:17:00 +02:00
Takafumi Arakaki
72a255289a Use pos-tip-show for tooltip if available 2012-05-16 05:41:03 +02:00
Takafumi Arakaki
0057bb19fa Apply ansi colors in tooltip 2012-05-16 05:13:08 +02:00
Takafumi Arakaki
3f0fcd2acf Add ein:notebook-request-tool-tip-command 2012-05-16 05:00:27 +02:00
Takafumi Arakaki
efaaeb98c1 Add new ein-completer.el for completion functions 2012-05-15 21:46:17 +02:00
Takafumi Arakaki
7d63f710c4 Add kill/yank command 2012-05-14 23:47:10 +02:00
Takafumi Arakaki
57c7a36e60 Add ein:notebook-insert-cell-above-command 2012-05-14 22:14:42 +02:00
Takafumi Arakaki
341dee3013 Fix stream output: print "a" works now 2012-05-13 22:58:14 +02:00
Takafumi Arakaki
074b4348a6 Treat Emacs undo history better 2012-05-13 21:23:25 +02:00
Takafumi Arakaki
30f71053f0 Improve completion: put the common prefix 2012-05-13 17:10:30 +02:00
Takafumi Arakaki
4a1261fc5e Fix: point moves after completion 2012-05-13 17:06:14 +02:00
Takafumi Arakaki
fac8323335 Fix ein:cell-convert(-inplace) 2012-05-11 23:52:04 +02:00
Takafumi Arakaki
fabff69476 Add ein:cell-convert(-inplace) and ein:cell-copy 2012-05-11 19:24:55 +02:00
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
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
5a978ae577 Add a command to remove cell 2012-05-11 00:48:22 +02:00
Takafumi Arakaki
5074b11247 Fix: saving fails on codecell with empty prompt 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
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
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
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