diff options
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 3283fd4dfe4..d53321306db 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6025,7 +6025,7 @@ parse_modifiers_uncached (Lisp_Object symbol, int *modifier_end) | |||
| 6025 | 6025 | ||
| 6026 | #define MULTI_LETTER_MOD(BIT, NAME, LEN) \ | 6026 | #define MULTI_LETTER_MOD(BIT, NAME, LEN) \ |
| 6027 | if (i + LEN + 1 <= SBYTES (name) \ | 6027 | if (i + LEN + 1 <= SBYTES (name) \ |
| 6028 | && ! strncmp (SDATA (name) + i, NAME, LEN)) \ | 6028 | && ! strncmp (SSDATA (name) + i, NAME, LEN)) \ |
| 6029 | { \ | 6029 | { \ |
| 6030 | this_mod_end = i + LEN; \ | 6030 | this_mod_end = i + LEN; \ |
| 6031 | this_mod = BIT; \ | 6031 | this_mod = BIT; \ |
| @@ -6063,13 +6063,13 @@ parse_modifiers_uncached (Lisp_Object symbol, int *modifier_end) | |||
| 6063 | if (! (modifiers & (down_modifier | drag_modifier | 6063 | if (! (modifiers & (down_modifier | drag_modifier |
| 6064 | | double_modifier | triple_modifier)) | 6064 | | double_modifier | triple_modifier)) |
| 6065 | && i + 7 == SBYTES (name) | 6065 | && i + 7 == SBYTES (name) |
| 6066 | && strncmp (SDATA (name) + i, "mouse-", 6) == 0 | 6066 | && strncmp (SSDATA (name) + i, "mouse-", 6) == 0 |
| 6067 | && ('0' <= SREF (name, i + 6) && SREF (name, i + 6) <= '9')) | 6067 | && ('0' <= SREF (name, i + 6) && SREF (name, i + 6) <= '9')) |
| 6068 | modifiers |= click_modifier; | 6068 | modifiers |= click_modifier; |
| 6069 | 6069 | ||
| 6070 | if (! (modifiers & (double_modifier | triple_modifier)) | 6070 | if (! (modifiers & (double_modifier | triple_modifier)) |
| 6071 | && i + 6 < SBYTES (name) | 6071 | && i + 6 < SBYTES (name) |
| 6072 | && strncmp (SDATA (name) + i, "wheel-", 6) == 0) | 6072 | && strncmp (SSDATA (name) + i, "wheel-", 6) == 0) |
| 6073 | modifiers |= click_modifier; | 6073 | modifiers |= click_modifier; |
| 6074 | 6074 | ||
| 6075 | if (modifier_end) | 6075 | if (modifier_end) |
| @@ -6187,7 +6187,7 @@ parse_modifiers (Lisp_Object symbol) | |||
| 6187 | Lisp_Object unmodified; | 6187 | Lisp_Object unmodified; |
| 6188 | Lisp_Object mask; | 6188 | Lisp_Object mask; |
| 6189 | 6189 | ||
| 6190 | unmodified = Fintern (make_string (SDATA (SYMBOL_NAME (symbol)) + end, | 6190 | unmodified = Fintern (make_string (SSDATA (SYMBOL_NAME (symbol)) + end, |
| 6191 | SBYTES (SYMBOL_NAME (symbol)) - end), | 6191 | SBYTES (SYMBOL_NAME (symbol)) - end), |
| 6192 | Qnil); | 6192 | Qnil); |
| 6193 | 6193 | ||
| @@ -6255,7 +6255,7 @@ apply_modifiers (int modifiers, Lisp_Object base) | |||
| 6255 | { | 6255 | { |
| 6256 | /* We have to create the symbol ourselves. */ | 6256 | /* We have to create the symbol ourselves. */ |
| 6257 | new_symbol = apply_modifiers_uncached (modifiers, | 6257 | new_symbol = apply_modifiers_uncached (modifiers, |
| 6258 | SDATA (SYMBOL_NAME (base)), | 6258 | SSDATA (SYMBOL_NAME (base)), |
| 6259 | SCHARS (SYMBOL_NAME (base)), | 6259 | SCHARS (SYMBOL_NAME (base)), |
| 6260 | SBYTES (SYMBOL_NAME (base))); | 6260 | SBYTES (SYMBOL_NAME (base))); |
| 6261 | 6261 | ||
| @@ -8084,7 +8084,7 @@ parse_tool_bar_item (Lisp_Object key, Lisp_Object item) | |||
| 8084 | item = XCDR (item); | 8084 | item = XCDR (item); |
| 8085 | if (!CONSP (item)) | 8085 | if (!CONSP (item)) |
| 8086 | { | 8086 | { |
| 8087 | if (menu_separator_name_p (SDATA (caption))) | 8087 | if (menu_separator_name_p (SSDATA (caption))) |
| 8088 | { | 8088 | { |
| 8089 | PROP (TOOL_BAR_ITEM_TYPE) = Qt; | 8089 | PROP (TOOL_BAR_ITEM_TYPE) = Qt; |
| 8090 | #if !defined (USE_GTK) && !defined (HAVE_NS) | 8090 | #if !defined (USE_GTK) && !defined (HAVE_NS) |
| @@ -8439,7 +8439,7 @@ read_char_minibuf_menu_prompt (int commandflag, int nmaps, Lisp_Object *maps) | |||
| 8439 | menu = read_char_minibuf_menu_text; | 8439 | menu = read_char_minibuf_menu_text; |
| 8440 | 8440 | ||
| 8441 | /* Prompt string always starts with map's prompt, and a space. */ | 8441 | /* Prompt string always starts with map's prompt, and a space. */ |
| 8442 | strcpy (menu, SDATA (name)); | 8442 | strcpy (menu, SSDATA (name)); |
| 8443 | nlength = SBYTES (name); | 8443 | nlength = SBYTES (name); |
| 8444 | menu[nlength++] = ':'; | 8444 | menu[nlength++] = ':'; |
| 8445 | menu[nlength++] = ' '; | 8445 | menu[nlength++] = ' '; |
| @@ -10562,7 +10562,7 @@ If FILE is nil, close any open dribble file. */) | |||
| 10562 | if (!NILP (file)) | 10562 | if (!NILP (file)) |
| 10563 | { | 10563 | { |
| 10564 | file = Fexpand_file_name (file, Qnil); | 10564 | file = Fexpand_file_name (file, Qnil); |
| 10565 | dribble = fopen (SDATA (file), "w"); | 10565 | dribble = fopen (SSDATA (file), "w"); |
| 10566 | if (dribble == 0) | 10566 | if (dribble == 0) |
| 10567 | report_file_error ("Opening dribble", Fcons (file, Qnil)); | 10567 | report_file_error ("Opening dribble", Fcons (file, Qnil)); |
| 10568 | } | 10568 | } |