[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 91a62c4: * src/buffer.h (DECODE_POSITION): Remove;
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 91a62c4: * src/buffer.h (DECODE_POSITION): Remove; unused. |
Date: |
Wed, 22 Aug 2018 01:03:11 -0400 (EDT) |
branch: master
commit 91a62c4b21cdc60905a4320f2c8fd3b1276a23a0
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
* src/buffer.h (DECODE_POSITION): Remove; unused.
---
src/buffer.h | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/src/buffer.h b/src/buffer.h
index c624750..4ea7fa6 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -288,28 +288,6 @@ extern void enlarge_buffer_text (struct buffer *,
ptrdiff_t);
or convert between a byte position and an address.
These macros do not check that the position is in range. */
-/* Access a Lisp position value in POS,
- and store the charpos in CHARPOS and the bytepos in BYTEPOS. */
-
-#define DECODE_POSITION(charpos, bytepos, pos) \
- do \
- { \
- Lisp_Object __pos = (pos); \
- if (FIXED_OR_FLOATP (__pos))
\
- { \
- charpos = __pos; \
- bytepos = buf_charpos_to_bytepos (current_buffer, __pos); \
- } \
- else if (MARKERP (__pos))
\
- { \
- charpos = marker_position (__pos); \
- bytepos = marker_byte_position (__pos); \
- } \
- else \
- wrong_type_argument (Qinteger_or_marker_p, __pos); \
- } \
- while (false)
-
/* Maximum number of bytes in a buffer.
A buffer cannot contain more bytes than a 1-origin fixnum can represent,
nor can it be so large that C pointer arithmetic stops working.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 91a62c4: * src/buffer.h (DECODE_POSITION): Remove; unused.,
Paul Eggert <=