Commit graph

301 commits

Author SHA1 Message Date
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
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
Takafumi Arakaki
a32c2012e2 Do not use ein:notebook-plain-mode from mumamo 2012-05-19 18:02:03 +02:00
Takafumi Arakaki
49911f4bc1 Close kernel when notebook buffer is closed 2012-05-19 18:01:29 +02:00
Takafumi Arakaki
2fe94dac61 Add ein:log-print-level/length
to prevent logging huge strings.
2012-05-19 17:26:26 +02:00
Takafumi Arakaki
db21703182 Remove ein:@notebook from debug-ein.el 2012-05-19 17:18:45 +02:00
Takafumi Arakaki
429b97706d Add ein:notebook-open-in-browser command 2012-05-19 17:16:30 +02:00
Takafumi Arakaki
ce193c1421 Add "Open In Browser" button in the list buffer 2012-05-19 17:09:22 +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
ab68e63b94 Refactor long lines due to ein:@notebook removal 2012-05-19 16:07:18 +02:00
Takafumi Arakaki
01dda741cf Remove ein:@notebook macro 2012-05-19 16:03:27 +02:00
Takafumi Arakaki
525145defa Make subpackage customization easier
* add ein:use-SUBPACKAGE customizable variables.
* add ein:SUBPACKAGE-config-once fuctions.
* add ein:subpackages-load function.
2012-05-19 15:47:09 +02:00
Takafumi Arakaki
9d430ef55c Add defcustomizes for notebook console setting 2012-05-19 15:03:55 +02:00
Takafumi Arakaki
0569ca5f93 Define ein:url-or-port using defcustom 2012-05-19 14:34:00 +02:00
Takafumi Arakaki
8fbcccfae9 Better error message when cell merging fails 2012-05-19 13:49:17 +02:00
Takafumi Arakaki
8ecd3100c4 Add tests for ein:notebook-merge-cell-command 2012-05-19 13:48:27 +02:00
Takafumi Arakaki
d690f9217b Add new command ein:notebook-merge-cell-command 2012-05-19 13:27:38 +02:00
Takafumi Arakaki
cb1eab8d80 Add new function ein:cell-location and its tests 2012-05-19 13:10:44 +02:00