unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Vladimir Lomov <lomov.vl@gmail.com>
To: Alex Kost <alezost@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Weirdness with Input Method/quail : how to figure out source of it?
Date: Tue, 20 Aug 2013 17:33:18 +0900	[thread overview]
Message-ID: <20130820083318.GA804@smoon> (raw)
In-Reply-To: <87wqnlkgsa.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1991 bytes --]

Hello,
** Alex Kost [2013-08-16 15:37:41 +0400]:

> Vladimir Lomov <lomov.vl@gmail.com> 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

[-- Attachment #2: test-emacs-flyspell-mode.sh --]
[-- Type: application/x-sh, Size: 1156 bytes --]

[-- Attachment #3: xmpl.txt --]
[-- Type: text/plain, Size: 121 bytes --]

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!

[-- Attachment #4: quail-dvorak.el --]
[-- Type: text/plain, Size: 807 bytes --]

;; [[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

  parent reply	other threads:[~2013-08-20  8:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14 12:42 Weirdness with Input Method/quail : how to figure out source of it? Vladimir Lomov
2013-08-15 20:59 ` Alex Kost
2013-08-15 23:19   ` Vladimir Lomov
2013-08-16  6:32     ` Alex Kost
2013-08-16  7:31       ` Vladimir Lomov
2013-08-16  9:45         ` ISHIKAWA,chiaki
2013-08-19  9:03           ` Vladimir Lomov
2013-08-16 11:37         ` Alex Kost
2013-08-19  8:58           ` Vladimir Lomov
2013-08-20  8:33           ` Vladimir Lomov [this message]
2013-08-22 14:58             ` Alex Kost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130820083318.GA804@smoon \
    --to=lomov.vl@gmail.com \
    --cc=alezost@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).