[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r104642: * src/process.c (Fset_pr

From: Stefan Monnier
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r104642: * src/process.c (Fset_process_buffer): Clarify return value in docstring.
Date: Tue, 21 Jun 2011 12:33:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> What about `display-buffer'? It certainly exists for its side effect,
> but it returns the window, a fact which is both documented and used.
> If it were a new function, would you oppose doing so?

No, I do not systematically oppose side-effecting functions which return
a value as well.  That would be much too drastic (e.g. how would you
figure out which window was used by `display-buffer'?).
I;.e. the return value is really indispensable.  Contrast this with
set-process-buffer whose return value is always available to the caller
before even calling it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]