[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/embark d9a7ed6900 3/4: Document embark--narrow-to-targe
From: |
ELPA Syncer |
Subject: |
[elpa] externals/embark d9a7ed6900 3/4: Document embark--narrow-to-target pre-action hook |
Date: |
Tue, 4 Jan 2022 02:57:30 -0500 (EST) |
branch: externals/embark
commit d9a7ed69007293db91f8b387c7b35a8bd01c8213
Author: Omar AntolÃn Camarena <omar.antolin@gmail.com>
Commit: Omar AntolÃn Camarena <omar.antolin@gmail.com>
Document embark--narrow-to-target pre-action hook
---
README.org | 5 +++++
embark.texi | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/README.org b/README.org
index fecf8c7011..c4341625e2 100644
--- a/README.org
+++ b/README.org
@@ -530,6 +530,11 @@ For pre-action hooks:
on an s-expression from anywhere inside it and still use
=eval-last-sexp= as an action.
+- =embark--narrow-to-target= :: Narrow buffer to current target. Use
+ this as a pre-action hook to localize the effect of actions that
+ don't already work on just the region. In the default configuration
+ it is used for =repunctuate-sentences=.
+
- =embark--xref-push-markers= :: Push the current location on the xref
marker stack. Use this for commands that take you somewhere and for
which you'd like to be able to come back to where you were using
diff --git a/embark.texi b/embark.texi
index c3e945d92d..5d304cda30 100644
--- a/embark.texi
+++ b/embark.texi
@@ -657,6 +657,12 @@ on the last s-expression like @samp{eval-last-sexp}. This
allow you to act
on an s-expression from anywhere inside it and still use
@samp{eval-last-sexp} as an action.
+@item @samp{embark--narrow-to-target}
+Narrow buffer to current target. Use
+this as a pre-action hook to localize the effect of actions that
+don't already work on just the region. In the default configuration
+it is used for @samp{repunctuate-sentences}.
+
@item @samp{embark--xref-push-markers}
Push the current location on the xref
marker stack. Use this for commands that take you somewhere and for