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

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

[elpa] externals/pulsar 07122a68a2 13/15: Tweak the doc string of pulsar


From: ELPA Syncer
Subject: [elpa] externals/pulsar 07122a68a2 13/15: Tweak the doc string of pulsar--after-change-function
Date: Tue, 26 Nov 2024 03:58:52 -0500 (EST)

branch: externals/pulsar
commit 07122a68a2992c49c08604b9f6488073bd57e4ba
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Tweak the doc string of pulsar--after-change-function
---
 pulsar.el | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/pulsar.el b/pulsar.el
index 9453daf730..1191fd7202 100644
--- a/pulsar.el
+++ b/pulsar.el
@@ -554,13 +554,14 @@ Also check `pulsar-global-mode'."
 
 ;; This feature is heavily inspired by Daniel Mendler's `goggles' package.
 (defun pulsar--after-change-function (beg end len)
-  "`after-change-functions' hook to accumulate buffer edits.
-Changes are defined by BEG, END, LEN."
+  "Provide `after-change-functions' hook to accumulate buffer edits.
+Changes are defined by BEG, END, LEN:
+
+- BEG and END mark the region of text.
+- LEN is zero for insertions.
+- LEN is the extent of deletions and BEG==END."
   (when (or (memq this-command pulsar-pulse-region-functions)
             (memq real-this-command pulsar-pulse-region-functions))
-    ;; beg and end mark the range of changed text
-    ;; len is zero for insertions
-    ;; len is change extent for deletions and beg==end
     (when (and (zerop len) (= beg end)) ; In case of a deletion
       (when (> beg (buffer-size))
         (setq beg (1- beg)))



reply via email to

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