diff options
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h index 5c09f30c40b..34d92fd61c7 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -53,6 +53,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 53 | /* Character position of end of buffer. */ | 53 | /* Character position of end of buffer. */ |
| 54 | #define Z (current_buffer->text.z) | 54 | #define Z (current_buffer->text.z) |
| 55 | 55 | ||
| 56 | /* Is the current buffer narrowed? */ | ||
| 57 | #define NARROWED ((BEGV != BEG) || (ZV != Z)) | ||
| 58 | |||
| 56 | /* Modification count. */ | 59 | /* Modification count. */ |
| 57 | #define MODIFF (current_buffer->text.modiff) | 60 | #define MODIFF (current_buffer->text.modiff) |
| 58 | 61 | ||
| @@ -98,6 +101,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 98 | /* Character position of end of buffer. */ | 101 | /* Character position of end of buffer. */ |
| 99 | #define BUF_Z(buf) ((buf)->text.z) | 102 | #define BUF_Z(buf) ((buf)->text.z) |
| 100 | 103 | ||
| 104 | /* Is this buffer narrowed? */ | ||
| 105 | #define BUF_NARROWED(buf) ((BUF_BEGV(buf) != BUF_BEG(buf)) \ | ||
| 106 | || (BUF_ZV(buf) != BUF_Z(buf))) | ||
| 107 | |||
| 101 | /* Modification count. */ | 108 | /* Modification count. */ |
| 102 | #define BUF_MODIFF(buf) ((buf)->text.modiff) | 109 | #define BUF_MODIFF(buf) ((buf)->text.modiff) |
| 103 | 110 | ||