From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: evgeniy.sharapov@gmail.com Newsgroups: gmane.emacs.help Subject: `start-process` in Emacs on Windows seems to mangle process output Date: Thu, 19 Nov 2015 06:49:30 -0800 (PST) Message-ID: <4de8ec5c-bcf0-49ea-99e5-555f3186c5d9@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1447955625 24225 80.91.229.3 (19 Nov 2015 17:53:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2015 17:53:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 19 18:53:45 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZzTOv-000323-F0 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 18:53:41 +0100 Original-Received: from localhost ([::1]:43249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzTOu-0008LQ-Vm for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 12:53:40 -0500 X-Received: by 10.68.237.135 with SMTP id vc7mr6244506pbc.11.1447944570546; Thu, 19 Nov 2015 06:49:30 -0800 (PST) X-Received: by 10.50.111.10 with SMTP id ie10mr256864igb.6.1447944570513; Thu, 19 Nov 2015 06:49:30 -0800 (PST) Original-Path: usenet.stanford.edu!news.glorb.com!i2no5293695igv.0!news-out.google.com!l1ni2562igd.0!nntp.google.com!i2no5293687igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=216.163.255.100; posting-account=sv0RtgoAAACZ5s_2MmyGpRrNwwJD8N2M Original-NNTP-Posting-Host: 216.163.255.100 User-Agent: G2/1.0 Injection-Date: Thu, 19 Nov 2015 14:49:30 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:215848 X-Mailman-Approved-At: Thu, 19 Nov 2015 12:53:29 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108138 Archived-At: Here's the my problem. When I run ------------------------------------------------------------------ (let ((default-directory "C:/Users/esharapov/.emacs.d/")) (apply 'start-process "ag" (get-buffer-create "test") "c:\\App\\emacs\\libexec\\emacs\\24.5\\i686-pc-mingw32\\cmdproxy.exe" (list "-c" "\"ag\" \"--nocolor\" \"--literal\" \"--line-number\" \"--smart-case\" \"--nogroup\" \"--column\" \"--stats\" \"--\" \"keymap-on\" \".\""))) ------------------------------------------------------------------ I get in the buffer following output: ------------------------------------------------------------------ 194:15: (defmacro keymap-on-key (name keys) 233:9: (keymap-on-key ctl-x-f-map "C-x f") 572:7: (keymap-on-key ctl-z-w-map "C-z w") 194:15: (defmacro keymap-on-key (name keys) 233:9: (keymap-on-key ctl-x-f-map "C-x f") 572:7: (keymap-on-key ctl-z-w-map "C-z w") 6 matches 382 files searched 8993756 bytes searched 0.446822 seconds Process ag finished ------------------------------------------------------------------ However when I run it in the Windows command prompt as ------------------------------------------------------------------ c:\\App\\emacs\\libexec\\emacs\\24.5\\i686-pc-mingw32\\cmdproxy.exe /c "C:\\App\\bin\\ag.exe --nocolor --literal --line-number --smart-case --nogroup --column --stats -- keymap-on ." ------------------------------------------------------------------ I get the following output ------------------------------------------------------------------ #configuration.org#:194:15: (defmacro keymap-on-key (name keys) #configuration.org#:233:9: (keymap-on-key ctl-x-f-map "C-x f") #configuration.org#:572:7: (keymap-on-key ctl-z-w-map "C-z w") configuration.org:194:15: (defmacro keymap-on-key (name keys) configuration.org:233:9: (keymap-on-key ctl-x-f-map "C-x f") configuration.org:572:7: (keymap-on-key ctl-z-w-map "C-z w") 6 matches 382 files searched 8993756 bytes searched 0.483917 seconds ------------------------------------------------------------------- Notice when I use 'start-process' the file name is being removed from the process output. Does anyone know what's the issue here ? Is it a bug or a feature that could be turned off ? Versions: Microsoft Windows [Version 6.3.9600] GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Sincerely yours, Evgeniy Sharapov