all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Andreas Roehler <andreas.roehler@online.de>
Cc: emacs-devel@gnu.org
Subject: Re: return values
Date: Tue, 10 Nov 2009 13:10:21 +0000	[thread overview]
Message-ID: <20091110131021.GB1385@muc.de> (raw)
In-Reply-To: <4AF94183.5020400@online.de>

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).




  reply	other threads:[~2009-11-10 13:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-10 10:33 return values Andreas Roehler
2009-11-10 13:10 ` Alan Mackenzie [this message]
2009-11-13 10:56   ` Andreas Roehler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091110131021.GB1385@muc.de \
    --to=acm@muc.de \
    --cc=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.