unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: vaidheeswaran.chinnaraju@gmail.com
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Should Text motion commands have no menu entry?
Date: Sun, 17 May 2015 21:39:18 +0600	[thread overview]
Message-ID: <CAP_d_8VS6joifKgtk8eCutDE_f-RwYg3C0=m=zZXRwUqAG2dsQ@mail.gmail.com> (raw)
In-Reply-To: <mj9ipk$q2q$1@ger.gmane.org>

On Mon, May 18, 2015 at 2:18 AM, Vaidheeswaran C
<vaidheeswaran.chinnaraju@gmail.com> wrote:

> I was looking at the http://www.gnu.org/software/emacs/tour/ hoping to
> get some inspiration for my "Emacs Primer".  Man of the text
> navigation commands do NOT have a menu entry.  Is it a deliberate
> decision? If not, can the situation be changed.

Menus have two functions:

* The executive function allows users to invoke a command if or when
they forget its keybinding or command name.

* The discovery function alerts users that a certain command exists,
and tells them its keybinding.

Menus also have a cost:

* As the number of menu items grows, the menu as a whole becomes
harder to grasp.

For cursor motion commands, especially such fine-grained ones as
“forward-char”, the executive function of the menu is very
inefficient. No one in their right mind will perform cursor motion by
repeatedly choosing e.g. Edit | Go to | Next character.

The discovery function is also diminished. Everybody knows that a text
editor *does* have cursor motion commands, and expects them to have
certain keybindings. (These happen to be arrows and editing-block
keys, not the supposedly super-efficient C-f C-b C-n C-p C-a C-e C-v
M-v. This does not actually matter.)

Additionally, the discovery function of the menu is duplicated by the
context help, which is called by F1 m in Emacs, and in other
applications usually by F1 followed by navigating the help index.

In the name of reducing the cognitive cost of the menu as a whole,
ubiquitous commands — such as cursor movement and instances of
self-insert-command for each of the 1114112 Unicode codepoints —
should not have corresponding menu items.



  parent reply	other threads:[~2015-05-17 15:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-17 20:18 Should Text motion commands have no menu entry? Vaidheeswaran C
2015-05-17 14:50 ` Eli Zaretskii
2015-05-18  2:31   ` Vaidheeswaran C
2015-05-18  3:04     ` Yuri Khan
2015-05-18 14:14     ` Eli Zaretskii
2015-05-17 15:39 ` Yuri Khan [this message]
2015-05-18  2:27   ` Vaidheeswaran C

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAP_d_8VS6joifKgtk8eCutDE_f-RwYg3C0=m=zZXRwUqAG2dsQ@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=vaidheeswaran.chinnaraju@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 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).