unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Undocumented hyperlinks in doc strings.
@ 2003-10-09  0:50 Luc Teirlinck
  2003-10-09 21:16 ` Richard Stallman
  0 siblings, 1 reply; 31+ messages in thread
From: Luc Teirlinck @ 2003-10-09  0:50 UTC (permalink / raw)


Why does `default' get a hyperlink in the documentation string of
`fringe-mode'?  Is this a bug or a "feature"? `default' is not defined
as a variable nor as a function, nor is it preceded by `info node' or
`Info node', hence it is not covered by the list of possibilities
described in (elisp)Documentation Tips.  It is extremely important
that this list be completely exhaustive and accurate if we want
package authors to write good documentation strings.

If the reason would be that `default' is a face, then apart from the
lack of documentation (which could easily be fixed), I would also have
the less easily fixed objection that faces just tend to have extremely
common names such as `default', `mouse', `menu', `region', `button'
`border', `fringe', `bold', and countless equally common ones, that
are used for tons of other purposes.  Systematically having to write
`symbol' in front of them would be a lot more of a nuisance than for
variables or functions, simply because the situation occurs so much
more frequently.

"Fake" hyperlinks like the one for `default' in the documentation
string below are distracting and confusing.  It misleadingly suggests
that if you follow it, you will get more information about what the
value `default' means.  Instead you get to stare at completely
unrelated face documentation.

(defun fringe-mode (&optional mode)
  "Toggle appearance of fringes on all frames.
Valid values for MODE include `none', `default', `left-only',
`right-only', `minimal' and `half'.  MODE can also be a cons cell
where the integer in car will be used as left fringe width and the
integer in cdr will be used as right fringe width. If MODE is not
specified, the user is queried.
It applies to all frames that exist and frames to be created in the
future.
If you want to set appearance of fringes on the selected frame only,
see `set-fringe-style'."

Sincerely,

Luc.

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

end of thread, other threads:[~2003-10-21 14:47 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09  0:50 Undocumented hyperlinks in doc strings Luc Teirlinck
2003-10-09 21:16 ` Richard Stallman
2003-10-10  3:27   ` Luc Teirlinck
2003-10-10 14:14     ` Stefan Monnier
2003-10-10 15:31       ` Luc Teirlinck
2003-10-10 16:29         ` Luc Teirlinck
2003-10-10 17:23         ` Stefan Monnier
2003-10-10 18:21           ` Luc Teirlinck
2003-10-10 19:24             ` Stefan Monnier
2003-10-11 17:12       ` Richard Stallman
2003-10-14 21:03         ` Stefan Monnier
2003-10-15  1:38           ` Luc Teirlinck
2003-10-15 20:00             ` Richard Stallman
2003-10-15 23:52               ` Luc Teirlinck
2003-10-16 23:06                 ` Richard Stallman
2003-10-16 14:06             ` Richard Stallman
2003-10-17  3:32               ` Luc Teirlinck
2003-10-17 13:47                 ` Stefan Monnier
2003-10-18 23:06                   ` Richard Stallman
2003-10-19  1:14                     ` Luc Teirlinck
2003-10-20  1:48                       ` Richard Stallman
2003-10-20  2:24                         ` Luc Teirlinck
2003-10-20 14:44                           ` Stefan Monnier
2003-10-20 15:22                             ` Luc Teirlinck
2003-10-21 14:47                             ` Richard Stallman
2003-10-11  5:36     ` Richard Stallman
2003-10-12  3:34       ` Luc Teirlinck
2003-10-13  5:03         ` Richard Stallman
2003-10-14  3:23           ` Luc Teirlinck
2003-10-17 20:46             ` Richard Stallman
2003-10-17 23:30               ` Luc Teirlinck

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