From d0935036eb894680d8ca1a4d1ed8e8d5d90005e5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 17 Apr 2026 00:51:54 -0700 Subject: Append newline to emacsclient command In the next Emacs release, emacsclient will be pickier about requiring a newline at the end of every command you send it. This is so that it can distinguish command ends from dropped connections. So, put a newline at the end of the -error command that with-editor-return can send. --- lisp/with-editor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/with-editor.el b/lisp/with-editor.el index c17a61b..068cb7d 100644 --- a/lisp/with-editor.el +++ b/lisp/with-editor.el @@ -382,7 +382,7 @@ And some tools that do not handle $EDITOR properly also break." (dolist (client clients) (message "client %S" client) (ignore-errors - (server-send-string client "-error Canceled by user")) + (server-send-string client "-error Canceled by user\n")) (delete-process client)) (when (buffer-live-p buf) (kill-buffer buf))) -- cgit v1.0