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 15:57:29 +0800 Message-ID: References: <87y26lporl.fsf@zoho.eu> <87pmrxpky4.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="38670"; 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 10:02:58 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 1mdpVx-0009qM-1U for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 10:02:57 +0200 Original-Received: from localhost ([::1]:39156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdpVv-0002hH-OW for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 04:02:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdpQt-0004L5-Da for help-gnu-emacs@gnu.org; Fri, 22 Oct 2021 03:57:43 -0400 Original-Received: from mail-vk1-xa36.google.com ([2607:f8b0:4864:20::a36]:40842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdpQr-0003D3-DZ for help-gnu-emacs@gnu.org; Fri, 22 Oct 2021 03:57:43 -0400 Original-Received: by mail-vk1-xa36.google.com with SMTP id l39so1070914vkd.7 for ; Fri, 22 Oct 2021 00:57:41 -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=jc2Y3rJDDUaLfDKFqWqWyuc8r5Q1urx4Ct/e/JE5pcw=; b=i91gnwIB/ndVq+KGHrBXLo9VDjUh68WjdhykGZaMDAD3MKfIJR22xCdFltV5GZLcXz A7OX2VOLfpfE4PW95o7KyC4zPikzTmI2BeAe+P0y5XGS1RVj3J/z4GAWRlxqQotA/l1H rpLK0aPzmvxufKxwFe6Yh5DF+ZKL40Bv7MSzJBKE3G//AgQnEhCiNHbs6QnsU25M9sJy TNAsSJpSEpvttPhQfcE8SVUmj7ujSexqZq9SRUWVTYSg5VS/rik9J137Zu9XGH8jfdbd L1fQmlmfWTCmB3fGf8B/t9ypptSQ6E+4gohVTC7colY3mumoD2mqW7utmSH+nVbLv5o9 L5jQ== 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=jc2Y3rJDDUaLfDKFqWqWyuc8r5Q1urx4Ct/e/JE5pcw=; b=W/ggVRsBFnDL1F5JiC15msbGlkiUm67MO+B+S0gqSLZB6OIILo+KKq8xW+GPbLTxgY rvVnmH4GkL/3O2QneASEIhc5onLLL7rEbozbXUDHyziRRyIK+MyMSUrcil3sJa61I3i/ 7UTkCSchaToozCyBZzcXZvCSsZzmNgQ8DQuPUlNLNfhatL2wUqPruqDu/s6DfBqqS0kZ 4btanMk/tsHyIJ2cEjcFbMtku1p3ZcaKEDiAHk6+z3G2rhB1c5CDdRUKTCo9bFRlbhm8 +IReaXKnzvURHFul5Kv4+lI52h3t5lO7T+UT8bs2O5FOpjKDS13QUiJisapQiGJOAh+W P9pA== X-Gm-Message-State: AOAM533l6FkpHny/17/OKuq8nFvmWpMC6C3nB/ucFjKoRcbNe8UkbuzC rt4FsxHxmbzFS857jMUaENZ3MlleWtCkqqNr5ojaYeHxQq6BDQMn X-Google-Smtp-Source: ABdhPJyCps8/aC9qJEZoD5JqlEmfAif7zYAIzMzGhM9zZsKMuBqQMuhumnlBygNbexu5qouv9K0iGjGPcBYJ0DJjSts= X-Received: by 2002:a1f:ecc2:: with SMTP id k185mr11963893vkh.3.1634889460324; Fri, 22 Oct 2021 00:57:40 -0700 (PDT) In-Reply-To: <87pmrxpky4.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::a36; envelope-from=hongyi.zhao@gmail.com; helo=mail-vk1-xa36.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:133998 Archived-At: On Fri, Oct 22, 2021 at 3:40 PM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao wrote: > > > ("" . (lamda () (if (company-search-mode) #'company-search-abort > > #'company-search-candidates))) > > > > What's the problem? > > Several :) I'm at the end of my rope :-( HZ