stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] stumpwm-mode.el, remove trailing newline added by echo(1)


From: Anonymous
Subject: [STUMP] stumpwm-mode.el, remove trailing newline added by echo(1)
Date: Thu, 10 Mar 2011 16:31:55 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix)

stumpish always puts newline at the end. It makes some (interactive)
shells print prompt properly on the next line which is not needed for
`message' function. Try in a buffer with stumpwm-mode

  nil<C-x C-e>

would put NIL + newline in *Messages* buffer, e.g. unlike
eval-last-sexp in emacs-lisp-mode.

diff --git a/contrib/stumpwm-mode.el b/contrib/stumpwm-mode.el
index 404f528..c6a3ae4 100644
--- a/contrib/stumpwm-mode.el
+++ b/contrib/stumpwm-mode.el
@@ -48,6 +48,7 @@
                (call-process stumpwm-shell-program nil (current-buffer) nil
                              "eval"
                              s)
+               (delete-char -1)
                (buffer-string)))))
 
 (defun stumpwm-eval-defun ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]