all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: RE: right-char and left-char
Date: Thu, 6 Oct 2011 15:45:53 -0700	[thread overview]
Message-ID: <7468A6AF024347A3A3E25EC092F18570@us.oracle.com> (raw)
In-Reply-To: <8762k1ojy0.fsf@stupidchicken.com>

> This lands us in the unfortunate situation where a command named
> `left-char' sometimes moves right, and a command named `right-char'
> sometimes moves left.  Their names seem to imply that what 
> distinguishes these commands from `forward-char'/`backward-char'
> is their directionality.

http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00836.html

Wrt the _key_ named `left', Eli said:

"Because `left' and `right' behave differently depending on the bidirectional
context,"...

and  "if `left' sometimes moves _forward_ in the buffer, binding it to a command
called `backward-char' [would be] a lie."

[Of course back then he also said, "[Bidi] _is_ optional: you can set
bidi-display-reordering to nil" (his emphasis).  Now he says that that variable
is not to make bidi optional for users but is only for bidi debugging.  (I hope
the paraphrase is accurate.)]

> Another question: how come C-<right> is bound to `right-word' but
> M-<right> is still bound to `forward-word'?  An oversight?

Eli spoke to that to some extent, as well:

"the same "problem" exists with `M-f'/`M-b' and
`C-<right>'/`C-<left>' as well.  We even discussed the possibility to
make `<Home>' and `<End>' behaving differently"

It can perhaps help to read the whole thread ("`C-b' is backward-char, `left' is
left-char - why?"), if the doc is not clear enough about some of these things.




  reply	other threads:[~2011-10-06 22:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-06 16:45 right-char and left-char Chong Yidong
2011-10-06 18:21 ` Eli Zaretskii
2011-10-06 22:04   ` Chong Yidong
2011-10-06 22:45     ` Drew Adams [this message]
2011-10-07 12:37       ` Eli Zaretskii
2011-10-07  1:49     ` Stefan Monnier
2011-10-07 12:16       ` Eli Zaretskii
2011-10-07 12:04     ` Eli Zaretskii
2011-10-06 22:20   ` Chong Yidong
2011-10-07 12:08     ` Eli Zaretskii
2011-10-07 15:57       ` Chong Yidong

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=7468A6AF024347A3A3E25EC092F18570@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=cyd@stupidchicken.com \
    --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.