Commit graph

245 commits

Author SHA1 Message Date
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
dd631e8aec (imenu--split-menu): Remove unused var `count'.
Don't copy the sequence since we're already modifying it elsewhere.
(imenu--create-keymap): Rename from imenu--create-keymap-1.
Add optional `cmd' argument.  Remove unused var `counter'.
(imenu-update-menubar): Use the new arg to get the old behavior.
(imenu--mouse-menu): Don't use the new arg to recover the lost behavior.
2003-05-16 21:12:25 +00:00
Stefan Monnier
95e60ff984 (imenu--generic-function): Use font-lock-defaults
case setting if imenu-case-fold-search is not locally set.
2003-05-06 15:16:27 +00:00
Glenn Morris
23d468dadd (imenu-syntax-alist): Doc fix. 2002-08-20 20:35:56 +00:00
Glenn Morris
5b89a8c974 (imenu--generic-function): Use mapc. 2002-08-20 20:23:25 +00:00
Stefan Monnier
5988bd2708 (imenu-always-use-completion-buffer-p): Make obsolete.
(imenu-use-popup-menu, imenu-eager-completion-buffer): New vars.
(imenu-space-replacement): Allow nil value.
(imenu--completion-buffer): Use new vars and simplify.
Fix handling of minibuffer-setup-hook.
Use minibuffer-completion-help instead of rolling our own.
(imenu-choose-buffer-index): Use the new var.
2002-08-15 00:12:30 +00:00
Richard M. Stallman
9fb980fc3d (imenu-menubar-modified-tick): Renamed from
imenu-update-menubar-modified-tick.
(imenu-update-menubar): Update imenu-menubar-modified-tick
whenever outer condition succeeds.
2002-03-18 04:27:30 +00:00
Richard M. Stallman
a3841d3be9 (imenu-update-menubar-modified-tick): New variable.
(imenu-update-menubar): Don't call imenu--make-index-alist
if buffer has not changed since last time.
2002-03-11 09:16:37 +00:00
Stefan Monnier
0cdb3baa24 (imenu--split-menu): Use dolist and copy-sequence.
(imenu--create-keymap-2): Remove.
(imenu--create-keymap-1): Simplify, remove third argument.
(imenu--generic-function): Use dolist.
(imenu-find-default): New function.
(imenu--completion-buffer): Use it.
(imenu--mouse-menu): Use popup-menu.
(imenu--menubar-select): Return t rather than calling imenu.
2001-11-20 00:17:25 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Dave Love
eeb2442973 (imenu--create-keymap-2): Revert use of menu-item for
now, to avoid problems with binding imenu directly to a mouse event.
2001-03-07 19:04:54 +00:00
Dave Love
c516e98ef4 (imenu--generic-function): Use mapc to iterate over
syntax characters.
2001-02-18 16:41:13 +00:00
Dave Love
1447c4b10f (imenu-generic-expression): Doc fix. 2001-02-09 15:41:08 +00:00
Gerd Moellmann
005913e452 (imenu-syntax-alist): Add autoload cookie for
the `make-variable-buffer-local'.
2001-01-29 15:50:53 +00:00
Dave Love
117be359bf (imenu--truncate-items): Revert last change. 2001-01-11 19:04:29 +00:00
Dave Love
0dcf8835e3 (imenu--create-keymap-2): Build menu with menu-item
using :key-sequence, making it much more usable.  Use nconc, not
append.
(imenu--create-keymap-1): Avoid append.
2000-10-23 17:24:54 +00:00
Dave Love
fbfb705c15 (imenu-add-to-menubar): Fix again. 2000-10-08 15:13:43 +00:00
Dave Love
f1d7969d31 (imenu-add-to-menubar): Fix last change. 2000-10-08 09:37:01 +00:00
Dave Love
e26b2a2881 (imenu--truncate-items, imenu--cleanup)
(imenu--generic-function): Avoid mapcar.
(imenu--replace-spaces): Function removed.
(imenu--completion-buffer): Use subst-char-in-string.
(imenu-add-to-menubar): Use keymap inheritance.
2000-09-12 12:49:20 +00:00
Stefan Monnier
70223ca45d (imenu-generic-expression): Docstring fix. 2000-06-11 05:34:05 +00:00
Dave Love
f1ed9461a9 Add to debug-ignored-errors. 2000-05-22 17:41:53 +00:00
Phillip Rulon
020e8fdf93 (imenu-after-jump-hook): New variable.
(imenu): Run menu-after-jump-hook.
(imenu-name-lookup-function): New variable.
(imenu--in-alist): Use those variables.
1999-09-24 13:55:29 +00:00
Richard M. Stallman
fdc5fa25cb (imenu--mouse-menu): Use assq when searching in FINAL. 1999-04-06 20:02:45 +00:00
Richard M. Stallman
0cff96e7ce (imenu--last-menubar-index-alist): Add doc.
(imenu-add-to-menubar):  Reset imenu--last-menubar-index-alist.
1999-02-06 21:50:53 +00:00
Richard M. Stallman
df90db1359 (imenu-sort-function): Fix custom type. 1999-01-31 07:20:12 +00:00
Karl Heuer
c01ee596b5 (imenu--generic-function): Sort each submenu by position.
(imenu--sort-by-position): New function.
1998-09-30 19:21:01 +00:00
Richard M. Stallman
31f2a06453 (imenu-create-index-function): Add autoload cookie.
(imenu-extract-index-name-function, imenu-default-goto-function)
(imenu-sort-function, imenu-prev-index-position-function): Likewise.
1998-07-22 02:29:27 +00:00
Richard M. Stallman
a742f6ccb5 (imenu-space-replacement): Use `.'. 1998-06-27 19:45:22 +00:00
Andreas Schwab
8a3e08a6ee (imenu-always-use-completion-buffer-p): Use `other'
widget type.
1998-06-24 09:12:33 +00:00
Dave Love
90806abcfc (imenu-syntax-alist): Doc fix. 1998-05-27 13:37:11 +00:00
Dan Nicolaescu
f5f727f8ff *** empty log message *** 1998-05-26 09:23:23 +00:00
Dave Love
b2118a4123 (imenu-create-index-function): Remove autoload cookie
to avoid nil default value.
1998-05-06 14:58:47 +00:00
Richard M. Stallman
fe2908be7b (imenu--generic-function): Doc fix. Rewritten to be faster.
(defgroup imenu): Add :link.
(imenu-use-markers, imenu-auto-rescan-maxout, imenu-generic-expression)
(imenu--make-index-alist, imenu-default-goto-function): Doc fixes.
(imenu-max-item-length, imenu-sort-function)
(imenu-scanning-message): Custom tweak.
(imenu-progress-message): Use real backquote syntax.
(imenu--in-alist): Unused function deleted.
(imenu--flatten-index-alist): Likewise.
(imenu-case-fold-search): Add autoload cookie.
(imenu--completion-buffer): Offer function at point as default.
(imenu--subalist-p): Don't use caadr.
(imenu): Don't use caddr.
(imenu-add-menubar-index): New function.
1998-04-30 00:05:06 +00:00
Richard M. Stallman
35c8b89862 (imenu-generic-expression): Doc fix.
(imenu--index-alist): Doc fix.
(imenu-create-index-function): Doc fix.
(imenu-prev-index-position-function): Doc fix.
(imenu-extract-index-name-function): Doc fix.
1998-02-06 21:55:42 +00:00
Dave Love
fea79780e0 (imenu-syntax-alist): New buffer-local variable.
(imenu--generic-function): Use it.
(imenu--split-menu): Don't (setcdr nil) with, say, empty functions
list.
1998-01-25 23:06:37 +00:00
Dave Love
73f4895397 (imenu-case-fold-search): New buffer-local variable. 1998-01-25 22:55:08 +00:00
Karl Heuer
e536ef5626 (imenu-default-create-index-function):
Test imenu-prev-index-position-function and
imenu-extract-index-name-function for non-nil, not fboundp.
(imenu-add-to-menubar): Likewise.
1997-11-11 03:54:00 +00:00
Karl Heuer
4fdd59c0db (imenu-add-to-menubar): If not using
imenu-default-create-index-function, don't require its variables.
1997-10-15 23:00:25 +00:00
Richard M. Stallman
e4874521bb Comment change. 1997-05-27 15:32:03 +00:00
Richard M. Stallman
9df238211e (imenu-auto-rescan): Fix typo. 1997-05-05 23:41:56 +00:00
Richard M. Stallman
9411439468 Use defgroup and defcustom. 1997-05-03 19:53:57 +00:00
Richard M. Stallman
e7c8378c39 (imenu-default-goto-function): Simplify.
Truncate imenu items.
Make use of markers or integers an option.
(imenu-use-markers, imenu-max-item-length): New variables.
(imenu-max-items): Doc fix.
(imenu-example--name-and-position): Handle imenu-use-markers.
(imenu-default-create-index-function): Likewise.
(imenu--generic-function): Likewise.
(imenu--truncate-items): New function.
(imenu--make-index-alist): Call imenu--truncate-items.
1997-04-05 21:41:59 +00:00
Richard M. Stallman
0272c2a42c Update copyright year. 1997-03-22 23:46:26 +00:00
Richard M. Stallman
37954a9a2f (imenu-scanning-message): Support for bigger numbers.
(imenu--generic-function): Fixed probably a typo: named appeared
twice in an item. Put function after name and beg in a special
item because a normal item has name and beg (for orthogonality).
(imenu-add-to-menubar): First test to see if the mode supports imenu.
(imenu--menubar-select): Use the defined variable imenu-rescan-item.

(imenu-default-goto-function): New subroutine, broken out of `imenu'.
(imenu-default-goto-function): New variable.
(imenu): Made it use the above function, via that variable.
1997-03-22 23:42:48 +00:00
Richard M. Stallman
01e980fb08 (imenu-generic-expression): Doc fix.
(imenu--make-index-alist): Do `widen' and save-restriction here.
(imenu): Not here.
1996-12-16 07:39:34 +00:00
Karl Heuer
58e9d9c4bf (imenu): Support integers used as positions. 1996-12-06 23:20:14 +00:00
Karl Heuer
2892dc82b8 (imenu-scanning-message): Use ellipsis. 1996-10-25 04:31:26 +00:00
Richard M. Stallman
6d7d9efad3 (imenu-default-create-index-function): Fix error message. 1996-10-04 01:58:52 +00:00
Richard M. Stallman
7e563e040c (imenu--make-index-alist): Add doc string. 1996-09-30 23:38:43 +00:00
Richard M. Stallman
79e098ca05 (imenu--cleanup): Handle shared structure in alist. 1996-09-24 22:50:24 +00:00
Richard M. Stallman
7ebea14458 (imenu--split-menu): Keep the rescan item at top level.
Keep subalists at top level too.
Name the split-off submenus from the first item in them.
(imenu--generic-function): Avoid adding nil as elt of the result.
1996-09-21 23:00:40 +00:00
Richard M. Stallman
215b077e2f (imenu--generic-function): Create a special entry
if the element of imenu-generic-function asks for it.
(imenu): Handle special entries.
(imenu--submenu-p): New function.  Use in various places.
1996-09-21 22:32:10 +00:00
Richard M. Stallman
cbcf50d2c2 (imenu--generic-function): Use markers for positions. 1996-09-19 04:25:40 +00:00
Richard M. Stallman
b8c44b291a (imenu--mouse-menu): Add special handling for rescan item. 1996-09-18 22:18:14 +00:00
Richard M. Stallman
32c1a22e20 (imenu): Tests for when to widen were backwards.
(imenu--split-menu): Handle imenu-sort-function here.
(imenu--mouse-menu, imenu-update-menubar): Not here.
(imenu--mouse-menu): Rewrite second half--handle nested menus reliably.
(imenu--create-keymap-2): Include ITEM in the leaf menu-item.
1996-09-10 17:57:05 +00:00
Richard M. Stallman
8396299d26 (imenu--in-alist): Accept only bottom-level matches. 1996-08-26 00:08:21 +00:00
Richard M. Stallman
5d43dca8a6 (imenu-update-menubar): Fix code to install the new menu. 1996-08-06 17:40:22 +00:00
Richard M. Stallman
27f94c9b47 (imenu--mouse-menu): Don't check imenu-use-keymap-menu. 1996-06-12 15:00:48 +00:00
Richard M. Stallman
fdbf0fc738 (imenu--mouse-menu): Always use nested keymaps.
(imenu-use-keymap-menu): Variable deleted.
1996-06-10 17:30:50 +00:00
Richard M. Stallman
880169e2c3 (imenu): In interactive spec, pass the entire
index item, not just the string.
1996-06-05 17:19:36 +00:00
Richard M. Stallman
af5eb153f5 (imenu-generic-expression): Autoload the make-variable-buffer-local call. 1996-03-17 15:37:36 +00:00
Richard M. Stallman
cd7ac8e8a4 (imenu--mouse-menu): Pass proper arg to x-popup-menu. 1996-03-09 00:32:05 +00:00
Richard M. Stallman
e63679b833 (imenu--menubar-select): Handle the "rescan" item. 1996-03-08 21:51:22 +00:00
Richard M. Stallman
f5632218b0 Comment change. 1996-03-02 05:37:13 +00:00
Richard M. Stallman
0c20ee6187 (imenu--menubar-select): No longer interactive.
(imenu-create-submenu-name): Function deleted.
(imenu-example--create-lisp-index): Don't use it.
(imenu--generic-function): Don't use imenu-create-submenu-name.
(imenu-submenu-name-format): Variable deleted.
(imenu--split-menu): Use TITLE as the head of the new list.
Don't split if everything fits in one level.
(imenu--split-submenus): New function.
(imenu-update-menubar): Use imenu--split-submenus.
(imenu--mouse-menu): Use imenu--split-submenus.
1996-03-01 18:09:57 +00:00
Richard M. Stallman
df41821fa7 (imenu-submenu-name-format): Delete the `...'. 1996-03-01 17:09:00 +00:00
Richard M. Stallman
d17570268d (imenu-add-to-menubar): Add menu item for current buf only.
(imenu-update-menubar): Never add menu item here.
1996-02-24 01:42:31 +00:00
Richard M. Stallman
7bf09e90d7 (imenu-update-menubar): Fix paren error. 1996-02-24 01:16:23 +00:00
Karl Heuer
6d7a48321c (imenu-buffer-menubar): Add defvar.
(imenu-update-menubar): Make a buffer-specific copy of the local map.
1996-02-21 21:44:28 +00:00
Karl Heuer
e1de30147b (imenu--generic-function): Ignore text properties. 1996-02-16 00:52:43 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
a30b83a501 (imenu--create-keymap-2): Delete debugging line. 1996-01-10 01:30:06 +00:00
Karl Heuer
fc0ac20de0 (imenu--create-keymap-2): Fix bug in constructing
the lambda expression.  Use backquote.  Don't use incf.
1996-01-09 23:18:21 +00:00
Karl Heuer
a7acbbe4d4 Comment fixes. 1996-01-05 22:21:28 +00:00
Karl Heuer
0a8e8bc63e (imenu-update-menubar): New function.
(imenu-add-to-menubar): Use an ordinary menu bar submenu.
Add imenu-add-to-menubar to menu-bar-update-hook to update the submenu.
(imenu--make-index-alist): Add noerror argument.
(imenu--menubar-select): New function.
(imenu--create-keymap-1, imenu--create-keymap-2): New arg COMMANDS.
(imenu): Allow a string as arg.
1995-12-21 17:47:08 +00:00
Richard M. Stallman
c30c8a0c8a (imenu-generic-expression, imenu--generic-function): Doc fix. 1995-11-25 00:28:44 +00:00
Karl Heuer
e064a4f982 (imenu-generic-lisp-expression)
(imenu-generic-c++-expression, imenu-generic-c-expression)
(imenu-generic-ada-expression, imenu-generic-texinfo-expression)
(imenu-generic-latex-expression): Vars deleted; now handled by the
major modes themselves.
(imenu--scanning-method-alist): Var deleted.
(imenu-default-create-index-function): Don't use that alist.
1995-07-28 00:36:18 +00:00
Richard M. Stallman
6c1bf12bb7 (imenu--history-list): Don't make this buffer-local.
(imenu): Call imenu-choose-buffer-index from interactive spec.

