Commit graph

45 commits

Author SHA1 Message Date
Sam Steingold
9cb9dd7345 now that auto-complete is an official dependency, we can require it unconditionally
this allows us to get rid of the ugly eval on a macro
2018-05-31 19:55:45 -04:00
John Miller
85968e476c ein-jedi: Truly integrate jedi into ac backend.
Until now autocompletion was using kernel complete mechanism regardless of
`ein:completion-backend' setting.
2017-08-03 08:50:07 -05:00
John Miller
d13e85b370 Minimally functional company-mode support.
There is now a company mode backend for ein. It generates completions by sending
complete_request to the running kernel so for the moment no jedi integration.

Configuring is maybe non-obvious - user should at minimum set
`ein:use-auto-complete` and `ein:use-auto-complete-superpack` to nil. Adding a
`(require 'ein-company)` probably should be done somewhere in the user's init
file. This could all be done better so I will attempt to address in later
commits.
2017-04-19 10:12:45 -05:00
John Miller
68b2e94a75 Merge branch 'master' into company-mode-support 2017-03-04 21:23:17 -06:00
John Miller
7cff07321a Whitespace cleanup. 2017-03-04 20:57:37 -06:00
John Miller
e226b30139 Follow redirects, numerous other fixes.
Content api tries to handle redirects, pointing new content towards the
redirected url instead of the one supplied by the user. Login with redirects not
working, though.

Other fixes:

 - Fixed bug in ein-ac that was generating errors outside of ein buffers.
 - New function `ein:pyools-set-figure-size` as shortcut for modifying
   matplotlib figsize rcParam.
 - ob-ein will output tracebacks when ein source block generates an error.
2017-01-11 07:42:06 -06:00
John Miller
45f415f134 Guessing how async completion might work.
Almost a direct copy and paste from ein-ac.el. Will have to
iterate on this more than a few times to figure out a good system
for generation completion candidates for company mode.
2016-03-10 15:15:44 -06:00
Alejandro Catalina
c87bb4f6df Fix (void-symbol ein-direct)
When setting ein to use `auto-complete` in either basic or superpack
mode I get this ein-direct symbol is void error.
2016-02-02 14:54:44 +01:00
John Miller
eea09ed67f Bug squashing
Making unnecessary call to `ein:query-ipython-version`.
2015-08-26 21:00:23 -05:00
John Miller
efaba65cfe Fixing issue #70
Not sure if this completely address issue raised in #70; will need to confirm what expected behavior should be.
2015-08-26 20:45:09 -05:00
Takafumi Arakaki
a1ddf7a7a9 Rename: ein-cached -> ein-async 2013-07-10 21:14:58 +02:00
Takafumi Arakaki
5845dc6e35 Remove unused code from ein-ac.el 2013-07-10 21:14:58 +02:00
Takafumi Arakaki
372c7f619c Disable caching complete candidates
ein:ac-clear-cache takes too much time by the result of profiler.el.
Also, as ac-source-ein-cached sends request in background [1], there is
no need for caching anymore.

[1] 865a96f3d2
2013-07-10 21:14:58 +02:00
Takafumi Arakaki
819e3e3df3 Fix: unintended text was inserted by dot-complete 2013-06-05 01:38:56 +02:00
Takafumi Arakaki
fe682db22d Fix compile warnings in ein-ac.el and ein-jedi.el 2013-02-13 21:32:36 +01:00
Takafumi Arakaki
a5a246c734 Check ein:kernel-live-p in ein:ac-* functions 2013-02-13 21:06:50 +01:00
Takafumi Arakaki
865a96f3d2 Make completion happen really automatically 2012-12-07 22:20:35 +01:00
Takafumi Arakaki
b501948d6d Do not expand common part by ein:completer-dot-complete
* Change the call signature of completer callback, to
  pass arguments to completer callback.
* Use expand option to suppress auto expansion when
  used as dot-complete.
2012-12-06 16:52:56 +01:00
Takafumi Arakaki
a1466a15d1 Fix ein:ac-chunk-regex: handle string literal
fixes #86
2012-12-06 15:05:56 +01:00
Takafumi Arakaki
26e093c044 Simplify ein:completer-finish-completing-ac
As ein:jedi-complete does not use ein:jedi-complete,
SOURCES optional argument is not needed anymore.
2012-12-05 23:41:12 +01:00
Takafumi Arakaki
b794e5a05c Simplify ein:jedi-complete 2012-12-05 23:34:24 +01:00
Takafumi Arakaki
723c8af780 Refactoring: ein:completer-finish-completing-ac can take SOURCES argument 2012-11-19 20:46:36 +01:00
Takafumi Arakaki
2344691f67 group-n is not defined in Emacs 23 2012-09-12 16:44:51 +02:00
Takafumi Arakaki
920ffa5cd3 Tweak ein:ac-chunk-regex to complete "~/PATH/..." 2012-09-11 00:57:53 +02:00
Takafumi Arakaki
5d4f2c3e89 Add ein:ac-setup to ein:notebook-mode-hook
This way, I don't need to add hooks for each specific notebook mode.
Previously ein:notebook-org-src-mode-hook has no ein:ac-setup.
This change fix this problem.
2012-09-11 00:46:28 +02:00
Takafumi Arakaki
197fa4d7d1 Use "official" way to complete dotty chunk 2012-09-11 00:29:10 +02:00
Takafumi Arakaki
91861e8fd2 Add ein:ac-chunk-candidates-from-list 2012-09-11 00:18:17 +02:00
Takafumi Arakaki
2627157e60 Add section headers in ein-ac.el 2012-09-11 00:13:45 +02:00
Takafumi Arakaki
ca8c1678fe (require 'ein-utils) -> (require 'ein-core) 2012-08-28 15:26:32 +02:00
Takafumi Arakaki
281d09a5f5 Rename: ein:@connect -> ein:%connect%
%s/\_<ein:@\(connect\)\_>/ein:%\1%/g

Define obsolete alias, as user might use this variable.
2012-08-18 23:03:07 +02:00
Takafumi Arakaki
733e68284a Rename: ein:notebook -> ein:%notebook%
%s/\_<ein:notebook\_>/ein:%notebook%/g

Define obsolete alias, as user might use this variable.
2012-08-18 22:59:31 +02:00
Takafumi Arakaki
73cadcaaa4 Use generic getters in ein-pytools.el 2012-08-14 21:05:05 +02:00
Takafumi Arakaki
559a439e4c Move comment to docstring in ein:ac-setup-maybe 2012-08-11 17:59:58 +02:00
Takafumi Arakaki
8ab408aa53 Add more comments on ein:ac-setup-maybe 2012-08-11 17:55:32 +02:00
Takafumi Arakaki
81c338c655 Fix ein:ac-config 2012-08-11 17:21:31 +02:00
Takafumi Arakaki
c57235d458 Add a comment on ein:ac-setup-maybe 2012-08-11 17:12:57 +02:00
Takafumi Arakaki
cb21a52450 Avoid error when compiling ein-ac.el w/o MuMaMo 2012-08-11 15:51:35 +02:00
Takafumi Arakaki
3722d04adb Avoid error when loading/compiling ein-ac.el
if auto-complete is not on load-path
2012-08-11 15:49:26 +02:00
Takafumi Arakaki
12fae49898 Fix arguments of other callbacks
Any callbacks called from ein:kernel--handle-shell-reply are passed
metadata.  Therefore, complete/tooltip callbacks must be changed.
2012-08-08 23:27:07 +02:00
Takafumi Arakaki
ac29aa2e8a No auto-complete drop-down list when no matches 2012-08-04 04:28:21 +02:00
Takafumi Arakaki
b90e18f1ff Do not duplicate "~" in path when completing
fixes #26
2012-07-25 19:34:21 +02:00
Takafumi Arakaki
182cfe8672 Add debug logs in finish-completing functions 2012-07-23 20:33:46 +02:00
Takafumi Arakaki
8522f849ae Monkey patch ac-update in superpack
AC help was not shown for the first candidate when the AC menu
is popped up first time.  This change fixes the bug.
2012-07-08 14:48:58 +02:00
Takafumi Arakaki
fcf42847a1 Add auto-completion help in the superpack
fixes #15
2012-07-08 14:39:13 +02:00
Takafumi Arakaki
d1031fd61e mv *ein*.el ein.py lisp/
fixes #6
2012-07-02 16:47:20 +02:00
Renamed from ein-ac.el (Browse further)