From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Psionic K Newsgroups: gmane.emacs.help Subject: Introspecting yas tab binding Date: Fri, 2 Feb 2024 21:34:54 +0900 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30733"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 02 13:35:49 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rVslo-0007me-8I for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Feb 2024 13:35:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVslI-00084o-CA; Fri, 02 Feb 2024 07:35:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVslG-00083Q-Po for help-gnu-emacs@gnu.org; Fri, 02 Feb 2024 07:35:14 -0500 Original-Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVsl9-0002Nt-GU for help-gnu-emacs@gnu.org; Fri, 02 Feb 2024 07:35:14 -0500 Original-Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-dc6d5206e96so1863882276.0 for ; Fri, 02 Feb 2024 04:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=positron.solutions; s=google; t=1706877305; x=1707482105; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=F+Hw4i9z4h1kNPRXvIcYHdHtrZ+PUSt/LtkxVZO7fKU=; b=U0JNcNtkcXYmNzTLKC6PkhNQfiHEEOvjWocraAgETCDn3qWc5j5f55c5HdCGxOSWRB C/c3fEvGO3uxcEmq7nOaWh5lJVHVsKDPfreMo9JS/skWgNTaoVhEWwCgydlRE5rAbRcx pSmMB9078Wf1QEgh0F5mYtXG/Biwe6otkZQifVYZlGHIOwr67j4aRMBssj52SmPkZod4 DqZUpyOi5rMmzECOVu22tObeDNsJzod0O8FLogjgZd1u8RTmFMOs5EbWk3M4ouo/MYgM BYyr6V49Y1C1t0F9xCf7h8TG4ZgwEeYgrlQ6dtyOC8qArBuYeblHEaLNs8mqCp46EUax 8OOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706877305; x=1707482105; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=F+Hw4i9z4h1kNPRXvIcYHdHtrZ+PUSt/LtkxVZO7fKU=; b=XIeBcyPieQQp+6y+oA7kkTbs60AtzGjaQMvQ+jqPOLcTgyt3V5uO4o5nYZ2o69+Q55 ilqgTcinZwmImEqm5TUUgbtPGFTloGBXPaWUn+hY4ZOt1Fwv5utf9u4YLHydGFoX9ilS W3mnwKoheoYxJrEJsOxn+S8NUeZr1q1dE5GRmm7DgDiXRP0XD3KF4pfhv6GNOQuzXCUq J4WJImE3B6REMpD2KtExxaV1NBTgCCzeXhlkpNsah6BMdb9DkXCnWsdAB8iZVAEP8IAJ SiEJ4inQYqjn+AJPV2fLp5QD64ISiJlfcRe3Afl2oRIBaCma94uJGKjRnJn+ZeyXLqg+ AWig== X-Gm-Message-State: AOJu0YwhZ3+9TXHzdwpE/324QIFC/IUBPRymFGpwV5cj/9WuTAgob3gQ DCdRVCAY4zlBUC3NgsiS25mUG8jIxxOmpJjthK1BCSyP+jQuu+Uq+38DW69bqrZF9IcgqrSMzR5 bhKCuxv3tcInZ6QOGo1QhEbILws5t0TLcNg5Nqd54GtFjyhjc X-Google-Smtp-Source: AGHT+IEcLQjzWpuzO7yBXwQKZzD9sGq8Z8EiU8TWFr1xYUZXLB3HFy1sOOwu4uMBqd/rXxZae8gJyKaXZYTkWpddQdU= X-Received: by 2002:a05:6902:4cc:b0:dc2:260c:e02e with SMTP id v12-20020a05690204cc00b00dc2260ce02emr1725497ybs.21.1706877305452; Fri, 02 Feb 2024 04:35:05 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::b31; envelope-from=exec@positron.solutions; helo=mail-yb1-xb31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145856 Archived-At: 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?