unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: James N. V. Cash <james.nvc@gmail.com>
Cc: 42052@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#42052: 28.0.50; tab-bar-mode should be frame-local
Date: Fri, 10 Jul 2020 02:49:42 +0300	[thread overview]
Message-ID: <871rlkckq1.fsf@mail.linkov.net> (raw)
In-Reply-To: <874kqgpqhq.fsf@gmail.com> (James N. V. Cash's message of "Thu, 09 Jul 2020 13:06:41 -0400")

> 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.





  reply	other threads:[~2020-07-09 23:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-25 20:07 bug#42052: 28.0.50; tab-bar-mode should be frame-local James N. V. Cash
2020-06-27 23:40 ` Juri Linkov
2020-06-28 12:15   ` James N. V. Cash
2020-06-28 19:45     ` James N. V. Cash
2020-06-28 23:18       ` Juri Linkov
2020-06-29  0:26         ` James N. V. Cash
2020-06-29  0:35           ` James N. V. Cash
2020-06-29 23:45           ` Juri Linkov
2020-07-09 17:06             ` James N. V. Cash
2020-07-09 23:49               ` Juri Linkov [this message]
2020-07-11 14:45                 ` James N. V. Cash
2020-07-12  0:01                   ` Juri Linkov
2020-07-11 15:17                 ` Stefan Monnier
2020-07-12  0:04                   ` Juri Linkov
2020-07-12 16:38                     ` Stefan Monnier
2020-10-13  3:07                 ` Lars Ingebrigtsen
2021-01-05 18:36                   ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rlkckq1.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=42052@debbugs.gnu.org \
    --cc=james.nvc@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).