all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "Clément Pit--Claudel" <clement.pit@gmail.com>,
	"Dmitry Gutov" <dgutov@yandex.ru>,
	"Emacs developers" <emacs-devel@gnu.org>
Subject: RE: Improving describe-mode and discoverability
Date: Thu, 23 Jun 2016 16:15:37 -0700 (PDT)	[thread overview]
Message-ID: <bed3fbb5-e222-404a-8343-e6947b55deb0@default> (raw)
In-Reply-To: <576C6256.6060708@gmail.com>

> >>> Of course, we could put this behaviour behind a flag.
> >>
> >> If it is a new construct instead of a replacement for \\{...}
> >> then there is no need for a flag.
> >
> > I'd prefer a flag (or just the new behavior). There's no need to split the
> > community here: if I user likes this output, they'll want to see it in all
> > mode descriptions, not just the ones that opted in.
> 
> I think I agree. Drew, wouldn't you think that this is something the user
> should choose, instead of the mode author?
> As a user, I'd like consistent rendering; as a mode author, I'd rather not
> argue with my users about one which one looks best for each one of my modes.

I probably don't have a good enough idea of what you have in mind.

I think:

1. A writer of a mode should be able to decide what is said in the
mode doc.

2. Ideally, a user should be able to decide what that looks like,
including perhaps, what parts of it to show.


What do we do TODAY?  See (elisp) `Major Mode Conventions'.
There it says:

 "The documentation string may include the special documentation
  substrings, `\[COMMAND]', `\{KEYMAP}', and `\<KEYMAP>', which
  allow the help display to adapt automatically to the user's own
  key bindings.  *Note Keys in Documentation::."

Note: *MAY* include `\{KEYMAP}'.

We do not automatically and systematically show a list of the
bindings in the help for every mode.  The decision of whether to
include that for any given mode is up to the mode writer.  It is
not up to the user, today.

I would probably have no problem with that being changed to being
a user option.  But in that case, if a user turns this display
of keys off, does that override the current situation of a mode
writer having deemed that the keys should be shown for some mode?

There are really a few issues raised implicitly by Clement:

1. Whether to replace \\{...} with Clement's alternative
representation or to provide a different construct to show it.

2. Whether to let users choose to show the result of \\{...}
differently (i.e., as it is shown currently or in Clement's
way).

3. Whether to include \\{...} automatically for all modes,
whether it uses the original representation or Clement's
alternative.

4. Whether including \\{...} automatically for all modes
should be a user option (regardless of which representation
is used).

I don't have answers now for all of those, and I'm not even
sure which of them are are actually being proposed.

Personally, I have no problem with the _current_ situation,
and so far I have not heard a clear alternative proposal
that sounds better to me.



  reply	other threads:[~2016-06-23 23:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-23 18:29 Improving describe-mode and discoverability Clément Pit--Claudel
2016-06-23 18:46 ` Robert Weiner
2016-06-23 18:52   ` Clément Pit--Claudel
2016-06-23 19:11     ` Robert Weiner
2016-06-23 19:36       ` Clément Pit--Claudel
2016-06-23 20:26 ` Drew Adams
2016-06-23 21:50   ` Clément Pit--Claudel
2016-06-23 22:07     ` Drew Adams
2016-06-23 22:10       ` Dmitry Gutov
2016-06-23 22:27         ` Clément Pit--Claudel
2016-06-23 23:15           ` Drew Adams [this message]
2016-06-23 23:39             ` Clément Pit--Claudel
2016-06-24  0:05               ` Drew Adams
2016-06-24  2:59                 ` Clément Pit--Claudel
2016-07-06 17:47 ` John Wiegley

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=bed3fbb5-e222-404a-8343-e6947b55deb0@default \
    --to=drew.adams@oracle.com \
    --cc=clement.pit@gmail.com \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /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.