diff options
| author | Andreas Schwab | 2004-06-13 15:35:03 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2004-06-13 15:35:03 +0000 |
| commit | cea5d0d4234e3f208023e29873fdb199e0414749 (patch) | |
| tree | 6a6d04f24a1dfca5dcedf7c03920614ad3a52b62 /src | |
| parent | 474f84d92535b4caf163e0c7c8b0717c0ab4126e (diff) | |
| download | emacs-cea5d0d4234e3f208023e29873fdb199e0414749.tar.gz emacs-cea5d0d4234e3f208023e29873fdb199e0414749.zip | |
(cancel_hourglass_unwind): Return a value.
(modify_event_symbol): Always use %ld for printing EMACS_INT.
(Fexecute_extended_command): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 18 | ||||
| -rw-r--r-- | src/keyboard.c | 27 |
2 files changed, 23 insertions, 22 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c515a13d605..37719505adf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,23 @@ | |||
| 1 | 2004-06-13 Andreas Schwab <schwab@suse.de> | 1 | 2004-06-13 Andreas Schwab <schwab@suse.de> |
| 2 | 2 | ||
| 3 | * print.c (print_object): Always use %ld for printing EMACS_INT. | ||
| 4 | |||
| 5 | * keyboard.c (cancel_hourglass_unwind): Return a value. | ||
| 6 | (modify_event_symbol): Always use %ld for printing EMACS_INT. | ||
| 7 | (Fexecute_extended_command): Likewise. | ||
| 8 | |||
| 9 | * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to | ||
| 10 | avoid clashes. | ||
| 11 | (SYNTAX): Likewise. | ||
| 12 | (SYNTAX_WITH_FLAGS): Likewise. | ||
| 13 | (SYNTAX_MATCH): Likewise. | ||
| 14 | |||
| 15 | * syntax.c (char_quoted): Avoid warning about undefined operation. | ||
| 16 | (find_defun_start): Likewise. | ||
| 17 | (scan_lists): Likewise. | ||
| 18 | (INC_FROM): Likewise. | ||
| 19 | (scan_sexps_forward): Likewise. | ||
| 20 | |||
| 3 | * image.c: Include <ctype.h>. | 21 | * image.c: Include <ctype.h>. |
| 4 | 22 | ||
| 5 | * xfaces.c (face_attr_equal_p): Declare parameters. | 23 | * xfaces.c (face_attr_equal_p): Declare parameters. |
diff --git a/src/keyboard.c b/src/keyboard.c index 042c3108ca8..86642a99552 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1348,6 +1348,7 @@ cancel_hourglass_unwind (arg) | |||
| 1348 | Lisp_Object arg; | 1348 | Lisp_Object arg; |
| 1349 | { | 1349 | { |
| 1350 | cancel_hourglass (); | 1350 | cancel_hourglass (); |
| 1351 | return Qnil; | ||
| 1351 | } | 1352 | } |
| 1352 | #endif | 1353 | #endif |
| 1353 | 1354 | ||
| @@ -6256,12 +6257,8 @@ modify_event_symbol (symbol_num, modifiers, symbol_kind, name_alist_or_stem, | |||
| 6256 | { | 6257 | { |
| 6257 | int len = SBYTES (name_alist_or_stem); | 6258 | int len = SBYTES (name_alist_or_stem); |
| 6258 | char *buf = (char *) alloca (len + 50); | 6259 | char *buf = (char *) alloca (len + 50); |
| 6259 | if (sizeof (int) == sizeof (EMACS_INT)) | 6260 | sprintf (buf, "%s-%ld", SDATA (name_alist_or_stem), |
| 6260 | sprintf (buf, "%s-%d", SDATA (name_alist_or_stem), | 6261 | (long) XINT (symbol_int) + 1); |
| 6261 | XINT (symbol_int) + 1); | ||
| 6262 | else if (sizeof (long) == sizeof (EMACS_INT)) | ||
| 6263 | sprintf (buf, "%s-%ld", SDATA (name_alist_or_stem), | ||
| 6264 | XINT (symbol_int) + 1); | ||
| 6265 | value = intern (buf); | 6262 | value = intern (buf); |
| 6266 | } | 6263 | } |
| 6267 | else if (name_table != 0 && name_table[symbol_num]) | 6264 | else if (name_table != 0 && name_table[symbol_num]) |
| @@ -9714,23 +9711,9 @@ DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_ | |||
| 9714 | else if (CONSP (prefixarg) && XINT (XCAR (prefixarg)) == 4) | 9711 | else if (CONSP (prefixarg) && XINT (XCAR (prefixarg)) == 4) |
| 9715 | strcpy (buf, "C-u "); | 9712 | strcpy (buf, "C-u "); |
| 9716 | else if (CONSP (prefixarg) && INTEGERP (XCAR (prefixarg))) | 9713 | else if (CONSP (prefixarg) && INTEGERP (XCAR (prefixarg))) |
| 9717 | { | 9714 | sprintf (buf, "%ld ", (long) XINT (XCAR (prefixarg))); |
| 9718 | if (sizeof (int) == sizeof (EMACS_INT)) | ||
| 9719 | sprintf (buf, "%d ", XINT (XCAR (prefixarg))); | ||
| 9720 | else if (sizeof (long) == sizeof (EMACS_INT)) | ||
| 9721 | sprintf (buf, "%ld ", (long) XINT (XCAR (prefixarg))); | ||
| 9722 | else | ||
| 9723 | abort (); | ||
| 9724 | } | ||
| 9725 | else if (INTEGERP (prefixarg)) | 9715 | else if (INTEGERP (prefixarg)) |
| 9726 | { | 9716 | sprintf (buf, "%ld ", (long) XINT (prefixarg)); |
| 9727 | if (sizeof (int) == sizeof (EMACS_INT)) | ||
| 9728 | sprintf (buf, "%d ", XINT (prefixarg)); | ||
| 9729 | else if (sizeof (long) == sizeof (EMACS_INT)) | ||
| 9730 | sprintf (buf, "%ld ", (long) XINT (prefixarg)); | ||
| 9731 | else | ||
| 9732 | abort (); | ||
| 9733 | } | ||
| 9734 | 9717 | ||
| 9735 | /* This isn't strictly correct if execute-extended-command | 9718 | /* This isn't strictly correct if execute-extended-command |
| 9736 | is bound to anything else. Perhaps it should use | 9719 | is bound to anything else. Perhaps it should use |