emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/mct 9c68da912b 52/64: Simplify mct--setup-clean-complet


From: ELPA Syncer
Subject: [elpa] externals/mct 9c68da912b 52/64: Simplify mct--setup-clean-completions
Date: Thu, 30 Dec 2021 23:58:00 -0500 (EST)

branch: externals/mct
commit 9c68da912bde44f9605b16c22abbf366ae3d2cbe
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Simplify mct--setup-clean-completions
    
    See issue 15: <https://gitlab.com/protesilaos/mct/-/issues/15>.
---
 mct.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/mct.el b/mct.el
index fd57d83ae0..c415cd981a 100644
--- a/mct.el
+++ b/mct.el
@@ -220,9 +220,7 @@ See `completions-format' for possible values."
 (defun mct--setup-clean-completions ()
   "Keep only completion candidates in the Completions."
   (with-current-buffer standard-output
-    (if (>= emacs-major-version 29)   ; TODO 2021-12-29: maybe use 28?
-        (goto-char (mct--first-completion-point))
-      (goto-char (point-min)))
+    (goto-char (point-min))
     (unless (mct--completions-completion-p)
       (let ((inhibit-read-only t))
         (delete-region (point-at-bol) (1+ (point-at-eol)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]