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:49:49 +0300 Message-ID: <83vdcax5hu.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> <83wrwqx6r2.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1270155981 13915 80.91.229.12 (1 Apr 2010 21:06:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Apr 2010 21:06:21 +0000 (UTC) To: juri@jurta.org, 5809@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 01 23:06:17 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 1NxRai-0000rO-8e for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Apr 2010 23:06:16 +0200 Original-Received: from localhost ([127.0.0.1]:40278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxRQy-0002wR-Qe for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Apr 2010 16:56:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxRQp-0002vU-Mb for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 16:56:03 -0400 Original-Received: from [140.186.70.92] (port=49132 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxRQn-0002uX-EL for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 16:56:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxRQY-0007cp-Ap for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 16:55:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34002) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxRQY-0007cf-7V for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 16:55:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NxRL1-0007wY-8Y; Thu, 01 Apr 2010 16:50:03 -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:50:03 +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.127015499830514 (code B ref 5809); Thu, 01 Apr 2010 20:50:03 +0000 Original-Received: (at 5809) by debbugs.gnu.org; 1 Apr 2010 20:49:58 +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 1NxRKw-0007w5-Fn for submit@debbugs.gnu.org; Thu, 01 Apr 2010 16:49:58 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxRKt-0007vi-JA for 5809@debbugs.gnu.org; Thu, 01 Apr 2010 16:49:57 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L0700000TBC9U00@a-mtaout22.012.net.il> for 5809@debbugs.gnu.org; Thu, 01 Apr 2010 23:49:49 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.92.42]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L0700MQATUZPA30@a-mtaout22.012.net.il>; Thu, 01 Apr 2010 23:49:49 +0300 (IDT) In-reply-to: <83wrwqx6r2.fsf@gnu.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:50:03 -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:35865 Archived-At: > Date: Thu, 01 Apr 2010 23:22:41 +0300 > From: Eli Zaretskii > Cc: 5809@debbugs.gnu.org > > 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. Here's another, perhaps better idea: how about if, instead of inserting breadcrumbs as text into the buffer, we put an overlay there with a display property whose value is the breadcrumbs as a string? This way, buffer positions are not affected at all.