jupyter-repl-after-change (julia): Generalize blink-paren-function integration

This commit is contained in:
Nathaniel Nicandro 2019-03-02 14:30:17 -06:00
parent 9114397f2c
commit 5651074ab3
No known key found for this signature in database
GPG key ID: C34814B309DD06B8

View file

@ -121,12 +121,13 @@ Make the character after `point' invisible."
(when (= beg (jupyter-repl-cell-code-beginning-position))
(save-excursion
(goto-char beg)
(when (and (bound-and-true-p blink-paren-function)
(eq (char-syntax (char-after)) ?\)))
;; Spoof `last-command-event' so that a "No matching paren" message
;; doesn't happen.
(setq last-command-event ?\[))
(cl-case (char-after)
(?\]
(when (bound-and-true-p blink-paren-function)
;; Spoof `last-command-event' so that a "No matching paren" message
;; doesn't happen.
(setq last-command-event ?\[))
;; Longer timeout to account for initial Pkg import and compilation.
(let* ((jupyter-default-timeout jupyter-long-timeout)
(pkg-prompt