From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: What is keyboard-local? Date: Fri, 15 Feb 2013 09:41:22 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360951644 22932 80.91.229.3 (15 Feb 2013 18:07:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 18:07:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 19:07:46 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U6PhJ-00083y-Jz for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 19:07:45 +0100 Original-Received: from localhost ([::1]:57261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Owu-0000Wq-1D for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 12:19:48 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Injection-Info: mx05.eternal-september.org; posting-host="bfd39ab85c09fa5e53648fe03e26b156"; logging-data="24969"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CEVx1AnW1hoWuXFAOEtYX" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:bj7CHTPs0frQqAoSSFBa+Xz+nX4= sha1:oFexxN+eHF3K7Xb9qaWcoU4EAjQ= Original-Xref: usenet.stanford.edu gnu.emacs.help:196823 X-Mailman-Approved-At: Fri, 15 Feb 2013 12:19:27 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89117 Archived-At: > I never heard of such a term "keyboard-local". I guess "terminal-local" > or something like that is meant. Please file a bug report, Xue. Right. Actually, there are no real "terminal-local" variables, since all those are in reality keyboard-local. Emacs's "terminals" are visible in Elisp (e.g. `frame-terminal' returns the "terminal" from where a particular frame comes). OTOH Emacs's "keyboards" are not directly visible. A "keyboard" belongs to a particular terminal, but terminals can have several "keyboards", although in practice 99.99% of the terminals have only 1 keyboard. IIRC the only cases where you can have several keyboards for a given terminal, is when you have an X11 server (e.g. "foo:0") with various "X11 screens" (i.e. you have foo:0.0 and foo:0.1) in which case each X11 screen gets a corresponding Emacs "keyboard", whereas they all share the same Emacs "terminal". I'm pretty sure this subtlety is not handled correctly everywhere in Emacs (IOW we have bugs in there). We should probably get rid of this distinction. Stefan