all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: "Juanma Barranquero" <lekktu@gmail.com>
Cc: drew.adams@oracle.com, emacs-devel@gnu.org
Subject: Re: [drew.adams@oracle.com: RE: Customize doc strings and tagstrings do not respect \\<...> and \\[...]]
Date: Fri, 16 Feb 2007 02:45:55 -0500	[thread overview]
Message-ID: <E1HHxn1-0004H1-4k@fencepost.gnu.org> (raw)
In-Reply-To: <f7ccd24b0702150344xb1127e6q639bc99ac4c7e771@mail.gmail.com> (lekktu@gmail.com)

I don't remember any of the previous discussion after the lapse of a
whole year.

    Richard said:

    > This could be the most useful behavior, since it provides a warning
    > that the keymap is not defined at the place where you expected it to
    > be.  Any clueful user will realize it means the mode has a bug
    > and will report it, and then things will be fixed so they really work.

What did I say that about?

    Do you consider using \\<some-mode-map> in the docstring of an
    autoloaded function a bug in the mode?

Not particularly, but how does that relate?

    True in theory, but the current behavior can be confusing for a
    newbie. Witness checkdoc-minor-mode's docstring:

      Toggle Checkdoc minor mode, a mode for checking Lisp doc strings.
      With prefix arg, turn Checkdoc minor mode on iff arg is positive.

      In Checkdoc minor mode, the usual bindings for `eval-defun' which is
      bound to
      Uses keymap "checkdoc-minor-mode-map", which is not currently defined.
      M-x checkdoc-eval-defun and `checkdoc-eval-current-buffer' are
    overridden to include
      checking of documentation strings.

Is this the sort of output about which I said, "Any clueful user will
realize it means the mode has a bug and will report it, and then
things will be fixed so they really work."?

If so, I think that is true.  If the mode produces this output,
it's a bug, and because it is visible it will get fixed.

    So, at least in the case of the output of `describe-function',
    `describe-variable', etc. a better answer IMHO would be to detect
    these cases, silently ignore them at the point where they happen, and
    add a prominent notice somewhere (preferibly at the top):

      NOTE: This documentation references the keymap "checkdoc-minor-mode-map",
      which is not currently defined.  You can load the package `checkdoc'
      to fix the problem.

That seems like a good solution too, since it will also make the bug
visible.

  reply	other threads:[~2007-02-16  7:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-27  8:59 [drew.adams@oracle.com: RE: Customize doc strings and tag strings do not respect \\<...> and \\[...]] Richard Stallman
2006-03-04 14:57 ` Chong Yidong
2006-03-04 17:55   ` [drew.adams@oracle.com: RE: Customize doc strings and tagstrings " Drew Adams
2006-03-04 21:36     ` Andreas Schwab
2006-03-04 22:14       ` Drew Adams
2006-03-05 10:17         ` Andreas Schwab
2006-03-05 15:30           ` Drew Adams
2006-03-05 15:44             ` Andreas Schwab
2006-03-06  0:49           ` Richard Stallman
2006-03-06 13:13             ` Andreas Schwab
2006-03-06 22:48               ` Richard Stallman
2006-03-05 11:05         ` Andreas Schwab
2006-03-06  0:49         ` Richard Stallman
2007-02-15 11:44           ` Juanma Barranquero
2007-02-16  7:45             ` Richard Stallman [this message]
2007-02-16  9:49               ` Juanma Barranquero
2007-02-17  1:03                 ` Richard Stallman
2007-02-17  1:23                   ` Juanma Barranquero
2006-03-08 20:49         ` Kevin Rodgers
2006-03-08 21:28           ` Drew Adams
2006-03-27 17:09             ` Per Abrahamsen
2006-03-27 23:51               ` [drew.adams@oracle.com: RE: Customize doc strings andtagstrings " Drew Adams
2006-03-29  8:12                 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1HHxn1-0004H1-4k@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.