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

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

[elpa] externals/pulsar 2b9c9736b6 3/3: Update to Pulsar version 1.2.0


From: ELPA Syncer
Subject: [elpa] externals/pulsar 2b9c9736b6 3/3: Update to Pulsar version 1.2.0
Date: Thu, 12 Dec 2024 03:58:46 -0500 (EST)

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

    Update to Pulsar version 1.2.0
---
 CHANGELOG.org | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 README.org    | 15 ++++------
 pulsar.el     |  2 +-
 3 files changed, 98 insertions(+), 10 deletions(-)

diff --git a/CHANGELOG.org b/CHANGELOG.org
index fa230f5da1..1715f4ba3e 100644
--- a/CHANGELOG.org
+++ b/CHANGELOG.org
@@ -9,6 +9,97 @@ the manual: <https://protesilaos.com/emacs/pulsar>.
 
 #+toc: headlines 1 insert TOC here, with one headline level
 
+* Version 1.2.0 on 2024-12-12
+:PROPERTIES:
+:CUSTOM_ID: h:3060295b-f66d-4eb9-9606-440c5fb5e408
+:END:
+
+This version refines an already stable base. Users do not need to make
+any changes to their setup, unless they wish to try the new features.
+
+** Automatically pulse the affected region
+:PROPERTIES:
+:CUSTOM_ID: h:7c00c7e4-ccee-4559-a30e-9747f5f820c0
+:END:
+
+With the out-of-the-box settings, Pulsar temporarily highlights the
+current line after any of the ~pulsar-pulse-functions~ is invoked and
+~pulsar-mode~ (or ~pulsar-global-mode~) is enabled.
+
+The new user option ~pulsar-pulse-region-functions~ makes Pulsar
+temporarily highlight the affected region as well. For example, when
+pasting some text into the buffer, it will highlight the portion of
+text that was added.
+
+The default value of ~pulsar-pulse-region-functions~ is nil, meaning
+that no region pulsing is in effect (what we had before). Otherwise,
+it is a list of functions. A typical use-case is the following:
+
+#+begin_src emacs-lisp
+(setq pulsar-pulse-region-functions pulsar-pulse-region-common-functions)
+#+end_src
+
+This covers common commands, such as for copying and pasting a region
+of text (restart ~pulsar-mode~ or ~pulsar-global-mode~ if needed).
+
+Thanks to shipmints and Abdelhak Bougouffa for contributing the core
+of this functionality. It was done in pull request 25:
+<https://github.com/protesilaos/pulsar/pull/25>. Abdelhak's
+contribution is within the ~15 line limit, meaning that no copyright
+assignment to the Free Software Foundation is necessary, while
+shipmints has already done the paperwork.
+
+Relevant discussions took place in issues 10, 18, 21, and 22, as well
+as pull request 24:
+
+- <https://github.com/protesilaos/pulsar/issues/10>
+- <https://github.com/protesilaos/pulsar/issues/18>
+- <https://github.com/protesilaos/pulsar/issues/21>
+- <https://github.com/protesilaos/pulsar/issues/22>
+- <https://github.com/protesilaos/pulsar/pull/24>
+
+Thanks to Anwesh Gangula, Alex Kreisher, Diego Alvarez, and Ronny
+Randen for their participation.
+
+The region pulsing is inspired by Daniel Mendler's ~goggles~ package,
+which itself is a take on a common theme covered by many other such
+packages.
+
+** Style region highlights differently
+:PROPERTIES:
+:CUSTOM_ID: h:f0a6b22a-0534-4633-97fc-1cb072d93d59
+:END:
+
+The following user options control the face of the 
~pulsar-pulse-region-functions~.
+
+- ~pulsar-region-face~ :: Face to pulse a region that has not changed.
+- ~pulsar-region-change-face~ :: Face to pulse a region that has changed 
(added or removed).
+
+Pulsar defines several faces to get a nice style. Here is an example:
+
+#+begin_src emacs-lisp
+(setq pulsar-region-face 'pulsar-green) ; unchanged regions are green
+(setq pulsar-region-change-face 'pulsar-red) ; changed regions are red
+#+end_src
+
+** Pulse on window state change
+:PROPERTIES:
+:CUSTOM_ID: h:90e443b2-448e-4938-8aa2-783ad84c87fc
+:END:
+
+An alternative to how Pulsar works out-of-the-box by reacting to the
+~pulsar-pulse-functions~ is to check for changes to the window layout.
+Users who wish to have this behaviour can set the new user option
+~pulsar-pulse-on-window-change~ to a non-nil value.
+
+As there may be overlap between the ~pulsar-pulse-functions~ and the
+~pulsar-pulse-on-window-change~, users are advised to pick only one.
+This is not a hard rule though: Pulsar will blithely highlight
+everything if configured accordingly.
+
+Thanks again to shipmints and Abdelhak Bougouffa for this
+contribution. It is part of the aforementioned pull request 25.
+
 * Version 1.1.0 on 2024-08-29
 :PROPERTIES:
 :CUSTOM_ID: h:93705ad7-b2ff-491f-a108-69f4949d715b
diff --git a/README.org b/README.org
index f843fce532..5536883321 100644
--- a/README.org
+++ b/README.org
@@ -4,9 +4,9 @@
 #+language: en
 #+options: ':t toc:nil author:t email:t num:t
 #+startup: content
-#+macro: stable-version 1.1.0
-#+macro: release-date 2024-08-29
-#+macro: development-version 1.2.0-dev
+#+macro: stable-version 1.2.0
+#+macro: release-date 2024-12-12
+#+macro: development-version 1.3.0-dev
 #+export_file_name: pulsar.texi
 #+texinfo_filename: pulsar.info
 #+texinfo_dir_category: Emacs misc features
@@ -87,15 +87,13 @@ Pulsar can also produce an effect over a specific region. 
This is
 useful to, for example, highlight the area covered by text that is
 pasted in the buffer. The user option ~pulsar-pulse-region-functions~
 defines a list of functions that are region-aware in this regard. The
-default value covers copyring, pasting, and undoing/redoing. [ The
-~pulsar-pulse-region-functions~ is part of {{{development-version}}}. ]
+default value covers copyring, pasting, and undoing/redoing.
 
 #+findex: pulsar-pulse-on-window-change
 The pulse effect also happens whenever there is a change to the window
 layout. This includes the selection, addition, deletion, resize of
 windows in a frame. Users who do not want this to happen can set the
-user option ~pulsar-pulse-on-window-change~ to a nil value. [ This is
-part of {{{development-version}}}. ]
+user option ~pulsar-pulse-on-window-change~ to a nil value.
 
 #+vindex: pulsar-delay
 #+vindex: pulsar-iterations
@@ -116,8 +114,7 @@ The user option ~pulsar-inhibit-hidden-buffers~ controls 
whether
 Pulsar is active in hidden buffers. These are buffers that users
 normally do not interact with and are not displayed in the interface
 of the various buffer-switching commands. When this user option is
-nil, ~pulsar-mode~ will work in those buffers as well. [ The
-~pulsar-inhibit-hidden-buffers~ is part of {{{development-version}}}. ]
+nil, ~pulsar-mode~ will work in those buffers as well.
 
 #+findex: pulsar-pulse-line
 #+findex: pulsar-highlight-line
diff --git a/pulsar.el b/pulsar.el
index b80b4b6e49..dee3645823 100644
--- a/pulsar.el
+++ b/pulsar.el
@@ -5,7 +5,7 @@
 ;; Author: Protesilaos Stavrou <info@protesilaos.com>
 ;; Maintainer: Protesilaos Stavrou <info@protesilaos.com>
 ;; URL: https://github.com/protesilaos/pulsar
-;; Version: 1.1.0
+;; Version: 1.2.0
 ;; Package-Requires: ((emacs "28.1"))
 ;; Keywords: convenience, pulse, highlight
 



reply via email to

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