From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#5809: 23.1.94; cross-reference by anchor yields in accurate position Date: Fri, 02 Apr 2010 00:10:03 +0300 Organization: JURTA Message-ID: <878w96rgd1.fsf@mail.jurta.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> <83vdcax5hu.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270162606 1253 80.91.229.12 (1 Apr 2010 22:56:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Apr 2010 22:56:46 +0000 (UTC) Cc: 5809@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 02 00:56:41 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 1NxTJV-0002Gs-RM for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Apr 2010 00:56:38 +0200 Original-Received: from localhost ([127.0.0.1]:54345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxSuK-0005Qr-MD for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Apr 2010 18:30:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxStu-000581-25 for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 18:30:10 -0400 Original-Received: from [140.186.70.92] (port=55547 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxStk-0004wo-Cj for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 18:30:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxSpf-00070y-PL for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 18:25:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54796) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxSpf-00070s-C7 for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 18:25:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NxSQl-00007f-2g; Thu, 01 Apr 2010 18:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov 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 22:00: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.1270159179441 (code B ref 5809); Thu, 01 Apr 2010 22:00:02 +0000 Original-Received: (at 5809) by debbugs.gnu.org; 1 Apr 2010 21:59:39 +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 1NxSQM-000073-Mj for submit@debbugs.gnu.org; Thu, 01 Apr 2010 17:59:39 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxSQK-00006t-6I for 5809@debbugs.gnu.org; Thu, 01 Apr 2010 17:59:36 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.34.136.cable.starman.ee [82.131.34.136]) by mx1.starman.ee (Postfix) with ESMTP id C256F3F40BF; Fri, 2 Apr 2010 00:59:26 +0300 (EEST) In-Reply-To: <83vdcax5hu.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Apr 2010 23:49:49 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 01 Apr 2010 18:00: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:35868 Archived-At: >> 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. I already tried this and some other kludges that showed their disadvantages. In bug#4147 we concluded that the best solution would be to put breadcrumbs to the header line where breadcrumb navigation links belong to along with the links to the up/next/previous nodes. Currently the header line has the limitation in only one glyph row. But this is a general problem that should be solved one way or the other, so different modes like Info, proced, ruler-mode could have their own header window. There is a successful prototype implementation in bug#4147 that you also helped to develop. -- Juri Linkov http://www.jurta.org/emacs/