[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct aaaf12c70c 50/64: Merge branch 'main' into experime
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct aaaf12c70c 50/64: Merge branch 'main' into experiment-completion-in-region |
Date: |
Thu, 30 Dec 2021 23:58:00 -0500 (EST) |
branch: externals/mct
commit aaaf12c70c5b67a21d5b33f0745a7570091a5ebc
Merge: bf0f666ee4 81b3c3afda
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Merge branch 'main' into experiment-completion-in-region
---
mct.el | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/mct.el b/mct.el
index 9bbf513d9e..63314426e8 100644
--- a/mct.el
+++ b/mct.el
@@ -220,16 +220,19 @@ See `completions-format' for possible values."
(defun mct--setup-clean-completions ()
"Keep only completion candidates in the Completions."
(with-current-buffer standard-output
- (let ((inhibit-read-only t))
- (goto-char (point-min))
- (delete-region (point-at-bol) (1+ (point-at-eol)))
- (insert (propertize " "
- 'cursor-sensor-functions
- (list
- (lambda (_win prev dir)
- (when (eq dir 'entered)
- (goto-char prev))))))
- (put-text-property (point-min) (point) 'invisible t))))
+ (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)))
+ (insert (propertize " "
+ 'cursor-sensor-functions
+ (list
+ (lambda (_win prev dir)
+ (when (eq dir 'entered)
+ (goto-char prev))))))
+ (put-text-property (point-min) (point) 'invisible t)))))
(defun mct--fit-completions-window (&rest _args)
"Fit Completions' buffer to its window."
- [elpa] externals/mct 5ad44174c8 16/64: Introduce mct-region keymap for completions (WIP), (continued)
- [elpa] externals/mct 5ad44174c8 16/64: Introduce mct-region keymap for completions (WIP), ELPA Syncer, 2021/12/30
- [elpa] externals/mct 788aeafb04 19/64: Rename the minibuffer mode, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 6222731289 10/64: Add new FIXME to exit region completion cleanly, ELPA Syncer, 2021/12/30
- [elpa] externals/mct c79f8c86c9 07/64: Take note of more issues with completion-in-region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 0d7d64d79a 15/64: Add in-region version of choose-completion, ELPA Syncer, 2021/12/30
- [elpa] externals/mct adeddd2dfe 14/64: Write helper for "choose completion" routine, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 298a83cfc5 17/64: Respin the mct setup for in-region scenario (WIP), ELPA Syncer, 2021/12/30
- [elpa] externals/mct 0362ca4bf1 34/64: Rename symbol for consistency, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 28d7c54f51 44/64: Add debug print to monitor completion-in-region-mode, ELPA Syncer, 2021/12/30
- [elpa] externals/mct bf0f666ee4 49/64: Replace "mct-mode" with "mct-minibuffer-mode", ELPA Syncer, 2021/12/30
- [elpa] externals/mct aaaf12c70c 50/64: Merge branch 'main' into experiment-completion-in-region,
ELPA Syncer <=
- [elpa] externals/mct 775f42951d 02/64: Remove mct--region-current-buffer, ELPA Syncer, 2021/12/30
- [elpa] externals/mct fb177ace70 18/64: Keep "next or mini" intact (we'll use another fn), ELPA Syncer, 2021/12/30
- [elpa] externals/mct f3d86fe28a 06/64: Rename internal function, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 72a1c3e6f4 22/64: Minor changes to doc strings, ELPA Syncer, 2021/12/30
- [elpa] externals/mct dedb62cce5 23/64: Implement next/prev candidate or quit completions, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 6bb328a795 24/64: Merge branch 'main' into experiment-completion-in-region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct a3edf3ce5a 28/64: Remove obsolete function, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 85d05c08b6 33/64: Remove superfluous comment, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 6a1835cf00 48/64: Remove mct--region-buf, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 771fb8b3cb 54/64: Make in-region prev motion work at all times, ELPA Syncer, 2021/12/30