[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 21388a4cc7: with-editor-sleeping-editor: Prefi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-editor 21388a4cc7: with-editor-sleeping-editor: Prefix output with newline |
Date: |
Wed, 26 Jan 2022 08:58:46 -0500 (EST) |
branch: elpa/with-editor
commit 21388a4cc7e4fa8e0686a4ba99472984029dda1c
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
with-editor-sleeping-editor: Prefix output with newline
This makes it possible to continue to only look for the WITH-EDITOR
instruction at the beginning of a line and still support hooks that
might fail to print a newline character after their output.
---
lisp/with-editor.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/with-editor.el b/lisp/with-editor.el
index 13d2a9e8b6..17acfb1d71 100644
--- a/lisp/with-editor.el
+++ b/lisp/with-editor.el
@@ -180,7 +180,7 @@ please see
https://github.com/magit/magit/wiki/Emacsclient."))))
(defcustom with-editor-sleeping-editor "\
sh -c '\
-printf \"WITH-EDITOR: $$ OPEN $0\\037 IN $(pwd)\\n\"; \
+printf \"\\nWITH-EDITOR: $$ OPEN $0\\037 IN $(pwd)\\n\"; \
sleep 604800 & sleep=$!; \
trap \"kill $sleep; exit 0\" USR1; \
trap \"kill $sleep; exit 1\" USR2; \
@@ -209,7 +209,7 @@ with \"bash\" (and install that), or you can use the older,
less
performant implementation:
\"sh -c '\\
- echo \\\"WITH-EDITOR: $$ OPEN $0 IN $(pwd)\\\"; \\
+ echo -e \\\"\\nWITH-EDITOR: $$ OPEN $0 IN $(pwd)\\n\\\"; \\
trap \\\"exit 0\\\" USR1; \\
trap \\\"exit 1\" USR2; \\
while true; do sleep 1; done'\"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/with-editor 21388a4cc7: with-editor-sleeping-editor: Prefix output with newline,
ELPA Syncer <=