From: evgeniy.sharapov@gmail.com
To: help-gnu-emacs@gnu.org
Subject: `start-process` in Emacs on Windows seems to mangle process output
Date: Thu, 19 Nov 2015 06:49:30 -0800 (PST) [thread overview]
Message-ID: <4de8ec5c-bcf0-49ea-99e5-555f3186c5d9@googlegroups.com> (raw)
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
next reply other threads:[~2015-11-19 14:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 14:49 evgeniy.sharapov [this message]
2015-11-19 18:03 ` `start-process` in Emacs on Windows seems to mangle process output Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4de8ec5c-bcf0-49ea-99e5-555f3186c5d9@googlegroups.com \
--to=evgeniy.sharapov@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).