all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: "What's This?" in Describe submenu
Date: Mon, 22 Aug 2005 09:37:43 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICEEPPCLAA.drew.adams@oracle.com> (raw)
In-Reply-To: <m3d5o62yiy.fsf@kfs-l.imdomain.dk>

    In its current form, it does IN NO WAY resemble what a Windoze user
    would expect from the "What's this" function.

    When you click on the "What's this" function in Windoze (typically not
    available as a menu item, but as a [?] icon), the cursor changes shape
    to an arrow with a question mark, and then the user can (in principle)
    click on anything in the application window to get help for that item
    (typically an input field).  So it gives help for _visible_items_, not
    key bindings!

    If we want to keep the "What's this" menu item, then we should implement
    it properly, and not provide something completely unrelated.

FWIW, I wrote such a command - perhaps it can serve as food for thought. It
works in Emacs 20 - I haven't yet ported it to 21. It does not change the
mouse cursor to a question mark (I wasn't sure how to do that), but that
would help indicate the usage. When the command is run, the prompt is "Click
mouse on something or type a key sequence".

The code is here: http://www.emacswiki.org/cgi-bin/emacs/help+.el. I place
the command, called `help-on-click/key', in the Help > Describe submenu, and
call it just "This" (so, Describe > This).

Here is the doc string:

 Give help on a key/menu sequence or object clicked with the mouse.
 The object can be any part of an Emacs window or a name appearing in a
 buffer.  You can do any of the following:

    type a key sequence (e.g. `C-M-s')
    choose a menu item (e.g. [menu-bar files open-file])
    click on a scroll bar
    click on the mode line
    click in the minibuffer
    click on an Emacs-related name in a buffer: apropos is called
    click anywhere else in a buffer: its modes are described

 Help is generally provided using `describe-key' and the Emacs online
 manual (via `Info-goto-emacs-key-command-node').  If no entry is found
 in the index of the Emacs manual, then the manual is searched from the
 beginning for literal occurrences of KEY.

 For example, the KEY `C-g' is not in the index (for some reason), so
 the manual is searched.  (Once an occurrence is found, you can
 repeatedly type `s' in *Info* to search for additional occurrences.)

 If you click on a name in a buffer, then `apropos-documentation' and
 `apropos' are used to find information on the name.  These functions
 are not used when you do something besides click on a name.

 If you click elsewhere in a buffer other than the minibuffer, then
 `describe-mode' is used to describe the buffer's current mode(s).

  reply	other threads:[~2005-08-22 16:37 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-21  8:21 "What's This?" in Describe submenu martin rudalics
2005-08-21 17:26 ` Luc Teirlinck
2005-08-21 17:59   ` Luc Teirlinck
2005-08-21 21:22     ` Eli Zaretskii
2005-08-21 21:38       ` Luc Teirlinck
2005-08-22  3:35         ` Eli Zaretskii
2005-08-22  3:55           ` Luc Teirlinck
2005-08-22  4:30           ` Luc Teirlinck
2005-08-22 20:04             ` Eli Zaretskii
2005-08-22 23:39               ` Luc Teirlinck
2005-08-21 22:10       ` Luc Teirlinck
2005-08-21 17:45 ` Luc Teirlinck
2005-08-21 18:35 ` Luc Teirlinck
2005-08-22  0:06 ` Richard M. Stallman
2005-08-22  0:50   ` Luc Teirlinck
2005-08-22  8:52     ` Lennart Borgman
2005-08-22  9:09     ` Lennart Borgman
2005-08-22 19:35     ` Richard M. Stallman
2005-08-22 22:16       ` Luc Teirlinck
2005-08-22 22:59       ` Luc Teirlinck
2005-08-22  1:59   ` David Robinow
2005-08-22  3:38     ` Eli Zaretskii
2005-08-22  7:17     ` Jason Rumney
2005-08-22 10:43       ` David Kastrup
2005-08-22 19:35     ` Richard M. Stallman
2005-08-22 23:15       ` Luc Teirlinck
2005-08-22  7:58   ` Kim F. Storm
2005-08-22 16:37     ` Drew Adams [this message]
2005-08-23  1:29       ` Richard M. Stallman
2005-08-22 19:53     ` Eli Zaretskii
2005-08-22 20:15       ` Stefan Monnier
2005-08-23  3:42         ` Eli Zaretskii
2005-08-23  0:08       ` Luc Teirlinck
2005-08-23  3:47         ` Eli Zaretskii
2005-08-23  4:23           ` Luc Teirlinck
2005-08-23 14:40             ` Luc Teirlinck
2005-08-23 19:22             ` Eli Zaretskii
2005-08-23 20:55               ` Luc Teirlinck
2005-08-23  4:29           ` Luc Teirlinck
2005-08-23  7:15             ` Jason Rumney
2005-08-23 14:37               ` Luc Teirlinck
2005-08-23  4:40           ` Luc Teirlinck
2005-08-23 19:36             ` Eli Zaretskii
2005-08-23 20:56               ` Jason Rumney
2005-08-24  3:38                 ` Eli Zaretskii
2005-08-24 12:46                   ` Luc Teirlinck
2005-08-24 14:10                     ` David Robinow
2005-08-24 18:51                       ` Luc Teirlinck
2005-08-25 10:42                       ` Richard M. Stallman
2005-08-23  4:56           ` Luc Teirlinck
2005-08-23 19:34             ` Eli Zaretskii
2005-08-23 19:56               ` Stefan Monnier
2005-08-23 23:05                 ` Luc Teirlinck
2005-08-24 10:33                 ` Richard M. Stallman
2005-08-23 22:02               ` Luc Teirlinck
2005-08-24  3:46                 ` Eli Zaretskii
2005-08-25  8:54                   ` Kim F. Storm
2005-08-25 18:05                     ` Eli Zaretskii
2005-08-23  1:29     ` Richard M. Stallman
2005-08-22 16:23   ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2005-08-23 14:08 Drew Adams
2005-08-23 14:31 ` David Kastrup
2005-08-23 19:40 ` Eli Zaretskii
2005-08-23 20:53   ` Jason Rumney
2005-08-24  3:39     ` Eli Zaretskii
2005-08-24  7:15       ` Jason Rumney

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=DNEMKBNJBGPAOPIJOOICEEPPCLAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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.