From: "Jan D." <jan.h.d@swipnet.se>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: After compose key cursor or function keys don't work
Date: Mon, 13 Jun 2005 17:47:44 +0200 [thread overview]
Message-ID: <42ADAAA0.6020605@swipnet.se> (raw)
In-Reply-To: <q5gr7f6s9sx.fsf@lucent.com>
> Jan>
> Jan> I suspect that for some reason compose_status is not right, around
> Jan> line 6276 there is a break that in effect ignores key presses.
>
>Good guess. It seems as if the data in compose_status wont be changed when
>I press e.g. an arrow key. Therefore if I try to press an arrow key right
>after finishing a compose sequence compose_status.chars_matched is still set
>to 3. Thus the if statement, you pointed me to, will be executed:
>
> if (compose_status.chars_matched > 0 && nbytes == 0)
> break;
>
>It works, if I reset compose_status, once a compose sequence is complete,
>i.e. if I change the line above to (not very nice, I know, since it uses the
>internals of compose_status):
>
Does this patch work?
Index: xterm.c
*** xterm.c.~1.867.~ 2005-06-13 17:46:19.000000000 +0200
--- xterm.c 2005-06-13 17:43:14.000000000 +0200
***************
*** 6281,6286 ****
--- 6281,6287 ----
if (compose_status.chars_matched > 0 && nbytes == 0)
break;
+ bzero (&compose_status, sizeof (compose_status));
orig_keysym = keysym;
/* Common for all keysym input events. */
Jan D.
next prev parent reply other threads:[~2005-06-13 15:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 10:17 After compose key cursor or function keys don't work Richard Stallman
2005-06-06 11:27 ` Jan D.
2005-06-13 12:47 ` Klaus Zeitler
2005-06-13 15:47 ` Jan D. [this message]
2005-06-22 14:12 ` Klaus Zeitler
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=42ADAAA0.6020605@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=rms@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).