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
3633e3aa
Commit
3633e3aa
authored
Dec 11, 2011
by
Kenichi Handa
Browse files
coding.c (Funencodable_char_position): Pay attention to the buffer text relocation (Bug#9389).
parent
9a9e9ef0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/coding.c
src/coding.c
+11
-0
No files found.
src/ChangeLog
View file @
3633e3aa
2011-12-11 Kenichi Handa <handa@m17n.org>
* coding.c (Funencodable_char_position): Pay attention to the
buffer text relocation (Bug#9389).
2011-12-10 Jan Djärv <jan.h.d@swipnet.se>
* xterm.c (x_term_init): Move call to gdk_window_add_filter before
...
...
src/coding.c
View file @
3633e3aa
...
...
@@ -8756,6 +8756,7 @@ to the string. */)
}
positions = Qnil;
charset_map_loaded = 0;
while (1)
{
int c;
...
...
@@ -8783,6 +8784,16 @@ to the string. */)
}
from++;
if (charset_map_loaded && NILP (string))
{
p = CHAR_POS_ADDR (from);
pend = CHAR_POS_ADDR (to);
if (from < GPT && to >= GPT)
stop = GPT_ADDR;
else
stop = pend;
charset_map_loaded = 0;
}
}
return (NILP (count) ? Fcar (positions) : Fnreverse (positions));
...
...
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