unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8098: 24.0.50; Doc strings in `image-mode.el'
@ 2011-02-22 21:41 Drew Adams
  2011-04-09 20:30 ` Chong Yidong
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2011-02-22 21:41 UTC (permalink / raw)
  To: 8098

Consider adding more doc strings - there is a paucity of them in this
file.
 
Remove the second line of the `image-type' doc string - we don't
normally document the _use_ of a variable (since it could be used
for more than one thing).
 
Why "as text" in the doc string of `image-minor-mode-map' but not that
of `image-mode-map'?  Is that correct?  Maybe it is, in which case the
minor mode is poorly named.  The names indicate that they are the same
thing, one major the other minor.
 
`image-toggle-display-text' is a _toggle_, so its doc string's first
line should not say that it shows the file as text.  It should say that
it toggles showing the file as text (or some such).  Similarly for
`image-toggle-display-image'?  And `image-toggle-display'?  (It's
unclear from the doc strings what this is all about.  Why three
commands?)
 
Why is this function named `*-hook': `image-after-revert-hook'?  Why not
just `image-after-revert'?  This is not a hook (a variable); it is a
hook function.
 
Doc string of `image-transform-mode' is grammatically incorrect:
"transforming the view of images Image modetransforming the view of
images Image mode".
 
Capitalize and spell-check the doc string of `image-transform-mode'.
And say a bit more (scaling and rotating what?).
 
`image-transform-resize', `image-transform-properties', and
`image-transform-set-resize': Doc string first line is not standalone
(incomplete sentence).

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-02-14 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 






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

* bug#8098: 24.0.50; Doc strings in `image-mode.el'
  2011-02-22 21:41 bug#8098: 24.0.50; Doc strings in `image-mode.el' Drew Adams
@ 2011-04-09 20:30 ` Chong Yidong
  2011-04-09 20:37   ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2011-04-09 20:30 UTC (permalink / raw)
  To: Drew Adams; +Cc: 8098

"Drew Adams" <drew.adams@oracle.com> writes:

> `image-toggle-display-text' is a _toggle_, so its doc string's first
> line should not say that it shows the file as text.  It should say that
> it toggles showing the file as text (or some such).  Similarly for
> `image-toggle-display-image'?

These functions don't toggle.  They are helper functions for
image-toggle-display and co.

I've cleaned up the other documentation problems you pointed out.
Thanks.





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

* bug#8098: 24.0.50; Doc strings in `image-mode.el'
  2011-04-09 20:30 ` Chong Yidong
@ 2011-04-09 20:37   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2011-04-09 20:37 UTC (permalink / raw)
  To: 'Chong Yidong'; +Cc: 8098

> > `image-toggle-display-text' ... `image-toggle-display-image'?
> 
> These functions don't toggle.  They are helper functions for
> image-toggle-display and co.

Oh, right.  OK, but in that case we could have better names for them.  Maybe
consider using Stefan's `*--*' convention for "internal" functions here.  I.e.,
`image-toggle-display--text', `image-toggle-display--image'

> I've cleaned up the other documentation problems you pointed out.

Thx.






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

end of thread, other threads:[~2011-04-09 20:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-22 21:41 bug#8098: 24.0.50; Doc strings in `image-mode.el' Drew Adams
2011-04-09 20:30 ` Chong Yidong
2011-04-09 20:37   ` Drew Adams

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