[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

character echo and english-dvorak



This bug  / behavior is even more interesting than I first
thought.

Background: when you type, emacs invokes command
self-insert-command which inserts the char you typed.
That command is implemented in C, and advising it wont work
because o fhow it is implemented. So emacspeak defines its own
emacspeak-self-insert-command that calls self-insert-command and
then speaks the char.

As I said in my earlier message, that command speaks the char
that invoked it, rather than (preceding-char) I just checked in
that change.

However, it turns out that the feedback you hear when using an
alternative input method is not from command
emacspeak-self-insert-command --- Emacspeak is intercepting one
of the calls in the input translation sequence --- I'm yet to
identify which call -- and that is why you hear the original
qwerty layout keys as you type in dworak.

That feedback is present with or without char echo; with char
echo on, the output from emacspeak-sef-insert-command flushes the
echoing of the qwerty key you pressed... when you turn off
char-echo, you then here the spurious output that I mentioned earlier.

-- 
Best Regards,
--raman


Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC:    irc://irc.freenode.net/#emacs


On 10/16/08, T. V. Raman <raman@users.sf.net> wrote:
> that's an interesting problem.
>
> Emacspeak decides to speak the char based on the key you pressed,
> rather than the char before point, and in normal usage, those are
> the same.
>
>
>
>>>>>> "Chris" == Chris Brannon <cmbrannon@cox.net> writes:
>     Chris> Hi list, I found a curious little bug today involving
>     Chris> character echo and Emacs' english-dvorak input method.
>     Chris> If you disable character echo, Emacspeak not only
>     Chris> continues to echo characters, but it also echoes the
>     Chris> wrong ones.  Here are the steps needed to reproduce
>     Chris> it.
>     Chris>
>     Chris> ; Select english-dvorak as input method.  1. C-x ret
>     Chris> C-\ english-dvorak 2. Type for a bit, while character
>     Chris> echo is enabled.  You'll hear that letters are echoed
>     Chris> properly.  I.E., character echo reflects the fact that
>     Chris> you are using the Dvorak layout.  3. Next, disable
>     Chris> character echo (C-e d k).  4. Start typing again.
>     Chris> Emacspeak is still echoing characters, and it is
>     Chris> echoing as though you were typing in qwerty.  For
>     Chris> instance, if you press the first four keys of the home
>     Chris> row, Emacspeak says a s d f, even though the buffer
>     Chris> now contains a o e u.
>     Chris>
>     Chris> Regards, -- Chris
>     Chris>
>     Chris>
> -----------------------------------------------------------------------------
>     Chris> To unsubscribe from the emacspeak list or change your
>     Chris> address on the emacspeak list send mail to
>     Chris> "emacspeak-request@cs.vassar.edu" with a subject of
>     Chris> "unsubscribe" or "help"
>
> --
> Best Regards,
> --raman
>
>
> Email:  raman@users.sf.net
> WWW:    http://emacspeak.sf.net/raman/
> AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
> PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
> Google: tv+raman
> IRC:    irc://irc.freenode.net/#emacs
>
> -----------------------------------------------------------------------------
> To unsubscribe from the emacspeak list or change your address on the
> emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
> subject of "unsubscribe" or "help"
>
>

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help"



If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog | Search the archive