[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: crash when function-key-map is nil
From: |
Nick Roberts |
Subject: |
Re: crash when function-key-map is nil |
Date: |
Mon, 31 Jul 2006 17:42:05 +1200 |
> If function-key-map is nil but key-translation-map is not then further
> down uninitialised values of keybuf are scanned (fkey.start = 31):
>
> Does this patch fix it?
I don't understand the details but it seems to DTRT, so yes. A few
trivial things:
>...
> ! /* This is a submap reached by looking up, in PARENT,
> ! the events from START to END. */
> ! Lisp_Object map;
> ! /* Positions [START, END) in the key sequence buffer
[START, END] ?
> ! are the key that we have scanned so far.
> ! Those events are the ones that we will replace
> ! if PAREHT maps them into a key sequence. */
PARENT
> int start, end;
> } keyremap;
>...
> delayed_switch_frame = Qnil;
> fkey.map = fkey.parent = Vfunction_key_map;
> keytran.map = keytran.parent = Vkey_translation_map;
> ! fkey.start = fkey.end = 0;
Add comment /* If there is no key-translation-map, turn off scanning. */ ?
> keytran.start = keytran.end = KEYMAPP (keytran.map) ? 0 : bufsize + 1;
>
> if (INTERACTIVE)
--
Nick http://www.inet.net.nz/~nickrob
- crash when function-key-map is nil, Johan Bockgård, 2006/07/24
- Re: crash when function-key-map is nil, Richard Stallman, 2006/07/24
- Re: crash when function-key-map is nil, Johan Bockgård, 2006/07/25
- Re: crash when function-key-map is nil, Richard Stallman, 2006/07/25
- Re: crash when function-key-map is nil, Johan Bockgård, 2006/07/25
- Re: crash when function-key-map is nil, Richard Stallman, 2006/07/26
- Re: crash when function-key-map is nil, Johan Bockgård, 2006/07/26
- Re: crash when function-key-map is nil, Richard Stallman, 2006/07/27
- Re: crash when function-key-map is nil, Nick Roberts, 2006/07/28
- Re: crash when function-key-map is nil, Richard Stallman, 2006/07/31
- Re: crash when function-key-map is nil,
Nick Roberts <=
- Re: crash when function-key-map is nil, Richard Stallman, 2006/07/31
- Re: crash when function-key-map is nil, Nick Roberts, 2006/07/31