emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `C-b' is backward-char, `left' is left-char - why?


From: Davis Herring
Subject: Re: `C-b' is backward-char, `left' is left-char - why?
Date: Tue, 31 May 2011 08:18:56 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110310 Lanikai/3.1.9

On 05/29/2011 09:57 PM, Stefan Monnier wrote:
>>> I can see why you'd want that,
>> Well, good.  Is there a way to get it?  That's the question.
> 
> AFAICT, there is no way to get it in the general and default case (when
> bidi-display-reordering is non-nil), which is the only case which would
> make sense to solve.

I think what Drew wants is to have in startup.el something like

;; ...load .emacs
(if (default-value 'bidi-display-reordering)
    (global-set-key (kbd "<left>") 'left-char)
  (global-set-key (kbd "<left>") 'backward-char))
;; ...and C-f, M-b, M-f, etc.

along the lines of the other "preference detection" code like that for
unibyte.

I don't know if this is a good idea, but it does solve his problem
without introducing `magic-backward/left-dwim-char' bound to C-b and <left>.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]