From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.devel Subject: Re: cmds.c patch: document omitted argument behaviour Date: Wed, 15 Nov 2006 18:51:33 +0100 Message-ID: <87psbobntm.fsf@gmx.at> References: <87ac2vw840.fsf@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1163620489 1589 80.91.229.2 (15 Nov 2006 19:54:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2006 19:54:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 15 20:54:47 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GkQqM-0000fG-CW for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2006 20:54:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkQqL-0000I9-M0 for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2006 14:54:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GkQq7-0000HT-QR for emacs-devel@gnu.org; Wed, 15 Nov 2006 14:54:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GkQq6-0000Gx-KL for emacs-devel@gnu.org; Wed, 15 Nov 2006 14:54:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkQq6-0000Gt-HN for emacs-devel@gnu.org; Wed, 15 Nov 2006 14:54:30 -0500 Original-Received: from [193.170.75.14] (helo=stud4.tuwien.ac.at) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GkQq5-0005s7-ST; Wed, 15 Nov 2006 14:54:30 -0500 Original-Received: from localhost.localdomain (v212-157.vps.tuwien.ac.at [128.131.212.157]) by stud4.tuwien.ac.at (8.9.3 (PHNE_29774)/8.9.3) with ESMTP id SAA16349; Wed, 15 Nov 2006 18:51:06 +0100 (MET) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Tue\, 14 Nov 2006 22\:14\:30 -0500") 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:62350 Archived-At: --=-=-= Richard Stallman writes: > the first line of a doc string must stand on its own. Here's a revised version: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=cmds.patch Index: cmds.c =================================================================== RCS file: /sources/emacs/emacs/src/cmds.c,v retrieving revision 1.98 diff -u -p -r1.98 cmds.c --- cmds.c 18 Jul 2006 13:26:05 -0000 1.98 +++ cmds.c 15 Nov 2006 17:44:00 -0000 @@ -56,8 +56,9 @@ DEFUN ("forward-point", Fforward_point, } DEFUN ("forward-char", Fforward_char, Sforward_char, 0, 1, "p", - doc: /* Move point right N characters (left if N is negative). -On reaching end of buffer, stop and signal error. */) + doc: /* Move point right (left if N is negative) N characters. +On reaching end of buffer, stop and signal error. N nil or omitted is +equivalent to N = 1. */) (n) Lisp_Object n; { @@ -92,8 +93,9 @@ On reaching end of buffer, stop and sign } DEFUN ("backward-char", Fbackward_char, Sbackward_char, 0, 1, "p", - doc: /* Move point left N characters (right if N is negative). -On attempt to pass beginning or end of buffer, stop and signal error. */) + doc: /* Move point left (right if N is negative) N characters. +On attempt to pass beginning or end of buffer, stop and signal error. +N nil or omitted is equivalent to N = 1. */) (n) Lisp_Object n; { @@ -108,12 +110,13 @@ On attempt to pass beginning or end of b DEFUN ("forward-line", Fforward_line, Sforward_line, 0, 1, "p", doc: /* Move N lines forward (backward if N is negative). +N nil or omitted is equivalent to N = 1. Precisely, if point is on line I, move to the start of line I + N. If there isn't room, go as far as possible (no error). Returns the count of lines left to move. If moving forward, that is N - number of lines moved; if backward, N + number moved. With positive N, a non-empty line at the end counts as one line - successfully moved (for the return value). */) +successfully moved (for the return value). */) (n) Lisp_Object n; { --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--