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: Stefan Monnier
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 13:53:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> Actually, I generally prefer not to document the accidental return value
>> of side-effecting functions.

> What's accidental in
>   return buffer;
> ?

That the author could just as well have written "return Qnil;" or
various other options.
I can't find a single example of Elisp code in Emacs that does not
ignore the return value of set-process-buffer (and that's a good thing).


        Stefan



reply via email to

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