Commit graph

373 commits

Author SHA1 Message Date
dickmao
53ab1c34f3 Normalize keymap and menu commands
Apply same "km wrapper" and docstring to key and menu bindings.
2020-03-14 00:13:57 -04:00
dickmao
160a0aa885 ein:login autoload bug 2020-03-05 09:22:04 -05:00
dickmao
54cb27701f remove longstanding recursive requires workaround 2020-02-29 22:35:49 -05:00
dickmao
34e9ef39d1 must autoload ob-ein-anonymous-p, not declare-function 2020-02-19 10:01:18 -05:00
dickmao
0fc8259f18 cleanups 2020-02-17 16:36:22 -05:00
dickmao
4fc4c67f87 Closes #668 2020-02-17 07:52:32 -05:00
dickmao
ec67737883 poly-ein--record-window-buffer
`C-x b` should take me back to base notebook buffer, if not indirect buffer.
2020-02-15 14:29:00 -05:00
John Miller
8ac0b90bf9 Missing pieces for pager support. 2020-02-09 21:01:17 -07:00
dickmao
caa760f9d7 test undo in combination with worksheet-execute-all-cells 2020-02-08 19:04:18 -05:00
dickmao
b478940c9f syntax-propertize-chunks takes us too far afield 2020-02-08 13:49:35 -05:00
dickmao
aa3159c2af modify readme 2020-02-05 10:21:27 -05:00
Tomasz Mieszkowski
b2267afcfa Add commands to execute all cells above/below current one 2020-02-04 21:18:58 -05:00
dickmao
f4d6d4e9a8 remove pytools cruft, only print polymode-mode-name-aliases warning once 2020-01-23 11:25:27 -05:00
dickmao
4467a25ad9 syntax-multiline was not way to go 2020-01-17 14:17:46 -05:00
dickmao
be137e0564 hack to replace nil with empty hashtable in output metadata 2020-01-16 18:39:49 -05:00
dickmao
f9dfd390af expand-file-name on read-directory 2020-01-15 14:16:28 -05:00
dickmao
a786b76fc0 embed notebooklist-reload in ein:notebook-open callback 2020-01-13 11:51:20 -05:00
dickmao
ba530cfa95 before embedding notebooklist reloader into ein:notebook-open 2020-01-13 11:38:21 -05:00
dickmao
6ea920dd0f notebooklist delete 2020-01-12 23:01:26 -05:00
dickmao
b749cf7792 cl-mapcan 2020-01-11 21:04:36 -05:00
dickmao
f8e6bebbab scratch one scratch all 2020-01-11 20:52:58 -05:00
dickmao
fbbace4b34 make sense of scratchsheet kill behavior 2020-01-11 18:19:34 -05:00
dickmao
702f04064a :image/png not :png 2020-01-11 16:03:54 -05:00
dickmao
8a545c508b close notebook on delete 2020-01-10 23:58:51 -05:00
dickmao
5de0c8b8a4 remove multilang 2020-01-07 16:44:22 -05:00
dickmao
b7188ff51f remove ein:polymode 2020-01-04 11:28:56 -05:00
dickmao
f7180405d6 makes test 2020-01-02 20:09:42 -05:00
dickmao
e12a33588d replace ein:aif with aif 2019-11-24 00:17:52 -05:00
dickmao
d0d13c8277 get 25.1 to compile 2019-11-13 17:46:50 -05:00
dickmao
49a1c54b00 compile properly (very suspect :mode slot misspecifications in poly-ein) 2019-11-13 13:54:29 -05:00
dickmao
bcf1c2ac55 purge
purge

align pm:get-span no major mode error with diagnostic

