From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: [pogonyshev@gmx.net: `c-indent-command' in a rare case] Date: Fri, 08 Oct 2004 13:29:00 -0400 Sender: cc-mode-help-admin@lists.sourceforge.net Message-ID: References: <5bvfdmzscy.fsf@lister.roxen.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097256896 14784 80.91.229.6 (8 Oct 2004 17:34:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Oct 2004 17:34:56 +0000 (UTC) Cc: bug-cc-mode@gnu.org, pogonyshev@gmx.net, emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Fri Oct 08 19:34:44 2004 Return-path: Original-Received: from lists.sourceforge.net ([66.35.250.206] helo=sc8-sf-list1.sourceforge.net) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CFydg-0004Ca-00 for ; Fri, 08 Oct 2004 19:34:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=projects.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1CFyde-0007P5-67; Fri, 08 Oct 2004 10:34:42 -0700 Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1CFyZl-0006E1-TV for cc-mode-help@lists.sourceforge.net; Fri, 08 Oct 2004 10:30:41 -0700 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41) id 1CFyZa-0000nt-Ne for cc-mode-help@lists.sourceforge.net; Fri, 08 Oct 2004 10:30:41 -0700 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CFyZY-0007PN-H5 for bug-cc-mode@gnu.org; Fri, 08 Oct 2004 13:30:28 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1CFyZ1-0007oh-BJ for bug-cc-mode@gnu.org; Fri, 08 Oct 2004 13:29:58 -0400 Original-Received: from [206.47.199.141] (helo=simmts12-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CFyYF-0007Xs-FE; Fri, 08 Oct 2004 13:29:08 -0400 Original-Received: from empanada.home ([67.71.26.106]) by simmts12-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041008172737.FDVS1580.simmts12-srv.bellnexxia.net@empanada.home>; Fri, 8 Oct 2004 13:27:37 -0400 Original-Received: by empanada.home (Postfix, from userid 502) id A477E3134AB; Fri, 8 Oct 2004 13:29:00 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 08 Oct 2004 12:05:28 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Fri, 08 Oct 2004 13:29:00 -0400 Xref: main.gmane.org gmane.emacs.cc-mode.general:1844 gmane.emacs.devel:28097 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28097 > I understand that it probably isn't an option to change the behavior > of forward-line for compatibility reasons, but it could still be > interesting to know the reason for the decision to return zero when it > has moved but not managed to move to a different line. > It seems logical to me. The decrease in the number of lines remaining > to be moved is zero. Huh? Contrary to skip-chars-forward, forward-line returns the number of lines remaining, not the "decrease in the number of lines remaining". I.e. (zerop (forward-line 1)) is often used to check that forward-line has indeed moved. I agree with Martin that it would be better to not return 0 when it has moved but hasn't managed to move to a different line. Stefan ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl