From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: frame-local variables weirdness Date: Thu, 18 Oct 2007 12:40:26 -0400 Message-ID: References: <858x65lh4m.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192725687 25904 80.91.229.12 (18 Oct 2007 16:41:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2007 16:41:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 18 18:41:27 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IiYQw-0008GX-9V for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2007 18:41:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiYQo-0000SX-VZ for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2007 12:41:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiYQQ-0008Tp-4Y for emacs-devel@gnu.org; Thu, 18 Oct 2007 12:40:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiYQO-0008SB-Gp for emacs-devel@gnu.org; Thu, 18 Oct 2007 12:40:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiYQO-0008S2-7Q for emacs-devel@gnu.org; Thu, 18 Oct 2007 12:40:44 -0400 Original-Received: from vpn-132-204-232-162.acd.umontreal.ca ([132.204.232.162] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiYQJ-0005m4-No for emacs-devel@gnu.org; Thu, 18 Oct 2007 12:40:44 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 5B4AAB41C1; Thu, 18 Oct 2007 12:40:26 -0400 (EDT) In-Reply-To: ("Johan =?iso-8859-1?Q?Bockg=E5rd=22's?= message of "Thu\, 18 Oct 2007 16\:10\:54 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81155 Archived-At: >>> E.g. input-decode-map and local-function-key-map (there's a different >>> one for each tty and each X11 display to which we're connected). >> Ah. >> "terminal-local" or "display-local" would seem a more accurate >> description... > The documentation indeed uses the term "terminal-local". IIUC There's a bit of a mess here introduced by the multi-tty code: if you run an "emacsclient -t" on /dev/tty1, then suspend it and then run another one on that same tty, you apparently get two `terminal' objects but a single keyboard object. And the terminal objects are somewhat new in multi-tty, so the variables were really and still are keyboard-local rather than terminal-local (the C code identifiers clearly always referred to "keyboard" rather than "terminal"). This said, I'm not actually sure that this is the case: maybe every terminal has its own keyboard, really. If not, I believe we should "merge" keyboards and terminals so as to get rid of this distinction, if at all possible. Stefan