all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: emacs-devel@gnu.org
Subject: Re: Emacs User Friendliness Question/Hope
Date: Sat, 17 Jul 2010 05:08:19 +0200	[thread overview]
Message-ID: <87mxtq7ql8.fsf@telefonica.net> (raw)
In-Reply-To: 87k4ou26yc.fsf@catnip.gol.com

Miles Bader <miles@gnu.org> writes:

> Christoph <cschol2112@googlemail.com> writes:
>> In order to help increasing the "user-friendliness" couldn't we do
>> something similar to what viper-mode does? I.e. provide different levels
>> of "Emacs-ness".
>>
>> The lowest level (default?) could enable features that are common among
>> other editors/IDEs, e.g. CUA. Increasing levels could "unlock" more and
>> more "Emacs-ness" up to the point of where you get what everybody would
>> consider the "true" Emacs in all its glory.
>
> You'd have to be much more specific.
>
> This seems like the sort of idea that's attractive when stated vaguely
> with lots of hand-waving, but would be very hard to actually make work
> in practice.
>
> What "levels" would there be, exactly?  What bindings would be different
> in each level?  How would you avoid conflicts between "traditional"
> Emacs bindings and CUA bindings?  How would your scheme work in the
> presence of 3rd-party packages?  Would your scheme discourage people
> from learning Emacs bindings?
>
> As I mentioned in a previous message on this thread, cua-mode, which has
> fairly limited goals, has to use extremely kludgey methods to achieve
> them.  Something considerably more elaborate would probably have an even
> harder time.

I possible solution for this problem is to use `actions'. An action is a
generic concept like `fordward-line', or `undo', or `save', or `yank'
(`paste', if you prefer.)  `universal-argument',
`execute-extended-command' and `C-x' (whatever is officially called on
Emacs jargon) would be actions as well.

Currently a mode defines its keymap relating keys to functions. An
action-aware mode relates actions to functions. At a higher level, there
is a mapping of keys into actions. When a mode is activated for a
buffer, the keymap is constructed looking up the corresponding keys
assigned to the actions the mode implements. A mode inherits the
key->action mapping from its parent mode, but can define its own actions
that overrides its parent's.

The legacy code that defines keymaps keeps working. local-set-key keeps
working as well. There could be a "classic-emacs" key->action mapping, a
"cua" one, etc. Of course those mappings could collide with some keymaps
defined on legacy code, but nothing is perfect, and Emacs could inform
the user about that circumstance when the legacy keymap is activated.

This can be extended to menus and buttons on the toolbar, so a button
that implements an action is useful for all modes that support that
action.




  reply	other threads:[~2010-07-17  3:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-16 10:48 Emacs User Friendliness Question/Hope Jeff Clough
2010-07-16 14:07 ` Uday S Reddy
2010-07-16 14:30   ` Jeff Clough
2010-07-16 14:38     ` Deniz Dogan
2010-07-16 15:26       ` Jeff Clough
2010-07-16 17:01         ` Chad Brown
2010-07-16 22:50       ` Phil Hagelberg
2010-07-17  0:16         ` Fernando C.V.
2010-07-17  1:41         ` Christoph
2010-07-17  2:11           ` Miles Bader
2010-07-17  3:08             ` Óscar Fuentes [this message]
2010-07-17  3:34               ` Miles Bader
2010-07-18 12:36               ` Stephen J. Turnbull
2010-07-18 12:59                 ` Deniz Dogan
2010-07-18 13:20                   ` Geoff Gole
2010-07-18 14:10                     ` Stephen J. Turnbull
2010-07-19 14:37                       ` Geoff Gole

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=87mxtq7ql8.fsf@telefonica.net \
    --to=ofv@wanadoo.es \
    --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.