Mercurial > emacs
comparison src/keymap.c @ 46470:00b425333e0d
(Fdescribe_buffer_bindings): Use const for pointer to
lisp string data.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Tue, 16 Jul 2002 19:48:37 +0000 |
parents | 40db0673e6f0 |
children | 435da46787dd |
comparison
equal
deleted
inserted
replaced
46469:19db29628f09 | 46470:00b425333e0d |
---|---|
2657 | 2657 |
2658 /* Report on alternates for keys. */ | 2658 /* Report on alternates for keys. */ |
2659 if (STRINGP (Vkeyboard_translate_table) && !NILP (prefix)) | 2659 if (STRINGP (Vkeyboard_translate_table) && !NILP (prefix)) |
2660 { | 2660 { |
2661 int c; | 2661 int c; |
2662 unsigned char *translate = SDATA (Vkeyboard_translate_table); | 2662 const unsigned char *translate = SDATA (Vkeyboard_translate_table); |
2663 int translate_len = SCHARS (Vkeyboard_translate_table); | 2663 int translate_len = SCHARS (Vkeyboard_translate_table); |
2664 | 2664 |
2665 for (c = 0; c < translate_len; c++) | 2665 for (c = 0; c < translate_len; c++) |
2666 if (translate[c] != c) | 2666 if (translate[c] != c) |
2667 { | 2667 { |