[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult 2ffdfe2 1/4: Rename consult-project-imenu to co
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult 2ffdfe2 1/4: Rename consult-project-imenu to consult-imenu-project |
Date: |
Sun, 25 Jul 2021 15:57:07 -0400 (EDT) |
branch: externals/consult
commit 2ffdfe2752a86d29dae71502d277643599b7d4fd
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Rename consult-project-imenu to consult-imenu-project
---
CHANGELOG.org | 1 +
README.org | 6 +++---
consult-imenu.el | 9 +++++++--
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/CHANGELOG.org b/CHANGELOG.org
index b4899bb..019201c 100644
--- a/CHANGELOG.org
+++ b/CHANGELOG.org
@@ -6,6 +6,7 @@
- =consult-mark=, =consult-global-mark=: Added optional marker list argument
- =consult-completing-read-multiple=: New function
+- Renamed =consult-project-imenu= to =consult-imenu-project=
* Version 0.9 (2021-06-22)
diff --git a/README.org b/README.org
index 86a282a..36529cf 100644
--- a/README.org
+++ b/README.org
@@ -174,7 +174,7 @@ their descriptions.
#+findex: consult-global-mark
#+findex: consult-outline
#+findex: consult-imenu
- #+findex: consult-project-imenu
+ #+findex: consult-imenu-project
- =consult-goto-line=: Jump to line number enhanced with live preview.
This is a drop-in replacement for =goto-line=.
- =consult-mark=: Jump to a marker in the =mark-ring=. Supports live
@@ -185,7 +185,7 @@ their descriptions.
to a heading level, live preview and recursive editing.
- =consult-imenu=: Jump to imenu item in the current buffer. Supports
live preview, recursive editing and narrowing.
- - =consult-project-imenu=: Jump to imenu item in project buffers, with
+ - =consult-imenu-project=: Jump to imenu item in project buffers, with
the same major mode as the current buffer. Supports live preview,
recursive editing and narrowing. This feature has been inspired by
[[https://github.com/vspinu/imenu-anywhere][imenu-anywhere]].
@@ -797,7 +797,7 @@ configuration examples.
("M-g m" . consult-mark)
("M-g k" . consult-global-mark)
("M-g i" . consult-imenu)
- ("M-g I" . consult-project-imenu)
+ ("M-g I" . consult-imenu-project)
;; M-s bindings (search-map)
("M-s f" . consult-find)
("M-s L" . consult-locate)
diff --git a/consult-imenu.el b/consult-imenu.el
index eb59c07..26e0ea7 100644
--- a/consult-imenu.el
+++ b/consult-imenu.el
@@ -210,12 +210,12 @@ The symbol at point is added to the future history."
The command supports preview and narrowing. See the variable
`consult-imenu-config', which configures the narrowing.
-See also `consult-project-imenu'."
+See also `consult-imenu-project'."
(interactive)
(consult-imenu--select (consult-imenu--items)))
;;;###autoload
-(defun consult-project-imenu ()
+(defun consult-imenu-project ()
"Select item from the imenus of all buffers from the same project.
In order to determine the buffers belonging to the same project, the
@@ -225,5 +225,10 @@ same major mode as the current buffer are used. See also
(interactive)
(consult-imenu--select (consult-imenu--all-items
(consult-imenu--project-buffers))))
+(define-obsolete-function-alias
+ 'consult-project-imenu
+ 'consult-imenu-project
+ "0.9")
+
(provide 'consult-imenu)
;;; consult-imenu.el ends here