From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Sun, 24 Jan 2021 12:32:36 +0100 Message-ID: <87wnw2zi23.fsf@gmail.com> References: <2EFBBE54-62F4-4373-82D6-DC8750B648BA@kuaishou.com> 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="22954"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "condy0919@gmail.com" , emacs-devel To: Zhiwei Chen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 24 12:34:15 2021 Return-path: Envelope-to: ged-emacs-devel@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 1l3dep-0005rQ-7Q for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Jan 2021 12:34:15 +0100 Original-Received: from localhost ([::1]:45842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3deo-00042P-9A for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Jan 2021 06:34:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3ddK-0003Uf-Sk for emacs-devel@gnu.org; Sun, 24 Jan 2021 06:32:42 -0500 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:42886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3ddJ-00063T-EA for emacs-devel@gnu.org; Sun, 24 Jan 2021 06:32:42 -0500 Original-Received: by mail-wr1-x42e.google.com with SMTP id r9so2778357wro.9 for ; Sun, 24 Jan 2021 03:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=nKQCNSgnlJhoUZsT+SJZ3bdbAM4UTAAtGM9fYxJD9oQ=; b=n9gV/4Trzck4FDgu/BVZX5mto7cGpJanqxOzxdzVkAV4SDz5mgKRPjoyNCpPeWTw0E I84s2gT5cfVVDGdOt4pKbFL6cHPJUr5qb1VNsCTrXw2bZpOA7Jxjm4p/0xo3Bvk01wb5 v53FoTfIs8xHtlFK4tvbmaOzQ24LSu5Mz6N/adYo2wEwko3bk+O+ugPTCjBfiUsez0jB kYgoAu+qOJxC91jy3JjHpPcgYWOctrG+zu5oEs2Up8WLku2qBWeoAbv/gu/Jhfx89fem 6zl2HQbIKvUPReQptyTzsuTCbsThqygsCFnXPolYx3rOCYoYtNbvlJaks0BsskFs50Ic cWFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=nKQCNSgnlJhoUZsT+SJZ3bdbAM4UTAAtGM9fYxJD9oQ=; b=AG5+x3jSyTBRxOL7odbufBIflFZiHX1x4RzL6fJmEgdnBQhi2TxvdkovjmzCnxRczP bV+Lu+CddUdeytZIzCOeyziNjHN3fqQsdvLlUcfHHghHqzm4yx6hAW6Eszq+gDd/VGa1 ztPCljDgmmzfjqT42gPsN5ocKo4kuHn7jP9lu2bpYgT5SI2zOBHsYbHWmLKsMRwKwZxN UHy+Lsfz5zLr1RvVphsSEHd2A5FdLPoHroslz2HUErJT+tnlxmPli/u8BCGjXHIOCg8T uiIDMbFnvj2Fae+vkwGxAmsWxe6x2gv8w9qXD1sbWNS6nuQPvWNvRa9ge4nlTTAnoGER 9atw== X-Gm-Message-State: AOAM530fRLV2Jo+uisKei0fpwqL0gCav5gII1gbjpfq31Pwnydd27lTt sefbrEitN6viULcamTi791w= X-Google-Smtp-Source: ABdhPJy/MJYWeFY0c5hduZ2xS8wPAWzkumFCkZkLzJB5XQslmP0Wr6k/sIFgmJF6nOCfHsdBMgCVcw== X-Received: by 2002:adf:f7d2:: with SMTP id a18mr1382859wrq.47.1611487958433; Sun, 24 Jan 2021 03:32:38 -0800 (PST) Original-Received: from my-little-tumbleweed ([2a01:e0a:20e:d340:922b:34ff:fe95:9aed]) by smtp.gmail.com with ESMTPSA id c16sm18586512wrx.51.2021.01.24.03.32.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jan 2021 03:32:37 -0800 (PST) In-Reply-To: <2EFBBE54-62F4-4373-82D6-DC8750B648BA@kuaishou.com> (Zhiwei Chen's message of "Sun, 24 Jan 2021 06:12:09 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=kevin.legouguec@gmail.com; helo=mail-wr1-x42e.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:263338 Archived-At: Zhiwei Chen writes: > Which will make `C-x o` invoke a transient version of `other-window' like= `text-scale-adjust=E2=80=99 does. Heartfelt agreement. I have a somewhat dumber version of your transient-other-window in my config; I'd love to scrap it for another entry in custom-set-variables. Two improvements I never bothered implementing, but I'd love to see in a builtin command: 1. Display something in the echo area, to remind me that the transient map is active: once in a blue moon, I move to another window, think for a bit (forgetting about the map), start typing something that begins with 'o', and get startled because I moved to another window. With some luck, a message would help remind me to hit C-g first. 2. Define the keymap outside transient-other-window? I'm sure some creative users will come up with interesting commands to add to it (e.g. 'b' for switch-to-buffer). Of course, I'd be delighted if your current version made it to Emacs core; I wouldn't want this to be delayed by feature creep :)