From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Bind two commands to one key to toggle between them for the same local keymap. Date: Fri, 22 Oct 2021 17:40:56 +0800 Message-ID: References: <87y26lporl.fsf@zoho.eu> <87pmrxpky4.fsf@zoho.eu> <87lf2lpig4.fsf@zoho.eu> <87a6j1pfpe.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5090"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 22 11:41:40 2021 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 1mdr3U-00019e-7q for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 11:41:40 +0200 Original-Received: from localhost ([::1]:35532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdr3S-0002uz-9H for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 05:41:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdr31-0002ua-L9 for help-gnu-emacs@gnu.org; Fri, 22 Oct 2021 05:41:12 -0400 Original-Received: from mail-ua1-x92d.google.com ([2607:f8b0:4864:20::92d]:37588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdr2y-0004aL-VB for help-gnu-emacs@gnu.org; Fri, 22 Oct 2021 05:41:11 -0400 Original-Received: by mail-ua1-x92d.google.com with SMTP id f4so6494381uad.4 for ; Fri, 22 Oct 2021 02:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=grHpAsCGqJy8F8LeOBETE1cR1GzchyD3T/3Q4brXjtE=; b=qVfPP3Jp7h+RW3gfO/WyeGpwmCBe0LFpi9FnskMWt5nbrC1ZFueWnqnjSOb21SMf47 0XAv/Q0uw14sIToE9PkjIn+fUJht7ZyyRiKpOBQYc0FBIGoJTOsSbYLJhvLewaRDJTC9 hsToBNS4fLM3F28TQMLUh7lmKGzQ8Xud1repLrhYilKdwRZXY6MnM3F9KxSFgV0jWE1E vRa1zWUfSb2G8MFMCfjN4jXNtJIoXE0XI2AMC7IPAbp1lKG2wesDdyh/kUBf+0HJq4+N t0YrkPBuz9gqUKRpnulzxjz25sXPZKgKgmaU5RT3gVMemDgKtDNY1kMFA2oPWNrT/Tz2 6C+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=grHpAsCGqJy8F8LeOBETE1cR1GzchyD3T/3Q4brXjtE=; b=XZORQ64tGEOtXssTnegwMjcAyOnPy1AGv56gZvSepfNNapV+Lf2j76k47E1B8l0H1r IC1njJ/M5lJL3kQfdG8tN5re1TLXCfeVPPrCi4lDsJU8WfAIp/IaaUcYJgmXu6Pih3To 8X44czgimkrgeY5TMUMgdqfvfxvD49C73ZyLBE1vXa4yy6hpgU9phHkDBWEHDjXzskTc szh10y/udwsiqXy11lkvlGYCXpt5zNHBqTpnP9gZHVlLh3SGdCiNqJuRXu7iQ+ioAARy wYKIet4g4d48o8WWQ1pVwaBYuha8cdB1Oax6YNWyblthf6nhYz/C8x0yyozcnFzYTpC3 86UQ== X-Gm-Message-State: AOAM533CKBExevxE1gF815v8rC2EO1no9RnSlJXsTeN/2l2FcF/k85v2 xDNv2/3+Wb9IImGBwjeIYviK0a7G8u1vUs9986E= X-Google-Smtp-Source: ABdhPJwQMyWiAXQk1oxyQUC7Ne4lAllUIldeTxrzipVDGod84p4RLygEaPTWfpwoALzeLE2ztXcSyWaqe2ZDEe0SMqQ= X-Received: by 2002:ab0:3cac:: with SMTP id a44mr13386082uax.129.1634895667679; Fri, 22 Oct 2021 02:41:07 -0700 (PDT) In-Reply-To: <87a6j1pfpe.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::92d; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x92d.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:134004 Archived-At: On Fri, Oct 22, 2021 at 5:33 PM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > company-active-map ... that's yet another one! > > Use 'C-h k' to see what happens ... If the corresponding keymap is not activated, 'C-h k ' or 'C-h k ' won't give the relevant info at all. I'm really stuck here. See the following: 'C-h k ': TAB (translated from ) runs the command indent-for-tab-command (found in global-map), which is an interactive compiled Lisp function in =E2=80=98indent.el=E2=80=99. It is bound to TAB. (indent-for-tab-command &optional ARG) 'C-h k ': nothing is given.