[Top][All Lists]

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

delete-char not fully documented

From: Thierry Volpiatto
Subject: delete-char not fully documented
Date: Fri, 27 Feb 2009 08:23:33 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux)

Hi every one,
i just realized that `delete-char' is not fully documented:

Both in info and in the docstring.

delete-char use two arg, one for the number of char to delete and one to
push to kill-ring.

,----[ C-h f delete-char RET ]
| delete-char is an interactive built-in function in `C source code'.
| It is bound to <deletechar>, C-d.
| (delete-char n &optional killflag)
| Delete the following n characters (previous if n is negative).
| Optional second arg killflag non-nil means kill instead (save in kill ring).
| Interactively, n is the prefix arg, and killflag is set if
| n was explicitly specified.
| [back]
| ===*===*===*===*===*===*===*===*===*===*===

That work as intended.
But when used interactively it have an extra feature that work like:

| (defun del-reg (beg end)
|   (interactive "r")
|   (delete-region beg end))

I think that need explanation somewhere in manual and docstring. 

A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France

reply via email to

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