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: Sun, 24 Oct 2021 10:32:46 +0800 Message-ID: References: <87y26lporl.fsf@zoho.eu> <87pmrxpky4.fsf@zoho.eu> <87lf2lpig4.fsf@zoho.eu> <87h7d9pg14.fsf@zoho.eu> <871r4dpesl.fsf@zoho.eu> <87sfwtnwwj.fsf@zoho.eu> <87a6izzkln.fsf@zoho.eu> <875ytn1arm.fsf@zoho.eu> 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="29969"; 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 Sun Oct 24 04:33:30 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 1meTKD-0007f3-SX for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 24 Oct 2021 04:33:29 +0200 Original-Received: from localhost ([::1]:48972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meTKC-0001M3-J4 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 22:33:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meTJl-0001Lu-KY for help-gnu-emacs@gnu.org; Sat, 23 Oct 2021 22:33:01 -0400 Original-Received: from mail-ua1-x932.google.com ([2607:f8b0:4864:20::932]:35819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meTJk-0007DW-3d for help-gnu-emacs@gnu.org; Sat, 23 Oct 2021 22:33:01 -0400 Original-Received: by mail-ua1-x932.google.com with SMTP id q13so15263364uaq.2 for ; Sat, 23 Oct 2021 19:32:57 -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; bh=EnMt1FHTFRTzEkz82NLTnJ/3tpgX6peL55sCA7fP/V4=; b=IQh8ut60/eC7kHf+O2pS28sFDnSoNbj4dFrmrD4oofJxVFBfXw6TGXwozKINTLP6pP KrTSmm8Ybrmm9PD09NRLL0Hd3EbEc6n1+GVN2WJdAHlI+Z16C47iwRrKoxXAzykD0bN/ 2Q+BjGXJKT/CwzlRbYr9q/IWC7SC31QQ5XVqOfvHHT4cXUxfoS5p6Dor84ktKwEIrcl+ O6F4n8PHAEr1u8Q4axRoe/MFQeQ/Qc7LyP/5CssvuMuyKaxOhmaR2jeOJ+jYT/qU7eMs +jUPcJ5ukwh5a3k9I8YlbUQL5fmEbD4l1A1atSKyYR8TE142dOf9BzBk7UfNOA2U00pt Gd9Q== 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; bh=EnMt1FHTFRTzEkz82NLTnJ/3tpgX6peL55sCA7fP/V4=; b=NW5cC/zGI/IagPHspjW3v0tUwgNUrPn9HfxbCIE5ots7UXdh2tsvX5KMEOFjQPIlrb IhOGRl06nDqFU7zQTMK+pDsLZ1BQWh7aeK4k7nnrfN8Vvp/dR69chS1sd/2H+bcKRxdP BsYm5f8tGNE55CPH9xNTIYisSxPKiwCFaGsEB+N0AKS+7qhJ3ky3ogY7l/rupgidmTGf grvhIyD8z8kHFFoH04on7nPg4WH/bPIACn/CApPdsRyNazeBbLmrHamVCyOjfr/PsRg7 617MrLXnW40zJqiq+fTBu2NT2RHpE7gTjcdXJPqUi3zQyapdX2Ve9rq7e39zSLhSyR4S vFIw== X-Gm-Message-State: AOAM533q05tTDyhaSOijpT1qKG7ZI6xm1wuJmwXkxSfP62poT0lBQd4R u3cPovNkdQdikSUUWy2J3yG3omK8CbiiVeTNseE387fdiwD1BXAt X-Google-Smtp-Source: ABdhPJwAhCarlXVN744EzVOIe545eoUl+lGloIFqh1wI+ybGscsEd+8EWKpihvw12WviQUmoLBkzWFBl/tCEdmcau0Y= X-Received: by 2002:a67:c29d:: with SMTP id k29mr9308904vsj.51.1635042777291; Sat, 23 Oct 2021 19:32:57 -0700 (PDT) In-Reply-To: <875ytn1arm.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::932; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x932.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:134078 Archived-At: On Sun, Oct 24, 2021 at 9:20 AM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao wrote: > > >> (company-search-abort) > > > > `C-x C-e` the above command gives the following: > > > > if: Company not in search mode > > So not useful as the `if' COND ... Not sure what your actual suggestion is. HZ