unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* delete-char not fully documented
@ 2009-02-27  7:23 Thierry Volpiatto
  2009-02-27 22:08 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Thierry Volpiatto @ 2009-02-27  7:23 UTC (permalink / raw)
  To: emacs-devel

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: delete-char not fully documented
  2009-02-27  7:23 delete-char not fully documented Thierry Volpiatto
@ 2009-02-27 22:08 ` Stefan Monnier
  2009-02-27 22:36   ` thierry.volpiatto
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2009-02-27 22:08 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: emacs-devel

> i just realized that `delete-char' is not fully documented:

Apparently you've enabled pending-delete-mode or delete-selection-mode,
or one of those things.


        Stefan




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: delete-char not fully documented
  2009-02-27 22:08 ` Stefan Monnier
@ 2009-02-27 22:36   ` thierry.volpiatto
  0 siblings, 0 replies; 3+ messages in thread
From: thierry.volpiatto @ 2009-02-27 22:36 UTC (permalink / raw)
  To: emacs-devel

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> i just realized that `delete-char' is not fully documented:
>
> Apparently you've enabled pending-delete-mode or delete-selection-mode,
> or one of those things.

Yes it is delete-selection-mode.

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-27 22:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-27  7:23 delete-char not fully documented Thierry Volpiatto
2009-02-27 22:08 ` Stefan Monnier
2009-02-27 22:36   ` thierry.volpiatto

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).