Received: (at submit) by debbugs.gnu.org; 4 Nov 2011 17:23:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 04 13:23:43 2011 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> Subject: line terminators From: Angelo Borsotti <angelo.borsotti@HIDDEN> To: bug-gnu-emacs@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-Debbugs-Envelope-To: submit 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>javac Errjava.java<br>Errjava.java:3: <ident= ifier> 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--
Angelo Borsotti <angelo.borsotti@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#9953
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.