diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-06-07 20:21:48 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-06-07 20:21:48 +0200 |
| commit | d76a55c16cfbcb0d8e0cefdfd5199dd36555700e (patch) | |
| tree | e296600a4be9ff2393bae112b519cababb64a9d2 | |
| parent | ad09eaa52bb8ea37841c397bf476022275421218 (diff) | |
No longer declare vterm functions
I don't want to install vterm, just so check-declare has nothing to
complain about.
| -rw-r--r-- | lisp/with-editor.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/with-editor.el b/lisp/with-editor.el index 2ecc755..1b79fc2 100644 --- a/lisp/with-editor.el +++ b/lisp/with-editor.el @@ -86,8 +86,6 @@ (declare-function dired-get-filename "dired" (&optional localp no-error-if-not-filep)) (declare-function term-emulate-terminal "term" (proc str)) -(declare-function vterm-send-return "vterm" ()) -(declare-function vterm-send-string "vterm" (string &optional paste-p)) (defvar eshell-preoutput-filter-functions) (defvar git-commit-post-finish-hook) (defvar vterm--process) @@ -756,7 +754,9 @@ This works in `shell-mode', `term-mode', `eshell-mode' and (add-to-list 'eshell-preoutput-filter-functions #'with-editor-output-filter) (setenv envvar with-editor-sleeping-editor)) - ((derived-mode-p 'vterm-mode) + ((and (derived-mode-p 'vterm-mode) + (fboundp 'vterm-send-return) + (fboundp 'vterm-send-string)) (if with-editor-emacsclient-executable (let ((with-editor--envvar envvar) (process-environment process-environment)) |
