From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1761: 23.0.60; Can't reach info nodes that aren't in TOC Date: Fri, 02 Jan 2009 15:48:59 +0100 Message-ID: <87zli9n4pw.fsf@escher.local.home> References: <87fxk2t9uw.fsf@mcbain.luannocracy.com> Reply-To: Stephen Berman , 1761@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230908692 6978 80.91.229.12 (2 Jan 2009 15:04:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Jan 2009 15:04:52 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 1761@emacsbugs.donarmstrong.com To: David Abrahams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 02 16:06:00 2009 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.50) id 1LIlat-0004bz-3K for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Jan 2009 16:05:55 +0100 Original-Received: from localhost ([127.0.0.1]:49895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIlZe-00080F-6K for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Jan 2009 10:04:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LIlYn-0007ft-7E for bug-gnu-emacs@gnu.org; Fri, 02 Jan 2009 10:03:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LIlYl-0007ej-KM for bug-gnu-emacs@gnu.org; Fri, 02 Jan 2009 10:03:36 -0500 Original-Received: from [199.232.76.173] (port=39264 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIlYk-0007eb-OH for bug-gnu-emacs@gnu.org; Fri, 02 Jan 2009 10:03:34 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44915) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LIlYj-00063l-I1 for bug-gnu-emacs@gnu.org; Fri, 02 Jan 2009 10:03:34 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n02F3Ma6010024; Fri, 2 Jan 2009 07:03:23 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n02Et6Lj007839; Fri, 2 Jan 2009 06:55:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 02 Jan 2009 14:55:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1761 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1761-submit@emacsbugs.donarmstrong.com id=B1761.12309077526173 (code B ref 1761); Fri, 02 Jan 2009 14:55:06 +0000 Original-Received: (at 1761) by emacsbugs.donarmstrong.com; 2 Jan 2009 14:49:12 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n02En761006164 for <1761@emacsbugs.donarmstrong.com>; Fri, 2 Jan 2009 06:49:09 -0800 Original-Received: (qmail invoked by alias); 02 Jan 2009 14:49:02 -0000 Original-Received: from i59F540F3.versanet.de (EHLO escher.local.home) [89.245.64.243] by mail.gmx.net (mp034) with SMTP; 02 Jan 2009 15:49:02 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/eZ2cmVW/e30E4KxoyDfdSOG+Tl2OkqoDl1L+AWN mw0DqtG8An9YJV Original-Received: by escher.local.home (Postfix, from userid 1000) id 22C4C7FF53; Fri, 2 Jan 2009 15:49:00 +0100 (CET) In-Reply-To: <87fxk2t9uw.fsf@mcbain.luannocracy.com> (David Abrahams's message of "Fri, 02 Jan 2009 03:01:27 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 02 Jan 2009 10:03:36 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:23689 gmane.emacs.pretest.bugs:23593 Archived-At: On Fri, 02 Jan 2009 03:01:27 -0500 David Abrahams wrote: > This is arguably a feature request, but it seems so glaring that you > might consider it a bug. If I'm in an xterm and type `info dbus' I get > a nice info session about emacs/dbus integration. But there doesn't > seem to be any way to visit the same page from within emacs using > info-mode other than `M-: (info "dbus")'. This seems needlessly > inconvenient. `C-u M-x info dbus ' ought to get me to the > same node if there's no info file named "dbus" in the current working > directory. Also, there should be some syntax to disambiguate: > `C-u M-x info :dbus ' maybe I also wanted something like that, so I wrote this as a start: (defun srb-info () "Enter Info at the Info file the user chooses, tabbing for completion. If you type parentheses around the Info file name and then type a node name, e.g. `(emacs)Buffers', then Info enters the file at that node (completion for nodes below the file level is not provided)." (interactive) (require 'info) (let (files idx info-files info-file) (dolist (d Info-default-directory-list files) (when (file-readable-p d) (setq files (cons (directory-files d) files)))) (setq files (append (car files) (cadr files))) (dolist (f files) (setq idx (string-match "\\." f)) (setq info-files (cons (substring f 0 idx) info-files))) (dolist (f info-files) (when (string-match "-[1-9][0-9]?$" f) (setq info-files (delete f info-files)))) (setq info-file (completing-read "Info file name: " info-files)) (unless (string-match "^\([^ ]+\)" info-file) (setq info-file (concat "(" info-file ")"))) (Info-goto-node info-file))) Steve Berman