unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Jason Rumney <jasonr@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Next pretest
Date: Wed, 27 Jan 2010 17:06:48 +0100	[thread overview]
Message-ID: <f7ccd24b1001270806r5a637390ke57f108110e48fdc@mail.gmail.com> (raw)
In-Reply-To: <87aavz63x2.fsf@wanchan.jasonrumney.net>

On Wed, Jan 27, 2010 at 15:03, Jason Rumney <jasonr@gnu.org> wrote:

> Please try the following patch:

(I've changed three trivial typos emacs_ev. to emacs_ev->)

It still triggers the assertion, and kind is still ASCII_KEYSTROKE_EVENT:

  keyboard.c:5614: Emacs fatal error: assertion failed: c == event->code

  Breakpoint 1, w32_abort () at w32fns.c:7345
  7345      button = MessageBox (NULL,
  (gdb) bt
  #0  w32_abort () at w32fns.c:7345
  #1  0x0104f358 in die (msg=0x1548e80 "assertion failed: c ==
event->code", file=0x15404e0 "keyboard.c", line=5614) at alloc.c:6259
  #2  0x010135f6 in make_lispy_event (event=0x167f178) at keyboard.c:5614
  #3  0x010117e7 in kbd_buffer_get_event (kbp=0x88f828,
used_mouse_menu=0x88fabc, end_time=0x0) at keyboard.c:4347
  #4  0x0100d899 in read_char (commandflag=1, nmaps=2, maps=0x88f960,
prev_event=48322562, used_mouse_menu=0x88fabc, end_time=0x0) at
keyboard.c:3079
  #5  0x0101f75f in read_key_sequence (keybuf=0x88fc00, bufsize=30,
prompt=48322562, dont_downcase_last=0, can_return_switch_frame=1,
      fix_current_buffer=1) at keyboard.c:9512
  #6  0x01007c86 in command_loop_1 () at keyboard.c:1643
  #7  0x0103bb12 in internal_condition_case (bfun=0x10073e0
<command_loop_1>, handlers=48379098, hfun=0x1006b11 <cmd_error>) at
eval.c:1490
  #8  0x01006feb in command_loop_2 () at keyboard.c:1360
  #9  0x0103b531 in internal_catch (tag=48378290, func=0x1006fc8
<command_loop_2>, arg=48322562) at eval.c:1226
  #10 0x01006fa1 in command_loop () at keyboard.c:1339
  #11 0x01006203 in recursive_edit_1 () at keyboard.c:954
  #12 0x01006727 in Frecursive_edit () at keyboard.c:1016
  #13 0x01002af2 in main (argc=3, argv=0xa71318) at emacs.c:1833
  (gdb) frame 2
  #2  0x010135f6 in make_lispy_event (event=0x167f178) at keyboard.c:5614
  5614                eassert (c == event->code);
  (gdb) p *event
  $1 = {
    kind = ASCII_KEYSTROKE_EVENT,
    code = -92,
    part = scroll_bar_above_handle,
    modifiers = 0,
    x = 0,
    y = 0,
    timestamp = 25781364,
    padding = {0x0, 0x0},
    frame_or_window = 48446469,
    arg = 48322562
  }


In key_event, control is going through this branch

      else if (event->uChar.AsciiChar < 128)
	{
	  emacs_ev->kind = ASCII_KEYSTROKE_EVENT;
	  emacs_ev->code = event->uChar.AsciiChar;
	}

