Commit graph

127 commits

Author SHA1 Message Date
Takafumi Arakaki
d8dd8dd3a7 Use cons for the EVENT-TYPE instead of a symbol
This simplifies case matching.
2012-05-22 14:30:23 +02:00
Takafumi Arakaki
b66832ca58 Encapsulate event handling in a class
Various `ein:events-*' function was seeing buffer local variables
which causes the problem when triggering events from non-notebook
buffer.  To fix that problem, and prepare for the future change
which may increase event channels, the status variable used for
header line is encapsulated in a class.
2012-05-22 14:20:08 +02:00
Takafumi Arakaki
85c90fc6c6 Fix ein:notebook-handle-shell-reply
This fix is as same as the previous commit:
`msg_type' was fetched from top level reply object where it should be
fetched from `header'.
2012-05-22 02:54:14 +02:00
Takafumi Arakaki
a02a4a4221 Fix ein:notebook-handle-iopub-reply
`msg_type' was fetched from top level reply object where it should be
fetched from `header'.
2012-05-22 02:49:44 +02:00
Takafumi Arakaki
5595d8188f Treat dead kernel status better 2012-05-22 01:37:46 +02:00
Takafumi Arakaki
34745e740b Add keybind: C-c C-r restarts kernel 2012-05-22 01:09:33 +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
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
70866498af Event notification using header-line 2012-05-21 05:48:49 +02:00
Takafumi Arakaki
91059bec30 Support application/emacs-lisp mime type 2012-05-21 01:46:37 +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
b9b5dc57ba Ask before killing Emacs if notebook is not saved 2012-05-19 18:16:35 +02:00
Takafumi Arakaki
49911f4bc1 Close kernel when notebook buffer is closed 2012-05-19 18:01:29 +02:00
Takafumi Arakaki
429b97706d Add ein:notebook-open-in-browser command 2012-05-19 17:16:30 +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
9d430ef55c Add defcustomizes for notebook console setting 2012-05-19 15:03:55 +02:00
Takafumi Arakaki
8fbcccfae9 Better error message when cell merging fails 2012-05-19 13:49:17 +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
Takafumi Arakaki
218a2e28ed Fix a bug and add more tests for cell splitting 2012-05-19 04:19:17 +02:00
Takafumi Arakaki
6bc632b574 Trim newlines in ein:notebook-split-cell-at-point 2012-05-19 03:56:43 +02:00
Takafumi Arakaki
3ce948c6ec "Sync" keymaps instead of top-level assignment 2012-05-18 23:41:33 +02:00
Takafumi Arakaki
68b61b5e99 Minor change in ein:notebook-mode-map 2012-05-18 22:21:34 +02:00
Takafumi Arakaki
1b749cca74 Add ein:notebook-clear-output-command 2012-05-18 22:20:12 +02:00
Takafumi Arakaki
62f3b2fefe Add ein:notebook-clear-all-output-command 2012-05-18 22:12:18 +02:00
Takafumi Arakaki
826488d4f2 Use nbformat sent from the server 2012-05-18 21:10:17 +02:00
Takafumi Arakaki
5804e9c1bd C-u C-c C-f opens help pager for the object at point 2012-05-18 04:31:57 +02:00
Takafumi Arakaki
2c80b07f2f Add ein:notebook-request-help-command 2012-05-18 04:30:49 +02:00
Takafumi Arakaki
b095606400 Fix a bug in ein:notebook-goto-input
C-c C-p did not work when in the cell input.
2012-05-18 03:54:23 +02:00
Takafumi Arakaki
69672a3991 Check if cached notebook buffer is live 2012-05-18 03:48:36 +02:00
Takafumi Arakaki
4a652e4628 Do not discard changes when opening opened buffer
The problem: Opening already opened notebook silently discarded what
was in the notebook and open the last saved version.  Now, opened notebook
buffer is cached and reused when opening it later time.
2012-05-18 03:39:39 +02:00
Takafumi Arakaki
4ef5d01c04 Unbind key from ein:notebook-render command
It was there for debugging purpose.
2012-05-18 03:09:02 +02:00
Takafumi Arakaki
f76eec5a7e Cosmetic change 2012-05-18 03:04:44 +02:00
Takafumi Arakaki
49545be8bd Make goto-next/prev-cell behave more intuitively 2012-05-18 02:59:00 +02:00
Takafumi Arakaki
a562c7a19d Add ein:notebook-move-cell-up/down-command 2012-05-18 01:38:59 +02:00
Takafumi Arakaki
575f0d852b Add bare-bones functional testing 2012-05-17 20:12:40 +02:00
Takafumi Arakaki
cbbd118236 Add ein:notebook-split-cell-at-point command 2012-05-17 15:48:21 +02:00
Takafumi Arakaki
89a9b94795 Add ein:notebook-restart-kernel-command 2012-05-17 05:35:38 +02:00
Takafumi Arakaki
ce8b0c0631 Add ein:notebook-execute-all-cell 2012-05-17 05:27:22 +02:00
Takafumi Arakaki
052497e145 Add ein:notebook-execute-current-cell-and-goto-next 2012-05-17 04:10:25 +02:00
Takafumi Arakaki
af32cdf15c Retry once after failed notebook saving
This work around the issue #3.
2012-05-17 04:10:19 +02:00
Takafumi Arakaki
0d6d04463f Add ein:notebook-set-collapsed-all 2012-05-16 21:18:25 +02:00
Takafumi Arakaki
ad05fa8f8d Support collapsed cell 2012-05-16 20:47:05 +02:00
Takafumi Arakaki
e1fd1a1364 Add test and fix inter-buffer yanking 2012-05-16 12:58:59 +02:00