diff options
| author | Eli Zaretskii | 2024-03-25 21:49:55 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-03-25 21:49:55 +0200 |
| commit | 38faacf353fb4c8efb027019a4619a386edfe62c (patch) | |
| tree | 82e619d08220f04191661d4e14a4da4dbe7f990f | |
| parent | 9d3d77f12dac21c633cf10f111b0e4e574036b30 (diff) | |
| download | emacs-38faacf353fb4c8efb027019a4619a386edfe62c.tar.gz emacs-38faacf353fb4c8efb027019a4619a386edfe62c.zip | |
Improve documentation of <Delete> in user manual
* doc/emacs/basic.texi (Erasing): Document that <Delete> deletes
entire grapheme clusters.
| -rw-r--r-- | doc/emacs/basic.texi | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi index f64b3995d25..abdfcb1ab8a 100644 --- a/doc/emacs/basic.texi +++ b/doc/emacs/basic.texi | |||
| @@ -406,8 +406,8 @@ Delete the character before point, or the region if it is active | |||
| 406 | (@code{delete-backward-char}). | 406 | (@code{delete-backward-char}). |
| 407 | 407 | ||
| 408 | @item @key{Delete} | 408 | @item @key{Delete} |
| 409 | Delete the character after point, or the region if it is active | 409 | Delete the character or grapheme cluster after point, or the region if |
| 410 | (@code{delete-forward-char}). | 410 | it is active (@code{delete-forward-char}). |
| 411 | 411 | ||
| 412 | @item C-d | 412 | @item C-d |
| 413 | Delete the character after point (@code{delete-char}). | 413 | Delete the character after point (@code{delete-char}). |
| @@ -438,11 +438,18 @@ with the @key{Delete} key; we will discuss @key{Delete} momentarily.) | |||
| 438 | On some text terminals, Emacs may not recognize the @key{DEL} key | 438 | On some text terminals, Emacs may not recognize the @key{DEL} key |
| 439 | properly. @xref{DEL Does Not Delete}, if you encounter this problem. | 439 | properly. @xref{DEL Does Not Delete}, if you encounter this problem. |
| 440 | 440 | ||
| 441 | @cindex grapheme cluster, deletion | ||
| 442 | @cindex delete entire grapheme cluster | ||
| 441 | The @key{Delete} (@code{delete-forward-char}) command deletes in the | 443 | The @key{Delete} (@code{delete-forward-char}) command deletes in the |
| 442 | opposite direction: it deletes the character after point, i.e., the | 444 | opposite direction: it deletes the character after point, i.e., the |
| 443 | character under the cursor. If point was at the end of a line, this | 445 | character under the cursor. If point was at the end of a line, this |
| 444 | joins the following line onto this one. Like @kbd{@key{DEL}}, it | 446 | joins the following line onto this one. Like @kbd{@key{DEL}}, it |
| 445 | deletes the text in the region if the region is active (@pxref{Mark}). | 447 | deletes the text in the region if the region is active (@pxref{Mark}). |
| 448 | If the character after point is composed with following characters and | ||
| 449 | displayed as a single display unit, a so-called @dfn{grapheme cluster} | ||
| 450 | representing the entire sequence, @key{Delete} deletes the entire | ||
| 451 | sequence in one go. This is in contrast to @key{DEL} which always | ||
| 452 | deletes a single character, even if the character is composed. | ||
| 446 | 453 | ||
| 447 | @kbd{C-d} (@code{delete-char}) deletes the character after point, | 454 | @kbd{C-d} (@code{delete-char}) deletes the character after point, |
| 448 | similar to @key{Delete}, but regardless of whether the region is | 455 | similar to @key{Delete}, but regardless of whether the region is |