| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
case setting if imenu-case-fold-search is not locally set.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
| |
imenu-update-menubar-modified-tick.
(imenu-update-menubar): Update imenu-menubar-modified-tick
whenever outer condition succeeds.
|
|
|
|
|
| |
(imenu-update-menubar): Don't call imenu--make-index-alist
if buffer has not changed since last time.
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
| |
now, to avoid problems with binding imenu directly to a mouse event.
|
|
|
|
| |
syntax characters.
|
| |
|
|
|
|
| |
the `make-variable-buffer-local'.
|
| |
|
|
|
|
|
|
| |
using :key-sequence, making it much more usable. Use nconc, not
append.
(imenu--create-keymap-1): Avoid append.
|
| |
|
| |
|
|
|
|
|
|
|
| |
(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.
|
| |
|
| |
|
|
|
|
|
|
| |
(imenu): Run menu-after-jump-hook.
(imenu-name-lookup-function): New variable.
(imenu--in-alist): Use those variables.
|
| |
|
|
|
|
| |
(imenu-add-to-menubar): Reset imenu--last-menubar-index-alist.
|
| |
|
|
|
|
| |
(imenu--sort-by-position): New function.
|
|
|
|
|
| |
(imenu-extract-index-name-function, imenu-default-goto-function)
(imenu-sort-function, imenu-prev-index-position-function): Likewise.
|
| |
|
|
|
|
| |
widget type.
|
| |
|
| |
|
|
|
|
| |
to avoid nil default value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
| |
(imenu--generic-function): Use it.
(imenu--split-menu): Don't (setcdr nil) with, say, empty functions
list.
|
| |
|
|
|
|
|
|
| |
Test imenu-prev-index-position-function and
imenu-extract-index-name-function for non-nil, not fboundp.
(imenu-add-to-menubar): Likewise.
|
|
|
|
| |
imenu-default-create-index-function, don't require its variables.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
| |
(imenu--make-index-alist): Do `widen' and save-restriction here.
(imenu): Not here.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|