GNU logs - #9953, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9953: line terminators
Resent-From: Angelo Borsotti <angelo.borsotti@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 04 Nov 2011 17:24:02 +0000
Resent-Message-ID: <handler.9953.B.132042742332172 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 9953
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 9953 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.132042742332172
          (code B ref -1); Fri, 04 Nov 2011 17:24:02 +0000
Received: (at submit) by debbugs.gnu.org; 4 Nov 2011 17:23:43 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RMNUV-0008Mr-2x
	for submit <at> debbugs.gnu.org; Fri, 04 Nov 2011 13:23:43 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <angelo.borsotti@HIDDEN>) id 1RMNUS-0008Mj-8E
	for submit <at> debbugs.gnu.org; Fri, 04 Nov 2011 13:23:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <angelo.borsotti@HIDDEN>) id 1RMNRv-0000fl-Pj
	for submit <at> debbugs.gnu.org; Fri, 04 Nov 2011 13:21:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable
	version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:55572)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.borsotti@HIDDEN>) id 1RMNRv-0000fh-O8
	for submit <at> debbugs.gnu.org; Fri, 04 Nov 2011 13:21:03 -0400
Received: from eggs.gnu.org ([140.186.70.92]:60914)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.borsotti@HIDDEN>) id 1RMNRr-0007X2-Oh
	for bug-gnu-emacs@HIDDEN; Fri, 04 Nov 2011 13:21:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <angelo.borsotti@HIDDEN>) id 1RMNRq-0000fF-IN
	for bug-gnu-emacs@HIDDEN; Fri, 04 Nov 2011 13:20:59 -0400
Received: from mail-qy0-f169.google.com ([209.85.216.169]:56868)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.borsotti@HIDDEN>) id 1RMNRq-0000fA-EC
	for bug-gnu-emacs@HIDDEN; Fri, 04 Nov 2011 13:20:58 -0400
Received: by qyk31 with SMTP id 31so1114362qyk.0
	for <bug-gnu-emacs@HIDDEN>; Fri, 04 Nov 2011 10:20:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=a0Zb8WsC5PofpuFvHQ6+hhBXz2uLdZr0ZuDRBBZCwVg=;
	b=Z0ElIvje+KEw6ZHBg6ubVFt/RVUqPYI9Kd/Yf8Pyj9yBCR1brJo5q6PNOY1xK55zVf
	SM3Uwy2uDXO7jjnJ3qBbGCcXsY2WJx0M5mRreK7boUvQX/+o2b9q8ZElzS5xRx7t7r7d
	1RustYSHmfMHZC2DYPKGsDcUqrjAu3Gpg8VT4=
MIME-Version: 1.0
Received: by 10.229.69.154 with SMTP id z26mr1976279qci.8.1320427257321; Fri,
	04 Nov 2011 10:20:57 -0700 (PDT)
Received: by 10.229.222.11 with HTTP; Fri, 4 Nov 2011 10:20:57 -0700 (PDT)
Date: Fri, 4 Nov 2011 18:20:57 +0100
Message-ID: <CAB9Jk9DrPATAG-vGgQWzA9CLv=v0OcrCiEQ+U6Nm7Z_HfEw8vw@HIDDEN>
From: Angelo Borsotti <angelo.borsotti@HIDDEN>
Content-Type: multipart/mixed; boundary=00163630ed339fd9d104b0ebed4a
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.9 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

--00163630ed339fd9d104b0ebed4a
Content-Type: multipart/alternative; boundary=00163630ed339fd9cb04b0ebed48

--00163630ed339fd9cb04b0ebed48
Content-Type: text/plain; charset=ISO-8859-1

Hello,

emacs supports files with Unix, Dos and Mac-OS line terminators. It does
not support
files with have a mixture of them. Unfortunately, there are tools, such as
the Sun java
compilers, that accept source files in which each line can be terminated by
one
of the Unix, Dos or Mac-OS line terminators.
The result is that emacs and such tools number lines differently, and a
programmer, when
trying to locate a line on which the compiler reported an error is at a
loss.
E.g. take the attached file: it has been created with Emacs in Windows
typing the text
and adding with ctrl-q ctrl-m a carriage-return character at the end of the
first line.
When that file is opened with emacs, three lines are shown (i.e. that
carriage-return
does not make an empty line).
When the java compiler is run, this is the result:

D:\jtest>javac Errjava.java
Errjava.java:3: <identifier> expected
    public main ...
               ^
1 error

Note that the compiler is telling that there is an error on line 3, but for
emacs that line is line 2.

P.S. there are other editors, such as PsPad which instead display the file
with the same line
numbering as the java compiler uses.

My request is to add a further choice of line terminators besises Unix, Dos
and Mac-OS that
considers lines terminated by any one of cr-lf, cr or lf (in this order).

Thank you
-Angelo Borsotti

--00163630ed339fd9cb04b0ebed48
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<br><br>emacs supports files with Unix, Dos and Mac-OS line terminato=
rs. It does not support<br>files with have a mixture of them. Unfortunately=
, there are tools, such as the Sun java<br>compilers, that accept source fi=
les in which each line can be terminated by one<br>
of the Unix, Dos or Mac-OS line terminators.<br>The result is that emacs an=
d such tools number lines differently, and a programmer, when<br>trying to =
locate a line on which the compiler reported an error is at a loss.<br>
E.g. take the attached file: it has been created with Emacs in Windows typi=
ng the text<br>and adding with ctrl-q ctrl-m a carriage-return character at=
 the end of the first line.<br>When that file is opened with emacs, three l=
ines are shown (i.e. that carriage-return<br>
does not make an empty line).<br>When the java compiler is run, this is the=
 result:<br><br>D:\jtest&gt;javac Errjava.java<br>Errjava.java:3: &lt;ident=
ifier&gt; expected<br>=A0=A0=A0 public main ...<br>=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0 ^<br>1 error<br>
<br>Note that the compiler is telling that there is an error on line 3, but=
 for emacs that line is line 2.<br><br>P.S. there are other editors, such a=
s PsPad which instead display the file with the same line<br>numbering as t=
he java compiler uses.<br>
<br>My request is to add a further choice of line terminators besises Unix,=
 Dos and Mac-OS that<br>considers lines terminated by any one of cr-lf, cr =
or lf (in this order).<br><br>Thank you<br>-Angelo Borsotti<br><br>

--00163630ed339fd9cb04b0ebed48--
--00163630ed339fd9d104b0ebed4a
Content-Type: application/octet-stream; name="Errjava.java"
Content-Disposition: attachment; filename="Errjava.java"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gulg3qgv0

cHVibGljIGNsYXNzIEVycmphdmEgew0NCiAgICBwdWJsaWMgbWFpbiAuLi4NCn0NCg==
--00163630ed339fd9d104b0ebed4a--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Angelo Borsotti <angelo.borsotti@HIDDEN>
Subject: bug#9953: Acknowledgement (line terminators)
Message-ID: <handler.9953.B.132042742332172.ack <at> debbugs.gnu.org>
References: <CAB9Jk9DrPATAG-vGgQWzA9CLv=v0OcrCiEQ+U6Nm7Z_HfEw8vw@HIDDEN>
X-Gnu-PR-Message: ack 9953
X-Gnu-PR-Package: emacs
Reply-To: 9953 <at> debbugs.gnu.org
Date: Fri, 04 Nov 2011 17:24:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 9953 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
9953: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9953
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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