diff options
| author | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
| commit | cafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch) | |
| tree | 7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /src/marker.c | |
| parent | a08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff) | |
| parent | 4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff) | |
| download | emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip | |
Merge from trunk
Diffstat (limited to 'src/marker.c')
| -rw-r--r-- | src/marker.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/marker.c b/src/marker.c index 72c564f420f..7d461099140 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -257,9 +257,10 @@ verify_bytepos (EMACS_INT charpos) | |||
| 257 | return below_byte; | 257 | return below_byte; |
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | /* bytepos_to_charpos returns the char position corresponding to BYTEPOS. */ | 260 | /* buf_bytepos_to_charpos returns the char position corresponding to |
| 261 | BYTEPOS. */ | ||
| 261 | 262 | ||
| 262 | /* This macro is a subroutine of bytepos_to_charpos. | 263 | /* This macro is a subroutine of buf_bytepos_to_charpos. |
| 263 | It is used when BYTEPOS is actually the byte position. */ | 264 | It is used when BYTEPOS is actually the byte position. */ |
| 264 | 265 | ||
| 265 | #define CONSIDER(BYTEPOS, CHARPOS) \ | 266 | #define CONSIDER(BYTEPOS, CHARPOS) \ |
| @@ -303,12 +304,6 @@ verify_bytepos (EMACS_INT charpos) | |||
| 303 | } | 304 | } |
| 304 | 305 | ||
| 305 | EMACS_INT | 306 | EMACS_INT |
| 306 | bytepos_to_charpos (EMACS_INT bytepos) | ||
| 307 | { | ||
| 308 | return buf_bytepos_to_charpos (current_buffer, bytepos); | ||
| 309 | } | ||
| 310 | |||
| 311 | EMACS_INT | ||
| 312 | buf_bytepos_to_charpos (struct buffer *b, EMACS_INT bytepos) | 307 | buf_bytepos_to_charpos (struct buffer *b, EMACS_INT bytepos) |
| 313 | { | 308 | { |
| 314 | struct Lisp_Marker *tail; | 309 | struct Lisp_Marker *tail; |
| @@ -896,4 +891,3 @@ syms_of_marker (void) | |||
| 896 | doc: /* Non-nil enables debugging checks in byte/char position conversions. */); | 891 | doc: /* Non-nil enables debugging checks in byte/char position conversions. */); |
| 897 | byte_debug_flag = 0; | 892 | byte_debug_flag = 0; |
| 898 | } | 893 | } |
| 899 | |||