emacs-devel
[Top][All Lists]
Advanced

[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: Juanma Barranquero
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r104642: * src/process.c (Fset_process_buffer): Clarify return value in docstring.
Date: Mon, 20 Jun 2011 21:53:28 +0200

On Mon, Jun 20, 2011 at 19:53, Stefan Monnier <address@hidden> wrote:

> That the author could just as well have written "return Qnil;" or
> various other options.

"return Qnil;" is rarely useful. "return buffer;" could be.

> I can't find a single example of Elisp code in Emacs that does not
> ignore the return value of set-process-buffer

Hardly surprising, as it was undocumented.

> (and that's a good thing).

Perhaps. Do you oppose also to using the return value of other
side-effecting functions or special forms, like `setq'? Because
there's no shortage of "(if (setq", "(and (setq", "(or (setq" in the
sources (341, 387 and 54 instances, respectively).

    Juanma



reply via email to

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