unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: emacs-devel@gnu.org
Subject: delete-char not fully documented
Date: Fri, 27 Feb 2009 08:23:33 +0100	[thread overview]
Message-ID: <87ab88737u.fsf@tux.homenetwork> (raw)

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	other threads:[~2009-02-27  7:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-27  7:23 Thierry Volpiatto [this message]
2009-02-27 22:08 ` delete-char not fully documented Stefan Monnier
2009-02-27 22:36   ` thierry.volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ab88737u.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).