diff options
| author | Glenn Morris | 2014-01-25 17:10:18 -0800 |
|---|---|---|
| committer | Glenn Morris | 2014-01-25 17:10:18 -0800 |
| commit | 169d6004f9b348bec93f4feb6f3b06ce5c3f116c (patch) | |
| tree | eff2d340fd322c875efe64a3bf425fa04af943d3 /doc | |
| parent | 3fcfc4ee802d2a6f041bd624876ac37fda830304 (diff) | |
| download | emacs-169d6004f9b348bec93f4feb6f3b06ce5c3f116c.tar.gz emacs-169d6004f9b348bec93f4feb6f3b06ce5c3f116c.zip | |
Some doc for delete-duplicate-lines
* doc/emacs/killing.texi (Deletion): Mention delete-duplicate-lines.
* lisp/sort.el (delete-duplicate-lines): Doc fix.
* etc/NEWS: Related edit.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/killing.texi | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 7e42d0fcaba..ac8c13ddf1d 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-01-26 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * killing.texi (Deletion): Mention delete-duplicate-lines. | ||
| 4 | |||
| 1 | 2014-01-24 Glenn Morris <rgm@gnu.org> | 5 | 2014-01-24 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * ack.texi (Acknowledgments): No longer mention obsolete xesam.el, | 7 | * ack.texi (Acknowledgments): No longer mention obsolete xesam.el, |
diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi index 52adbb85431..1da226971eb 100644 --- a/doc/emacs/killing.texi +++ b/doc/emacs/killing.texi | |||
| @@ -136,6 +136,17 @@ the current line). On a solitary blank line, it deletes that line. | |||
| 136 | previous line, by deleting a newline and all surrounding spaces, usually | 136 | previous line, by deleting a newline and all surrounding spaces, usually |
| 137 | leaving a single space. @xref{Indentation,M-^}. | 137 | leaving a single space. @xref{Indentation,M-^}. |
| 138 | 138 | ||
| 139 | @c Not really sure where to put this... | ||
| 140 | @findex delete-duplicate-lines | ||
| 141 | The command @code{delete-duplicate-lines} searches the region for | ||
| 142 | identical lines, and removes all but one copy of each. Normally it | ||
| 143 | keeps the first instance of each repeated line, but with a @kbd{C-u} | ||
| 144 | prefix argument it keeps the last. With a @kbd{C-u C-u} prefix | ||
| 145 | argument, it only searches for adjacent identical lines. This is a | ||
| 146 | more efficient mode of operation, useful when the lines have already | ||
| 147 | been sorted. With a @kbd{C-u C-u C-u} prefix argument, it retains | ||
| 148 | repeated blank lines. | ||
| 149 | |||
| 139 | @node Killing by Lines | 150 | @node Killing by Lines |
| 140 | @subsection Killing by Lines | 151 | @subsection Killing by Lines |
| 141 | 152 | ||