From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: breadcrumbs for Info . . . . . . Date: Fri, 13 Jun 2008 10:52:06 -0700 Message-ID: <008f01c8cd7e$3208a5a0$0200a8c0@us.oracle.com> References: <009d01c8cb55$13d53e20$0200a8c0@us.oracle.com><87fxrkltma.fsf@jurta.org><00ae01c8cb71$c26aeef0$0200a8c0@us.oracle.com><873ankqou6.fsf@jurta.org><00d901c8cbc9$7df36fb0$0200a8c0@us.oracle.com><87tzfzk331.fsf@jurta.org><00a501c8ccdd$93328720$c2b22382@us.oracle.com><002401c8cd1f$98631650$0200a8c0@us.oracle.com><87hcbxd8t8.fsf@ambire.localdomain><004201c8cd5d$1baa0900$0200a8c0@us.oracle.com> <87y759b6fv.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213379706 14214 80.91.229.12 (13 Jun 2008 17:55:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2008 17:55:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Thien-Thi Nguyen'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 13 19:55:49 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K7DV5-00074h-Er for ged-emacs-devel@m.gmane.org; Fri, 13 Jun 2008 19:55:47 +0200 Original-Received: from localhost ([127.0.0.1]:59851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7DUH-0005zG-OH for ged-emacs-devel@m.gmane.org; Fri, 13 Jun 2008 13:54:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7DUD-0005z4-Fv for emacs-devel@gnu.org; Fri, 13 Jun 2008 13:54:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7DUB-0005yg-Vi for emacs-devel@gnu.org; Fri, 13 Jun 2008 13:54:53 -0400 Original-Received: from [199.232.76.173] (port=42911 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7DUB-0005yb-Sg for emacs-devel@gnu.org; Fri, 13 Jun 2008 13:54:51 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:47583) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K7DUA-0002oJ-BN for emacs-devel@gnu.org; Fri, 13 Jun 2008 13:54:51 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m5DHrs6a030371; Fri, 13 Jun 2008 11:53:54 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m5D5CeMN013686; Fri, 13 Jun 2008 11:53:54 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3694109681213379523; Fri, 13 Jun 2008 10:52:03 -0700 Original-Received: from dradamslap1 (/24.5.171.3) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 13 Jun 2008 10:52:03 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87y759b6fv.fsf@ambire.localdomain> Thread-Index: AcjNedNPC2tMOphNQhmFhwYWvDVUcAAAr/8w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99135 Archived-At: > Cool. Yes, i would welcome such an option. Perhaps even better > would be to separate the collection of path-to-root info from > its display. The customizable option might be (a hypothetical) > `Info-display-breadcrumbs-method', with nil meaning don't bother, > or otherwise a function that takes the list of nodes up to root. Yes, it could be good to have a function that returned, say, the Up node for an arbitrary node (not necessarily for the current node). The breadcrumbs code I sent jumps around a hoop to get this info, naively using `Info-goto-node' to go to the current node's Up, then that parent's Up, etc., gathering `Info-current-node' at each such step. That approach is a bit silly - it was quick-and-dirty, and it works, but it's hardly elegant. As pointed out in the discussion, if the node hierarchy were cached in some form, then this info would be trivially available. Even if the "cache" consisted only of a set of node+parent pairs (regardless of the order among pairs), that would be sufficient. > The default value can be a function to formattedly insert into the > buffer (as you propose, iiuc), whereas curmudgeons, who might like > using the collected info but not its default display method, can > write (or badger others to write) something else. > > Btw, if i detect correctly a tone of annoyance in your reply, i > apologize for having triggered it. It's not my intent to annoy. Same here. I'm not annoyed by what you wrote, and I didn't mean to annoy anyone. My interest here is to (1) suggest that Emacs provide breadcrumbs to those who want it (preferably by default), and (2) provide one way to do that, for lack of another.