diff options
| author | Dmitry Antipov | 2013-03-07 08:42:59 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-03-07 08:42:59 +0400 |
| commit | c54aa1668ec5c2626b3f9a84513b00d90dcf24c1 (patch) | |
| tree | 0277b558a7de2dece38c62056884d4bfdec8b2b3 /src/ChangeLog | |
| parent | 3de717bdb483f7c6e23cd7701ee4ebd77eccb8b9 (diff) | |
| download | emacs-c54aa1668ec5c2626b3f9a84513b00d90dcf24c1.tar.gz emacs-c54aa1668ec5c2626b3f9a84513b00d90dcf24c1.zip | |
Avoid character to byte conversions in motion subroutines.
* indent.h (compute_motion, vmotion): Add byte position argument.
* indent.c (compute_motion): Use it and avoid CHAR_TO_BYTE.
Add eassert.
(Fcompute_motion): Break long line. Adjust call to compute_motion.
Use list5 for return value.
(vmotion): Use byte position argument and avoid call to CHAR_TO_BYTE.
Adjust comments, style and calls to compute_motion.
(Fvertical_motion): Adjust call to vmotion.
* window.c (Fdelete_other_windows_internal): Record window start
byte position and adjust call to vmotion.
(window_scroll_line_based): Likewise with call to compute_motion.
Use SET_PT_BOTH.
(Frecenter): Adjust calls to vmotion.
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 eee20d998dd..bc106df0cb2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,22 @@ | |||
| 1 | 2013-03-07 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2013-03-07 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | Avoid character to byte conversions in motion subroutines. | ||
| 4 | * indent.h (compute_motion, vmotion): Add byte position argument. | ||
| 5 | * indent.c (compute_motion): Use it and avoid CHAR_TO_BYTE. | ||
| 6 | Add eassert. | ||
| 7 | (Fcompute_motion): Break long line. Adjust call to compute_motion. | ||
| 8 | Use list5 for return value. | ||
| 9 | (vmotion): Use byte position argument and avoid call to CHAR_TO_BYTE. | ||
| 10 | Adjust comments, style and calls to compute_motion. | ||
| 11 | (Fvertical_motion): Adjust call to vmotion. | ||
| 12 | * window.c (Fdelete_other_windows_internal): Record window start | ||
| 13 | byte position and adjust call to vmotion. | ||
| 14 | (window_scroll_line_based): Likewise with call to compute_motion. | ||
| 15 | Use SET_PT_BOTH. | ||
| 16 | (Frecenter): Adjust calls to vmotion. | ||
| 17 | |||
| 18 | 2013-03-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 19 | |||
| 3 | * lisp.h (list2i, list3i): New functions. | 20 | * lisp.h (list2i, list3i): New functions. |
| 4 | (list4i): Move from window.c and make LISP_INLINE. | 21 | (list4i): Move from window.c and make LISP_INLINE. |
| 5 | * editfns.c (make_lisp_time): | 22 | * editfns.c (make_lisp_time): |