Takafumi Arakaki
173dc7f389
Fix a bug in ein:cell-to-json
...
ein:cell-to-json is needed to accept two arguments.
2012-05-25 05:22:14 +02:00
Takafumi Arakaki
3660960013
Add config to discard output on notebook save
...
This is done by adding one configurable variable:
ein:notebook-discard-output-on-save
2012-05-25 00:23:09 +02:00
Takafumi Arakaki
bccae92dde
Use ein-shared-output.el from ein-connect.el
2012-05-24 13:17:42 +02:00
Takafumi Arakaki
2201f41ea3
Add a note on the input-prompt-number slot
2012-05-23 23:03:59 +02:00
Takafumi Arakaki
98bd0ccb5a
Revert "Make input-prompt-number slot typed"
...
Strongly typed `:input-prompt-number' becomes a problem when reading a
notebook that saved "*". As treating it using `:running' makes no
sense (nothing is running on kernel when the notebook is opened),
using flexible type for the slot is the right choice.
This reverts commit 5402274c71
.
2012-05-23 22:56:36 +02:00
Takafumi Arakaki
ad0adf9884
Fix ein:cell-output-json-to-class
...
ein:notebook-clear-output-command could not clear out extra newline in
the footer.
2012-05-23 20:20:02 +02:00
Takafumi Arakaki
5402274c71
Make input-prompt-number slot typed
2012-05-23 20:10:52 +02:00
Takafumi Arakaki
47d4beb30d
Make input area face work nicely with zenburn
2012-05-23 19:41:02 +02:00
Takafumi Arakaki
146aac147f
Better emacs-lisp type output handling
2012-05-23 03:19:22 +02:00
Takafumi Arakaki
3985f97eb8
Change the spec of callbacks: msg-type is str now
...
Test ein:notebook-execute-current-cell is passed.
At this point all unit tests in test/test-ein-*.el are passed.
msg-type was first a string and I changed it to a keyword when I am
writing ein:kernel-execute. But as I need to fix a lot of other
places, I change it back to a string. Note that msg-type can come
from JSON directly when the notebook is first opened, so it must be
consistent with that routines.
Maybe I will change it again, but at that time, symbol is better than
keyword because msg-type is a value rather than a key.
2012-05-23 01:40:00 +02:00
Takafumi Arakaki
7fede75855
Fix ein:codecell: add kernel slot
2012-05-22 23:53:25 +02:00
Takafumi Arakaki
1fc79a506e
Fix ein:cell-execute: input text was not fetched
2012-05-22 22:30:34 +02:00
Takafumi Arakaki
fcdd58343b
Move cell-kernel interaction to ein-cell.el
2012-05-22 21:31:23 +02:00
Takafumi Arakaki
e3b9f9842e
Don't execute elisp output when opening notebook
...
This means that Emacs lisp type output is treated as same as like
Javascript output in browsers.
2012-05-22 00:40:07 +02:00
Takafumi Arakaki
e1bdf7e8cf
Use overlay to highlight input area background
...
* In the previous version which uses text property, syntax
highlighting in mumamo was not working. This change fix
this problem.
* If I am going to use pygmentize + ansi-color, which use
face text property, implementation using text property
won't work. So, using overlay is better choice.
* Code is clearer than the previous version.
2012-05-21 16:28:51 +02:00
Takafumi Arakaki
1a2fa43500
Fix: BG face vanishes from empty input area
...
This happens when new cell has no input text. When some text is
typed, BG color for the text is not what ein:cell-input-area
specifies.
2012-05-21 05:47:29 +02:00
Takafumi Arakaki
67fc2a2b13
Add ein:cell-input-area face
2012-05-21 05:46:41 +02:00
Takafumi Arakaki
91059bec30
Support application/emacs-lisp mime type
2012-05-21 01:46:37 +02:00
Takafumi Arakaki
6120ebe59b
Add faces ein:cell-input/output-prompt
2012-05-20 23:38:31 +02:00
Takafumi Arakaki
f09cccf4ad
Fix typo: s/ouput/output/g
2012-05-20 23:27:31 +02:00
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