[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct 81b3c3afda 2/2: Fix regression with hidden top cand
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct 81b3c3afda 2/2: Fix regression with hidden top cand for Emacs 27 |
Date: |
Wed, 29 Dec 2021 07:04:07 -0500 (EST) |
branch: externals/mct
commit 81b3c3afda097dff8cca2f40b2b50140e11ccd87
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Fix regression with hidden top cand for Emacs 27
Extends commit f22a96a. Also see issue 15 for the details of the bug:
<https://gitlab.com/protesilaos/mct/-/issues/15>.
---
mct.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mct.el b/mct.el
index 869bac4613..f8231e5b7f 100644
--- a/mct.el
+++ b/mct.el
@@ -220,7 +220,9 @@ See `completions-format' for possible values."
(defun mct--setup-clean-completions ()
"Keep only completion candidates in the Completions."
(with-current-buffer standard-output
- (goto-char (mct--first-completion-point))
+ (if (>= emacs-major-version 29) ; TODO 2021-12-29: maybe use 28?
+ (goto-char (mct--first-completion-point))
+ (goto-char (point-min)))
(unless (mct--completions-completion-p)
(let ((inhibit-read-only t))
(delete-region (point-at-bol) (1+ (point-at-eol)))