[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct 33df7c9b43 13/21: Use line-{beginning, end}-positio
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct 33df7c9b43 13/21: Use line-{beginning, end}-position where relevant |
Date: |
Sat, 25 Mar 2023 15:59:01 -0400 (EDT) |
branch: externals/mct
commit 33df7c9b43d4d99145d3afed2a8a59aa59387882
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Use line-{beginning,end}-position where relevant
---
mct.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/mct.el b/mct.el
index 26087fba88..c734b872d6 100644
--- a/mct.el
+++ b/mct.el
@@ -289,7 +289,7 @@ affairs."
(unless (mct--first-line-completion-p)
(goto-char (point-min))
(let ((inhibit-read-only t))
- (delete-region (point-at-bol) (1+ (point-at-eol)))
+ (delete-region (line-beginning-position) (1+ (line-end-position)))
(insert (propertize " "
'cursor-sensor-functions
(list
@@ -592,7 +592,7 @@ by `mct--completions-window-name'."
(mct--switch-to-completions)
(goto-char (point-max))
(next-completion -1)
- (goto-char (point-at-bol))
+ (goto-char (line-beginning-position))
(unless (mct--completion-at-point-p)
(next-completion 1))
(mct--restore-old-point-in-grid (point))
@@ -606,7 +606,7 @@ by `mct--completions-window-name'."
"Return non-nil if ARGth line is empty."
(unless (mct--arg-completion-point-p arg)
(save-excursion
- (goto-char (point-at-bol))
+ (goto-char (line-beginning-position))
(and (not (bobp))
(or (beginning-of-line (1+ arg)) t)
(save-match-data
@@ -879,9 +879,7 @@ This value means that it is overriden by the active
region.")
"Return end of completion candidate."
(if-let ((string (mct--completion-at-point-p)))
(save-excursion
- (if (mct--one-column-p)
- (1+ (point-at-eol))
- (prop-match-end (mct--completions-text-property-search))))
+ (1+ (line-end-position)))
(point)))
(defun mct--overlay-make ()
- [elpa] externals/mct updated (3f15ff6f62 -> ea1edfff5e), ELPA Syncer, 2023/03/25
- [elpa] externals/mct cef37c3bc8 02/21: Remove files that will not be used henceforth (DEVELOPMENT RESTART), ELPA Syncer, 2023/03/25
- [elpa] externals/mct fbd2bf7183 09/21: DEPRECATE mct-display-buffer-action, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 443e2bd76b 06/21: DEPRECATE mct-apply-completion-stripes, ELPA Syncer, 2023/03/25
- [elpa] externals/mct b95aa0f8e5 01/21: Development restarts; remove old notices, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 33df7c9b43 13/21: Use line-{beginning, end}-position where relevant,
ELPA Syncer <=
- [elpa] externals/mct 96a486eff4 17/21: Remove reference to Emacs 27; 28 is the minimum, ELPA Syncer, 2023/03/25
- [elpa] externals/mct f52ee53d39 20/21: DELETE mct-region-mode; remove remaining extras, ELPA Syncer, 2023/03/25
- [elpa] externals/mct ea1edfff5e 21/21: Merge branch 'restart-development', ELPA Syncer, 2023/03/25
- [elpa] externals/mct 00a8dccf82 08/21: Fix mct-live-completion :type for one option, ELPA Syncer, 2023/03/25
- [elpa] externals/mct c342943ae8 14/21: Add README.md to make it easier for all Git forges, ELPA Syncer, 2023/03/25
- [elpa] externals/mct d90dd8372f 18/21: Update package information, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 4f0088b2a2 19/21: Make the blocklist take precedence over the passlist, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 06e974a23a 07/21: Remove documentation about deleted extensions, ELPA Syncer, 2023/03/25
- [elpa] externals/mct ec12cafaa3 15/21: Simplify the front matter in the README.org, ELPA Syncer, 2023/03/25
- [elpa] externals/mct d2391f88ed 03/21: Change minimum Emacs version to 28, ELPA Syncer, 2023/03/25