From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#34174: 27.0.50; Calling `par' via shell-command-on-region always errors out Date: Tue, 22 Jan 2019 17:27:29 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d26f7f0580137d16" Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="156029"; mail-complaints-to="usenet@ciao.gmane.org" To: 34174@debbugs.gnu.org, tom@tromey.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 22 23:32:02 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gm4aN-000ePb-O3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jan 2019 23:31:59 +0100 Original-Received: from localhost ([127.0.0.1]:51597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm4aL-0006aV-Od for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jan 2019 17:31:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm4Xa-0004lH-5N for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 17:29:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gm4XX-0001e2-Dp for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 17:29:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42460) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gm4XW-0001dC-3t for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 17:29:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gm4XV-0005BB-Vk for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 17:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Jan 2019 22:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34174 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Tom Tromey Original-Received: via spool by submit@debbugs.gnu.org id=B.154819610319863 (code B ref -1); Tue, 22 Jan 2019 22:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jan 2019 22:28:23 +0000 Original-Received: from localhost ([127.0.0.1]:41741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gm4Wt-0005AJ-1V for submit@debbugs.gnu.org; Tue, 22 Jan 2019 17:28:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gm4Wr-0005A5-1v for submit@debbugs.gnu.org; Tue, 22 Jan 2019 17:28:21 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:49936) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gm4Wl-000180-KC for submit@debbugs.gnu.org; Tue, 22 Jan 2019 17:28:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm4Wj-0004AY-JO for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 17:28:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gm4Wg-00015s-Sl for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 17:28:12 -0500 Original-Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:46087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gm4Wf-00014X-Ef for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 17:28:10 -0500 Original-Received: by mail-lj1-x22b.google.com with SMTP id v15-v6so107845ljh.13 for ; Tue, 22 Jan 2019 14:28:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=2/zehr1edwXTxro6+qEVWWWQBHdxi5VBRR0WYX1rjdY=; b=Q6dOa+85JGX29QxxD63p0bSIkW9WpfOzTYNohZIO8A41ERCoWoJDe0YOvWTaExkwyN q8ITm0ArciSjDhRKNrLeLft0oZjqGzmhpsU9TtmaJzGzYTSy9VinOmgOdNQghSxeSLgY 7J0xiMMeRO3uzb8NwyZpw4txRcpJ1wVs+iGD50WWcpiH/fyal86L5FJB7eSUIg0yuspM uDre7ePWMKQWfJhgzLSnuH8AZsiGBklDMvwBE4DJAVRzrcX7uV1BWVhf1p9N934Eaqio j7kysbQUA4wXQKp8erOiH+mVmbxLq3DdxG9LNgaahhnCFGX+ZcyvjMafluYA9uiDC8wl QdKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2/zehr1edwXTxro6+qEVWWWQBHdxi5VBRR0WYX1rjdY=; b=smZV/a8r8luvf2rtppA0eATVUwu+qyUQw5kgbfN5nwKJeCMJs7XPI+ZqHXZ8IKQ/Vc F/PwK62uon//ytlOkvtJgv06IHFuTzL33XdXloJmZguC2mC5u0Uj7WO0HxpuNLxupgw1 e/iUPE5lL7nJpRaaZH8cG/gP/qTIqxoNegBnWR1jLLjK/D+fb0NNwBr7q6c6p/8BQmPC hq3fESGNis+KbbQm66nm5p6S4z+0PwjzyVNarTyrp9MQnRcdNRfv077xvCbDzDhWN1JD Y2DABSXcIUVp5PDdPIupwFHQYSAL4HwGQ7N/yjAaWVXqLOyjluT2c2qCy39bnIEvYOHc oQaw== X-Gm-Message-State: AJcUukeKdB1sfLUh9qJ2qI/96OTGRbp2l6w5oeAgBBIU3w+R5xzXQUBK 9+3fFG0Q3InLwlJHyTSRvJ1J1mgmJ/k6XCnuq2FQW/2b X-Google-Smtp-Source: ALg8bN4T74x/lmc88LWQ3IGbcbB4X98vE4C2o9we64eIgx1NX3nKSS4c34HwB5CnM0SkmxLAR7lQM9vxg7WxhEdG+j4= X-Received: by 2002:a2e:8546:: with SMTP id u6-v6mr21556162ljj.95.1548196087226; Tue, 22 Jan 2019 14:28:07 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154683 Archived-At: --000000000000d26f7f0580137d16 Content-Type: text/plain; charset="UTF-8" Hello, I have found a regression in the behavior of shell-command-on-region, though specifically for a third party binary `par'. par can be obtained from http://www.nicemice.net/par/. How to reproduce the error: 1. Install par and put it in PATH (sorry, I cannot reproduce this error with any other utility). 2. Open emacs -Q. 3. Select the two lines that show up by default in the scratch buffer: ";; This buffer is for text that is not saved, and for Lisp evaluation. ;; To create a file, visit it with C-x C-f and enter text in its buffer. ". 4. Call `M-| par'. You will get this error on emacs master emacs -Q , but *not* on emacs 26.1: === ERROR in parse_header: buffer was ';; This buffer is for te' error: client: reader got error Success === What's surprising is that I have selected the whole 2 lines to be sent to par, but the error from par says: buffer was ';; This buffer is for te' I cannot reproduce this error on 26.1. I looked at the git revision history that affected shell-command-on-region that affected in recent times, but I couldn't find any. But I do see https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d1ec3a0a8e4d7d56ebc1e4fa743130b9974ac6a8 affecting callproc.c/call-process-region. Can you please review if that change could have caused this regression? Thanks. In GNU Emacs 27.0.50 (build 11, x86_64-pc-linux-gnu, GTK+ Version 2.24.23) of 2019-01-22 Repository revision: 9eaf5e052a802a7b0560f983f2bb786e13ce2488 Repository branch: master Windowing system distributor 'Open Text', version 11.0.11505 System Description: Red Hat Enterprise Linux Workstation release 6.8 (Santiago) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set ERROR in parse_header: buffer was ';; This buffer is for te' error: client: reader got error Success Configured using: 'configure --with-modules --prefix=/home/kmodi/usr_local/apps/6/emacs/master '--program-transform-name=s/^ctags$/ctags_emacs/' --with-harfbuzz --with-dumping=unexec 'CPPFLAGS=-I/home/kmodi/stowed/include -I/home/kmodi/usr_local/6/include -I/usr/include/freetype2 -I/usr/include' 'CFLAGS=-O2 -march=native' 'LDFLAGS=-L/home/kmodi/stowed/lib -L/home/kmodi/stowed/lib64 -L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 XDBE XIM MODULES THREADS GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils shell pcomplete comint ansi-color ring elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 101350 8692) (symbols 48 20712 1) (strings 32 30382 2230) (string-bytes 1 841942) (vectors 16 15780) (vector-slots 8 517527 12352) (floats 8 43 74) (intervals 56 255 0) (buffers 992 12) (heap 1024 25874 879)) -- Kaushal Modi --000000000000d26f7f0580137d16 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I ha= ve found a regression in the behavior of shell-command-on-region, though sp= ecifically for a third party binary `par'. par can be obtained from http://www.nicemice.net/par/.

