diff options
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h index 19faa844e02..84492737b0e 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -1120,12 +1120,28 @@ BUFFER_CHECK_INDIRECTION (struct buffer *b) | |||
| 1120 | } | 1120 | } |
| 1121 | } | 1121 | } |
| 1122 | 1122 | ||
| 1123 | /* Check the state of auto-narrowed buffers. */ | ||
| 1124 | |||
| 1125 | INLINE bool | ||
| 1126 | BUFFER_NEEDS_AUTO_NARROWING_P (struct buffer *b) | ||
| 1127 | { | ||
| 1128 | return EQ (BVAR (b, auto_narrow__narrowing_state), Qneeded); | ||
| 1129 | } | ||
| 1130 | |||
| 1123 | INLINE bool | 1131 | INLINE bool |
| 1124 | BUFFER_AUTO_NARROWED_P (struct buffer *b) | 1132 | BUFFER_AUTO_NARROWED_P (struct buffer *b) |
| 1125 | { | 1133 | { |
| 1126 | return EQ (BVAR (b, auto_narrow__narrowing_state), Qauto); | 1134 | return EQ (BVAR (b, auto_narrow__narrowing_state), Qauto); |
| 1127 | } | 1135 | } |
| 1128 | 1136 | ||
| 1137 | INLINE bool | ||
| 1138 | BUFFER_AUTO_NARROWED_NON_NARROWED_P (struct buffer *b) | ||
| 1139 | { | ||
| 1140 | return BUFFER_AUTO_NARROWED_P (b) | ||
| 1141 | && BUF_BEG (b) == BUF_BEGV (b) | ||
| 1142 | && BUF_Z (b) == BUF_ZV (b); | ||
| 1143 | } | ||
| 1144 | |||
| 1129 | /* This structure holds the default values of the buffer-local variables | 1145 | /* This structure holds the default values of the buffer-local variables |
| 1130 | that have special slots in each buffer. | 1146 | that have special slots in each buffer. |
| 1131 | The default value occupies the same slot in this structure | 1147 | The default value occupies the same slot in this structure |