aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2011-12-14 02:51:30 -0800
committerPaul Eggert2011-12-14 02:51:30 -0800
commit59815c02506eb39b61e672528ed03885749ba529 (patch)
tree08770ed78fae3dc1a0996250d61e127ebfd135fd /src/coding.c
parent8f50130c565eaf0ad7c49e4ad044c3291ecdfa71 (diff)
parent898169a2d88c3538cdfd41feb0b16267165065bd (diff)
downloademacs-59815c02506eb39b61e672528ed03885749ba529.tar.gz
emacs-59815c02506eb39b61e672528ed03885749ba529.zip
Merge from trunk.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index 74cf232cfb2..a2ea9b302cf 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -8755,6 +8755,7 @@ to the string. */)
8755 } 8755 }
8756 8756
8757 positions = Qnil; 8757 positions = Qnil;
8758 charset_map_loaded = 0;
8758 while (1) 8759 while (1)
8759 { 8760 {
8760 int c; 8761 int c;
@@ -8782,6 +8783,16 @@ to the string. */)
8782 } 8783 }
8783 8784
8784 from++; 8785 from++;
8786 if (charset_map_loaded && NILP (string))
8787 {
8788 p = CHAR_POS_ADDR (from);
8789 pend = CHAR_POS_ADDR (to);
8790 if (from < GPT && to >= GPT)
8791 stop = GPT_ADDR;
8792 else
8793 stop = pend;
8794 charset_map_loaded = 0;
8795 }
8785 } 8796 }
8786 8797
8787 return (NILP (count) ? Fcar (positions) : Fnreverse (positions)); 8798 return (NILP (count) ? Fcar (positions) : Fnreverse (positions));