all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: java line termination
Date: Wed, 29 Jan 2003 01:36:53 -0500	[thread overview]
Message-ID: <E18dlq9-0000j0-00@fencepost.gnu.org> (raw)
In-Reply-To: <874r7txh2g.fsf@fleche.redhat.com> (message from Tom Tromey on 28 Jan 2003 11:30:47 -0700)

    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?

  reply	other threads:[~2003-01-29  6:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-28 18:30 java line termination Tom Tromey
2003-01-29  6:36 ` Richard Stallman [this message]
2003-01-29 19:39   ` Tom Tromey
2003-01-31  3:23     ` Richard Stallman
2003-01-31  3:33       ` Tom Tromey
2003-02-01  4:22         ` Richard Stallman
2003-02-03  1:14           ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E18dlq9-0000j0-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.