[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/ws-butler a998a23ee8 41/64: Clarify ws-butler-keep-whitesp
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/ws-butler a998a23ee8 41/64: Clarify ws-butler-keep-whitespace-before-point docs. |
Date: |
Fri, 31 Dec 2021 11:09:31 -0500 (EST) |
branch: elpa/ws-butler
commit a998a23ee8713808ac1fe3d1523ea1861be4da57
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>
Clarify ws-butler-keep-whitespace-before-point docs.
---
README.md | 6 ++++++
ws-butler.el | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 776f1efff3..7b6057d8c7 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,12 @@ and the butler takes care of whitespace for you.
This means if point is at a location that was trimmed, point is not moved, but
the data on disk has been cleaned up (revert the buffer to confirm).
+### Not moving point because of space deletion.
+
+By default, ws-butler preserves "virtual spaces" in front of point if
necessary. The file on disk is cleaned up however.
+
+This can be disabled with `ws-butler-keep-whitespace-before-point`.
+
## History
1. I started by trimming all spaces at EOL in source code in a
diff --git a/ws-butler.el b/ws-butler.el
index f500ebe25d..93f52524f3 100644
--- a/ws-butler.el
+++ b/ws-butler.el
@@ -64,10 +64,10 @@
t
"Keep whitespace at current point after save.
-This is particularly to preserve indentation.
+That is to say, if whitespace around is trimmed, perform the
+cleanup only on disk, don't move the point in the buffer.
-N.B. The spaces are removed in the file on disk. So in a sense
-only the \"virtual\" space is preserved in the buffer."
+i.e. only the \"virtual\" space is preserved in the buffer."
:type 'boolean
:group 'ws-butler)
- [nongnu] elpa/ws-butler 8ca373047a 24/64: Fix point moving if after blanks., (continued)
- [nongnu] elpa/ws-butler 8ca373047a 24/64: Fix point moving if after blanks., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 4154816145 27/64: Clean up end marker., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 106d313c0d 30/64: Fix package problems; bump version to 0.3., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 34393f1aaa 07/64: add install instructions, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 75deadecb9 35/64: Remove dependency on highlight-changes-mode., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler ee0fc31020 52/64: Merge branch 'xificurC-master', Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 76265d11f8 44/64: Debian and Ubuntu installation instructions, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 7553d6392a 36/64: Handle adding back text during undo correctly., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler aa1935f150 37/64: update documentation re: highlight-changes-mode, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 11311538f6 50/64: fix up tests, simplify predicate code a bit., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler a998a23ee8 41/64: Clarify ws-butler-keep-whitespace-before-point docs.,
Stefan Kangas <=
- [nongnu] elpa/ws-butler 9b40da8428 46/64: add exemptions to ws-butler-global-mode, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler e5fc878904 54/64: disable changing leading whitespace by default, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 52321b99be 59/64: Merge pull request #29 from alevy03/master, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 323b651dd7 55/64: bump version, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler a02607ef63 33/64: Some minor grammatical fixes, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler f6ac856b82 13/64: clean up newlines at EOB when appropriate, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 81143ac737 25/64: Add customization for virtual space preservation., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 93409c1ca7 51/64: polyfill for setq-local, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler a5add4ea85 39/64: Merge branch 'remove-highlight-changes-mode', Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 7e2f32dcfc 45/64: Merge pull request #22 from spwhitton/apt-get, Stefan Kangas, 2021/12/31