How to reproduce the error:

1. Install par and put it in PATH (sorry, I cannot reproduce this er= ror with any other utility).
2. Open emacs -Q.
3. S= elect the two lines that show up by default in the scratch buffer: ";;= This buffer is for text that is not saved, and for Lisp evaluation.
;; = To create a file, visit it with C-x C-f and enter text in its buffer.
&q= uot;.
4. Call `M-| par'.

You will ge= t this error on emacs master emacs -Q , but *not* on emacs 26.1:
=
=3D=3D=3D
ERROR in parse_header: buffer was &#= 39;;; This buffer is for te'
error: client: reader got error Success=
=3D=3D=3D

What's surprising is that I have= selected the whole 2 lines to be sent to par, but the error from par says:= =C2=A0

=C2=A0=C2=A0=C2=A0 buffer was ';; This = buffer is for te'

I cannot reproduce this error on= 26.1.


I looked at the git revision history that affected shell-command-on-region= that affected in recent times, but I couldn't find any.

=

Can you please review if that change could have caused this regression?<= /div>

Thanks.

In GNU Emacs= 27.0.50 (build 11, x86_64-pc-linux-gnu, GTK+ Version 2.24.23)
=C2=A0of = 2019-01-22
Repository revision: 9eaf5e052a802a7b0560f983f2bb786e13ce248= 8
Repository branch: master
Windowing system distributor 'Open Te= xt', version 11.0.11505
System Description: Red Hat Enterprise Linux= Workstation release 6.8 (Santiago)

Recent messages:
For informat= ion about GNU Emacs and the GNU system, type C-h C-a.
Mark set
ERROR = in parse_header: buffer was ';; This buffer is for te'
error: cl= ient: reader got error Success

Configured using:
=C2=A0'confi= gure --with-modules
=C2=A0--prefix=3D/home/kmodi/usr_local/apps/6/emacs/= master
=C2=A0'--program-transform-name=3Ds/^ctags$/ctags_emacs/'= --with-harfbuzz
=C2=A0--with-dumping=3Dunexec 'CPPFLAGS=3D-I/home/k= modi/stowed/include
=C2=A0-I/home/kmodi/usr_local/6/include -I/usr/inclu= de/freetype2
=C2=A0-I/usr/include' 'CFLAGS=3D-O2 -march=3Dnative= '
=C2=A0'LDFLAGS=3D-L/home/kmodi/stowed/lib -L/home/kmodi/stowed= /lib64
=C2=A0-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib= 64''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAG= EMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY ACL LIBSELINUX GNUT= LS LIBXML2 FREETYPE M17N_FLT LIBOTF
XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X1= 1 XDBE XIM MODULES THREADS GMP

Important settings:
=C2=A0 value o= f $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Majo= r mode: Lisp Interaction

Minor modes in effect:
=C2=A0 shell-dirt= rack-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
= =C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-whee= l-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 f= ile-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-l= ock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode:= t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
= =C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Load-pat= h shadows:
None found.

Features:
(shadow sort mail-extr emacsb= ug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv dired di= red-loaddefs format-spec rfc822 mml
easymenu mml-sec password-cache epa = derived epg epg-config gnus-util
rmail rmail-loaddefs time-date mm-decod= e mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader= cl-loaddefs cl-lib sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prs= vr mail-utils shell pcomplete
comint ansi-color ring elec-pair mule-util= tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwh= eel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image re= gexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode l= isp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer sele= ct
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term= /tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietname= se tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew gre= ek romanian slovak czech european ethiopic indian cyrillic
chinese compo= site charscript charprop case-table epa-hook jka-cmpr-hook
help simple a= bbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-= face macroexp files text-properties overlay sha1 md5
base64 format env c= ode-pages mule custom widget hashtable-print-readable
backquote threads = dbusbind inotify dynamic-setting system-font-setting
font-render-setting= move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)
<= br>Memory information:
((conses 16 101350 8692)
=C2=A0(symbols 48 207= 12 1)
=C2=A0(strings 32 30382 2230)
=C2=A0(string-bytes 1 841942)
= =C2=A0(vectors 16 15780)
=C2=A0(vector-slots 8 517527 12352)
=C2=A0(f= loats 8 43 74)
=C2=A0(intervals 56 255 0)
=C2=A0(buffers 992 12)
= =C2=A0(heap 1024 25874 879))


--
Kaushal Modi
<= /div>
--000000000000d26f7f0580137d16--