From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jacques Le Normand Newsgroups: gmane.emacs.bugs Subject: bug#6416: next-error mis-highlights ocaml error message locations Date: Sun, 13 Jun 2010 14:26:45 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6dab052b8925b0488ed83ce X-Trace: dough.gmane.org 1276463886 15441 80.91.229.12 (13 Jun 2010 21:18:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Jun 2010 21:18:06 +0000 (UTC) To: 6416@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 13 23:18:05 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ONuZA-00029D-S0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jun 2010 23:18:05 +0200 Original-Received: from localhost ([127.0.0.1]:53549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONuZ9-0001Hy-Sx for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jun 2010 17:18:03 -0400 Original-Received: from [140.186.70.92] (port=59880 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONsO6-00052t-JW for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2010 14:58:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONsO4-0007Lr-PU for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2010 14:58:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52282) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONsO4-0007Ln-Mp for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2010 14:58:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ONs4I-0006wA-0p; Sun, 13 Jun 2010 14:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jacques Le Normand Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Jun 2010 18:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6416 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127645425826656 (code B ref -1); Sun, 13 Jun 2010 18:38:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jun 2010 18:37:38 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONs3t-0006vt-Ak for submit@debbugs.gnu.org; Sun, 13 Jun 2010 14:37:37 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONrtY-0006oD-0z for submit@debbugs.gnu.org; Sun, 13 Jun 2010 14:26:56 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:40266) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ONrtT-0006uh-I7 for submit@debbugs.gnu.org; Sun, 13 Jun 2010 14:26:51 -0400 Original-Received: from [140.186.70.92] (port=36565 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONrtR-0001Zr-Ub for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2010 14:26:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONrtQ-00039V-KR for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2010 14:26:49 -0400 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:57165) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONrtQ-00039I-9v for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2010 14:26:48 -0400 Original-Received: by wwb34 with SMTP id 34so3278780wwb.0 for ; Sun, 13 Jun 2010 11:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=U3VklayL9pe8p2WkBIxYxQ4/jdUFWarOmwi6IkvXoUk=; b=m69P0xHkWU6/wf1C1/mDzfiUWldITPralHxDg8Clnxr2gEk5Bh00suvFwck983/wqn BBBemuN4QJOr24lPfIPEk2aZKqgxm2gbgHaHqJbdh5s9V3vkA7pd35PBmQFe1z7CuPCd OmkYbgXhMwiIJe3dg6m7cfAREDsFFQGEzejvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fDokNCMs790gwW0Fxc1V0mJbz9GBOlV906MFtYNoqrZ4zaiBnl6cF/lPU2FjerK0v2 lv70PVX7cHfhHLsoM3jNl59s3kt8HVFrStFrzwTfVfO5NBF9SsZXnO3KT+zr4GN7VS1v HLSnxzlzvAubw8DqqkmN0mHFP0LBLvTREBPVY= Original-Received: by 10.216.90.133 with SMTP id e5mr1395358wef.77.1276453605380; Sun, 13 Jun 2010 11:26:45 -0700 (PDT) Original-Received: by 10.216.52.145 with HTTP; Sun, 13 Jun 2010 11:26:45 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sun, 13 Jun 2010 14:37:35 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 13 Jun 2010 14:38:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 13 Jun 2010 17:17:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37756 Archived-At: --0016e6dab052b8925b0488ed83ce Content-Type: text/plain; charset=ISO-8859-1 Please write in English if possible, because the Emacs maintainers usually 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. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: if I compile the following with ocamlc: let foo : int = "foo" ^ "bar" it gives me the error File "/home/palomer/temp/test.ml", line 2, characters 1-21: ... which refers to: "foo" ^ "bar" next-error will try and highlight characters 1 to 21 on line 2. however, line 2 only contains 10 or so characters. This is because character 21 actually refers to character 8 on line 4. Instead of highlighting 3 lines, only 1 line is highlighted. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/22.2/etc/DEBUG for instructions. In GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2010-03-29 on palmer, modified by Ubuntu Windowing system distributor `The X.Org Foundation', version 11.0.10706000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' 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_CA.utf8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Tuareg Minor modes in effect: shell-dirtrack-mode: t xterm-mouse-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t abbrev-mode: t --0016e6dab052b8925b0488ed83ce Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Please write in English if possible, because the Emacs = maintainers
usually do not have translators to read other languag= es 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.

