Rebinded key becomes un-changeable
York Zhao
gtdplatform at gmail.com
Fri Aug 12 16:59:47 CEST 2011
> The immediate solution is therefore to add a binding for <backspace>
instead
That was exactly what I was doing before getting the commit 8fc3c40, but now
I no long need this workaround, thanks a lot and thank you for telling me
the difference between the two.
York
On Fri, Aug 12, 2011 at 10:07 AM, Vegard Øye <vegard_oye at hotmail.com> wrote:
On 2011-08-11 21:04 +0200, York Zhao wrote:
> I have this code to inherite most of the ibuffer key bindings while
> still keep the "j" and "k" bindings. ... This works fine however if
> I rebind the <backspace> before the previous code like this:
>
> (define-key evil-normal-state-map (kbd "<backspace>") 'scroll-down)
>
> The <backspace> key would then "fixed" to my binding (scroll-down)
> instead of the ibuffer binding.
This is because the key binding for (kbd "<backspace>") prevents the
<backspace> event from being translated into the ASCII character DEL
(that is, ?\d), which is what ibuffer binds. The immediate solution
is therefore to add a binding for <backspace> instead:
(evil-define-key 'normal
ibuffer-mode-map (kbd "<backspace>") 'ibuffer-unmark-backward)
However, there is a problem: <backspace> bindings aren't recognized
at all when running Emacs in the terminal, where Backspace /is/ DEL.
So Evil should always bind (kbd "DEL") instead of (kbd "<backspace>").
This has been fixed in commit 8fc3c40.
--
Vegard
_______________________________________________
implementations-list mailing list
implementations-list at lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/implementations-list/attachments/20110812/83c2787d/attachment.htm
More information about the implementations-list
mailing list