Takafumi Arakaki
34745e740b
Add keybind: C-c C-r restarts kernel
2012-05-22 01:09:33 +02:00
Takafumi Arakaki
95743a12c8
Explain how to use elisp type output in README
2012-05-22 01:00:34 +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
654f68701a
Document ein:notebook-modes
2012-05-21 19:47:38 +02:00
Takafumi Arakaki
e0dbe4bd47
Add ein:dev-notebook-python-mode
2012-05-21 18:07:52 +02:00
Takafumi Arakaki
7654a03582
Add ein:notebook-python-mode
2012-05-21 18:05:57 +02:00
Takafumi Arakaki
1ffa6807dc
Fix docstring of ein:notebook-plain-mode
2012-05-21 18:01:03 +02:00
Takafumi Arakaki
7b40ae11af
Make ein:notebook-modes customizable
2012-05-21 17:55:23 +02:00
Takafumi Arakaki
6a6e5b953f
Merge branch 'face-input'
2012-05-21 16:36:43 +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
569c5a93d6
Merge branch 'master' into face-input
2012-05-21 15:41:21 +02:00
Takafumi Arakaki
51881b40f6
Set mumamo-background-chunk-major in debug-ein.el
2012-05-21 15:20:01 +02:00
Takafumi Arakaki
31cdf7ae2e
Merge branch 'master' into face-input
2012-05-21 05:51:10 +02:00
Takafumi Arakaki
5bff8e010e
Hack to set header-line-format in mumamo
2012-05-21 05:48:51 +02:00
Takafumi Arakaki
70866498af
Event notification using header-line
2012-05-21 05:48:49 +02:00
Takafumi Arakaki
dcfbacf857
Move debug utils from debug-ein.el to ein-dev.el
2012-05-21 05:48:45 +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
76d677c77c
Merge branch 'extra-output-tests'
...
Newly added 6 tests fail.
2012-05-20 21:00:43 +02:00
Takafumi Arakaki
e625540e00
Add new tests for multiple pyout/display-data
2012-05-20 20:55:49 +02:00
Takafumi Arakaki
97bb0302d0
Improve test generator for cell output
2012-05-20 20:50:40 +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
b229901983
Generate tests for pyout and display_data
2012-05-20 18:18:59 +02:00
Takafumi Arakaki
5a29ca35af
Eliminate repeated part from the cell output tests
2012-05-20 17:52:49 +02:00
Takafumi Arakaki
8f6dc98bb6
Add test: ein:cell-insert-output-pyerr-simple
2012-05-20 17:38:32 +02:00
Takafumi Arakaki
90c3309d2e
Add tests: ein:cell-insert-output-stream-*
2012-05-20 17:23:09 +02:00
Takafumi Arakaki
52de6aab55
Add tests: ein:cell-insert-output-pyout-*
2012-05-20 17:11:53 +02:00
Takafumi Arakaki
4da77fd286
Separate test-ein-notebook.el in sections
2012-05-20 16:30:33 +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
3514a1def5
Add test and fix ein:notebook-ask-before-kill-emacs
...
Two bugs are fixed. One is in notebook-ask-before-kill-emacs and the
other is in ein:notebook-modified-p.
2012-05-20 03:19:55 +02:00
Takafumi Arakaki
693a2fb92b
Fix ein:notebook-modified-p
2012-05-20 02:34:10 +02:00
Takafumi Arakaki
e389e1d9dd
Fix: SVG was not shown
2012-05-20 01:56:40 +02:00
Takafumi Arakaki
b7efef9bfd
Fix failing tests
...
* test-ein-cell.el was not changed in 10fb29f
when the cell types are
changed.
* test-ein-notebook.el was not changed in b9b5dc5
when the destructor
was introduced.
2012-05-20 00:41:16 +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
6c6e51cc36
Update README about IPython version requirement
2012-05-20 00:05:36 +02:00
Takafumi Arakaki
1414e6b555
ein-mumamo.el supports new cell types now
2012-05-19 23:59:38 +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
b9b5dc57ba
Ask before killing Emacs if notebook is not saved
2012-05-19 18:16:35 +02:00