aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/buffer.h b/src/buffer.h
index c6247506d7a..4ea7fa627e0 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -288,28 +288,6 @@ extern void enlarge_buffer_text (struct buffer *, ptrdiff_t);
288 or convert between a byte position and an address. 288 or convert between a byte position and an address.
289 These macros do not check that the position is in range. */ 289 These macros do not check that the position is in range. */
290 290
291/* Access a Lisp position value in POS,
292 and store the charpos in CHARPOS and the bytepos in BYTEPOS. */
293
294#define DECODE_POSITION(charpos, bytepos, pos) \
295 do \
296 { \
297 Lisp_Object __pos = (pos); \
298 if (FIXED_OR_FLOATP (__pos)) \
299 { \
300 charpos = __pos; \
301 bytepos = buf_charpos_to_bytepos (current_buffer, __pos); \
302 } \
303 else if (MARKERP (__pos)) \
304 { \
305 charpos = marker_position (__pos); \
306 bytepos = marker_byte_position (__pos); \
307 } \
308 else \
309 wrong_type_argument (Qinteger_or_marker_p, __pos); \
310 } \
311 while (false)
312
313/* Maximum number of bytes in a buffer. 291/* Maximum number of bytes in a buffer.
314 A buffer cannot contain more bytes than a 1-origin fixnum can represent, 292 A buffer cannot contain more bytes than a 1-origin fixnum can represent,
315 nor can it be so large that C pointer arithmetic stops working. 293 nor can it be so large that C pointer arithmetic stops working.