Skip to content

Commit 83e3509

Browse files
committed
Rename company-js-comint-backend => company-js-comint
Matches other backend names
1 parent 74592d5 commit 83e3509

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js-comint.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,12 @@ Nil if point is before the current prompt."
381381
't))))
382382

383383
;;;###autoload
384-
(defun company-js-comint-backend (command &optional arg &rest _ignored)
384+
(defun company-js-comint (command &optional arg &rest _ignored)
385385
"Wraps node REPL completion for company."
386386
(interactive (list 'interactive))
387387
(cl-case command
388388
((interactive)
389-
(company-begin-backend 'company-jsc-backend))
389+
(company-begin-backend 'company-js-comint))
390390
((prefix)
391391
(when (equal major-mode 'js-comint-mode)
392392
(if (js-comint--should-complete)
@@ -396,7 +396,7 @@ Nil if point is before the current prompt."
396396
(cons :async (apply-partially #'js-comint--get-completion arg)))))
397397

398398
(with-eval-after-load 'company
399-
(cl-pushnew #'company-js-comint-backend company-backends))
399+
(cl-pushnew #'company-js-comint company-backends))
400400

401401
;;;###autoload
402402
(defun js-comint-save-setup ()
@@ -596,7 +596,7 @@ If no region selected, you could manually input javascript expression."
596596
"Cleanup mode settings."
597597
(when company-backends
598598
(setq company-backends
599-
(delete #'company-js-comint-backend company-backends))))
599+
(delete #'company-js-comint company-backends))))
600600

601601
;;;###autoload
602602
(define-derived-mode js-comint-mode comint-mode "Javascript REPL"

0 commit comments

Comments
 (0)