unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Psionic K <psionik@positron.solutions>
To: help-gnu-emacs@gnu.org
Subject: Introspecting yas tab binding
Date: Fri, 2 Feb 2024 21:34:54 +0900	[thread overview]
Message-ID: <CADQMGATRgDWBduS360WpWC+oTuCAhBz71VEkg=Kk4tVfFM769A@mail.gmail.com> (raw)

As far as I can tell, Yas minor mode uses a menu item to define the tab binding.

In this case I knew where to look, and the keymap was simple.  I could
guess yas's minor mode keymap was responsible by turning the minor
mode off.  Still, it was not a  regular binding, and so I almost
missed it.

I do think I should be able to figure this out without the prior
knowledge.  I debugged the call but saw no evidence on the stack.
`where-is' for the command did not find the binding.  Command log and
lossage are both dead ends.

As far as I can tell, yas is using this menu hack to implement a form
of conditional binding, intercepting the key sequence conditionally
with a `:filter' function in the menu binding.

How should I have discovered this?



             reply	other threads:[~2024-02-02 12:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-02 12:34 Psionic K [this message]
2024-02-02 12:39 ` Introspecting yas tab binding Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2024-02-03  2:14 Psionic K
2024-02-03  6:11 ` tomas
2024-02-03  6:43   ` Joost Kremers
2024-02-03  7:09     ` Emanuel Berg
2024-02-03  7:42     ` Eli Zaretskii
2024-02-03  7:57       ` Emanuel Berg
2024-02-03  6:54   ` Emanuel Berg
2024-02-03  8:06 ` Eli Zaretskii
2024-02-03  8:29   ` Emanuel Berg
2024-02-03 13:47 Psionic K

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADQMGATRgDWBduS360WpWC+oTuCAhBz71VEkg=Kk4tVfFM769A@mail.gmail.com' \
    --to=psionik@positron.solutions \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).