[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pulsar c5d528dc91 05/15: Put back the line pulse this h
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pulsar c5d528dc91 05/15: Put back the line pulse this helps for backward-kill-word, for example. |
Date: |
Tue, 26 Nov 2024 03:58:50 -0500 (EST) |
branch: externals/pulsar
commit c5d528dc91c759056a178608d8514aa9470aee85
Author: shipmints <shipmints@gmail.com>
Commit: shipmints <shipmints@gmail.com>
Put back the line pulse this helps for backward-kill-word, for example.
---
pulsar.el | 43 ++++++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 21 deletions(-)
diff --git a/pulsar.el b/pulsar.el
index 52c5ea85a7..5511cac77d 100644
--- a/pulsar.el
+++ b/pulsar.el
@@ -379,27 +379,28 @@ pulse effect."
(defun pulsar-pulse-region ()
"Temporarily highlight the active region if any."
(interactive)
- (when (region-active-p)
- (let ((beg (region-beginning))
- (end (region-end)))
- ;; FIXME 2024-08-29: Finding the lines and columns therein
- ;; does not work because consecutive pulses cancel each
- ;; other out, leaving only the last one active.
- ;;
- ;; (let* ((columns (rectangle--pos-cols beg end))
- ;; (begcol (car columns))
- ;; (endcol (cdr columns)))
- ;; (lines (list
- ;; (line-number-at-pos beg)
- ;; (line-number-at-pos end))))
- ;; (dolist (line lines)
- ;; (save-excursion
- ;; (goto-char (point-min))
- ;; (forward-line (1- line))
- ;; (setq beg (progn (move-to-column begcol) (point))
- ;; end (progn (move-to-column endcol) (point))))
- ;; (pulsar--pulse nil nil beg end)))
- (pulsar--pulse nil pulsar-region-face beg end))))
+ (if (region-active-p)
+ (let ((beg (region-beginning))
+ (end (region-end)))
+ ;; FIXME 2024-08-29: Finding the lines and columns therein
+ ;; does not work because consecutive pulses cancel each
+ ;; other out, leaving only the last one active.
+ ;;
+ ;; (let* ((columns (rectangle--pos-cols beg end))
+ ;; (begcol (car columns))
+ ;; (endcol (cdr columns)))
+ ;; (lines (list
+ ;; (line-number-at-pos beg)
+ ;; (line-number-at-pos end))))
+ ;; (dolist (line lines)
+ ;; (save-excursion
+ ;; (goto-char (point-min))
+ ;; (forward-line (1- line))
+ ;; (setq beg (progn (move-to-column begcol) (point))
+ ;; end (progn (move-to-column endcol) (point))))
+ ;; (pulsar--pulse nil nil beg end)))
+ (pulsar--pulse nil pulsar-region-face beg end))
+ (pulsar--pulse nil pulsar-region-face)))
;;;###autoload
(defun pulsar-highlight-line ()
- [elpa] externals/pulsar c93f6a3fb1 04/15: Continued...now includes after-change-functions and refined pulsing., (continued)
- [elpa] externals/pulsar c93f6a3fb1 04/15: Continued...now includes after-change-functions and refined pulsing., ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar ac3d050113 08/15: Merge pull request #25 from shipmints/region-window-change-redux, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar d9eb079dda 07/15: Add kill-visual-line to pulsar-pulse-region-functions, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 7263aaf819 09/15: Update acknowledgements to mention Abdelhak Bougouffa, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 3b7ecc74ff 10/15: Avoid repetition in the user options for faces, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 67422e8d32 11/15: Make pulsar-window-change-face do the same as in commit 3b7ecc7, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar b6bbe57d06 14/15: Tweak the doc strings of the functions that deal with aliases, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar e81d0e26cd 12/15: Tweak a comment about the goggles package, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 07122a68a2 13/15: Tweak the doc string of pulsar--after-change-function, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 8d24da2421 03/15: Further refine region pulse and window change pulse., ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar c5d528dc91 05/15: Put back the line pulse this helps for backward-kill-word, for example.,
ELPA Syncer <=
- [elpa] externals/pulsar c48b6abcdc 15/15: Refactor pulsar-resolve-function-aliases to be easier to read, ELPA Syncer, 2024/11/26