From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5809: 23.1.94; cross-reference by anchor yields in accurate position Date: Thu, 01 Apr 2010 23:22:41 +0300 Message-ID: <83wrwqx6r2.fsf@gnu.org> References: <837hoszubi.fsf@gnu.org> <87hbnwy2un.fsf@mail.jurta.org> <83y6h8xz8a.fsf@gnu.org> <8739zf5bif.fsf@mail.jurta.org> <83y6h7vy6p.fsf@gnu.org> <87y6h7uitd.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1270153669 5774 80.91.229.12 (1 Apr 2010 20:27:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Apr 2010 20:27:49 +0000 (UTC) Cc: 5809@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 01 22:27:45 2010 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 1NxQzP-0007L2-JF for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Apr 2010 22:27:43 +0200 Original-Received: from localhost ([127.0.0.1]:45944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxQzP-00037o-3g for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Apr 2010 16:27:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxQxY-0002e6-GA for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 16:25:48 -0400 Original-Received: from [140.186.70.92] (port=39510 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxQxX-0002cy-1B for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 16:25:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxQxV-0004lu-T7 for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 16:25:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42401) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxQxV-0004lo-QP for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 16:25:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NxQvq-00071N-GN; Thu, 01 Apr 2010 16:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Apr 2010 20:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5809 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5809-submit@debbugs.gnu.org id=B5809.127015340526978 (code B ref 5809); Thu, 01 Apr 2010 20:24:02 +0000 Original-Received: (at 5809) by debbugs.gnu.org; 1 Apr 2010 20:23:25 +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 1NxQvF-000715-2K for submit@debbugs.gnu.org; Thu, 01 Apr 2010 16:23:25 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxQvC-000710-Mb for 5809@debbugs.gnu.org; Thu, 01 Apr 2010 16:23:24 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L0700K00SJX4300@a-mtaout20.012.net.il> for 5809@debbugs.gnu.org; Thu, 01 Apr 2010 23:22:41 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.92.42]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L0700FW3SLRTGD0@a-mtaout20.012.net.il>; Thu, 01 Apr 2010 23:22:40 +0300 (IDT) In-reply-to: <87y6h7uitd.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 01 Apr 2010 16:24:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:35863 Archived-At: > From: Juri Linkov > Cc: 5809@debbugs.gnu.org > Date: Thu, 01 Apr 2010 21:30:30 +0300 > > >> Maybe we should disable breadcrumbs in 23.2? > > > > I cannot believe this is so hard to fix properly. Can you describe > > the details? > > Info breadcrumbs are currently implemented by inserting a string into > the Info buffer. This breaks all point positions that Info functions > are relied upon. It is a daunting task to try to account these offsets > for the lengths of breadcrumb strings inserted in all visited nodes > above the current node in the current Info file. This practically > means rewriting the core logic of info.el just before the release. I was talking about fixing this on the trunk. For Emacs 23.2, I indeed think we should turn off this feature by default. For the trunk, isn't it true that the function which actually goes to a location is Info-find-node-2, and that all the others call it? If so, this is the main place to account for the inserted breadcrumbs. We could maintain in some data structure the buffer positions and length of each breadcrumbs line we insert, and then use that data structure in Info-find-node-2 to compute the summary offset to be applied in the current node. WDYT?