[Top][All Lists]

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

Re: Describing local-map/keymap in overlays/text properties

From: Lars Magne Ingebrigtsen
Subject: Re: Describing local-map/keymap in overlays/text properties
Date: Mon, 08 Jul 2013 16:14:14 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

After all this discussion, it turns out that there's already code for
outputting this data in `describe-buffer-bindings':

      start1 = get_local_map (BUF_PT (XBUFFER (buffer)),
                              XBUFFER (buffer), Qkeymap);
      if (!NILP (start1))
          describe_map_tree (start1, 1, shadow, prefix,
                             "\f\n`keymap' Property Bindings", nomenu,
                             0, 0, 0);
          shadow = Fcons (start1, shadow);

I only found this out after implementing just this again, in exactly the
same manner.  :-/

However!  It doesn't work.  get_local_map seems to return Qnil always
when fed Qkeymap.  And I don't quite understand why.  I must be
overlooking something pretty obvious again...

(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

reply via email to

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