[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct 1313880 56/70: Placate the compiler for group motio
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct 1313880 56/70: Placate the compiler for group motions |
Date: |
Thu, 11 Nov 2021 03:57:51 -0500 (EST) |
branch: externals/mct
commit 1313880514efceb413ce5acbfa8fae440b113289
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Placate the compiler for group motions
Thanks to James Cash for the contribution in merge request 2:
<https://gitlab.com/protesilaos/mct/-/merge_requests/2>.
---
mct.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/mct.el b/mct.el
index 8bbff09..d36695c 100644
--- a/mct.el
+++ b/mct.el
@@ -574,6 +574,11 @@ minibuffer."
(line-move-to-column col)))
(previous-completion (if (natnump arg) arg 1))))))
+(declare-function text-property-search-backward "text-property-search"
(property &optional value predicate not-current))
+(declare-function text-property-search-forward "text-property-search"
(property &optional value predicate not-current))
+(declare-function prop-match-beginning "text-property-search" (cl-x))
+(declare-function prop-match-end "text-property-search" (cl-x))
+
(defun mct-next-completion-group (&optional arg)
"Move to the next completion group.
If ARG is supplied, move that many completion groups at a time."
@@ -594,7 +599,7 @@ If ARG is supplied, move that many completion groups at a
time."
(interactive "p" mct-mode)
(dotimes (_ (or arg 1))
;; skip back, so if we're at the top of a group, we go to the previous
one...
- (next-line -1)
+ (forward-line -1)
(if-let (group (save-excursion
(text-property-search-backward 'face
'completions-group-separator
@@ -605,7 +610,7 @@ If ARG is supplied, move that many completion groups at a
time."
(next-completion 1)))
;; ...and if there was a match, go back down, so the point doesn't
;; end in the group separator
- (next-line 1))))
+ (forward-line 1))))
;;;;; Candidate selection
@@ -693,6 +698,7 @@ Completions' buffer."
(mct--line-number-selection)))))
(defvar crm-completion-table)
+(defvar crm-separator)
(defun mct--regex-to-separator (regex)
(save-match-data
- [elpa] externals/mct 9586c51 41/70: Refine mct-choose-completion{, -no}-exit, (continued)
- [elpa] externals/mct 9586c51 41/70: Refine mct-choose-completion{, -no}-exit, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 4d61a41 46/70: Minor tweaks to code sample in the manual, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 2dd1308 53/70: Add functions to jump through completion groups in completions, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 47b26e4 61/70: Document group motions and backward-dir motion, ELPA Syncer, 2021/11/11
- [elpa] externals/mct f1ddc1e 65/70: Add reference to Icomplete and Fido-mode, ELPA Syncer, 2021/11/11
- [elpa] externals/mct e25fdd5 55/70: Merge branch 'completion-group-navigation' into 'main', ELPA Syncer, 2021/11/11
- [elpa] externals/mct 0e2d0ae 62/70: Remove note about crm-separator (see 20aa296), ELPA Syncer, 2021/11/11
- [elpa] externals/mct 2352f14 63/70: Rectify paths to git repo, ELPA Syncer, 2021/11/11
- [elpa] externals/mct cf439ea 35/70: Clarify mct-choose-completion-number doc string, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 9813d90 47/70: Update manual about "selecting candidates", ELPA Syncer, 2021/11/11
- [elpa] externals/mct 1313880 56/70: Placate the compiler for group motions,
ELPA Syncer <=
- [elpa] externals/mct c9b4cab 58/70: Add James Cash to list of contributors, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 5bb2231 67/70: Reword statement in the manual, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 0412441 66/70: Reword one statement in the manual, ELPA Syncer, 2021/11/11