Nathaniel Nicandro
99f1099d68
jupyter-repl-available-repl-buffers: Use provided-mode-derived-p
...
So that a mode derived from `jupyter-repl-lang-mode` is still considered a
match.
2019-03-02 18:24:48 -06:00
Nathaniel Nicandro
9114397f2c
jupyter-repl-syntax-propertize-function: Move Julia specific setup to jupyter-julia.el
2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
e127e1d45b
Add jupyter-repl-cell-cond
2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
2c5cde166f
jupyter-repl-interaction-mode-line: Check heartbeat first
2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
1f5c7743d5
Working towards a cleaner REPL restart
...
See #50 .
2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
2a3b175f26
jupyter-repl-after-change: Maintain field membership at cell beginning
...
This handles an edge case where `field-end` would return the position at the
beginning of a cell even though there was text that was part of the cell code
after that position. The issue had to do with the interaction between the
sticky text properties at field boundaries. See #38 .
2019-02-27 14:44:23 -06:00
Nathaniel Nicandro
4e93839004
Narrow to REPL cell when calling language mode font-lock functions
2019-02-27 14:44:23 -06:00
Nathaniel Nicandro
a76e8d5151
jupyter-repl-do-after-change: Widen the buffer before doing any work
...
See #38 .
2019-02-25 20:59:12 -06:00
Nathaniel Nicandro
75fa0eea29
Add REPL prompt string constants
2019-02-22 21:05:45 -06:00
Nathaniel Nicandro
ae5ed507fb
Handle prompt margin overflow in the REPL
...
Whenever a prompt string exceeds `jupyter-repl-prompt-margin-width`, increase
`jupyter-repl-prompt-margin-width` so that is can accommodate the string and
redisplay all prompts.
2019-02-22 20:57:42 -06:00
Nathaniel Nicandro
9484735c06
Fix undo in the REPL
...
When inserting continuation prompts, extra text deletion entries where being
added in `buffer-undo-list` which caused yanked text to not be undone fully
since it would add in those entries before undoing the yank.
2019-02-21 23:21:22 -06:00
Nathaniel Nicandro
19e18f36f8
jupyter-repl-syntax-propertize-function: Fix bounds used
2019-02-19 02:58:55 -06:00
Nathaniel Nicandro
6d59862b4d
Remove redundant with-syntax-table
2019-02-18 11:31:57 -06:00
Nathaniel Nicandro
183547403d
jupyter-repl-ret: Use cond
2019-02-18 11:31:57 -06:00
Nathaniel Nicandro
3f76534121
jupyter-repl-syntax-propertize-function: Consider string syntax in output
2019-02-17 23:07:00 -06:00
Nathaniel Nicandro
2c8ccf32d6
jupyter-repl-kill-buffer-query-function: Ask to also kill the kernel
2019-02-16 09:45:46 -06:00
Nathaniel Nicandro
d4969cbfcc
CHANGELOG.org: Add function to change version numbers
2019-02-14 23:05:00 -06:00
Nathaniel Nicandro
75f9df7d0a
jupyter-repl-history-add-input
-> jupyter-repl-history-add
2019-02-14 16:42:12 -06:00
Nathaniel Nicandro
913af5c314
Add jupyter-repl-cell-(pre|post)-send-hook
2019-02-14 16:42:12 -06:00
Nathaniel Nicandro
143eacc6fc
jupyter-repl-finalize-cell: Go to point-max
first
...
The "current input cell" is intended to be the last cell in the REPL buffer so
go to `point-max` before calling `jupyter-repl-cell-beginning-position`.
2019-02-14 16:42:12 -06:00
Nathaniel Nicandro
6eec94a97f
Integrate better with font-lock and syntax-ppss
in the REPL buffer
...
* Add `jupyter-repl-syntax-propertize-function`. This allows packages like
`rainbow-delimiters-mode` to work regardless of what is printed as output of
a REPL cell by setting the syntax-table property on parenthesis in REPL
output.
* Fix an issue with the Julia REPL which would cause `syntax-ppss` to
report the wrong parenthesis depth due to the `]` character of the REPL
package mode. Thus interfering with how `rainbow-delimiters-mode` works.
* Ensure that the kernel language's syntax table is used when fontifying and
adding syntax properties.
2019-02-14 16:12:00 -06:00
Nathaniel Nicandro
d0ccb98ae5
jupyter-repl-update-cell-count: Only reset input prompts
...
There is no need to reset the prompt when it isn't displaying the cell count.
This also ensures that a kernel that shows a prompt other than the input prompt
doesn't get overwritten.
2019-02-14 00:49:16 -06:00
Nathaniel Nicandro
098d5985f4
jupyter-run-repl: Better error if kernelspec can't be found
2019-02-14 00:11:31 -06:00
Nathaniel Nicandro
524def5a01
jupyter-connect-repl: Un-pause heartbeat channel
...
See #29 .
2019-02-13 23:42:02 -06:00
Nathaniel Nicandro
7f12b0e8e7
jupyter-read-expression: Proper use of history variable
...
Also add the read expression as a history element in the REPL history if the
client is a REPL client.
2019-02-13 16:50:51 -06:00
Nathaniel Nicandro
dc27d1ebe5
jupyter-repl-restart-kernel: Prompt for a REPL client if necessary
...
In the case that `jupyter-current-client` is not a valid REPL client, prompt
for a REPL buffer to restart. See #28 .
2019-02-12 20:30:20 -06:00
Nathaniel Nicandro
5f7af55a9c
Update REPL kernel restart process
2019-02-12 15:35:19 -06:00
Nathaniel Nicandro
63717b9e39
Bump version
2019-02-12 09:17:06 -06:00
Nathaniel Nicandro
034f309222
Add jupyter-display-current-buffer-reuse-window
...
Closes #27 .
2019-02-11 16:01:41 -06:00
Nathaniel Nicandro
2b179256eb
jupyter-repl-propagate-client: Fix documentation
2019-02-11 14:36:57 -06:00
Nathaniel Nicandro
3af61ab8cb
jupyter-repl-available-repl-buffers: Use object-of-class-p
...
See #26 .
2019-02-10 11:29:33 -06:00
Nathaniel Nicandro
159e6ffdb1
Remove stale comment
2019-02-09 14:34:00 -06:00
Nathaniel Nicandro
260ba128eb
jupyter-repl-ret: Don't send messages when the kernel is busy
2019-02-09 09:17:00 -06:00
Nathaniel Nicandro
ce6c92a2c4
jupyter-repl-interaction-mode: Remove missing functions from hooks
...
`jupyter-eldoc-documentation` and `jupyter--xref-backend` are WIPs that somehow
got into master.
2019-02-07 20:01:30 -06:00
Nathaniel Nicandro
0a34860707
Fix package-lint errors
2019-02-07 11:17:24 -06:00
Nathaniel Nicandro
771e267034
Fix checkdoc errors
2019-02-06 22:49:41 -06:00
Nathaniel Nicandro
ee62fafdf6
Fix #14 : Undo rear-nonsticky property inserted by insert-for-yank
2019-01-25 23:59:51 -06:00
Nathaniel Nicandro
d7fb71df02
jupyter-repl-indent-line: Only attempt to indent on code cell lines
2019-01-24 10:13:20 -06:00
Nathaniel Nicandro
9ef7553b8a
Handle field property specially when yanking in the REPL
2019-01-23 19:45:41 -06:00
Nathaniel Nicandro
649c54c15f
Silence byte compiler
2019-01-23 19:41:20 -06:00
Nathaniel Nicandro
463245e4f9
jupyter-repl-initialize-fontification: Fix setting of fontify region function
2019-01-22 18:39:17 -06:00
Nathaniel Nicandro
4e2e8642ed
Update a few comments
2019-01-22 18:39:17 -06:00
Nathaniel Nicandro
d709b31a64
Add jupyter-message-lambda
...
This simplifies the writing of message callbacks.
2019-01-22 18:39:17 -06:00
Nathaniel Nicandro
e439d3a531
jupyter-read-expression (jupyter-repl-client): Remove sentinel value
2019-01-19 15:28:03 -06:00
Nathaniel Nicandro
39fba18b06
Update kernel restart process
2019-01-18 22:02:13 -06:00
Nathaniel Nicandro
e2381e600c
jupyter-repl-propagate-client: Simplify logic
2019-01-18 22:00:58 -06:00
Nathaniel Nicandro
123d847a3e
jupyter-repl-interaction-map -> jupyter-repl-interaction-mode-map
2019-01-17 20:45:45 -06:00
Nathaniel Nicandro
876c080f7f
Add jupyter-kernel-language-mode-properties
and related functions
2019-01-17 19:53:04 -06:00
Nathaniel Nicandro
fa809e7801
Fix keybinding in documentation
2019-01-17 19:01:01 -06:00
Nathaniel Nicandro
6b7ecfcf08
Add execution-count slot to a jupyter-kernel-client
...
This allows the default `jupyter-kernel-client' implementation to do the work
of updating the execution count instead of having subclasses track it.
2019-01-13 22:19:25 -06:00