Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
abbd3d23
Commit
abbd3d23
authored
Jun 12, 2011
by
Paul Eggert
Browse files
* editfns.c (Ftranslate_region_internal): Use int, not EMACS_INT
for characters.
parent
684a03ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/ChangeLog
src/ChangeLog
+3
-0
src/editfns.c
src/editfns.c
+3
-5
No files found.
src/ChangeLog
View file @
abbd3d23
2011-06-13 Paul Eggert <eggert@cs.ucla.edu>
* editfns.c (Ftranslate_region_internal): Use int, not EMACS_INT
for characters.
* doc.c (get_doc_string): Omit (unsigned)c that mishandled negatives.
* data.c (Faset): If ARRAY is a string, check that NEWELT is a char.
...
...
src/editfns.c
View file @
abbd3d23
...
...
@@ -2212,9 +2212,7 @@ general_insert_function (void (*insert_func)
len = CHAR_STRING (c, str);
else
{
str[0] = (ASCII_CHAR_P (c)
? c
: multibyte_char_to_unibyte (c));
str[0] = ASCII_CHAR_P (c) ? c : multibyte_char_to_unibyte (c);
len = 1;
}
(*insert_func) ((char *) str, len);
...
...
@@ -3090,12 +3088,12 @@ It returns the number of characters changed. */)
}
else
{
EMACS_INT
c;
int
c;
nc = oc;
val = CHAR_TABLE_REF (table, oc);
if (CHARACTERP (val)
&& (c = XINT (val), CHAR_VALID_P (c, 0)))
&& (c = X
FAST
INT (val), CHAR_VALID_P (c, 0)))
{
nc = c;
str_len = CHAR_STRING (nc, buf);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment