GNU bug report logs - #23709
24.5; inhibit-eol-conversion breaks archive-7z-summarize

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: <peromsik@HIDDEN>; dated Mon, 6 Jun 2016 21:54:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 23709 <at> debbugs.gnu.org:


Received: (at 23709) by debbugs.gnu.org; 5 Apr 2017 02:30:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 04 22:30:11 2017
Received: from localhost ([127.0.0.1]:33031 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cvai3-0001xh-H7
	for submit <at> debbugs.gnu.org; Tue, 04 Apr 2017 22:30:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55810)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1cvai1-0001pJ-F6
 for 23709 <at> debbugs.gnu.org; Tue, 04 Apr 2017 22:30:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1cvaht-0007WN-1T
 for 23709 <at> debbugs.gnu.org; Tue, 04 Apr 2017 22:30:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52832)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1cvahs-0007WI-UR; Tue, 04 Apr 2017 22:30:00 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1679
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1cvahr-0005mp-Qp; Tue, 04 Apr 2017 22:30:00 -0400
Date: Wed, 05 Apr 2017 05:29:59 +0300
Message-Id: <83tw63oac8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
In-reply-to: <6zo9wcc4sg.fsf@HIDDEN> (message from Glenn Morris on
 Tue, 04 Apr 2017 16:10:39 -0400)
Subject: Re: bug#23709: 24.5;
 inhibit-eol-conversion breaks archive-7z-summarize
References: <9zpeg8a0yxz.fsf@HIDDEN>
 <6zo9wcc4sg.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 23709
Cc: peromsik@HIDDEN, 23709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Glenn Morris <rgm@HIDDEN>
> Date: Tue, 04 Apr 2017 16:10:39 -0400
> Cc: 23709 <at> debbugs.gnu.org
> 
> 
> > M-x set-variable inhibit-eol-conversion t
> >
> > Then try to open a 7z file. The expected summary does not appear. In the
> > *Messages* buffer (quoted below) you can see that the re-search-forward
> > call in archive-7z-summarize is confused by the ^M in the output of the
> > 7za command. Perhaps adding inhibit-eol-conversion nil to that function's
> > let block would be in order?
> 
> Thanks for the report. I wonder if inhibit-eol-conversion should not
> apply to processes, or should only apply to buffers visiting files, or
> if there should be a process-specific version of i-e-c? Because as it
> stands I think several places will break if ^M appears in process output
> (eg vc-bzr). Binding inhibit-eol-conversion to nil around every single
> process call doesn't sound sensible. But then term.el does the opposite,
> binding it to t. Hmm. So maybe a process-specific version of
> inhibit-eol-conversion, defaulting to nil?

Why is the OP setting this variable to begin with?

I think that a user who sets this variable, as opposed to let-binding
it for a single operation, is shooting themselves in the foot.  This
is not how this variable is supposed to be used.  Just don't do that.
Any solution we would try to invent for this is going to bite us
somewhere.

If there are good reasons for setting this variable globally, let's
hear them.  I'm not aware of any use patterns which would require
that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23709; Package emacs. Full text available.

Message received at 23709 <at> debbugs.gnu.org:


Received: (at 23709) by debbugs.gnu.org; 4 Apr 2017 20:10:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 04 16:10:57 2017
Received: from localhost ([127.0.0.1]:32800 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cvUn3-00011C-4B
	for submit <at> debbugs.gnu.org; Tue, 04 Apr 2017 16:10:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47953)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1cvUn0-00010s-Cs
 for 23709 <at> debbugs.gnu.org; Tue, 04 Apr 2017 16:10:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1cvUmu-0003UQ-9f
 for 23709 <at> debbugs.gnu.org; Tue, 04 Apr 2017 16:10:49 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49107)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1cvUms-0003Rt-20; Tue, 04 Apr 2017 16:10:46 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1cvUmm-0002wP-0X; Tue, 04 Apr 2017 16:10:40 -0400
From: Glenn Morris <rgm@HIDDEN>
To: peromsik@HIDDEN
Subject: Re: bug#23709: 24.5;
 inhibit-eol-conversion breaks archive-7z-summarize
