Commit graph

30 commits

Author SHA1 Message Date
John Miller
b2d1acc9d5 Issue #644: Add multilang support for xeus-cling
Multilang support for c, c++11, c++14, and c++17. Org babel source blocks are
also support.

Dropping (for a moment) testing against python27 on travis.
2020-01-24 11:16:56 -07:00
John Miller
ae85045d85 Setup multilang hy more like how hy-mode does it.
Also try to work around travis's inexplicable failures with emacs 25.1
2020-01-14 13:51:31 -07:00
John Miller
5496d0d0ec Add multilang support for hy.
Maybe I should write a macro.
2020-01-13 16:31:46 -07:00
John Miller
41d8e61df6 Make travis happy.
Get rid of byte-compile errors, add haskell-mode to development dependencies.
2020-01-04 09:09:41 -07:00
John Miller
c71075328c Correctly process ansi color codes in text output. Multilang haskell.
Caught this while testing julia support.

Bonus change: add multilang support for Haskell.
2020-01-04 09:09:41 -07:00
John Miller
6aca94c21b
Merge branch 'master' into pdenno-clojure 2019-11-17 12:30:58 -06:00
Sam Steingold
448e161068 Avoid dependency on the deprecated package "cl"
Replace `defun*' with `cl-defun', `loop' with `cl-loop',
  `case' with `cl-case', `assert' with `cl-assert',
  `destructuring-bind' with `cl-destructuring-bind',
  `multiple-value-bind' with `cl-multiple-value-bind',
  `equalp` with `cl-equalp`, `defstruct' with `cl-defstruct`
  &c &c &c
Use lexical-binding instead of lexical-let.
Add declarations and defvar to avoid breakage.
2019-10-12 08:37:46 -05:00
John Miller
ef92e574b2 Support julia in multilang.
Doesn't break travis, but it is causing problems in my local linux setup.
2019-10-05 22:15:39 -05:00
John Miller
5f51de4c80 Fix travis regression. 2019-08-20 11:01:49 -06:00
Peter Denno
a338d73f34 additions to support clojure/clojpuyter 2019-08-12 10:16:11 -04:00
Peter Denno
23faf4a3f5 additions to support clojure/clojpuyter 2019-08-12 10:06:16 -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
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
dickmao
fbda27ba7f Surface curl errors
In light of #425 and #456, provide more guidance on curl errors.

Also, clean up eldoc stub.  Leveraging elpy's eldoc perfection seems
the only sensible choice, however.
2019-01-21 13:42:35 -05:00
dickmao
bead667ee0 Clean up multilang
Do not assume python... leverage ESS to improve R interaction.
Fix both undo and fontify in the presence of toggling cells (`C-c
C-t`)
Fix and test switching kernels
2018-12-08 21:25:48 -05:00
Sam Steingold
1c6270c425 update the code base to avoid compilation warnings about obsolete functions
call-next-method -> cl-call-next-method
set-slot-value -> (setf slot-value)
*-child-p -> cl-typep
oref <keyword> -> slot-value <symbol>
object-p -> eieio-object-p
Closes https://github.com/millejoh/emacs-ipython-notebook/issues/394
2018-11-08 09:36:35 -05:00
dickmao
bc10cea743 Normalize url-or-port
```
"http://localhost:8888"
"http://localhost:8888/"
"http://127.0.0.1:8888"
"http://127.0.0.1:8888/"
"8888"
8888
```

Ideally these should converge to the same thing.  Since many hash
tables are keyed off `url-or-port`, forgetting to
normalize `url-or-port` with `ein:url` leads to missed cache hits and
general malaise.  So we try to do that.

Address a FIXME: apply callbacks to `ein:notebook-list-login-and-open`.

Removed py3.5 from travis build matrix to reduce developer strain.
2018-10-12 21:55:33 -05:00
Sam Steingold
32351e0cf3 Narrow to cell when indenting code (fix bug#269)
(ein:narrow-to-cell, ein:python-indent-line-function)
(ein:python-indent-region): New functions.
(ein:ml-lang-setup-python): Set
 `indent-line-function` to `ein:python-indent-line-function` and
 `indent-region-function` to `ein:python-indent-region`.
2018-02-14 11:11:26 -05:00
John Miller
aebdbc1eb8 ein-cell: Fix saving images in worksheets.
Images weren't being save to json in the way they should have. Mostly had to do
with how the attirbutes were being ordered. This is still, unfortunately, a
nasty bit code but it still seems to work.
2017-06-30 21:41:16 -05:00
Sam Steingold
4297ea0fc8 set and make-local-variable in one form
This is clearer and complies with the traditional Emacs coding style.
2016-09-13 09:33:25 -04:00
John Miller
ac53106194 Setup and documentation
Some test code and some exploratory writing (see Enhancements.org) to
get my head on straight.
2015-05-03 00:14:38 -05:00
Takafumi Arakaki
fdce914808 Don't set beginning/end-of-defun-function in ein:ml-lang-setup-python 2012-10-05 16:00:03 +02:00
Takafumi Arakaki
9a34c1ca50 Set beginning/end-of-defun-function in multilang-mode 2012-10-05 13:01:18 +02:00
Takafumi Arakaki
4ae699dabc Support comment-dwim etc. in ein:multilang 2012-10-03 22:33:26 +02:00
Takafumi Arakaki
23cf0158a2 Rename: ml-keymap-setup-LANG -> ml-lang-setup-LANG 2012-10-03 22:08:20 +02:00
Takafumi Arakaki
b6aa11eb8f Update ein:notebook-multilang-mode docstring 2012-09-30 20:33:32 +02:00
Takafumi Arakaki
8fd7334fce Add autoload cookie for ein:notebook-multilang-mode 2012-09-30 20:31:48 +02:00
Takafumi Arakaki
4fd899528a Rename symbols etc. in ein-multilang.el 2012-09-30 20:17:32 +02:00
Takafumi Arakaki
fa8a7d3bad %s/ein:org-src/ein:ml/g 2012-09-30 20:12:29 +02:00
Takafumi Arakaki
a4c3b42653 git mv ein-org-src.el ein-multilang.el 2012-09-30 20:10:36 +02:00
Renamed from lisp/ein-org-src.el (Browse further)