all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#286: 23.0.60; doc string for yank-pop
@ 2008-05-20 17:38 Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-05-20 17:38 UTC (permalink / raw)
  To: emacs-pretest-bug

The doc string includes this:
 
 "When this command inserts killed text into the buffer, it honors
 `yank-excluded-properties' and `yank-handler' as described in the
 doc string for `insert-for-yank-1', which see."
 
This is the doc string for a user command. It should not tell users to
refer to the doc string of an internal function (`insert-for-yank-1').
 
And "When this command inserts killed text into the buffer" seems
redundant - that is what this command _always_ does, no?
 

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-05-04 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
 









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

* bug#286: 23.0.60; doc string for yank-pop
@ 2008-05-22 17:27 Chong Yidong
  2008-05-22 17:41 ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2008-05-22 17:27 UTC (permalink / raw)
  To: Drew Adams; +Cc: 286

Tags: wontfix

> The doc string includes this:
> 
>  "When this command inserts killed text into the buffer, it honors
>  `yank-excluded-properties' and `yank-handler' as described in the
>  doc string for `insert-for-yank-1', which see."
> 
> This is the doc string for a user command. It should not tell users to
> refer to the doc string of an internal function (`insert-for-yank-1').

The text you quoted is primarily a note for programmers.  I don't think
it violates any convention.






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

* bug#286: 23.0.60; doc string for yank-pop
  2008-05-22 17:27 bug#286: 23.0.60; doc string for yank-pop Chong Yidong
@ 2008-05-22 17:41 ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-05-22 17:41 UTC (permalink / raw)
  To: 'Chong Yidong'; +Cc: 286

> From: Chong Yidong Sent: Thursday, May 22, 2008 10:27 AM
> Tags: wontfix
> 
> > The doc string includes this:
> > 
> >  "When this command inserts killed text into the buffer, it honors
> >  `yank-excluded-properties' and `yank-handler' as described in the
> >  doc string for `insert-for-yank-1', which see."
> > 
> > This is the doc string for a user command. It should not 
> > tell users to refer to the doc string of an internal function 
> > (`insert-for-yank-1').
> 
> The text you quoted is primarily a note for programmers.  I 
> don't think it violates any convention.

Huh? It is a _doc string_, not a code comment. Doc strings are _not_ just notes
for programmers; they are documentation for _users_.

It appears that when a change was made to the code that introduced
`insert-for-yank-1' and the new behavior that "honors `yank-excluded-properties'
and `yank-handler'", someone was lazy and just referred to the doc string for
`insert-for-yank-1'. IOW, when code was moved to a new helper function, the doc
string went with it, so the new doc string simply took the shortcut of referring
to the doc string of the helper function.

This laziness is not helpful to users. Please correct this. Put the user
information back in the doc string of the main function.







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

end of thread, other threads:[~2008-05-22 17:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-22 17:27 bug#286: 23.0.60; doc string for yank-pop Chong Yidong
2008-05-22 17:41 ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2008-05-20 17:38 Drew Adams

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.