From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#42052: 28.0.50; tab-bar-mode should be frame-local Date: Fri, 10 Jul 2020 02:49:42 +0300 Organization: LINKOV.NET Message-ID: <871rlkckq1.fsf@mail.linkov.net> References: <87zh8qq57v.fsf@gmail.com> <87sgegdqmt.fsf@mail.linkov.net> <871rlzwfm2.fsf@gmail.com> <87wo3rug82.fsf@gmail.com> <87pn9idbj2.fsf@mail.linkov.net> <87pn9ivhsa.fsf@gmail.com> <87zh8liggc.fsf@mail.linkov.net> <874kqgpqhq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32099"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 42052@debbugs.gnu.org, Stefan Monnier To: James N. V. Cash Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 10 02:04:11 2020 Return-path: Envelope-to: geb-bug-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 1jtgWQ-0008Ew-SR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Jul 2020 02:04:10 +0200 Original-Received: from localhost ([::1]:47808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtgWP-0006ks-Bd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jul 2020 20:04:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtgWI-0006jJ-4P for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2020 20:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58579) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtgWH-0002hL-RM for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2020 20:04:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jtgWH-0006n9-KT for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2020 20:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Jul 2020 00:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42052 X-GNU-PR-Package: emacs Original-Received: via spool by 42052-submit@debbugs.gnu.org id=B42052.159433943626096 (code B ref 42052); Fri, 10 Jul 2020 00:04:01 +0000 Original-Received: (at 42052) by debbugs.gnu.org; 10 Jul 2020 00:03:56 +0000 Original-Received: from localhost ([127.0.0.1]:41892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtgWC-0006mq-88 for submit@debbugs.gnu.org; Thu, 09 Jul 2020 20:03:56 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:55435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtgW9-0006mP-Mb for 42052@debbugs.gnu.org; Thu, 09 Jul 2020 20:03:55 -0400 X-Originating-IP: 91.129.103.18 Original-Received: from mail.gandi.net (m91-129-103-18.cust.tele2.ee [91.129.103.18]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id F0A9EE0007; Fri, 10 Jul 2020 00:03:45 +0000 (UTC) In-Reply-To: <874kqgpqhq.fsf@gmail.com> (James N. V. Cash's message of "Thu, 09 Jul 2020 13:06:41 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182879 Archived-At: > I've attached another patch that makes the key bindings & xpm icons get > loaded when tab-bar-show is 1 as well. It doesn't un-load the > keybindings in the way that globalling toggling tab-bar-mode off, but I > don't really see a sensible way of doing that frame-locally. I don't know if such thing as frame-local keybindings is currently possible. The manual at (info "(elisp) Searching Keymaps") shows the decision tree: (or (if overriding-terminal-local-map (FIND-IN overriding-terminal-local-map)) (if overriding-local-map (FIND-IN overriding-local-map) (or (FIND-IN (get-char-property (point) 'keymap)) (FIND-IN-ANY emulation-mode-map-alists) (FIND-IN-ANY minor-mode-overriding-map-alist) (FIND-IN-ANY minor-mode-map-alist) (if (get-text-property (point) 'local-map) (FIND-IN (get-char-property (point) 'local-map)) (FIND-IN (current-local-map))))) (FIND-IN (current-global-map))) If the variable `overriding-terminal-local-map` can't be made frame-local, then maybe a new rule could be added. Then like `(get-char-property (point) 'keymap)` gets a keymap at point, a new rule could get a keymap from the frame alist.