unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Ryde <user42@zip.com.au>
Subject: info-look.el and colons in info indexes
Date: Sat, 10 May 2003 09:55:25 +1000	[thread overview]
Message-ID: <87of2bu13m.fsf@zip.com.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

The following lets C-h C-i work on Guile procedures with colons in
their name, like `match:count'.  It follows what info.el does
nowadays, assuming I understand the "index entry" case in
Info-try-follow-nearest-node.

	* info-look.el (info-lookup-make-completions): Allow colons in index
	entries by looking for ": " to terminate, as per latest info.el.

The guile manual isn't in info-look's defaults (for scheme-mode), but
the spot below will add it in order to see the effect of the change.

(require 'info-look)
(info-lookup-add-help
 :mode 'scheme-mode
 :regexp "[^()'\" \t\n]+"
 :ignore-case t
 :doc-spec '(("(guile)Procedure Index" nil
              "^[ \t]+- [^:]+:[ \t]*" "\\($\\| \\)")))



[-- Attachment #2: info-look.el.colons.diff --]
[-- Type: text/plain, Size: 1711 bytes --]

Index: info-look.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/info-look.el,v
retrieving revision 1.32
diff -u -c -F^( -r1.32 info-look.el
cvs server: conflicting specifications of output style
*** info-look.el	5 Apr 2003 12:58:02 -0000	1.32
--- info-look.el	9 May 2003 23:28:38 -0000
***************
*** 1,7 ****
  ;;; info-look.el --- major-mode-sensitive Info index lookup facility
  ;; An older version of this was known as libc.el.
  
! ;; Copyright (C) 1995,96,97,98,99,2001  Free Software Foundation, Inc.
  
  ;; Author: Ralph Schleicher <rs@nunatak.allgaeu.org>
  ;;         (did not show signs of life (Nov 2001)  -stef)
--- 1,7 ----
  ;;; info-look.el --- major-mode-sensitive Info index lookup facility
  ;; An older version of this was known as libc.el.
  
! ;; Copyright (C) 1995,96,97,98,99,2001, 2003  Free Software Foundation, Inc.
  
  ;; Author: Ralph Schleicher <rs@nunatak.allgaeu.org>
  ;;         (did not show signs of life (Nov 2001)  -stef)
*************** (defun info-lookup-make-completions (top
*** 468,474 ****
  	      (progn
  		(goto-char (point-min))
  		(and (search-forward "\n* Menu:" nil t)
! 		     (while (re-search-forward "\n\\* \\([^:\t\n]*\\):" nil t)
  		       (setq entry (match-string 1)
  			     item (funcall trans entry))
  		       ;; `trans' can return nil if the regexp doesn't match.
--- 468,474 ----
  	      (progn
  		(goto-char (point-min))
  		(and (search-forward "\n* Menu:" nil t)
! 		     (while (re-search-forward "\n\\* \\(.*\\): " nil t)
  		       (setq entry (match-string 1)
  			     item (funcall trans entry))
  		       ;; `trans' can return nil if the regexp doesn't match.

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel

                 reply	other threads:[~2003-05-09 23:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87of2bu13m.fsf@zip.com.au \
    --to=user42@zip.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).