[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/substitute 19726be057 2/4: Obsolete substitute-post-rep
From: |
ELPA Syncer |
Subject: |
[elpa] externals/substitute 19726be057 2/4: Obsolete substitute-post-replace-hook; use substitute-post-replace-functions |
Date: |
Tue, 31 Jan 2023 00:58:05 -0500 (EST) |
branch: externals/substitute
commit 19726be05788b0520d33086e0af16c26dd285f05
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Obsolete substitute-post-replace-hook; use substitute-post-replace-functions
---
substitute.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/substitute.el b/substitute.el
index 9598a35196..fede479c9b 100644
--- a/substitute.el
+++ b/substitute.el
@@ -50,7 +50,12 @@ of the substitution."
:group 'substitute
:type 'boolean)
-(defcustom substitute-post-replace-hook nil
+(define-obsolete-variable-alias
+ 'substitute-post-replace-hook
+ 'substitute-post-replace-functions
+ "0.2.0")
+
+(defcustom substitute-post-replace-functions nil
"Special hook to run after a substitution command.
Every function is called with four arguments: TARGET, SUB, COUNT,
and SCOPE.