* java line termination
@ 2003-01-28 18:30 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2003-01-28 18:30 UTC (permalink / raw)
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.
In GNU Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2002-04-08 on porky.devel.redhat.com
configured using `configure i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-gcc --with-pop --with-sound'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.iso885915
locale-coding-system: iso-latin-9
default-enable-multibyte-characters: nil
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Java has its own rules for what constitutes a line terminator.
A bare \r is one, as is a bare \n; but the \r\n sequence is also
considered a single terminator.
I've run across Java source code which uses a mix of different line
terminators in a single file. While ugly, there's not much I can do
about it.
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.
I think in java-mode Emacs ought to respect Java's notion of line
termination.
Recent input:
l i k e SPC t h e r e ' s SPC m o r e SPC f o r SPC
u s SPC t o SPC d o SPC h e r e SPC : - ( C-u C-b C-k
l <backspace> , SPC b l e a h . C-p C-k C-e C-f C-f
C-n C-f C-n C-f C-v C-c C-c M-v z C-c b C-v C-s j a
v a C-w C-w C-w C-w C-s C-l C-s C-s C-s C-s C-s C-s
C-s C-a M-x r e p o r t - e m <tab> <return>
Recent messages:
Saving file /home/tromey/.newsrc.eld...
Wrote /home/tromey/.newsrc.eld
Saving /home/tromey/.newsrc.eld...done
Mark set
set-mark-command: No mark set in this buffer [2 times]
Mark set [4 times]
Auto-saving...done
Sending...done
Mark saved where search started [2 times]
Tom
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-28 18:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-28 18:30 java line termination Tom Tromey
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).