From unknown Tue Aug 19 02:52:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7927: 23.1; UK Keyboard (pc105-uk) Definition Wrong in quail.el 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: To: 7927@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12960847449441 (code B ref -1); Wed, 26 Jan 2011 23:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jan 2011 23:32:24 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 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 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 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 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 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 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 Date: Wed, 26 Jan 2011 23:04:28 +0000 From: Richard Wordingham Message-ID: <20110126230428.60459a74@JRWUBU2> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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-Spam-Score: -5.9 (-----) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) 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 From unknown Tue Aug 19 02:52:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Richard Wordingham Subject: bug#7927: closed (Re: bug#7927: 23.1; UK Keyboard (pc105-uk) Definition Wrong in quail.el) Message-ID: References: <20110126230428.60459a74@JRWUBU2> X-Gnu-PR-Message: they-closed 7927 X-Gnu-PR-Package: emacs Reply-To: 7927@debbugs.gnu.org Date: Fri, 28 Jan 2011 04:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1296189782-1041-1" This is a multi-part message in MIME format... ------------=_1296189782-1041-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7927: 23.1; UK Keyboard (pc105-uk) Definition Wrong in quail.el which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7927@debbugs.gnu.org. --=20 7927: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7927 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1296189782-1041-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7927-done) by debbugs.gnu.org; 28 Jan 2011 04:42:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PigA1-0000FJ-9O for submit@debbugs.gnu.org; Thu, 27 Jan 2011 23:42:13 -0500 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pig9y-0000F3-KX for 7927-done@debbugs.gnu.org; Thu, 27 Jan 2011 23:42:12 -0500 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id p0S4oJlR005129; Fri, 28 Jan 2011 13:50:19 +0900 (JST) env-from (handa@m17n.org) Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id p0S4oJJK025039; Fri, 28 Jan 2011 13:50:19 +0900 (JST) env-from (handa@m17n.org) Received: by smtp1.aist.go.jp with ESMTP id p0S4oI8T007947; Fri, 28 Jan 2011 13:50:18 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1PigHq-0006oz-P0; Fri, 28 Jan 2011 13:50:18 +0900 From: Kenichi Handa To: Richard Wordingham Subject: Re: bug#7927: 23.1; UK Keyboard (pc105-uk) Definition Wrong in quail.el In-Reply-To: <20110126230428.60459a74@JRWUBU2> (message from Richard Wordingham on Wed, 26 Jan 2011 23:04:28 +0000) References: <20110126230428.60459a74@JRWUBU2> Date: Fri, 28 Jan 2011 13:50:18 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 7927-done Cc: 7927-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) In article <20110126230428.60459a74@JRWUBU2>, Richard Wordingham writes: > 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. [...] > 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). Thank you for the report. I've just installed a fix in emacs-23 branch. --- Kenichi Handa handa@m17n.org ------------=_1296189782-1041-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Jan 2011 23:32:24 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 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 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 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 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 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 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 Date: Wed, 26 Jan 2011 23:04:28 +0000 From: Richard Wordingham To: bug-gnu-emacs@gnu.org Subject: 23.1; UK Keyboard (pc105-uk) Definition Wrong in quail.el Message-ID: <20110126230428.60459a74@JRWUBU2> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) 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 ------------=_1296189782-1041-1--