* info-look.el and colons in info indexes
@ 2003-05-09 23:55 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2003-05-09 23:55 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-09 23:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-09 23:55 info-look.el and colons in info indexes Kevin Ryde
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.