unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [Emacs-diffs] emacs-25 c2ba4a2: ; Added documentation for undo-auto functionality.
@ 2015-12-01 20:07 Eli Zaretskii
  2015-12-03 15:54 ` John Wiegley
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2015-12-01 20:07 UTC (permalink / raw)
  To: Phillip Lord; +Cc: emacs-devel

This commit documents internal functions and variables.  IMO, if we
think they deserve being documented (and I think I agree), they
shouldn't be internal in the first place.

WDYT?

Thanks.



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

* Re: [Emacs-diffs] emacs-25 c2ba4a2: ; Added documentation for undo-auto functionality.
  2015-12-01 20:07 [Emacs-diffs] emacs-25 c2ba4a2: ; Added documentation for undo-auto functionality Eli Zaretskii
@ 2015-12-03 15:54 ` John Wiegley
  2015-12-03 17:34   ` Phillip Lord
  0 siblings, 1 reply; 5+ messages in thread
From: John Wiegley @ 2015-12-03 15:54 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Phillip Lord, emacs-devel

<#secure method=pgpmime mode=sign>
>>>>> Eli Zaretskii <eliz@gnu.org> writes:

> This commit documents internal functions and variables. IMO, if we think
> they deserve being documented (and I think I agree), they shouldn't be
> internal in the first place.

If they're truly internal, I don't think they should be documented in
elisp.texi. Sufficient documentation is provided for such functions via the
docstring.

If one feels they do belong in elisp.texi, they shouldn't be internal, as Eli
indicates.

In a sense, elisp.texi defines our "Emacs Lisp API" to programmers, so
anything we document there represent a certain level of commitment.




-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2



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

* Re: [Emacs-diffs] emacs-25 c2ba4a2: ; Added documentation for undo-auto functionality.
  2015-12-03 15:54 ` John Wiegley
@ 2015-12-03 17:34   ` Phillip Lord
  2015-12-03 19:51     ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Phillip Lord @ 2015-12-03 17:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Phillip Lord, emacs-devel

John Wiegley <jwiegley@gmail.com> writes:

> <#secure method=pgpmime mode=sign>
>>>>>> Eli Zaretskii <eliz@gnu.org> writes:
>
>> This commit documents internal functions and variables. IMO, if we think
>> they deserve being documented (and I think I agree), they shouldn't be
>> internal in the first place.
>
> If they're truly internal, I don't think they should be documented in
> elisp.texi. Sufficient documentation is provided for such functions via the
> docstring.
>
> If one feels they do belong in elisp.texi, they shouldn't be internal, as Eli
> indicates.
>
> In a sense, elisp.texi defines our "Emacs Lisp API" to programmers, so
> anything we document there represent a certain level of commitment.


Yeah, think that's true. I made them internal but then when I was
writing the documentation thought perhaps they should be documented.
Deciding what is "end-user" functionality and what is "implementation"
gets a bit hard when you are talking about code of this form.

I'll patch them up and make these two non internal.

Phil



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

* Re: [Emacs-diffs] emacs-25 c2ba4a2: ; Added documentation for undo-auto functionality.
  2015-12-03 17:34   ` Phillip Lord
@ 2015-12-03 19:51     ` Stefan Monnier
  2015-12-03 21:47       ` Phillip Lord
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2015-12-03 19:51 UTC (permalink / raw)
  To: emacs-devel

> Deciding what is "end-user" functionality and what is "implementation"
> gets a bit hard when you are talking about code of this form.

When in doubt, I recommend to err on the side of not documenting.


        Stefan




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

* Re: [Emacs-diffs] emacs-25 c2ba4a2: ; Added documentation for undo-auto functionality.
  2015-12-03 19:51     ` Stefan Monnier
@ 2015-12-03 21:47       ` Phillip Lord
  0 siblings, 0 replies; 5+ messages in thread
From: Phillip Lord @ 2015-12-03 21:47 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Deciding what is "end-user" functionality and what is "implementation"
>> gets a bit hard when you are talking about code of this form.
>
> When in doubt, I recommend to err on the side of not documenting.

I think in this case, the function and variable should probably not be
internal. The undo-auto-amalgamate function in particular, might well be
of use outside.

Phil



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

end of thread, other threads:[~2015-12-03 21:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-01 20:07 [Emacs-diffs] emacs-25 c2ba4a2: ; Added documentation for undo-auto functionality Eli Zaretskii
2015-12-03 15:54 ` John Wiegley
2015-12-03 17:34   ` Phillip Lord
2015-12-03 19:51     ` Stefan Monnier
2015-12-03 21:47       ` Phillip Lord

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