From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: delete-char not fully documented Date: Fri, 27 Feb 2009 08:23:33 +0100 Message-ID: <87ab88737u.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235719847 2888 80.91.229.12 (27 Feb 2009 07:30:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2009 07:30:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 27 08:32:03 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LcxCV-0007OR-3m for ged-emacs-devel@m.gmane.org; Fri, 27 Feb 2009 08:32:03 +0100 Original-Received: from localhost ([127.0.0.1]:39768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcxBA-0006gh-7K for ged-emacs-devel@m.gmane.org; Fri, 27 Feb 2009 02:30:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LcxB2-0006dZ-L2 for emacs-devel@gnu.org; Fri, 27 Feb 2009 02:30:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LcxB0-0006bx-UG for emacs-devel@gnu.org; Fri, 27 Feb 2009 02:30:32 -0500 Original-Received: from [199.232.76.173] (port=58157 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcxB0-0006bl-Nv for emacs-devel@gnu.org; Fri, 27 Feb 2009 02:30:30 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:46528) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LcxB0-0006zY-B4 for emacs-devel@gnu.org; Fri, 27 Feb 2009 02:30:30 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LcxAz-0004Za-1m for emacs-devel@gnu.org; Fri, 27 Feb 2009 02:30:29 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LcxAt-0002kN-NW for emacs-devel@gnu.org; Fri, 27 Feb 2009 07:30:23 +0000 Original-Received: from 121.77.197-77.rev.gaoland.net ([77.197.77.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Feb 2009 07:30:23 +0000 Original-Received: from thierry.volpiatto by 121.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Feb 2009 07:30:23 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 121.77.197-77.rev.gaoland.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:CtDlgs49XP5PaeOXJedZkUXSvt4= X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109356 Archived-At: 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 , 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