[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/ws-butler de6936dd55 29/64: Bump version, run checkdoc.
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/ws-butler de6936dd55 29/64: Bump version, run checkdoc. |
Date: |
Fri, 31 Dec 2021 11:09:30 -0500 (EST) |
branch: elpa/ws-butler
commit de6936dd55af7ca71bba11f07541372c41cbcaa8
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>
Bump version, run checkdoc.
---
ws-butler.el | 29 +++++++++++++++++------------
1 file changed, 17 insertions(+), 12 deletions(-)
diff --git a/ws-butler.el b/ws-butler.el
index 3d30dacab4..8e7c5c2c8c 100644
--- a/ws-butler.el
+++ b/ws-butler.el
@@ -10,7 +10,7 @@
;; Maintainer: Le Wang
;; Created: Sat Jan 5 16:49:23 2013 (+0800)
-;; Version: 0.1
+;; Version: 0.2
;; Last-Updated:
;; By:
;; URL: https://github.com/lewang/ws-butler
@@ -69,7 +69,7 @@ only the \"virtual\" space is preserved in the buffer.
(defvar ws-butler-saved)
(defmacro ws-butler-with-save (&rest forms)
- "run forms with restriction and excursion saved once"
+ "Run FORMS with restriction and excursion saved once."
(declare (debug (body)))
`(if (and (boundp 'ws-butler-saved)
ws-butler-saved)
@@ -81,6 +81,8 @@ only the \"virtual\" space is preserved in the buffer.
,@forms)))))
(defun ws-butler-trim-eob-lines ()
+ "Trim lines at EOB in efficient manner.
+Also see `require-final-newline'."
(ws-butler-with-save
(widen)
;; we need to clean up multiple blank lines at EOF to just one. Or if
@@ -103,7 +105,7 @@ only the \"virtual\" space is preserved in the buffer.
(replace-match ""))))
(defun ws-butler-maybe-trim-eob-lines (last-modified-pos)
- "Delete extra newlines at end of buffer."
+ "Delete extra newlines at end of buffer if LAST-MODIFIED-POS is in the patch
of excess newlines."
(interactive (list nil))
(unless buffer-read-only
(unless last-modified-pos
@@ -126,9 +128,7 @@ only the \"virtual\" space is preserved in the buffer.
"Delete trailing blanks in region BEG END.
If `indent-tabs-mode' is nil, then tabs in indentation is
-replaced by spaces.
-
-"
+replaced by spaces."
(interactive "*r")
(ws-butler-with-save
(narrow-to-region beg end)
@@ -150,12 +150,18 @@ replaced by spaces.
(defvar ws-butler-presave-coord nil
- "saved list of (LINE COLUMN)")
+ "Saved list of (LINE COLUMN) used to restore point after saving.
+
+This is the key to the virtual spaces preserving indentation mechanism.")
(make-variable-buffer-local 'ws-butler-presave-coord)
(defun ws-butler-map-changes (func &optional start-position end-position)
- "See `hilit-chg-map-changes'. This simply uses an end marker
- since we are modifying the buffer in place."
+ "See `hilit-chg-map-changes'.
+
+Call FUNC with each changed region (START-POSITION END-POSITION).
+
+This simply uses an end marker since we are modifying the buffer
+in place."
(let ((start (or start-position (point-min)))
(limit (copy-marker (or end-position (point-max))))
@@ -172,8 +178,7 @@ replaced by spaces.
"Trim white space before save.
Setting `ws-butler-keep-whitespace-before-point' will also
-ensure point doesn't jump due to white space trimming.
-"
+ensure point doesn't jump due to white space trimming."
;; save data to restore later
(when ws-butler-keep-whitespace-before-point
(ws-butler-with-save
@@ -214,7 +219,7 @@ ensure point doesn't jump due to white space trimming.
(set-buffer-modified-p nil)))
(defun ws-butler-before-revert ()
- "Clear `ws-butler-presave-coord'"
+ "Clear `ws-butler-presave-coord'."
(setq ws-butler-presave-coord nil))
;;;###autoload
- [nongnu] branch elpa/ws-butler created (now e3a38d93e0), Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 8c495cfca3 16/64: explain meaning of "unobtrusiveness", Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler fb5d5fd35e 11/64: clean up leading tabs when "indent-tabs-mode" is nil, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler de6936dd55 29/64: Bump version, run checkdoc.,
Stefan Kangas <=
- [nongnu] elpa/ws-butler e6c6454c16 05/64: readme update, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 00e9ca4ace 03/64: commentary update, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 8e441f8778 01/64: initial commit, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 90f7cbd14f 02/64: add README, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler a7f62dcb00 17/64: fix bug when point is after a tab at save time, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler bb70ff8fe3 14/64: fix saving what point is at EOB, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 8c4cb5485a 28/64: Use (1- end) to hack around highlight-changes bug., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler c5b920b6b6 32/64: Merge pull request #10 from DarwinAwardWinner/patch-1, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 631db62b31 40/64: README.md typo., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 0fbba548ff 38/64: Bump to 0.3, Stefan Kangas, 2021/12/31