emacs-devel
[Top][All Lists]
Advanced

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

Re: current-active-maps doesn't look at emulation-mode-map-alists, why?


From: Noam Postavsky
Subject: Re: current-active-maps doesn't look at emulation-mode-map-alists, why?
Date: Mon, 26 Dec 2016 15:50:59 -0500

On Fri, Dec 23, 2016 at 7:56 PM, Stefan Monnier
<address@hidden> wrote:
>> Any reason why current-active-maps doesn't return keymaps from
>> emulation-mode-map-alists?
>
> The most likely explanation is that this is a bug introduced when
> emulation-mode-map-alists was added.
>
> The intention was really to make all code that uses the active keymaps
> (such as read-key-sequence or the computation of menubars and toolbars)
> get it from current-active-maps, but this never happened, so we still
> have that code duplication.
>

read-key-sequence does use current-active-maps, not sure about
menubars and toolbars (what code is that?)

Fread_key_sequence
  return read_key_sequence_vs (prompt, continue_echo, dont_downcase_last,
read_key_sequence_vs
  i = read_key_sequence (keybuf, ARRAYELTS (keybuf),
read_key_sequence
  current_binding = active_maps (first_event);
active_maps
  return Fcons (Qkeymap, Fcurrent_active_maps (Qt, position));



reply via email to

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