(imenu-generic-expression): Call make-variable-buffer-local.
(imenu-create-index-pattern): Variable deleted.

Many doc fixes.
1995-07-25 21:13:10 +00:00
Richard M. Stallman
4a840d8bf7 (imenu-choose-buffer-index): Avoid trying to select WINDOW if it is nil. 1995-07-21 12:40:55 +00:00
Richard M. Stallman
4cde72b44e (imenu-choose-buffer-index): Understand that (menu-bar)
doesn't specify a window.
1995-06-27 10:05:22 +00:00
Richard M. Stallman
2d24227e43 (imenu-use-keymap-menu): New variable.
(imenu-auto-rescan): New variable.
(imenu-auto-rescan-maxout): New variable.
(imenu-generic-expression): Doc changes.
(imenu-generic-lisp-expression): New variable.
(imenu-generic-c-expression): New variable.
(imenu-example--generic-c++-expression): Changed the name to
imenu-generic-c++-expression.
(imenu-example--generic-texinfo-expression): Changed the name to
imenu-generic-texinfo-expression.
(imenu-example--generic-latex-expression): Changed the name to
imenu-generic-latex-expression.
(imenu--scanning-method-alist): New variable.
(imenu--split-menu): Changed it to make the title "Index menu"
instead of "Function menus".
(imenu--make-index-alist): Changed to handle auto rescan.
(imenu--create-keymap-2): New function to create a keymap.
(imenu--create-keymap-1): New function.
(imenu--in-alist): New function.
(imenu-default-create-index-function): Changed to handle
imenu--scanning-method-alist).
(imenu--generic-extract-name): Removed.
(imenu--generic-function): Rewritten to handle submenus.
(imenu--mouse-menu): Changed to handle keymaps.
1995-06-27 06:23:43 +00:00
Richard M. Stallman
4818d21063 (imenu--cleanup): Set alist to its default just once, at the beginning.
Don't recurse on a cdr which is nil.
1995-02-22 01:31:14 +00:00
Richard M. Stallman
af447694e7 (imenu-always-use-completion-buffer-p): A value of
`never' now means never display a completion buffer.
(imenu--completion-buffer): implement 'never behaviour.
1994-12-23 05:05:22 +00:00
Karl Heuer
615b306cf5 (imenu-generic-expression): New variable.
(imenu-example--generic-c++-expression): New variable.
(imenu-example--generic-texinfo-expression): New variable.
(imenu-example--generic-latex-expression): New variable.
(imenu-example--create-c++-index): Deleted.
(imenu-example--function-name-regexp-c++): Deleted.
(imenu--generic-function): New function.
(imenu--generic-extract-name): New function.
(imenu-default-create-index-function): Added the generic function calls for
the provided examples.
1994-11-30 20:50:33 +00:00
Richard M. Stallman
056ab24479 (imenu): Widen temporary before scan the file.
Widen if the user asks to move to an object
that is outside the current accessible region.
1994-11-24 11:26:41 +00:00
Richard M. Stallman
7804cd2748 (imenu--cleanup): Changed 'mapc' to 'mapcar'. 1994-09-29 06:32:06 +00:00
Richard M. Stallman
5d3b0f182f (imenu, imenu--flatten-index-alist): Add marker support.
(imenu--cleanup): New function.
(imenu-example--name-and-position): Now uses markers.

(imenu-add-to-menubar): New function to add an entry
to the menubar for the buffer's current local keymap.
1994-08-01 07:11:43 +00:00
Richard M. Stallman
7dea4e70f4 (imenu-choose-buffer-index): Use last-nonmenu-event
to decide on mouse vs non-mouse.
(imenu-progress-message): New arg prevpos.  All callers changed.
Don't print messages too frequently.
1994-07-20 07:41:16 +00:00
Richard M. Stallman
31faef474e Comment fix. 1994-07-15 22:07:41 +00:00
Richard M. Stallman
a4e104bf5c Doc fix. 1994-05-22 22:14:17 +00:00
Richard M. Stallman
3e062f782c (imenu-default-create-index-function):
Temporarily build in handling of a few major modes.
(imenu--completion-buffer): Set completion-reference-buffer properly.
1994-05-06 06:06:08 +00:00
Richard M. Stallman
68e01f5af8 (imenu): Renamed from goto-index-pos.
Add autoload.
(imenu-prev-index-position-function): Renamed from prev-...
(imenu-extract-index-name-function): Renamed from extract-...
1994-05-04 21:34:13 +00:00
Richard M. Stallman
0ee4f8adff Require cl only at compile time.
(imenu--mouse-menu): Copy list by hand, not with copy-list.
1994-04-16 02:38:40 +00:00
Richard M. Stallman
26d6bb604c entered into RCS 1994-03-07 23:24:02 +00:00
Richard M. Stallman
0a688fd0fc Initial revision 1994-03-07 03:00:30 +00:00