From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: What is keyboard-local? Date: Fri, 15 Feb 2013 09:27:03 -0800 Message-ID: <9F574A0FEC1F4563BFCCA3A065AFC0FC@us.oracle.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360949256 32163 80.91.229.3 (15 Feb 2013 17:27:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 17:27:36 +0000 (UTC) To: "'Stefan Monnier'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 18:27:56 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 1U6P4k-0004MU-3c for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 18:27:54 +0100 Original-Received: from localhost ([::1]:39337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6P4Q-0006TV-DC for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 12:27:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6P4D-00067e-Df for help-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:27:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6P43-0006uA-SI for help-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:27:21 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:48805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6P43-0006tw-Js for help-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:27:11 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r1FHR9Ru024785 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Feb 2013 17:27:10 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r1FHR8eY022102 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Feb 2013 17:27:09 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r1FHR8cB029421; Fri, 15 Feb 2013 11:27:08 -0600 Original-Received: from dradamslap1 (/10.159.70.147) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 15 Feb 2013 09:27:08 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac4LoKTtR4AJwP8iSGuOeHJobvB2HAAALLvA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:89113 Archived-At: > 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. While waiting for such a code fix, at least, please consider updating the doc with info such as you just provided here, unless you feel it is already there somewhere.