unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el (describe-mode): Return nil (for IELM's sake).
       [not found] <E1NykJ3-0007V6-Of@internal.in.savannah.gnu.org>
@ 2010-04-05 13:55 ` Stefan Monnier
  2010-04-05 18:23   ` Juanma Barranquero
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2010-04-05 13:55 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: emacs-devel

>   * help.el (describe-mode): Return nil (for IELM's sake).
[..]
> -	(princ (documentation major-mode))))))
> +	(princ (documentation major-mode)))))
> +  nil)
 
Here's a prime example of what I sent yesterday: if you think about it,
the "for IELM's sake" part of the comment would be very welcome in the
code, so that's where it should be instead of in the ChangeLog.


        Stefan




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el  (describe-mode): Return nil (for IELM's sake).
  2010-04-05 13:55 ` [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el (describe-mode): Return nil (for IELM's sake) Stefan Monnier
@ 2010-04-05 18:23   ` Juanma Barranquero
  2010-04-05 19:31     ` [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Juanma Barranquero @ 2010-04-05 18:23 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

On Mon, Apr 5, 2010 at 15:55, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> Here's a prime example of what I sent yesterday: if you think about it,
> the "for IELM's sake" part of the comment would be very welcome in the
> code, so that's where it should be instead of in the ChangeLog.

Hm, I'm not sure. I changed it for IELM's sake, but any code that
calls the function and returns its result is going to benefit from it.
There's nothing *specifically* IEMLy in returning nil.

    Juanma




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el
  2010-04-05 18:23   ` Juanma Barranquero
@ 2010-04-05 19:31     ` Stefan Monnier
  2010-04-05 19:45       ` Juanma Barranquero
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2010-04-05 19:31 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: emacs-devel

>> Here's a prime example of what I sent yesterday: if you think about it,
>> the "for IELM's sake" part of the comment would be very welcome in the
>> code, so that's where it should be instead of in the ChangeLog.
> Hm, I'm not sure. I changed it for IELM's sake, but any code that
> calls the function and returns its result is going to benefit from it.
> There's nothing *specifically* IEMLy in returning nil.

That's a problem of the comment itself, not of where it's placed.
My argument is only that it should go in a comment rather than in
the ChangeLog.


        Stefan


PS: And even if it can be useful in other circumstances it's still
useful to explain which circumstance prompted the reaction.  So if you
really insist you could say "for the sake of IELM and maybe others".




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el
  2010-04-05 19:31     ` [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el Stefan Monnier
@ 2010-04-05 19:45       ` Juanma Barranquero
  2010-04-06  0:37         ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Juanma Barranquero @ 2010-04-05 19:45 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

On Mon, Apr 5, 2010 at 21:31, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> That's a problem of the comment itself, not of where it's placed.

No, the comment is accurately describing why I did the change. But
it's not worth discussing this; I'll change it.

> PS: And even if it can be useful in other circumstances it's still
> useful to explain which circumstance prompted the reaction.  So if you
> really insist you could say "for the sake of IELM and maybe others".

OK.

    Juanma




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el
  2010-04-05 19:45       ` Juanma Barranquero
@ 2010-04-06  0:37         ` Stefan Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2010-04-06  0:37 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: emacs-devel

>> That's a problem of the comment itself, not of where it's placed.
> No, the comment is accurately describing why I did the change.

Then, there's no need to change its content, only its place.

> But it's not worth discussing this;

If you're talking about discussing the comment's content, I fully agree.
All I'm interested in is discussing the comment's *place*, which in this
case should be in the code rather than (or additionally to) in
the ChangeLog.

> I'll change it.

I don't care too much about this part, actually.  But feel free to
change it if you feel like it.


        Stefan




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-06  0:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1NykJ3-0007V6-Of@internal.in.savannah.gnu.org>
2010-04-05 13:55 ` [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el (describe-mode): Return nil (for IELM's sake) Stefan Monnier
2010-04-05 18:23   ` Juanma Barranquero
2010-04-05 19:31     ` [Emacs-diffs] /srv/bzr/emacs/trunk r99829: * help.el Stefan Monnier
2010-04-05 19:45       ` Juanma Barranquero
2010-04-06  0:37         ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).