mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Check current-buffer
in jupyter-repl-same-lang-mode-p
This commit is contained in:
parent
19d2261494
commit
dbd9ee48c1
1 changed files with 4 additions and 3 deletions
|
@ -1789,10 +1789,11 @@ found in KERNEL-INFO."
|
|||
(setq syntax (syntax-table))))
|
||||
(list mode syntax))))
|
||||
|
||||
(defun jupyter-repl-same-lang-mode-p (buffer client)
|
||||
(defun jupyter-repl-same-lang-mode-p (client)
|
||||
"Is BUFFER's `major-mode' the same as CLIENT's `jupyter-repl-lang-mode'?"
|
||||
(with-jupyter-repl-buffer client
|
||||
(eq jupyter-repl-lang-mode (with-current-buffer buffer major-mode))))
|
||||
(let ((mode major-mode))
|
||||
(with-jupyter-repl-buffer client
|
||||
(eq jupyter-repl-lang-mode mode))))
|
||||
|
||||
(defun jupyter-repl--new-repl (client)
|
||||
"Initialize a new REPL buffer based on CLIENT.
|
||||
|
|
Loading…
Add table
Reference in a new issue