Takafumi Arakaki
d25f6a1c02
Treat discarding case better in ein:notebook-ask-before-kill-buffer
...
Note that the test ein:notebook-to-json-after-closing-a-worksheet
fails now.
2012-08-30 02:34:25 +02:00
Takafumi Arakaki
b56644d9b6
Include scratch sheet in ein:notebook-buffer
...
Now it is possible to have worksheet buffer closed but scratchsheet
buffer opened. In this case, ein:notebook-live-p should return t
and ein:notebook-buffer should return the scratchsheet buffer.
This is because notebook commands can such as save or rename can be
executed from the scratchsheet buffer.
ein:notebook-to-json-after-closing-a-worksheet is modified also
this test fails without the change in ein:notebook-buffer.
2012-08-29 21:04:24 +02:00
Takafumi Arakaki
1f8f7dd8c8
Fix ein:notebook-close-worksheet
...
What ein:notebook-close-worksheet did was horribly wrong.
It deleted a worksheet. Instead, now it properly close worksheet.
The failing test added in the previous commit passes now
(ein:notebook-to-json-after-closing-a-worksheet).
2012-08-29 21:04:03 +02:00
Takafumi Arakaki
fb0ea65943
Add a note on ein:notebook--worksheet-render
2012-08-28 22:42:14 +02:00
Takafumi Arakaki
e3f15e649c
Simplify notification module setup
2012-08-28 21:48:06 +02:00
Takafumi Arakaki
3d76a1a225
Remove notification slot from ein:worksheet
...
What notification module needs to know is its buffer and the events
handler. So there is no reason to keep it in the worksheet slot.
Besides, setting header-line-format before calling notebook-mode
is not good because setting major mode discards header-line-format.
So, notification is setup in notebook module now.
2012-08-28 21:43:57 +02:00
Takafumi Arakaki
cf30b4f74e
Make ein:notebook-discard-output-on-save obsolete
2012-08-28 21:17:49 +02:00
Takafumi Arakaki
cbe1ab3904
Add discard-output-p slot in ein:worksheet
2012-08-28 20:51:18 +02:00
Takafumi Arakaki
848771a724
Remove two more notebook functions from ein-notebook.el
2012-08-28 18:12:51 +02:00
Takafumi Arakaki
e93801f101
Add get-notebook-name slot in ein:worksheet
2012-08-28 18:00:32 +02:00
Takafumi Arakaki
1bf5bfd0da
Set nbformat in scratchsheet also
2012-08-28 18:00:31 +02:00
Takafumi Arakaki
380d5504f1
Add nbformat slot in ein:worksheet
...
So that I can remove the line:
(declare-function ein:$notebook-nbformat "ein-notebook")
2012-08-28 18:00:29 +02:00
Takafumi Arakaki
8ffc065a5a
Move maybe_reset_undo event to worksheet
2012-08-28 16:39:32 +02:00
Takafumi Arakaki
23c75f5a2b
Add FIXME on ein:notebook-discard-output-on-save
2012-08-28 16:32:39 +02:00
Takafumi Arakaki
5e22f31dfe
ein:notebook-enable-undo -> ein:worksheet-enable-undo
2012-08-28 16:28:14 +02:00
Takafumi Arakaki
ca8c1678fe
(require 'ein-utils) -> (require 'ein-core)
2012-08-28 15:26:32 +02:00
Takafumi Arakaki
a31184a5b6
Add commands ein:worksheet-previous/next-input-history
2012-08-28 12:23:47 +02:00
Takafumi Arakaki
8b052354f6
Simplify words in notebook menu
2012-08-28 09:12:31 +02:00
Takafumi Arakaki
c96687ad0a
Organize notebook menu
2012-08-28 09:02:07 +02:00
Takafumi Arakaki
ab21912876
Add ein:iexec-mode to notebook menu
2012-08-28 08:31:49 +02:00
Takafumi Arakaki
31951b51f3
Add ein:pseudo-console-mode to notebook menu
2012-08-28 08:24:56 +02:00
Takafumi Arakaki
d47f2c583d
Fix ein:notebook-close-worksheet
...
Treat scratchsheets as well.
2012-08-28 00:52:39 +02:00
Takafumi Arakaki
9e2330fa09
Fix ein:notebook-scratchsheet-new
...
Actually the slot ein:$notebook-scratchsheets was not used.
2012-08-28 00:52:01 +02:00
Takafumi Arakaki
d461afeccb
set_dirty.Notebook -> set_dirty.Worksheet
2012-08-27 23:21:47 +02:00
Takafumi Arakaki
465c4a446a
Section comments on ein-notebook.el
2012-08-27 18:34:25 +02:00
Takafumi Arakaki
59607cd117
Fix ein:notebook-scratchsheet-open
2012-08-27 18:28:09 +02:00
Takafumi Arakaki
83106da92c
Bind C-c C-/ to ein:notebook-scratchsheet-open
2012-08-27 18:28:09 +02:00
Takafumi Arakaki
83477934a5
Support opening new scratchsheet
2012-08-27 18:28:07 +02:00
Takafumi Arakaki
d5ffb38436
Add a new command ein:notebook-scratchsheet-open
2012-08-27 18:28:04 +02:00
Takafumi Arakaki
4b9d10d5c9
Ignore scratchsheet in ein:notebook-ask-before-kill-buffer
2012-08-27 17:58:00 +02:00
Takafumi Arakaki
46b1f314db
Support scratchsheets in ein:notebook-buffer-list
2012-08-27 17:57:59 +02:00
Takafumi Arakaki
791da37ed8
Add scratchsheets slot in ein:$notebook
2012-08-27 17:57:59 +02:00
Takafumi Arakaki
785355c3ca
Activate codecell menu conditionally
2012-08-27 14:22:27 +02:00
Takafumi Arakaki
1a08ea429d
Simple menu for notebook
2012-08-27 14:11:41 +02:00
Takafumi Arakaki
a92145001b
Document ein:notebook-modified-p
2012-08-27 00:08:19 +02:00
Takafumi Arakaki
1620bc4fe1
Simplify how ein:notebook-setup-kill-buffer-hook is called
2012-08-27 00:02:36 +02:00
Takafumi Arakaki
76fadb2b4b
Make ein:notebook-ask-before-kill-emacs more robust
2012-08-26 23:56:43 +02:00
Takafumi Arakaki
7353d7f665
Setup kill-buffer-hook in ein:notebook-python-mode
2012-08-26 23:45:43 +02:00
Takafumi Arakaki
2e100486fd
Add ein:notebook-close-worksheet
...
This is for coming multiple worksheet support.
2012-08-26 23:33:51 +02:00
Takafumi Arakaki
22a316d48f
Remove ein:*-sync-directory
...
As kernelinfo does the job, these functions are not needed.
2012-08-26 23:10:20 +02:00
Takafumi Arakaki
d60d77380e
Support multiple buffers in ein:notebook-close
2012-08-26 23:07:45 +02:00
Takafumi Arakaki
438926a5cc
Rename: ...collapsed-all -> ...output-visibility-all
2012-08-26 18:16:53 +02:00
Takafumi Arakaki
63a2e70717
%s/ein:kernelinfo-setup /ein:kernelinfo-new /g
2012-08-26 16:53:22 +02:00
Takafumi Arakaki
7eb6a0a57e
Fix ein:$notebook docstring
2012-08-26 16:46:33 +02:00
Takafumi Arakaki
119fd59648
kernelinfo supports multiple buffers now
2012-08-26 16:27:28 +02:00
Takafumi Arakaki
f83623ace6
Move kernelinfo into a separate module
2012-08-26 15:14:59 +02:00
Takafumi Arakaki
acff775e4c
Remove ein:notebook-pp
2012-08-26 13:25:47 +02:00
Takafumi Arakaki
79691e658f
Add ein:worksheet-execute-cell-and-insert-below
2012-08-21 12:01:47 +02:00
Takafumi Arakaki
6f7bc7b7ca
Fix notebook buffer directory sync with kernel
2012-08-21 09:59:08 +02:00
Takafumi Arakaki
06ec418c12
Fix ein:notebook-mode-map
2012-08-20 13:53:14 +02:00