aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorGregory Heytings2022-07-08 23:31:56 +0200
committerGregory Heytings2022-07-08 23:31:56 +0200
commite31cffb5abfe68b62047532765a2076ac4885475 (patch)
treed0642db75c1bfbbe11e50d8f48511a9f1ea94f5a /src/buffer.h
parent9ea9533f1789ce61daf99b9bd484af3ce2780472 (diff)
downloademacs-e31cffb5abfe68b62047532765a2076ac4885475.tar.gz
emacs-e31cffb5abfe68b62047532765a2076ac4885475.zip
Revert commits 9ea9533f17, c0c4600ece, 7b19ce51fc, 051d2a1e36 and eb6d2fb58d.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 84492737b0e..19faa844e02 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -1120,28 +1120,12 @@ BUFFER_CHECK_INDIRECTION (struct buffer *b)
1120 } 1120 }
1121} 1121}
1122 1122
1123/* Check the state of auto-narrowed buffers. */
1124
1125INLINE bool
1126BUFFER_NEEDS_AUTO_NARROWING_P (struct buffer *b)
1127{
1128 return EQ (BVAR (b, auto_narrow__narrowing_state), Qneeded);
1129}
1130
1131INLINE bool 1123INLINE bool
1132BUFFER_AUTO_NARROWED_P (struct buffer *b) 1124BUFFER_AUTO_NARROWED_P (struct buffer *b)
1133{ 1125{
1134 return EQ (BVAR (b, auto_narrow__narrowing_state), Qauto); 1126 return EQ (BVAR (b, auto_narrow__narrowing_state), Qauto);
1135} 1127}
1136 1128
1137INLINE bool
1138BUFFER_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
1145/* This structure holds the default values of the buffer-local variables 1129/* This structure holds the default values of the buffer-local variables
1146 that have special slots in each buffer. 1130 that have special slots in each buffer.
1147 The default value occupies the same slot in this structure 1131 The default value occupies the same slot in this structure