(that's lines 473-477 after your patch) because at that point, event is

  (gdb) p *event
  $3 = {
    bKeyDown = 1,
    wRepeatCount = 1,
    wVirtualKeyCode = 192,
    wVirtualScanCode = 39,
    uChar = {
      UnicodeChar = 164 L'¤\000',
      AsciiChar = -92 '¤'
    },
    dwControlKeyState = 0
  }

    Juanma




  reply	other threads:[~2010-01-27 16:06 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-24 14:46 Next pretest Chong Yidong
2010-01-24 15:31 ` alin.s
2010-01-24 16:34   ` David De La Harpe Golden
2010-01-24 16:47     ` David De La Harpe Golden
2010-01-24 19:44     ` Chad Brown
2010-01-24 21:22       ` Chong Yidong
2010-01-27 20:34         ` alin.s
2010-01-25  9:12     ` Tabs (was: Next pretest) Juri Linkov
2010-01-25 16:49     ` Next pretest Lluís
2010-01-25 23:13 ` Juanma Barranquero
2010-01-26 15:28   ` Chong Yidong
2010-01-26 15:46     ` Juanma Barranquero
2010-01-26 18:09       ` Eli Zaretskii
2010-01-26 18:27         ` Juanma Barranquero
2010-01-26 23:13           ` Juanma Barranquero
2010-01-26 23:48         ` Juanma Barranquero
2010-01-27  2:02           ` Jason Rumney
2010-01-27  9:50             ` Juanma Barranquero
2010-01-27 14:03               ` Jason Rumney
2010-01-27 16:06                 ` Juanma Barranquero [this message]
2010-01-27 16:18                   ` Jason Rumney
2010-01-27 20:07                     ` Juanma Barranquero
2010-01-27 20:32                       ` Chong Yidong
2010-01-29 12:14                     ` Eli Zaretskii
2010-01-29 12:38                       ` Juanma Barranquero
  -- strict thread matches above, loose matches on Subject: below --
2014-09-25 17:47 Stefan Monnier
2014-08-11 15:43 next pretest Glenn Morris
2014-08-11 15:51 ` Eli Zaretskii
2014-08-12  8:49   ` Bastien
2014-08-12 14:42     ` Eli Zaretskii
2014-08-13  6:34       ` Bastien
2014-08-12 15:57     ` Glenn Morris
2014-08-13  6:33       ` Bastien
2014-08-12  8:46 ` Bastien
2014-06-24 15:41 Glenn Morris
2014-05-09 16:24 Glenn Morris
2012-12-09  4:09 Next pretest Chong Yidong
2012-04-20  7:51 Chong Yidong
2012-04-20 17:36 ` Glenn Morris
2012-02-21  6:56 Chong Yidong
2011-01-23 21:36 Chong Yidong
2011-01-27  8:32 ` Glenn Morris
2011-01-27 20:50   ` Chong Yidong
2011-01-27 15:58 ` Dan Nicolaescu
2011-01-27 20:18   ` Chong Yidong
2011-01-28 17:07     ` Chong Yidong
2011-01-08 20:51 Chong Yidong
2010-12-06 16:34 Chong Yidong
2010-04-16 15:50 Sean Sieger
2010-04-16 21:56 ` Sean Sieger
2010-04-17  5:30 ` Jason Rumney
2010-04-15 22:01 Angelo Graziosi
2010-04-13 15:30 Chong Yidong
2010-04-14  4:36 ` Christoph
2010-04-14 16:54 ` Juri Linkov
2010-04-14 17:33   ` Chong Yidong
2010-04-14 22:40 ` Ken Brown
2010-04-14 22:51   ` Chong Yidong
2010-04-15  2:06     ` Ken Brown
2010-04-16  1:01       ` Chong Yidong
2010-04-15 19:13 ` Sean Sieger
2010-04-16  2:25   ` Christoph
2010-04-16 15:15     ` Sean Sieger
2010-03-28 19:05 Chong Yidong
2010-03-28 19:59 ` Drew Adams
2010-03-28 20:18   ` Lennart Borgman
2010-03-28 20:36     ` Drew Adams
2010-03-28 20:48       ` Lennart Borgman
2010-03-29  6:41         ` Eli Zaretskii
2010-03-29 15:41           ` Sean Sieger
2010-03-29 15:52             ` Eli Zaretskii
2010-03-28 20:38     ` Christoph
2010-03-28 21:04   ` Chong Yidong
2010-03-28 21:13     ` Drew Adams
2010-03-29 18:33 ` Glenn Morris
2010-03-29 18:59   ` Leo
2010-03-29 21:54   ` Chong Yidong
2010-03-29 22:22     ` Glenn Morris
2010-01-27 12:04 A. Soare
2009-03-25 14:22 Chong Yidong

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=f7ccd24b1001270806r5a637390ke57f108110e48fdc@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@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).