[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] ratpoison.el: ratpoison-command fix
From: |
rubikitch |
Subject: |
[RP] ratpoison.el: ratpoison-command fix |
Date: |
Tue Jun 1 14:09:08 2004 |
Hi everyone. I love ratpoison, ratmen, emacs, screen and ruby.
The command `ratpoison-command' doesn't work with command containing `"'.
Because this command calls shell. I think `call-process' is better solution.
Regards,
--
rubikitch
--- ratpoison.el 2004/05/27 07:42:06 1.1
+++ ratpoison.el 2004/05/27 07:42:51
@@ -167,8 +167,7 @@
; Command stuff
(defun ratpoison-command (command)
(interactive "sRP Command: ")
- (shell-command (concat ratpoison-program " -c \"" command
- "\"")))
+ (call-process ratpoison-program nil nil nil "-c" command))
(defun ratpoison-command-on-region (start end)
(interactive "r")
- [RP] ratpoison.el: ratpoison-command fix,
rubikitch <=