diff options
| author | Dmitry Antipov | 2012-12-20 20:09:05 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-12-20 20:09:05 +0400 |
| commit | 13002885275be0499d0131d4d1823d5e5a6a1be6 (patch) | |
| tree | 533c02f80d9a86b08aef35c2499e948ef0236f17 /src/ChangeLog | |
| parent | 99e9311c311ec85dfb8a56d560e3d2f27abc430d (diff) | |
| download | emacs-13002885275be0499d0131d4d1823d5e5a6a1be6.tar.gz emacs-13002885275be0499d0131d4d1823d5e5a6a1be6.zip | |
Avoid calls to CHAR_TO_BYTE if byte position is known.
* editfns.c (make_buffer_string_both): Use move_gap_both.
(Fbuffer_string): Use make_buffer_string_both.
* marker.c (buf_charpos_to_bytepos): Convert to eassert.
Adjust comment.
(buf_bytepos_to_charpos): Likewise.
(charpos_to_bytepos): Remove.
* fileio.c (Finsert_file_contents): Use move_gap_both.
* search.c (Freplace_match): Likewise.
* process.c (process_send_region): Likewise. Use convenient
names for byte positions.
* lisp.h (charpos_to_bytepos): Remove prototype.
* indent.c (scan_for_column): Use CHAR_TO_BYTE.
* insdel.c (move_gap): Likewise.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7d1b78a5102..f9c629c1c56 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2012-12-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | Avoid calls to CHAR_TO_BYTE if byte position is known. | ||
| 4 | * editfns.c (make_buffer_string_both): Use move_gap_both. | ||
| 5 | (Fbuffer_string): Use make_buffer_string_both. | ||
| 6 | * marker.c (buf_charpos_to_bytepos): Convert to eassert. | ||
| 7 | Adjust comment. | ||
| 8 | (buf_bytepos_to_charpos): Likewise. | ||
| 9 | (charpos_to_bytepos): Remove. | ||
| 10 | * fileio.c (Finsert_file_contents): Use move_gap_both. | ||
| 11 | * search.c (Freplace_match): Likewise. | ||
| 12 | * process.c (process_send_region): Likewise. Use convenient | ||
| 13 | names for byte positions. | ||
| 14 | * lisp.h (charpos_to_bytepos): Remove prototype. | ||
| 15 | * indent.c (scan_for_column): Use CHAR_TO_BYTE. | ||
| 16 | * insdel.c (move_gap): Likewise. | ||
| 17 | |||
| 1 | 2012-12-20 Paul Eggert <eggert@cs.ucla.edu> | 18 | 2012-12-20 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 19 | ||
| 3 | * xdisp.c (redisplay_internal): Remove now-unused local. | 20 | * xdisp.c (redisplay_internal): Remove now-unused local. |