From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.devel Subject: Re: forward-paragraph return value Date: Tue, 24 Aug 2010 07:43:30 +0200 Message-ID: <4C735C02.70804@online.de> References: <4C72BD0A.8090104@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1282628690 24133 80.91.229.12 (24 Aug 2010 05:44:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2010 05:44:50 +0000 (UTC) Cc: Emacs developers To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 24 07:44:48 2010 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.69) (envelope-from ) id 1OnmJQ-0007tB-8e for ged-emacs-devel@m.gmane.org; Tue, 24 Aug 2010 07:44:44 +0200 Original-Received: from localhost ([127.0.0.1]:59032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnmJP-0000GX-Op for ged-emacs-devel@m.gmane.org; Tue, 24 Aug 2010 01:44:43 -0400 Original-Received: from [140.186.70.92] (port=44153 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnmJG-0000FM-MU for emacs-devel@gnu.org; Tue, 24 Aug 2010 01:44:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnmJF-0005O9-8F for emacs-devel@gnu.org; Tue, 24 Aug 2010 01:44:34 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:52955) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnmJE-0005Ni-Q9 for emacs-devel@gnu.org; Tue, 24 Aug 2010 01:44:33 -0400 Original-Received: from [192.168.178.27] (brln-4db9c4ae.pool.mediaWays.net [77.185.196.174]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MGVFc-1Oab0l1Q3M-00Dkik; Tue, 24 Aug 2010 07:44:19 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 In-Reply-To: X-Provags-ID: V02:K0:IFATTw/knKSCh1QgKM298TNpHfzugfk/BFaYguI3K6N 1hRb9wTiarjol2iuXXCmsrx29KzYyu5OOxB9oz+L9VL7Hx23t1 nHIyUYbmm25/kEUO+ihgETGcVSZH3dCZXV1636+xKWBpqEFsvK ot32Rho8ujpcxyyjAdvTkRq6MY2DbqKUZghxXy3UsbuKDRw9n4 o+FmXnl3+OFr5YP3UpJalls0kMIuFd4wlNbrwdBirM= X-detected-operating-system: by eggs.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:129111 Archived-At: Am 23.08.2010 22:59, schrieb Andreas Schwab: > Andreas Röhler writes: > > >> `forward-paragraph' presently returns "0" if the number of steps given by >> ARG is completed. It's code ends with: >> >> ;; Return the number of steps that could not be done. >> arg)) >> > Which makes it similar to forward-line. > > >> IMHO buffer-position reached is a more useful return value. >> > Which you can get with (point). So what's the point? > > Andreas. > > Having a consistent design meeting expectations. For example a function designed to move point should return new position. Then people may write functions taking already the return value. Thats more nice than writing FORWARD (point). Presently return values of move functions are not regular. Some return nil or t, some positions IIRC, this one it's remaining loop variable. Well, would consider re-write efforts and not suggest that now for skip-char functions. In case of moves over paragraphs its easily done. Andreas -- https://code.launchpad.net/~a-roehler/python-mode https://code.launchpad.net/s-x-emacs-werkstatt/