From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: return values Date: Tue, 10 Nov 2009 13:10:21 +0000 Message-ID: <20091110131021.GB1385@muc.de> References: <4AF94183.5020400@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257858480 13606 80.91.229.12 (10 Nov 2009 13:08:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2009 13:08:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Roehler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 10 14:07:52 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 1N7qRs-00068U-4K for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2009 14:07:52 +0100 Original-Received: from localhost ([127.0.0.1]:45220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7qRr-0003t3-Bi for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2009 08:07:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7qPj-0002sp-TV for emacs-devel@gnu.org; Tue, 10 Nov 2009 08:05:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7qPe-0002pZ-MV for emacs-devel@gnu.org; Tue, 10 Nov 2009 08:05:38 -0500 Original-Received: from [199.232.76.173] (port=57132 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7qPe-0002pO-HB for emacs-devel@gnu.org; Tue, 10 Nov 2009 08:05:34 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:4077 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N7qPd-00064p-4B for emacs-devel@gnu.org; Tue, 10 Nov 2009 08:05:33 -0500 Original-Received: (qmail 74471 invoked by uid 3782); 10 Nov 2009 13:05:28 -0000 Original-Received: from acm.muc.de (pD9E231B2.dip.t-dialin.net [217.226.49.178]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 10 Nov 2009 14:05:27 +0100 Original-Received: (qmail 10517 invoked by uid 1000); 10 Nov 2009 13:10:21 -0000 Content-Disposition: inline In-Reply-To: <4AF94183.5020400@online.de> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 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:116798 Archived-At: Hi, Andreas! On Tue, Nov 10, 2009 at 11:33:39AM +0100, Andreas Roehler wrote: > Hi, > IMHO it might be helpful, if classes of functions have a regular return > value. > For example functions which move point should return point. Here, it's probably more accurate to say "would have been a good idea", since some users of the current functions will use the current return values, even if only relying on the fact that they're always nil. > `goto-char' does it presently, beginning/end-of-defun not. Indeed. > Also I suggest mentioning the return value in docstring. I am in favour of mentioning the return value of EVERY function, even when (or _especially_ when :-) it's only a sentence like "The return value is of no significance". > Thanks all > Andreas -- Alan Mackenzie (Nuremberg, Germany).