]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor fixes for the last change
authorEli Zaretskii <eliz@gnu.org>
Fri, 22 Mar 2019 08:59:11 +0000 (11:59 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 22 Mar 2019 08:59:11 +0000 (11:59 +0300)
* lisp/simple.el (delete-indentation):
* doc/emacs/indent.texi (Indentation Commands):
* etc/NEWS: Fix last change.  (Bug#34796)

doc/emacs/indent.texi
etc/NEWS
lisp/simple.el

index 61cf7332b5c56cdd4fd9d3a9a74925bf374aaa3f..5f40acba1512054f385c957c4c5f42d8e60e9f16 100644 (file)
@@ -110,9 +110,9 @@ parentheses, or if the junction follows another newline.
 If there is a fill prefix, @kbd{M-^} deletes the fill prefix if it
 appears after the newline that is deleted.  @xref{Fill Prefix}.
 
-With the universal prefix argument, join the current line line to the
-following line.  With the region active, join lines in the region.  If
-both the argument is set and the region is active, the region is ignored.
+With a prefix argument, join the current line line to the following
+line.  If the region is active, and no prefix argument is given, join
+all lines in the region instead.
 
 @item C-M-\
 @kindex C-M-\
index 7ebc9f291835fa176b4a652d4d78e979fd536108..9f569a7367308f9196a3718684d47bdd7e6f2e6c 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -370,8 +370,10 @@ region using a given replacement-function in a non-destructive manner
 arguments mitigating performance issues when operating on huge
 buffers.
 
-** The command `delete-indentation` now can operate on the active
-region
+** The command 'delete-indentation' now operates on the active region.
+If the region is active, the command joins all the lines in the
+region.  When there's no active region, the command works on the
+current and the previous or the next line, as before.
 
 +++
 \f
index 7878272ec9002462ace92961e2f10cf2553632a0..f52bd95bf847222f2cf55ee88ea9d7f94ae54bb7 100644 (file)
@@ -596,9 +596,10 @@ When called from Lisp code, ARG may be a prefix string to copy."
 (defun delete-indentation (&optional arg beg end)
   "Join this line to previous and fix up whitespace at join.
 If there is a fill prefix, delete it from the beginning of this
-line.  With prefix ARG, join the current line to the following line.
-With the region active, join lines in the region. If both the
-argument is set and the region is active, the region is ignored."
+line.
+With prefix ARG, join the current line to the following line.
+If the region is active, join all the lines in the region.  (The
+region is ignored if prefix argument is given.)"
   (interactive "*P\nr")
   (if arg (forward-line 1)
     (if (use-region-p)