Commit graph

90 commits

Author SHA1 Message Date
Takafumi Arakaki
a65822a982 Add ein:notebook-turn-on-autoexec command 2012-07-29 17:11:57 +02:00
Takafumi Arakaki
b329b03bdd Change connect-mode lighter depending on :autoexec 2012-07-29 17:11:57 +02:00
Takafumi Arakaki
dbfeb30f89 Invoke auto-execution via after-save-hook 2012-07-29 17:11:57 +02:00
Takafumi Arakaki
04a121ad72 Add ein:notebook-execute-autoexec-cells 2012-07-29 17:11:57 +02:00
Takafumi Arakaki
1451d7ff6b Add autoexec slot and functions to toggle 2012-07-29 17:11:57 +02:00
Takafumi Arakaki
fa9b845b3e Change ein:iexec-mode lighter 2012-07-29 17:11:30 +02:00
Takafumi Arakaki
e75c562181 Don't require rst.el in ein-dev.el
This workarounds the bug in rst.el:

rst.el: Symbol's function definition is void: copy-list
https://sourceforge.net/tracker/?func=detail&aid=3551316&group_id=38414&atid=422030
2012-07-29 14:18:30 +02:00
Takafumi Arakaki
4406d00e33 Rename ein-autoexec.el to ein-iexec.el 2012-07-29 14:17:05 +02:00
Takafumi Arakaki
a512a33a35 Correct max-num-outputs 2012-07-28 02:02:49 +02:00
Takafumi Arakaki
d65394ff75 Fix how ein:cell-max-num-outputs is treated
Previous version added newline after "." every time when the new
output is sent from the server.
2012-07-28 01:52:31 +02:00
Takafumi Arakaki
1a6f4cfa58 Inherit ein:pos-tip-face from popup-tip-face 2012-07-25 22:16:37 +02:00
Takafumi Arakaki
5af748430b Fix tooltip help when it is not found
ein:kernel-construct-help-string returned empty string when help
is not found in the previous version.
2012-07-25 21:54:56 +02:00
Takafumi Arakaki
3a968a9b18 Autoload ein:notebooklist-new-notebook 2012-07-25 20:52:48 +02:00
Takafumi Arakaki
ae4ed72938 ein:notebooklist-new-notebook works w/o notebook list
Previously, ein:notebooklist-new-notebook needs opened notebook
list buffer to work.  This constraint is removed since the notebook
buffer is used just to retrieve url-or-port variable.

