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: Tue, 21 Jun 2011 10:13:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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

People usually aren't afraid to use undocumented features.

>> (and that's a good thing).
> Perhaps. Do you oppose also to using the return value of other
> side-effecting functions or special forms,

As a general rule, yes.

> like `setq'? Because there's no shortage of "(if (setq", "(and (setq",
> "(or (setq" in the sources (341, 387 and 54 instances, respectively).

Indeed, setq is used this way fairly often, so it's pointless to try and
oppose it.  As a matter of fact, I do use this sometimes myself.


        Stefan



reply via email to

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