purge
2019-11-08 16:05:11 -05:00
dickmao
c4d38c9b3f Follow-up to "simple fixes"
`company-backends' is special-variable-p so I don't believe it can be
buffer-local.

avoid eager loading of ess or julia.

if one changes the minimal tested version of emacs, one should `make
README` to reflect.  Also, reverted back to 25.1 because #509.

no need for evm under osx (purcell).

restore a completion test (after disabling company-frontends).
2019-10-07 11:58:30 -04:00
Miller
58db03836c company-backends is a buffer-local variable
We have to be careful about setting it globally because that seems to be causing
some conflicts, better to set it at the buffer level when we are opening a
notebook otherwise ein:company-backend may not be activated.
2019-10-06 18:05:36 -05:00
dickmao
1bdb5b0651 Polymode bugfixes
Because global-font-lock-mode will call font-lock-initial-fontify, the
inconsistency caused by nullifying font-lock-function while preserving
font-lock-fontify-buffer-function causes the whole buffer to get
fontified in polymode

Commit a969736 duplicated the before-until advice on
syntax-propertize.  This broke polymode badly, and yet none of my
tests catch this (partly because it's hard to test font-lock).
2019-06-10 19:10:55 -04:00
John Miller
8a6b8aade1
Merge pull request #541 from millejoh/issue-523
Issue 523
2019-05-25 16:39:35 -05:00
dickmao
ceda628f92 Standardize metadata a bit 2019-05-25 11:31:05 -04:00
John Miller
fe3430102c Add documentation, work around smartrep.
I am starting to get annoyed by smartrep...
2019-05-25 10:23:22 -05:00
dickmao
f79a211c6c The only thing necessary for the triumph of evil...
Protect against undo-tree-mode both now and in the future.
2019-05-24 16:39:06 -04:00
Miller
321d0e6c15 ein-notebook: Command to jump to an open notebook buffer.
Per issue #523, add a command that let's user select and switch to an open
notebook buffer.
2019-05-24 14:15:36 -05:00
dickmao
e491ac6f1c Ob-ein Improvements
Bring the org offering to feature parity.
2019-05-20 10:59:43 -04:00
dickmao
6e53d8f1a8 futz with undo.ipynb 2019-05-16 10:15:11 -04:00
dickmao
8738fa5e0a If you see something, say something
Avoid silently failing as in #530 where kernelspec language is unrecognized.
2019-05-16 09:47:24 -04:00
dickmao
f4d301d8c9 Cleanup save-before-quit logic, and polymode kill buffer bugfix
Before: Exit emacs with modified notebooks.  Be asked "You have
unsaved notebooks.  Discard changes?"  Respond no, and manually figure
out which notebooks haven't been saved.

After: Exit emacs with modified notebooks.  Be asked "Save A?".
Respond yes.  Quit without further ado.

Also, bugfix killing of buffers in polymode.  Must kill host buffer,
not indirect buffers.
2019-05-07 09:54:20 -04:00
John Miller
70845a3411
Use completing-read instead of ido-completing-read. (#514)
* Use completing-read instead of ido-completing-read.

Per @seagle0128 and issue #496.

* lisp/ein-notebook.el:

* Wrap all calls to completing-read with ein:completing-read

Use `ein:completing-read' everywhere we need to do completion as it wraps Emacs
completing-read functionality and tries to use sane defaults.
2019-04-16 10:04:11 -05:00
dickmao
539c3339dd Undo did not account for slideshow
C-c C-d breaks undo.  Fix as follows:

Before: turn on slide indicator via C-c S, toggle type with C-c C-d

After: toggle type with C-c S.

Benefits: Fixes undo, simplifies slideshow operation, elpy users are
accustomed to having C-c C-d be "jump to doc"
2019-04-04 05:45:34 -04:00
dickmao
f34bdf32ff irnb is a kagglism that jupyter doesn't understand 2019-04-02 19:40:34 -04:00
dickmao
234cf391f9 Polymode
M-x customize-group RET ein
Toggle Ein:Polymode

Avoid trying to emulate jump-to-definition, eldoc, and autocompletion
functionalities that Elpy will always do better.

Fixes #497 #482 #418
2019-04-02 09:35:17 -04:00
John Miller
419a74ce67
Connect features (#492)
* Testing for shared eval and connecting buffers.

* Forgot the feature.

* Need a small delay to make sure code is evaluated.

* Testing for shared eval and connecting buffers.

* Forgot the feature.

* Need a small delay to make sure code is evaluated.

* Add scenario for company completion in a connected buffer.

* Works better if we test completion first.

* Update ipython version tested in travis.

* Stab in the dark to fix travis erroring under ipython 6.x

* Revert "Stab in the dark to fix travis erroring under ipython 6.x"

This reverts commit 7255d31fdb.
2019-03-27 15:53:47 -05:00
dickmao
042cda12a1 spacemacs related #445 #489 #338, etc. 2019-03-16 13:49:58 -04:00
dickmao
ed6482096e Add ob-ein tests
Also, speed up login and other cleanups
2019-02-19 10:06:15 -05:00