References: <9zpeg8a0yxz.fsf@HIDDEN>
X-Spook: fraud Colombia ARPA Khaddafi anarchy Small Pox BATF sweep
X-Ran: C]WW5z'enAv[CV]a;'e?\A|le.HcMK]Lj;*$HIvoIgg/eYw&\g"G7ed!Xb<F&o'l}lcRE,
X-Hue: blue
X-Attribution: GM
Date: Tue, 04 Apr 2017 16:10:39 -0400
In-Reply-To: <9zpeg8a0yxz.fsf@HIDDEN>
 (peromsik@HIDDEN's message of "Mon, 6 Jun 2016 17:50:16 -0400")
Message-ID: <6zo9wcc4sg.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 23709
Cc: 23709 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


> M-x set-variable inhibit-eol-conversion t
>
> Then try to open a 7z file. The expected summary does not appear. In the
> *Messages* buffer (quoted below) you can see that the re-search-forward
> call in archive-7z-summarize is confused by the ^M in the output of the
> 7za command. Perhaps adding inhibit-eol-conversion nil to that function's
> let block would be in order?

Thanks for the report. I wonder if inhibit-eol-conversion should not
apply to processes, or should only apply to buffers visiting files, or
if there should be a process-specific version of i-e-c? Because as it
stands I think several places will break if ^M appears in process output
(eg vc-bzr). Binding inhibit-eol-conversion to nil around every single
process call doesn't sound sensible. But then term.el does the opposite,
binding it to t. Hmm. So maybe a process-specific version of
inhibit-eol-conversion, defaulting to nil?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23709; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Jun 2016 21:53:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 06 17:53:01 2016
Received: from localhost ([127.0.0.1]:57136 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bA2SD-0002su-J4
	for submit <at> debbugs.gnu.org; Mon, 06 Jun 2016 17:53:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40961)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <prvs=95884f45f=peromsik@HIDDEN>) id 1bA2Ps-0002pJ-7Z
 for submit <at> debbugs.gnu.org; Mon, 06 Jun 2016 17:50:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <prvs=95884f45f=peromsik@HIDDEN>) id 1bA2Pl-0006Ip-Sz
 for submit <at> debbugs.gnu.org; Mon, 06 Jun 2016 17:50:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41774)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <prvs=95884f45f=peromsik@HIDDEN>) id 1bA2Pl-0006Ii-PW
 for submit <at> debbugs.gnu.org; Mon, 06 Jun 2016 17:50:29 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60153)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <prvs=95884f45f=peromsik@HIDDEN>) id 1bA2Pj-0007Mr-62
 for bug-gnu-emacs@HIDDEN; Mon, 06 Jun 2016 17:50:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <prvs=95884f45f=peromsik@HIDDEN>) id 1bA2Pg-0006I2-0r
 for bug-gnu-emacs@HIDDEN; Mon, 06 Jun 2016 17:50:27 -0400
Received: from mx1.ptc.com ([12.11.148.188]:1909)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <prvs=95884f45f=peromsik@HIDDEN>) id 1bA2Pf-0006HG-PZ
 for bug-gnu-emacs@HIDDEN; Mon, 06 Jun 2016 17:50:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple;
 d=ptc.com; s=ptc; t=1465249823; x=1496785823;
 h=from:to:subject:date:message-id:mime-version;
 bh=5lqVoHzG5dhwP2ZqlVi8XmSlojgQUaSLAxwEvTCmAOI=;
 b=ch8wN8xk4zW5hQXssWwrZe26GSNPMalYsrjQXGKdwsS7iaToCs9gcw8L
 IEHTDo1CMn5k/k4YZJ4Lj9W/8MTQby7egTnn0FiTFFO6KVB6LUkJK4cJw
 2wGwNyTJIiMxGKH7sRabsjn3a41VncdeFeh6VawQStYv2eBH94LXHKFOX 4=;
X-IronPort-AV: E=Sophos;i="5.26,429,1459828800"; d="scan'208";a="175968162"
Received: from gndcdm-13ex03p.ptcnet.ptc.com ([10.80.21.136])
 by mx1-int.ptc.com with ESMTP/TLS/AES256-SHA; 06 Jun 2016 17:50:21 -0400
Received: from gndcdm-13ex01p.ptcnet.ptc.com (10.80.21.134) by
 gndcdm-13ex03p.ptcnet.ptc.com (10.80.21.136) with Microsoft SMTP Server (TLS)
 id 15.0.1178.4; Mon, 6 Jun 2016 17:50:21 -0400
Received: from PEROMSIK0D (10.80.20.30) by gndcdm-13ex01p.ptcnet.ptc.com
 (10.80.21.134) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend
 Transport; Mon, 6 Jun 2016 17:50:21 -0400
From: <peromsik@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: 24.5; inhibit-eol-conversion breaks archive-7z-summarize
Date: Mon, 6 Jun 2016 17:50:16 -0400
Message-ID: <9zpeg8a0yxz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 06 Jun 2016 17:53:00 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.4 (----)


M-x set-variable inhibit-eol-conversion t

Then try to open a 7z file. The expected summary does not appear. In the
*Messages* buffer (quoted below) you can see that the re-search-forward
call in archive-7z-summarize is confused by the ^M in the output of the
7za command. Perhaps adding inhibit-eol-conversion nil to that function's
let block would be in order?


In GNU Emacs 24.5.1 (x86_64-w64-mingw32)
 of 2015-04-12 on KAEL
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/z/emacs --host=x86_64-w64-mingw32
 --target=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --with-wide-int
 --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2
 --with-gnutls --with-sound=yes --with-file-notification=yes
 --without-dbus --without-imagemagick 'CFLAGS=-Ofast
 -fomit-frame-pointer -funroll-loops -g0 -pipe' 'LDFLAGS=-static-libgcc
 -static-libstdc++ -static -s -Wl,-s''

Important settings:
  value of $LANG: C
  locale-coding-system: cp1252

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-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

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Parsing archive file...
File mode specification error: (search-failed "^-----+
")
Type C-x 1 to delete the help window.
You can run the command `view-lossage' with C-h l
Type C-x 1 to delete the help window.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils arc-mode archive-mode help-mode cus-edit easymenu
wid-edit cl-loaddefs cl-lib cus-start cus-load help-fns time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer 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 make-network-process
w32notify w32 multi-tty emacs)

Memory information:
((conses 16 96517 6281)
 (symbols 56 19445 0)
 (miscs 48 38 117)
 (strings 32 16504 3894)
 (string-bytes 1 432330)
 (vectors 16 10255)
 (vector-slots 8 388189 6479)
 (floats 8 67 162)
 (intervals 56 240 47)
 (buffers 960 14))





Acknowledgement sent to <peromsik@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#23709; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 5 Apr 2017 02:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.