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
d5998e03
Commit
d5998e03
authored
Nov 10, 2008
by
Kenichi Handa
Browse files
(Fget_byte): Fix and make it faster for unibyte target.
parent
47264a97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/character.c
src/character.c
+4
-0
No files found.
src/ChangeLog
View file @
d5998e03
2008-11-10 Kenichi Handa <handa@m17n.org>
* character.c (Fget_byte): Fix and make it faster for unibyte
target.
2008-11-08 Chong Yidong <cyd@stupidchicken.com>
* dired.c (file_name_completion): If completion_ignore_case is
...
...
src/character.c
View file @
d5998e03
...
...
@@ -1058,6 +1058,8 @@ character is not ASCII nor 8-bit character, an error is signalled. */)
pos
=
XFASTINT
(
position
);
p
=
CHAR_POS_ADDR
(
pos
);
}
if
(
NILP
(
current_buffer
->
enable_multibyte_characters
))
return
make_number
(
*
p
);
}
else
{
...
...
@@ -1074,6 +1076,8 @@ character is not ASCII nor 8-bit character, an error is signalled. */)
pos
=
XFASTINT
(
position
);
p
=
SDATA
(
string
)
+
string_char_to_byte
(
string
,
pos
);
}
if
(
!
STRING_MULTIBYTE
(
string
))
return
make_number
(
*
p
);
}
c
=
STRING_CHAR
(
p
,
0
);
if
(
CHAR_BYTE8_P
(
c
))
...
...
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