summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/subr-x.el
diff options
context:
space:
mode:
authorRobert Pluim <rpluim@gmail.com>2021-11-10 17:42:30 +0100
committerRobert Pluim <rpluim@gmail.com>2021-11-10 17:42:30 +0100
commita491b73c765adde894acdbafc6fd97edd4343c2c (patch)
tree207cd07b084db84234a72411161e5f38284fff30 /lisp/emacs-lisp/subr-x.el
parentc5e7a0225b0771fb0a27b9380706fb3ceabc0f85 (diff)
downloademacs-a491b73c765adde894acdbafc6fd97edd4343c2c.tar.gz
Improve 'ensure-empty-lines' docstring
* lisp/emacs-lisp/subr-x.el (ensure-empty-lines): Fix typo and improve wording.
Diffstat (limited to 'lisp/emacs-lisp/subr-x.el')
-rw-r--r--lisp/emacs-lisp/subr-x.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el
index e3caf88c2f5..f336799040f 100644
--- a/lisp/emacs-lisp/subr-x.el
+++ b/lisp/emacs-lisp/subr-x.el
@@ -416,14 +416,14 @@ and return the value found in PLACE instead."
;;;###autoload
(defun ensure-empty-lines (&optional lines)
- "Ensure that there's LINES number of empty lines before point.
-If LINES is nil or missing, a this ensures that there's a single
-empty line before point.
+ "Ensure that there are LINES number of empty lines before point.
+If LINES is nil or omitted, ensure that there is a single empty
+line before point.
-Interactively, this command uses the numerical prefix for LINES.
+If called interactively, LINES is given by the prefix argument.
-If there's already more empty lines before point than LINES, the
-number of blank lines will be reduced.
+If there are more than LINES empty lines before point, the number
+of empty lines is reduced to LINES.
If point is not at the beginning of a line, a newline character
is inserted before adjusting the number of empty lines."