From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Wordingham Newsgroups: gmane.emacs.bugs Subject: bug#7927: 23.1; UK Keyboard (pc105-uk) Definition Wrong in quail.el Date: Wed, 26 Jan 2011 23:04:28 +0000 Message-ID: <20110126230428.60459a74@JRWUBU2> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296086124 13910 80.91.229.12 (26 Jan 2011 23:55:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 Jan 2011 23:55:24 +0000 (UTC) To: 7927@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 27 00:55:19 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PiFCn-0002Au-3Z for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 00:55:18 +0100 Original-Received: from localhost ([127.0.0.1]:33511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiFCm-0006Hg-Ah for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jan 2011 18:55:16 -0500 Original-Received: from [140.186.70.92] (port=50464 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiFCf-0006GI-4z for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2011 18:55:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiFCc-0001oQ-9Q for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2011 18:55:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiFCc-0001oM-5c for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2011 18:55:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PiErG-0002TA-Ha; Wed, 26 Jan 2011 18:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Wordingham Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jan 2011 23:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7927 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12960847449441 (code B ref -1); Wed, 26 Jan 2011 23:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jan 2011 23:32:24 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiEqd-0002SC-6W for submit@debbugs.gnu.org; Wed, 26 Jan 2011 18:32:24 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiEIa-0001g7-3e for submit@debbugs.gnu.org; Wed, 26 Jan 2011 17:57:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiEQR-0001dX-7h for submit@debbugs.gnu.org; Wed, 26 Jan 2011 18:05:20 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:44436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiEPt-0001S8-4i for submit@debbugs.gnu.org; Wed, 26 Jan 2011 18:05:19 -0500 Original-Received: from [140.186.70.92] (port=38389 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiEPo-0002Ky-DD for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2011 18:04:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiEPk-0001Qt-Ol for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2011 18:04:38 -0500 Original-Received: from mtaout01-winn.ispmail.ntl.com ([81.103.221.47]:17117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiEPk-0001QU-Fy for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2011 18:04:36 -0500 Original-Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20110126230434.FQPZ26766.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Wed, 26 Jan 2011 23:04:34 +0000 Original-Received: from JRWUBU2 ([82.16.217.33]) by aamtaout04-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20110126230433.GGAZ25656.aamtaout04-winn.ispmail.ntl.com@JRWUBU2> for ; Wed, 26 Jan 2011 23:04:33 +0000 X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=8X7ahaDSDa4A:10 a=Fj0c77JwVQQA:10 a=kj9zAlcOel0A:10 a=aR16PxjQAAAA:8 a=B1QWgUDejfPq246GZssA:9 a=qsTJOGk4YMZwjVdcOUUA:7 a=6rn-vahHqsT-_ePy2sUNeSGjfB8A:4 a=CjuIK1q_8ugA:10 a=CiSHi91Bn78A:10 a=rBql_DZ8GjYhT8EX:21 a=wj-5Yq0QCzlTZpH3:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 26 Jan 2011 18:32:22 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 26 Jan 2011 18:33:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43665 Archived-At: When I execute (quail-set-keyboard-layout "pc105-uk") quail text input methods (e.g thai-kesmanee) cease to work. (I actually encountered the error when coding up a Khmer keyboard.) When I should get the lower character key on a letter key I get the upper character, and when I type a shifted character I get the character from another key. A key diagnostic is that (length quail-keyboard-layout-standard) returns 180 (6 rows of 15 characters with 2 shift positions), but (length quail-keyboard-layout) returns 181 after setting the keyboard. The other keyboard names (in the version of Emacs 23.1 from which I am reporting) all yield lengths of 180 characters. The bug appears to be that in the definition of quail-keyboard-layout-alist in quail.el, there is an extra space in the first non-blank line of the keyboard definition of the pc105-uk definition. This bug is also present in Emacs 22.1 (by examination of quail.el) and Emacs 23.2 (demonstrated on Windows 7). A work around in my .emacs file (for Emacs 23.2, confirmed on Emacs 23.1) is the sequence (quail-set-keyboard-layout "pc105-uk") (if (> (length quail-keyboard-layout) (length quail-keyboard-layout-standard)) (setq quail-keyboard-layout (concat (substring quail-keyboard-layout 0 60) (substring quail-keyboard-layout 61 (length quail-keyboard-layout))))) This chops out the superflous character. Keyboard then works. In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-11-23 on rothera, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10706000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tpu-edt-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-g C-x b * G G B U G b u g C-g b u g C-x b * s C-x b g C-x C-b C-j Recent messages: /usr/bin/mail is not an executable. Setting mail-interactive to t. Quit Making completion list... uncompressing emacs.gz...done uncompressing emacs-1.gz...done Search failed: "BUG" [2 times] Mark set Quit Search failed: "bug" byte-code: End of buffer read-buffer-to-switch: Command attempted to use minibuffer while in minibuffer