Mercurial > emacs
comparison src/buffer.h @ 37753:3384f5e9fc90
(OVERLAY_PLIST): New macro.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Wed, 16 May 2001 12:18:18 +0000 |
| parents | 17cf716e8dc6 |
| children | 4a21ecd55278 |
comparison
equal
deleted
inserted
replaced
| 37752:1085e1cfebaf | 37753:3384f5e9fc90 |
|---|---|
| 1 /* Header file for the buffer manipulation primitives. | 1 /* Header file for the buffer manipulation primitives. |
| 2 Copyright (C) 1985, 86, 93, 94, 95, 97, 1998, 1999, 2000 Free Software Foundation, Inc. | 2 Copyright (C) 1985, 86, 93, 94, 95, 97, 1998, 1999, 2000, 2001 |
| 3 Free Software Foundation, Inc. | |
| 3 | 4 |
| 4 This file is part of GNU Emacs. | 5 This file is part of GNU Emacs. |
| 5 | 6 |
| 6 GNU Emacs is free software; you can redistribute it and/or modify | 7 GNU Emacs is free software; you can redistribute it and/or modify |
| 7 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 822 extern Lisp_Object Vtransient_mark_mode; | 823 extern Lisp_Object Vtransient_mark_mode; |
| 823 | 824 |
| 824 /* Overlays */ | 825 /* Overlays */ |
| 825 | 826 |
| 826 /* 1 if the OV is an overlay object. */ | 827 /* 1 if the OV is an overlay object. */ |
| 828 | |
| 827 #define OVERLAY_VALID(OV) (OVERLAYP (OV)) | 829 #define OVERLAY_VALID(OV) (OVERLAYP (OV)) |
| 828 | 830 |
| 829 /* Return the marker that stands for where OV starts in the buffer. */ | 831 /* Return the marker that stands for where OV starts in the buffer. */ |
| 832 | |
| 830 #define OVERLAY_START(OV) (XOVERLAY (OV)->start) | 833 #define OVERLAY_START(OV) (XOVERLAY (OV)->start) |
| 831 | 834 |
| 832 /* Return the marker that stands for where OV ends in the buffer. */ | 835 /* Return the marker that stands for where OV ends in the buffer. */ |
| 836 | |
| 833 #define OVERLAY_END(OV) (XOVERLAY (OV)->end) | 837 #define OVERLAY_END(OV) (XOVERLAY (OV)->end) |
| 838 | |
| 839 /* Return the plist of overlay OV. */ | |
| 840 | |
| 841 #define OVERLAY_PLIST(OV) XOVERLAY ((OV))->plist | |
| 834 | 842 |
| 835 /* Return the actual buffer position for the marker P. | 843 /* Return the actual buffer position for the marker P. |
| 836 We assume you know which buffer it's pointing into. */ | 844 We assume you know which buffer it's pointing into. */ |
| 837 | 845 |
| 838 #define OVERLAY_POSITION(P) \ | 846 #define OVERLAY_POSITION(P) \ |
