From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: java line termination Date: Wed, 29 Jan 2003 01:36:53 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <874r7txh2g.fsf@fleche.redhat.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1043822148 4620 80.91.224.249 (29 Jan 2003 06:35:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2003 06:35:48 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18dlp4-0001CO-00 for ; Wed, 29 Jan 2003 07:35:46 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18dlu7-0002UN-00 for ; Wed, 29 Jan 2003 07:40:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18dlqU-0008I8-04 for emacs-devel@quimby.gnus.org; Wed, 29 Jan 2003 01:37:14 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18dlqB-0008Hm-00 for emacs-devel@gnu.org; Wed, 29 Jan 2003 01:36:55 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18dlqA-0008HK-00 for emacs-devel@gnu.org; Wed, 29 Jan 2003 01:36:55 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18dlqA-0008HE-00 for emacs-devel@gnu.org; Wed, 29 Jan 2003 01:36:54 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18dlq9-0000j0-00; Wed, 29 Jan 2003 01:36:53 -0500 Original-To: tromey@redhat.com In-reply-to: <874r7txh2g.fsf@fleche.redhat.com> (message from Tom Tromey on 28 Jan 2003 11:30:47 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11181 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11181 If I compile code like this with gcj, and then use gdb to debug it, I find that the debug arrow will be misplaced, because Emacs and gcj disagree about the current line number. Similarly, M-x next-error will sometimes jump to the wrong line, as gcj reports line numbers according to Java rules, but Emacs interprets them according to its own rules. Why does GCJ follow the Java convention for the line number in its error messages? I see no reason to do that. Does it have anything to do with correct execution of the Java program? If this were changed, in what sense would that be a problem? I think in java-mode Emacs ought to respect Java's notion of line termination. That is probably impossible because the buffer contents have already been subject to EOL conversion. If you turn this off, Emacs will display \r as ^M, which will be rather annoying. Emacs has many line-counting features and you would have to change them all. It is not feasible. Fixing GCJ would be much cleaner, and definitely more in the GNU tradition. We do not follow standards slavishly; we follow them to the extent it is useful for users that we do so. So the question is, would this change in GCJ have any downside, for the users?