From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.emacs.help Subject: Re: Weirdness with Input Method/quail : how to figure out source of it? Date: Tue, 20 Aug 2013 17:33:18 +0900 Message-ID: <20130820083318.GA804@smoon> References: <20130814124238.GA722@smoon> <8738qasm9t.fsf@gmail.com> <20130815231908.GB722@smoon> <8761v6kuxk.fsf@gmail.com> <20130816073150.GC722@smoon> <87wqnlkgsa.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="zhXaljGHf11kAtnf" X-Trace: ger.gmane.org 1376987636 22500 80.91.229.3 (20 Aug 2013 08:33:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Aug 2013 08:33:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Alex Kost Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 20 10:33:59 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 1VBhO1-0000e4-99 for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Aug 2013 10:33:57 +0200 Original-Received: from localhost ([::1]:46621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBhO0-0002Gv-Hz for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Aug 2013 04:33:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBhNc-0002Gg-Q8 for help-gnu-emacs@gnu.org; Tue, 20 Aug 2013 04:33:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBhNW-0001TG-6N for help-gnu-emacs@gnu.org; Tue, 20 Aug 2013 04:33:32 -0400 Original-Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:63899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBhNV-0001QC-L2 for help-gnu-emacs@gnu.org; Tue, 20 Aug 2013 04:33:26 -0400 Original-Received: by mail-la0-f41.google.com with SMTP id ec20so88073lab.14 for ; Tue, 20 Aug 2013 01:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=qu5Pqo4Q4u0TZVUYilR6FJH6rD4y9Zc+RZtHWIXU/WE=; b=Lr1QfQdecKKm028YpCC9pgxvOKPjb+bh/UiEE7mk2ENftnEcHCrtGQgDXZnXRY2N9A DeSVsNuhd4/2EkfEmO3SH7hKftgpVimLJSNmqcDsiaL5xtYL6LRiBZ686UpEk28gjHbK HkTvJLyAPLKbIXGhKmWo8mKVdb7d8KsKTyzqyesn+QinQ/yI2Z7TbEm6t/3R6Q1MFhNl REp7QKeuuaSBBFNFJJisL6oYgjk40l8A2V5WENf/CSTRAfsHSo7IFiHclu2bwizVcVUx 47wZJV6Y3N2Vwc+JhGkPWueyxwacHgoo6O2NnWhvwz67RjQtC9Q8mllMwdCVRNGVwmYI ieMQ== X-Received: by 10.152.22.227 with SMTP id h3mr292156laf.39.1376987604249; Tue, 20 Aug 2013 01:33:24 -0700 (PDT) Original-Received: from smoon ([141.105.33.55]) by mx.google.com with ESMTPSA id qa1sm658863lbb.1.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Aug 2013 01:33:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87wqnlkgsa.fsf@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::229 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:93007 Archived-At: --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, ** Alex Kost [2013-08-16 15:37:41 +0400]: > Vladimir Lomov writes: >> To get correct output for Russian I decided to define new keyboard layout ('dvorak-classic') for >> quail (this is not my discovery I found it on emacswiki.org). >> But this solution rises another weird problem. Looking ahead I must say that I notice this >> problem about 4-6 months ago while I use this setup (dvorak layout) for more than a year. > I've tried your variant with (quail-set-keyboard-layout "dvorak"), and it > works for me without a sign of your strange Problem. >> Why I call it "weird" problem: because it comes not always, it is very sporadic. It doesn't >> depend if I run Emacs with my settings or without any (emacs -Q), in terminal (tty) or in >> graphical environment (X). > Sorry for uninformative reply, but i don't know how to help you here. > Perhaps, it would be better to do "M-x report-emacs-bug". Seems now I able to reproduce that behaviour with simple script. Would you mind to run this script (see attachment)? It's the only requirement is xdotool tool, you don't even have to switch to dvorak layout; moreover, qwerty layout is required to run script without intervention. What this script do: 1. run emacs without any settings but loading 'quail-dvorak.el' file (attached as well) and switching _on_ flyspell mode; 2. open a text file to type; 3. use a sample text file (xmpl.txt, attached) to type in opened buffer; 4. after first round of type, switch _off_ flyspell mode and type the same sample file again. To run script just open a terminal emulator and run ./test-emacs-flyspell-mode.sh xmpl.txt in directory with script and sample file. If it would give wrong behaviour for you then I send a bug report. --- WBR, Vladimir Lomov -- The best executive is one who has sense enough to pick good people to do what he wants done, and self-restraint enough to keep from meddling with them while they do it. -- Theodore Roosevelt --zhXaljGHf11kAtnf Content-Type: application/x-sh Content-Disposition: attachment; filename="test-emacs-flyspell-mode.sh" Content-Transfer-Encoding: quoted-printable #!/bin/bash=0A=0A### Almost self-contained test shell script, one requireme= nt: you need xdotool!=0A### How to run this script:=0A### - open a terminal= and cd to DIR where this script and text file are live;=0A### - run this s= cript;=0A### - just see results.=0A### What one shoulde see: ideally: two i= dentical blocks of text.=0A=0A### read text from a file and send it to an a= pplication with given "speed"=0Afile=3D${1}=0A: ${delay:=3D200} ### millise= conds=0A=0A### run emacs=0Aemacs -Q -l 'quail-dvorak.el' --name EmacsDebug = sample.txt --eval '(toggle-input-method)' --eval '(flyspell-mode)' &=0Aslee= p 5=0A### switch to emacs window before this point=0Aapp_id=3D$(xdotool sea= rch --name EmacsDebug | tail -n 1)=0Axdotool windowfocus --sync ${app_id}= =0Asleep 3=0Afor i in 1 2=0Ado=0A ### Read a text file line by line and ou= tput it in Emacs frame=0A while IFS=3D read -r line=0A do=0A xdotool t= ype --window ${app_id} --delay ${delay} "${line}"=0A xdotool key --windo= w ${app_id} ctrl+j=0A done < "${file}"=0A xdotool key --window ${app_id} = ctrl+j=0A xdotool key --window ${app_id} alt+x=0A xdotool type --window $= {app_id} flyspell-mode=0A xdotool key --window ${app_id} ctrl+j=0Adone=0A --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xmpl.txt" Ejyk xleyjbfo ,eybu dun.gx^ pdujfo'Z hdufsyeo'Z s`tbo'Z lyt`fo'Z ght.wh' x axhtybheo'z Fucy nyth iduehy --- Ko ihwynxk! --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="quail-dvorak.el" ;; [[file:~/works/scripts/docs/emacs/emacs.org::*%D0%A0%D0%B0%D1%81%D0%BA%D0%BB%D0%B0%D0%B4%D0%BA%D0%B0%20dvorak%20%D0%B4%D0%BB%D1%8F%20Emacs][quail-dvorak]] (eval-after-load 'quail '(progn (add-to-list 'quail-keyboard-layout-alist '("dvorak-classic" . "\ \ `#%&7[5{3}1)9]0*2)4+6]8! \ ;:,<.>pPyYfFgGcCrRlL/?@^ \ aAoOeEuUiIdDhHtTnNsS-_\\| \ '\"qQjJkKxXbBmMwWvVzZ \ ")) (add-to-list 'quail-keyboard-layout-alist '("dvorak" . "\ \ 1!2@3#4$5%6^7&8*9(0)[{]}`~ \ '\",<.>pPyYfFgGcCrRlL/?=+\\| \ aAoOeEuUiIdDhHtTnNsS-_ \ ;:qQjJkKxXbBmMwWvVzZ \ ")) (quail-set-keyboard-layout "dvorak") ) ) ;; quail-dvorak ends here --zhXaljGHf11kAtnf--