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
045eb8d9
Commit
045eb8d9
authored
Jun 12, 2011
by
Paul Eggert
Browse files
* editfns.c (Ftranslate_region_internal): Omit redundant test.
parent
c1f134b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/ChangeLog
src/ChangeLog
+2
-0
src/editfns.c
src/editfns.c
+2
-5
No files found.
src/ChangeLog
View file @
045eb8d9
2011-06-13 Paul Eggert <eggert@cs.ucla.edu>
* editfns.c (Ftranslate_region_internal): Omit redundant test.
* fns.c (concat): Minor tuning based on overflow analysis.
This doesn't fix any bugs. Use int to hold character, instead
of constantly refetching from Emacs object. Use XFASTINT, not
...
...
src/editfns.c
View file @
045eb8d9
...
...
@@ -3088,14 +3088,11 @@ It returns the number of characters changed. */)
}
else
{
int
c
;
nc
=
oc
;
val
=
CHAR_TABLE_REF
(
table
,
oc
);
if
(
CHARACTERP
(
val
)
&&
(
c
=
XFASTINT
(
val
),
CHAR_VALID_P
(
c
,
0
)))
if
(
CHARACTERP
(
val
))
{
nc
=
c
;
nc
=
XFASTINT
(
val
)
;
str_len
=
CHAR_STRING
(
nc
,
buf
);
str
=
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