diff options
| author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-01-11 17:25:10 +0400 |
|---|---|---|
| committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-01-11 17:25:10 +0400 |
| commit | 6020559a093bf243be6cd6a866933b4368ea67cc (patch) | |
| tree | b722d61837c6f76447a76f58ac975f4d327ce1e4 /src/lisp.h | |
| parent | 30818a239e7b1222ec776603aa29786638efbb47 (diff) | |
| download | emacs-6020559a093bf243be6cd6a866933b4368ea67cc.tar.gz | |
Avoid unnecessary byte position calculation for the gap movement.
Since all users of move_gap do CHAR_TO_BYTE for other purposes
anyway, all of them should use move_gap_both instead.
* lisp.h (move_gap): Remove prototype.
* insdel.c (move_gap): Remove.
(move_gap_both): Add eassert.
* editfns.c (Ftranspose_regions): Tweak to use move_gap_both.
* xml.c (parse_region): Likewise.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h index 3200127881b..22e0a188e4b 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -2775,7 +2775,6 @@ extern void syms_of_image (void); /* Defined in insdel.c. */ extern Lisp_Object Qinhibit_modification_hooks; -extern void move_gap (ptrdiff_t); extern void move_gap_both (ptrdiff_t, ptrdiff_t); extern _Noreturn void buffer_overflow (void); extern void make_gap (ptrdiff_t); |
