emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master f345fdd: call-process instead of call-process-regio


From: Tino Calancha
Subject: [Emacs-diffs] master f345fdd: call-process instead of call-process-region with empty region
Date: Tue, 23 Aug 2016 13:48:55 +0000 (UTC)

branch: master
commit f345fdd7e64064194a9235406971f62b9da09ae2
Author: Tino Calancha <address@hidden>
Commit: Tino Calancha <address@hidden>

    call-process instead of call-process-region with empty region
    
    * lisp/calc/calc-graph.el (calc-graph-show-tty):
    Use call-process and shell-command-switch.
---
 lisp/calc/calc-graph.el |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/calc/calc-graph.el b/lisp/calc/calc-graph.el
index 3dedbbc..6357c97 100644
--- a/lisp/calc/calc-graph.el
+++ b/lisp/calc/calc-graph.el
@@ -908,9 +908,9 @@
 (defun calc-graph-show-tty (output)
   "Default calc-gnuplot-plot-command for \"tty\" output mode.
 This is useful for tek40xx and other graphics-terminal types."
-  (call-process-region 1 1 shell-file-name
-                      nil calc-gnuplot-buffer nil
-                      "-c" (format "cat %s >/dev/tty; rm %s" output output)))
+  (call-process shell-file-name nil calc-gnuplot-buffer nil
+                shell-command-switch
+                (format "cat %s >/dev/tty; rm %s" output output)))
 
 (defvar calc-dumb-map nil
   "The keymap for the \"dumb\" terminal plot.")



reply via email to

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