emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 09c220a: Minor fixes for the last change


From: Eli Zaretskii
Subject: [Emacs-diffs] master 09c220a: Minor fixes for the last change
Date: Fri, 22 Mar 2019 04:59:56 -0400 (EDT)

branch: master
commit 09c220a5cfb229ef88d1b3e9065951e3368da1e2
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Minor fixes for the last change
    
    * lisp/simple.el (delete-indentation):
    * doc/emacs/indent.texi (Indentation Commands):
    * etc/NEWS: Fix last change.  (Bug#34796)
---
 doc/emacs/indent.texi | 6 +++---
 etc/NEWS              | 6 ++++--
 lisp/simple.el        | 7 ++++---
 3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/doc/emacs/indent.texi b/doc/emacs/indent.texi
index 61cf733..5f40acb 100644
--- a/doc/emacs/indent.texi
+++ b/doc/emacs/indent.texi
@@ -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-\
diff --git a/etc/NEWS b/etc/NEWS
index 7ebc9f2..9f569a7 100644
--- 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.
 
 +++
 
diff --git a/lisp/simple.el b/lisp/simple.el
index 7878272..f52bd95 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]