From d76a55c16cfbcb0d8e0cefdfd5199dd36555700e Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Fri, 7 Jun 2024 20:21:48 +0200 Subject: No longer declare vterm functions I don't want to install vterm, just so check-declare has nothing to complain about. --- lisp/with-editor.el | 6 +++--- 1 file 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)) -- cgit v1.0