fixes #33
2012-07-25 20:48:27 +02:00
Takafumi Arakaki
b90e18f1ff Do not duplicate "~" in path when completing
fixes #26
2012-07-25 19:34:21 +02:00
Takafumi Arakaki
8827f2d9e6 Tweak debug log in ein:kernel-construct-help-string 2012-07-25 18:59:41 +02:00
Takafumi Arakaki
19563ceb4e Refactor ein:kernel-construct-help-string 2012-07-25 18:55:55 +02:00
Takafumi Arakaki
c07b273fcb Fold call signature in ein:kernel-construct-help-string
fixes #14
2012-07-25 18:51:02 +02:00
Takafumi Arakaki
dcb7a99afc Fix debug-ein.el: use proper config 2012-07-23 20:49:16 +02:00
Takafumi Arakaki
99c0441992 Respect ein:use-auto-complete in ein:completer-choose 2012-07-23 20:37:32 +02:00
Takafumi Arakaki
182cfe8672 Add debug logs in finish-completing functions 2012-07-23 20:33:46 +02:00
Takafumi Arakaki
96b4c554ac Fix byte-compile warning
This fixes the following compile warning when lisp files are
compiled together by:
    emacs ... -batch -f batch-byte-compile lisp/*.el

This is the warning:

In end of data:
lisp/ein-notebooklist.el:397:1:Warning: the function `ein:default-url-or-port'
    might not be defined at runtime.

I don't know why this warning occurs, but as the line removed is
not needed any more, this is an OK change.
2012-07-22 18:07:06 +02:00
Takafumi Arakaki
dd5ba89a16 Add tests for ein-autoexec.el 2012-07-22 17:40:35 +02:00
Takafumi Arakaki
91af6700ce Fix the problem with autoexec and insert
The problem was that ein:cell-input-pos-min/max fail when called
during the insertion, because the input area does not exist yet
when inserting, for example prompt EWOC node.  This is fixed in
the previous commit 0205188933.
They return nil when there is no input area yet.  So,
ein:autoexec-after-change checks if they return nil or not now.
2012-07-22 17:07:17 +02:00
Takafumi Arakaki
0205188933 Make ein:cell-input-pos-min/max more robust
EWOC node for input area may not be set when these function is called.
However, error should not be raised even so.
2012-07-22 16:57:41 +02:00
Takafumi Arakaki
3d61551215 Remove unused variable from ein:cell-input-pos-min 2012-07-22 16:50:45 +02:00
Takafumi Arakaki
c6adb4ff56 Document ein:autoexec-mode 2012-07-22 16:02:14 +02:00
Takafumi Arakaki
66ea6f6d10 Add autoload for ein:autoexec-mode in ein.el 2012-07-22 16:01:53 +02:00
Takafumi Arakaki
15efdd2ce5 Add delay before auto execution 2012-07-22 15:53:00 +02:00
Takafumi Arakaki
b97586fbc1 Add ein-autoexec.el 2012-07-22 15:40:41 +02:00
Takafumi Arakaki
1561cffa4a Add some autoloads for ein:dev-* funcs in ein.el 2012-07-22 14:24:34 +02:00
Takafumi Arakaki
ccf79152bf Use websocket-callback-debug-on-error in ein-dev 2012-07-22 14:14:31 +02:00
Takafumi Arakaki
dfeadad28d Add more log levels to suppress logs from MuMaMo
Solving #25 (sub-package level logger) will be the ultimate solution.
But probably this is enough.
2012-07-22 13:16:29 +02:00
Takafumi Arakaki
8ca8c1ba13 Add more debug logging in shell/iopub-reply 2012-07-22 13:04:09 +02:00
Takafumi Arakaki
6f76750318 Comment/document functions 2012-07-22 01:22:54 +02:00
Takafumi Arakaki
95c1ea5812 Ultra super aggressive workaround
Bit long code block is inserted during indentation to avoid error
in some cases.

fixes #24
2012-07-22 00:34:15 +02:00
Takafumi Arakaki
3ba35ec7a1 Generalize the workaround for indent in MuMaMo
Do the workaround bit more aggressive, in order to apply in cases
other than the cursor-at-the-end-of-input.

fixes #36
2012-07-22 00:11:35 +02:00
Takafumi Arakaki
bcc15f032c Make ein:notebook-change-cell-type lisp-friendly 2012-07-21 15:01:31 +02:00
Takafumi Arakaki
21f18c105e Do not move point after converting cell type 2012-07-21 14:36:28 +02:00
Takafumi Arakaki
3934f8471a Add optional RELPOS argument to ein:cell-goto 2012-07-21 14:32:11 +02:00
Takafumi Arakaki
34a10d38b5 Add ein:cell-relative-point function 2012-07-21 14:31:42 +02:00
Takafumi Arakaki
0e385ceb69 Fix: copying heading cell discarded level info 2012-07-21 14:28:14 +02:00
Takafumi Arakaki
e6ad9bc9f3 Stop requiring mumamo-cmirr as it is not used
I don't remember why mumamo-cmirr is needed, but removing mumamo-cmirr
does not causes compile waring or error and notebook works.

See also: #39
2012-07-21 12:34:10 +02:00
Takafumi Arakaki
d3d4f1e7c3 Represent heading level using #'s in Imenu 2012-07-21 03:32:25 +02:00
Takafumi Arakaki
9bd3b249ff Use overlay to specify ein:cell-heading-N faces
As there is some problem with text property based face and MuMaMo,
using text property for heading is not good idea.  Turing on/off
heading face changes height and moves the following contents in the
notebook.  This is not allowable.

Furthermore, previous approach does not work when there is no text
in the input area or when inserting in front of the current heading.
2012-07-20 20:51:37 +02:00
Takafumi Arakaki
a18c3a8035 Add heading faces 2012-07-20 20:38:04 +02:00
Takafumi Arakaki
cdf2d7ea11 Better position for imenu 2012-07-20 20:07:12 +02:00
Takafumi Arakaki
150cd45664 Workaround the buffer local problem in MuMaMo 2012-07-20 20:07:12 +02:00
Takafumi Arakaki
b228a312e5 Add simple imenu support in notebook buffer
It concerns only heading cells.
2012-07-20 20:07:12 +02:00
Takafumi Arakaki
2154742c45 Better focus after ein:notebook-change-cell-type 2012-07-20 20:06:55 +02:00