Takafumi Arakaki
9135a39c27
Little bit wiser ein:notebooklist-ask-url-or-port
2012-06-15 21:55:32 +02:00
Takafumi Arakaki
129858e681
Add ein:default-url-or-port configurable
2012-06-15 21:46:55 +02:00
Takafumi Arakaki
a105133bba
Kaymap is defined in top-level let clause
...
There should be no functional change by this change.
This makes it easier to change the keymap while running EIN.
I can just evaluate the let clause. In the previous version,
I couldn't do that because rebinding the keymap does not alter the
keymap used in the running mode.
2012-06-14 12:42:57 +02:00
Takafumi Arakaki
36b37a4ae5
Use URL or port associated to the buffer when completing
2012-06-12 22:33:46 +02:00
Takafumi Arakaki
10edb8d239
Tweak documents
2012-06-11 14:24:20 +02:00
Takafumi Arakaki
ea6bdb9a98
ein:notebooklist-new-notebook is a command now
2012-06-09 01:02:53 +02:00
Takafumi Arakaki
aa3647c84c
Add default to ein:notebooklist-open completion
2012-06-08 18:53:24 +02:00
Takafumi Arakaki
60bf46b929
Improve ein:notebooklist-open
2012-06-08 13:52:01 +02:00
Takafumi Arakaki
b4380093b2
Add ein:notebooklist-new-scratch-notebook
2012-06-08 13:40:42 +02:00
Takafumi Arakaki
d4a864e002
Add ein:notebooklist-new-notebook-with-name command
2012-06-08 12:59:14 +02:00
Takafumi Arakaki
2b881b4aa5
Fix ein:notebooklist-new-notebook
2012-06-08 12:39:50 +02:00
Takafumi Arakaki
1e295ecb4a
Fix variable name in ein:notebooklist-open-notebook
2012-06-08 11:03:38 +02:00
Takafumi Arakaki
119951651f
Add ein:notebooklist-open-notebook-global
2012-06-05 14:54:18 +02:00
Takafumi Arakaki
fbbff8b644
Remove hard-coded timeout
2012-05-27 02:03:58 +02:00
Takafumi Arakaki
f6bcb438e8
Rename s/data-type/parser/g
2012-05-26 20:23:22 +02:00
Takafumi Arakaki
5a65aba368
Add DATA-TYPE argument to ein:query-ajax
...
This solves the problem due to the url-retrieve gotcha.
Main changes:
* Separation of the function to parse buffer and callback.
This is good because parsed data can be used from multiple
callbacks (SUCCESS and STATUS-CODE).
* As a result, current buffer for callbacks is not process
buffer anymore. Callbacks should not assume any particular
current buffer.
* RESPONSE-STATUS is added to the arguments for callbacks
to pass around the value of url-http-response-status.
Previous attempts:
* cb5f53c183
:
Simpler and better fix than the previous one
* fff269fc39
:
ein:notebooklist-delete-notebook works again
2012-05-26 20:12:31 +02:00
Takafumi Arakaki
7a50ae0a3a
Add ein:notebooklist-new-notebook-callback
2012-05-26 19:53:23 +02:00
Takafumi Arakaki
9061e1c515
Use ein:query-ajax in ein:notebooklist-delete-notebook
2012-05-26 19:01:39 +02:00
Takafumi Arakaki
388a59efa2
Fix ein:notebooklist-new-notebook
...
Do not kill process buffer when using ein:query-ajax
2012-05-26 19:00:34 +02:00
Takafumi Arakaki
783e430105
Use ein:query-ajax in ein:notebooklist-new-notebook
2012-05-26 17:30:58 +02:00
Takafumi Arakaki
4d1166dcbd
Fix bugs in ein:notebooklist-open
...
There was two bugs:
* Process buffer was killed in ein:notebooklist-url-retrieve-callback
where should be handled by ein:query-ajax-callback. There was two
calls of kill-buffer. This is why the list buffer was killed.
* At the time ein:query-ajax-cancel-timer is called in
ein:query-ajax-callback the current buffer was changed because
pop-to-buffer is called in the callback. Wrapping callbacks
with save-current-buffer fixes the problem.
2012-05-26 17:13:17 +02:00
Takafumi Arakaki
c90d66f4f4
Use ein:query-ajax in ein:notebooklist-open
...
notebooklist-open does not work.
2012-05-26 16:57:42 +02:00
Takafumi Arakaki
6135204f62
Go to the top of notebook list on open/refresh
2012-05-25 18:13:44 +02:00
Takafumi Arakaki
ce193c1421
Add "Open In Browser" button in the list buffer
2012-05-19 17:09:22 +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
bfafc1ac0e
Open newly created notebook directly from the list
2012-05-18 02:23:30 +02:00
Takafumi Arakaki
60eb668803
Add eintest:wait-until for faster functional test
2012-05-17 20:47:23 +02:00
Takafumi Arakaki
575f0d852b
Add bare-bones functional testing
2012-05-17 20:12:40 +02:00
Takafumi Arakaki
2050e9529e
Key "q" for burying notebook list buffer
2012-05-17 04:10:27 +02:00
Takafumi Arakaki
71d964ee87
Put no default when completing url-or-port
...
... because you need to delete existing URL or PORT to use completion
if there is already something in minibuffer.
2012-05-16 19:56:11 +02:00
Takafumi Arakaki
4a07075806
Add completion in ein:notebooklist-open
2012-05-16 19:44:01 +02:00
Takafumi Arakaki
04b339812b
Add ein:notebooklist-{prev,next}-item
2012-05-15 04:16:06 +02:00
Takafumi Arakaki
d107a075b9
Remove ein:notebook-keymap
2012-05-15 03:44:53 +02:00
Takafumi Arakaki
a494a16f50
Add ein:notebooklist-mode
2012-05-15 03:41:08 +02:00
Takafumi Arakaki
ec45bec664
Support lazy loading by default
2012-05-14 18:51:50 +02:00
Takafumi Arakaki
9024f273b2
Notebook can be deleted now
2012-05-13 06:51:26 +02:00
Takafumi Arakaki
93ba882240
Fix: convert string port number to integer
...
ein:notebooklist-open was not working when port number was given interactively.
2012-05-13 06:26:51 +02:00
Takafumi Arakaki
906cb8e236
Check status code in ein:notebooklist-url-retrieve-callback
2012-05-13 06:24:46 +02:00
Takafumi Arakaki
681479a69d
ein:notebooklist-open asks URL/port now
2012-05-13 05:33:20 +02:00
Takafumi Arakaki
c477e5de2e
Add "g" as a keybind for updating list
2012-05-13 05:26:01 +02:00
Takafumi Arakaki
4bcc662793
Add "Reload List" button
2012-05-13 05:18:38 +02:00
Takafumi Arakaki
c88da06bec
Big refactoring over URL to allow multiple servers
...
URL was fixed in the previous version. As Emacs does not know URL of
IPython web server like JS does implicitly by page location, I need to
pass URL around in notebook list/notebook/kernel. I add `url-or-port'
slot to each structs so it is easy to get URL from the struct.
2012-05-13 03:49:40 +02:00
Takafumi Arakaki
e0cfc90662
Add ein:deflocal to eliminate boilerplate
2012-05-12 22:55:44 +02:00
Takafumi Arakaki
0f6d6afa5e
Document ein-notebooklist.el
2012-05-12 00:59:15 +02:00
Takafumi Arakaki
02a0681d5c
Move [Open] button to the left of the line
2012-05-12 00:48:39 +02:00
Takafumi Arakaki
5d7f6adb86
Support new notebook creation
2012-05-12 00:34:00 +02:00
Takafumi Arakaki
a074a168c9
First commit of bare bone version
2012-05-07 14:41:15 +02:00