Please d= escribe exactly what actions triggered the bug
and the precise sy= mptoms of the bug:

if I compile the following with= ocamlc:

let foo : int =3D=A0
=A0=A0"foo"
=A0=A0^=A0
=A0=A0 =A0"bar"

=
it gives me the error=A0

File "/home/pal= omer/temp/test.ml", line 2, characters = 1-21:
...

which refers to:
=A0=A0&qu= ot;foo"
=A0=A0^=A0
=A0=A0 =A0"bar"
=

next-error will try and highlight characters 1 to= 21 on line 2. however, line 2 only contains 10 or so characters. This is b= ecause character 21 actually refers to character 8 on line 4. Instead of hi= ghlighting 3 lines, only 1 line is highlighted.


If Emacs crashed, and you have the Emacs= process in the gdb debugger,
please include the output from the = following gdb commands:
=A0=A0 =A0`bt full' and `xbacktrace&#= 39;.
If you would like to further debug the crash, please read the file
/usr/share/emacs/22.2/etc/DEBUG for instructions.


In GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xa= w3d scroll bars)
=A0of 2010-03-29 on palmer, modified by Ubuntu
Windowing sys= tem distributor `The X.Org Foundation', version 11.0.10706000
configured using `configure =A0'--build=3Di486-linux-gnu' '--h= ost=3Di486-linux-gnu' '--prefix=3D/usr' '--sharedstatedir= =3D/var/lib' '--libexecdir=3D/usr/lib' '--localstatedir=3D/= var' '--infodir=3D/usr/share/info' '--mandir=3D/usr/share/m= an' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/emacs= 22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/= site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/s= hare/emacs/22.2/leim' '--with-x=3Dyes' '--with-x-toolkit=3D= athena' '--with-toolkit-scroll-bars' 'build_alias=3Di486-li= nux-gnu' 'host_alias=3Di486-linux-gnu' 'CFLAGS=3D-DDEBIAN -= DSITELOAD_PURESIZE_EXTRA=3D5000 -g -O2' 'LDFLAGS=3D-g -Wl,--as-need= ed' 'CPPFLAGS=3D''

Important settings:
=A0=A0value of $LC_ALL: n= il
=A0=A0value of $LC_COLLATE: nil
=A0=A0value of $LC_C= TYPE: nil
=A0=A0value of $LC_MESSAGES: nil
=A0=A0value = of $LC_MONETARY: nil
=A0=A0value of $LC_NUMERIC: nil
=A0=A0value of $LC_TIME: nil=
=A0=A0value of $LANG: en_CA.utf8
=A0=A0locale-coding-s= ystem: utf-8
=A0=A0default-enable-multibyte-characters: t

Major mode: Tuareg

Minor modes in effect:
=A0=A0shell-dirtrack-mode: t
=A0=A0xterm-mouse-mode: t
=A0=A0tooltip-mode: t
=A0=A0mouse-wheel-mode: t
=A0= =A0file-name-shadow-mode: t
=A0=A0global-font-lock-mode: t
=A0=A0font-lock-mode: t
=
=A0=A0blink-cursor-mode: t
=A0=A0unify-8859-on-encoding-mode= : t
=A0=A0utf-translate-cjk-mode: t
=A0=A0auto-compress= ion-mode: t
=A0=A0line-number-mode: t
=A0=A0abbrev-mode: t

--0016e6dab052b8925b0488ed83ce--