From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Add -other-{window, frame} variants of project-prefix-map commands Date: Mon, 06 Jul 2020 19:35:15 -0400 Message-ID: References: <87blkw5cd3.fsf@iris.silentflame.com> <86a70fonbb.fsf@stephe-leake.org> <873665v6cv.fsf@mail.linkov.net> <87pn98s0nl.fsf@linkov.net> 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="40858"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stephen Leake , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 07 01:35:54 2020 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 1jsaeP-000AUt-OK for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jul 2020 01:35:53 +0200 Original-Received: from localhost ([::1]:57446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsaeO-0005iS-PM for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Jul 2020 19:35:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsadt-0005EG-VB for emacs-devel@gnu.org; Mon, 06 Jul 2020 19:35:22 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:48294) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsadr-0007Jw-RA for emacs-devel@gnu.org; Mon, 06 Jul 2020 19:35:21 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DC6A480D55; Mon, 6 Jul 2020 19:35:17 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3BA7A8005D; Mon, 6 Jul 2020 19:35:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1594078516; bh=3zlA66Ny5Oy+qZFJAa1tCjQzsh2Qq+qe0bFRdekUFMI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Cqf/9GB6Z1fbyU8LyISey7A/Ae1BeVYylNcqqi9M6pk9KWAGV8V874OWQmic/Hiy0 U8utwX7UXTlrV410UAz7NQ2jW1JNTGwN1i773dwtjxGOfVwkB0YsRQNqCELWqPiwPA ZiwWIerNQ0j8jtNBTIsePkvUFPZdViiq0SJjATiP9i/XAQTL8LVIMQmCrUFKsA9ZC1 FlLI4W5AUJEWxh8x04+ag0T8c2BVEzSEXw3TO+Cz6AD2lbQhTPwBr1LYSYOZdL3Fht h98GPyG1u6SrXGpDxnEAA7tTVshHBLjbNs4T8osjfr+o+269iG7ElrsbtxCgxHZAjJ xDBELZCuOTwJA== Original-Received: from alfajor (unknown [157.52.0.200]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 020F4120973; Mon, 6 Jul 2020 19:35:15 -0400 (EDT) In-Reply-To: <87pn98s0nl.fsf@linkov.net> (Juri Linkov's message of "Tue, 07 Jul 2020 01:57:27 +0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/06 19:35:18 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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:252734 Archived-At: >> What makes you think Emacs core can't have such a keymap? > I assumed it would be too monumental change. `other-frame-window` makes an effort to preserve the old behavior. Inevitably, there are some changes, but I don't think these are drastic enough to qualify as "monumental" or to rule out the change. > 1. Bind =E2=80=98C-x 4=E2=80=99 to a new command that will set a transien= t value of > display-buffer-overriding-action and a transient keymap to the > other-window commands keymap. That's what `other-frame-window` offers (and to a lesser extent the current `C-x 4 4` as well). > 2. Enable switch-to-buffer-obey-display-actions by default, > so all buffer-switching commands (e.g. =E2=80=98C-h C-t=E2=80=99, =E2= =80=98C-h C-p=E2=80=99, =E2=80=98C-h n=E2=80=99 > and many other such commands) will obey display-buffer-overriding-acti= on. This seems like a largely orthogonal change, so I'd rather keep it out. Stefan