Add auto-complete as a required dependency.

It seems that in some instances EIN is failing to install on emacs installations
that do not have auto-complete, so for the moment I am making auto-complete a
required package.

If this causes you a problem please log an issue on the project issues page
(https://github.com/millejoh/emacs-ipython-notebook/issues) and let me know
what is happening on your system.
This commit is contained in:
John Miller 2017-06-16 13:17:11 -05:00
parent ec8b974f23
commit d3a40af574
3 changed files with 6 additions and 3 deletions

View file

@ -145,14 +145,14 @@ Requirements
* `request.el`_ >= 0.2
* `deferred.el`_
* `skewer-mode.el`_
* `auto-complete.el`_
You need to configure subpackage ``ein-ac`` to enable
this feature.
* (optional) markdown-mode
* (optional) python-mode:
It should work with either python.el or python-mode.el.
Fabian Gallina's `python.el`_ is required to use
``ein:console-open`` command.
* (optional) `auto-complete.el`_
You need to configure subpackage ``ein-ac`` to enable
this feature.
* (optional) `smartrep.el`_:
This package enables you to omit typing prefix keys (e.g.,
``C-c C-n C-n C-n ...`` instead of ``C-c C-n C-c C-n C-c C-n ...``).

View file

@ -2,6 +2,7 @@
"0.13.0"
"Emacs IPython Notebook"
'((websocket "1.7")
(auto-complete "1.4.0")
(request "0.3")
(deferred "0.5")
(cl-generic "0.3")

View file

@ -74,6 +74,8 @@ will be canceled \(see also `ein:query-singleton-ajax').
(defvar ein:query-running-process-table (make-hash-table :test 'equal))
(defun ein:query-prepare-header (url settings &optional securep)
"Ensure that REST calls to the jupyter server have the correct
_xsrf argument."
(let ((cookies (request-cookie-alist (url-host (url-generic-parse-url url))
"/" securep)))
(ein:aif (assoc-string "_xsrf" cookies)