diff options
| author | Eli Zaretskii | 2012-09-25 09:01:52 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-09-25 09:01:52 +0200 |
| commit | 54d629be4a0dce166762691eba8fd50930225c4f (patch) | |
| tree | 233c38fbcda57065cff4b84b8bdf84b8decddd32 /src | |
| parent | 863666ebae563a9a83dd8bce54227dfd6f66987d (diff) | |
| download | emacs-54d629be4a0dce166762691eba8fd50930225c4f.tar.gz emacs-54d629be4a0dce166762691eba8fd50930225c4f.zip | |
Don't call MAYBE_UNIFY_CHAR while processing buffers and strings.
src/character.c (char_string, string_char): Remove calls to
MAYBE_UNIFY_CHAR. See the discussion starting at
http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00433.html
for the details.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/character.c | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0f59d6088a5..ca9ca808c77 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-09-25 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * character.c (char_string, string_char): Remove calls to | ||
| 4 | MAYBE_UNIFY_CHAR. See the discussion starting at | ||
| 5 | http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00433.html | ||
| 6 | for the details. | ||
| 7 | |||
| 1 | 2012-09-25 Chong Yidong <cyd@gnu.org> | 8 | 2012-09-25 Chong Yidong <cyd@gnu.org> |
| 2 | 9 | ||
| 3 | * xdisp.c (mode_line_inverse_video): Delete obsolete variable. | 10 | * xdisp.c (mode_line_inverse_video): Delete obsolete variable. |
diff --git a/src/character.c b/src/character.c index def1ad090fd..5808d48a235 100644 --- a/src/character.c +++ b/src/character.c | |||
| @@ -126,8 +126,6 @@ char_string (unsigned int c, unsigned char *p) | |||
| 126 | c &= ~CHAR_MODIFIER_MASK; | 126 | c &= ~CHAR_MODIFIER_MASK; |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | MAYBE_UNIFY_CHAR (c); | ||
| 130 | |||
| 131 | if (c <= MAX_3_BYTE_CHAR) | 129 | if (c <= MAX_3_BYTE_CHAR) |
| 132 | { | 130 | { |
| 133 | bytes = CHAR_STRING (c, p); | 131 | bytes = CHAR_STRING (c, p); |
| @@ -195,8 +193,6 @@ string_char (const unsigned char *p, const unsigned char **advanced, int *len) | |||
| 195 | p += 5; | 193 | p += 5; |
| 196 | } | 194 | } |
| 197 | 195 | ||
| 198 | MAYBE_UNIFY_CHAR (c); | ||
| 199 | |||
| 200 | if (len) | 196 | if (len) |
| 201 | *len = p - saved_p; | 197 | *len = p - saved_p; |
| 202 | if (advanced) | 198 | if (advanced) |