Commit graph

1176 commits

Author SHA1 Message Date
Takafumi Arakaki
6ea042867f Add more debugging messages in func-test.el 2012-08-23 21:17:19 +02:00
Takafumi Arakaki
dcad3c7158 Add debugging messages in func-test.el 2012-08-23 21:10:40 +02:00
Takafumi Arakaki
961f139fd1 Dump test log also in interactive mode 2012-08-23 21:07:55 +02:00
Takafumi Arakaki
5ca22029db Dump test log using ein-testing 2012-08-23 19:32:47 +02:00
Takafumi Arakaki
1198833711 Add ein-testing.el to dump test log 2012-08-23 19:32:24 +02:00
Takafumi Arakaki
a769aa3b03 Fix test ein:notebook-execute-current-cell-question for Emacs 23
At the time (ein:$notebook-pager ein:%notebook%) is executed, the
current buffer is changed to the pager buffer.  As `notebook' is
already let-bound to ein:$notebook instance, it is better to use
this than the buffer local ein:%notebook%.
2012-08-23 17:39:06 +02:00
Takafumi Arakaki
d7fd93774d Fix test ein:get-cell-at-point--shared-output for Emacs 23 2012-08-23 17:23:46 +02:00
Takafumi Arakaki
6b859c4caa Fix ein:connect-run-buffer (tramp support) 2012-08-22 18:05:19 +02:00
Takafumi Arakaki
2e8357afbf Fix ein:notebooklist-open-notebook-global
Check url-or-port when fetching notebook-id
2012-08-22 15:44:53 +02:00
Takafumi Arakaki
837dea249a Check if notebook is live in ein:connect-pop-to-notebook
This is important as `(pop-to-buffer nil)' actually works.
2012-08-21 15:48:44 +02:00
Takafumi Arakaki
d8aaa079ae Support more arguments in ein:connect-to-notebook 2012-08-21 15:36:22 +02:00
Takafumi Arakaki
7b5c28d860 Merge branch 'execute-cell-and-insert-below' into worksheet 2012-08-21 14:13:10 +02:00
Takafumi Arakaki
cbef38f13c Add tests for command ein:worksheet-execute-cell-and-* 2012-08-21 14:04:35 +02:00
Takafumi Arakaki
82c062f364 Update change log 2012-08-21 12:01:48 +02:00
Takafumi Arakaki
79691e658f Add ein:worksheet-execute-cell-and-insert-below 2012-08-21 12:01:47 +02:00
Takafumi Arakaki
77f9742cfe Add INSERT option to ein:worksheet-execute-cell-and-goto-next 2012-08-21 12:01:45 +02:00
Takafumi Arakaki
aa038f63bc Copy heading level when splitting cell 2012-08-21 11:13:16 +02:00
Takafumi Arakaki
ee1d46227f Update change log 2012-08-21 10:40:11 +02:00
Takafumi Arakaki
3a80c3a811 Fix: ein:notebook- -> ein:worksheet- in document
Surprisingly, there is only one command to fix.
2012-08-21 10:38:28 +02:00
Takafumi Arakaki
71472ddaac More docstring on ein:kernelinfo-update-* 2012-08-21 09:59:35 +02:00
Takafumi Arakaki
6f7bc7b7ca Fix notebook buffer directory sync with kernel 2012-08-21 09:59:08 +02:00
Takafumi Arakaki
0a0031b6c8 Merge branch 'autoexec-change-spec' into worksheet 2012-08-21 09:29:57 +02:00
Takafumi Arakaki
e2d5e7bfd9 Update change log 2012-08-21 09:27:53 +02:00
Takafumi Arakaki
21981de22f Document ein:connect-toggle-autoexec more 2012-08-21 09:26:28 +02:00
Takafumi Arakaki
37ab6ba028 Auto-execute on run/eval, not save
It is pointless to execute code in notebook unless some change in
the connected buffer is imported into the IPython kernel.  Therefore,
hooking auto-execution to run or eval makes more sense than hooking
it to save.
2012-08-21 09:13:12 +02:00
Takafumi Arakaki
a232a5d9b1 Improve docstring of ein:worksheet-execute-autoexec-cells 2012-08-21 08:29:58 +02:00
Takafumi Arakaki
92a7892139 Fix ein:worksheet-execute-autoexec-cells 2012-08-21 08:25:37 +02:00
Takafumi Arakaki
24df4cde68 Fix ein:worksheet-turn-on-autoexec
Argument using `&key' is needed to be passed with keyword always.
2012-08-21 08:24:07 +02:00
Takafumi Arakaki
e38bb5d528 Test that functions in ein:*-mode-map are bounded 2012-08-20 15:50:26 +02:00
Takafumi Arakaki
49c12dfd9b Add a test for the previous fix on ein:get-cell-at-point 2012-08-20 15:12:17 +02:00
Takafumi Arakaki
47cfc2238d Fix generic getters in ein-shared-output.el
Check if the current buffer is the shared output buffer before
retrieving any object.
2012-08-20 14:56:42 +02:00
Takafumi Arakaki
06ec418c12 Fix ein:notebook-mode-map 2012-08-20 13:53:14 +02:00
Takafumi Arakaki
e703ad50b9 Fix ein:notebook-from-json
Previously two empty worksheets were created when opening an empty
notebook.

Note that `(list (list :cells nil))' will also fix this bug.
2012-08-20 13:33:27 +02:00
Takafumi Arakaki
f820dbb94e Fix ein:worksheet-set-buffer-name 2012-08-20 13:31:24 +02:00
Takafumi Arakaki
6604392b5b Fix ein:worksheet-execute-cell-and-goto-next 2012-08-20 12:58:09 +02:00
Takafumi Arakaki
f7ed3be032 Fix misuse of prefix-arg (use current-prefix-arg)
sed -i -E -e 's/([^-])prefix-arg/\1current-prefix-arg/g' */*.el
2012-08-20 12:47:09 +02:00
Takafumi Arakaki
a0651292a4 Fix ein:worksheet-split-cell-at-point
It failed when there is no text after the point in cell.
Note that it seems that this bug existed before the "worksheet" branch.
2012-08-20 12:39:02 +02:00
Takafumi Arakaki
157ddfa31a Fix ein:notebook-execute-autoexec-cells 2012-08-20 11:55:00 +02:00
Takafumi Arakaki
eb5662e9c9 Fix ein:notebook-save-notebook-success
:dirty slot in worksheet was not set after saving notebook.
2012-08-20 11:40:16 +02:00
Takafumi Arakaki
d3bf631204 Rename: ...cells -> ein:worksheet-kill-cell
This is for symmetry with ein:worksheet-yank-cell
2012-08-20 11:22:33 +02:00
Takafumi Arakaki
9b4dcf55ca Add test ein:smartrep-notebook-mode-alist-fboundp 2012-08-20 11:08:36 +02:00
Takafumi Arakaki
fd54a58435 Add custom variable ein:smartrep-notebook-mode-alist 2012-08-20 11:08:25 +02:00
Takafumi Arakaki
0bda280360 Fix commands in ein-smartrep.el 2012-08-20 10:59:36 +02:00
Takafumi Arakaki
e2964b1473 Merge branch 'worksheet_fix-func-test' into worksheet
Previously failing functional tests in func-test.el now pass.
2012-08-20 10:51:39 +02:00
Takafumi Arakaki
37cacec4e9 Fix compiler warnings in func-test.el
%s/(ein:notebook-insert-cell-below-command)/(call-interactively #'ein:worksheet-insert-cell-below)/g
%s/(ein:notebook-execute-current-cell)/(call-interactively #'ein:worksheet-execute-cell)/g
2012-08-20 10:43:44 +02:00
Takafumi Arakaki
d13c3ae6a5 Merge branch 'worksheet_fix-test-ein-cell-notebook' into worksheet
Previously failing unit tests in test-ein-*.el now pass.
2012-08-20 10:39:14 +02:00
Takafumi Arakaki
dcde6ca1d9 Use :ewoc slot in ein:%notebook% to get EWOC
%s/(ein:$notebook-ewoc ein:%notebook%)/(oref ein:%worksheet% :ewoc)/

At this point, all tests pass.
2012-08-20 10:37:49 +02:00
Takafumi Arakaki
b4271558a0 Fix eintest:with-one-cell 2012-08-20 10:32:13 +02:00
Takafumi Arakaki
e712a3ff76 Merge branch 'worksheet_fix-test-ein-notebook' into worksheet
Previously failing tests in test-ein-notebook.el now pass.
2012-08-20 10:25:08 +02:00
Takafumi Arakaki
8156f160cf Fix test ein:notebook-undo-via-events 2012-08-20 10:22:24 +02:00