diff options
| author | Dmitry Antipov | 2012-08-07 17:37:21 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-07 17:37:21 +0400 |
| commit | c644523bd8a23e518c91b61a1b8520e866b715b9 (patch) | |
| tree | 60fae47e02ad6c87b5e657110606255e849ecf77 /src/buffer.h | |
| parent | 6a3d20cc46da1e59f230923056b6b351acb097b9 (diff) | |
| download | emacs-c644523bd8a23e518c91b61a1b8520e866b715b9.tar.gz emacs-c644523bd8a23e518c91b61a1b8520e866b715b9.zip | |
Revert and cleanup Lisp_Cons, Lisp_Misc and Lisp_Symbol things.
* src/lisp.h (struct Lisp_Symbol): Change xname to meaningful
name since all xname users are fixed long time ago. Do not use
INTERNAL_FIELD.
(set_symbol_name, set_symbol_function, set_symbol_plist):
(set_symbol_next, set_overlay_plist): New function.
(struct Lisp_Cons): Do not use INTERNAL_FIELD.
(struct Lisp_Overlay): Likewise.
(CVAR, MVAR, SVAR): Remove.
* src/alloc.c, src/buffer.c, src/buffer.h, src/bytecode.c:
* src/cmds.c, src/data.c, src/doc.c, src/eval.c, src/fns.c:
* src/keyboard.c, src/lread.c, src/nsselect.m, src/xterm.c:
Adjust users.
* src/.gdbinit: Change to use name field of struct Lisp_Symbol
where appropriate.
* admin/coccinelle/overlay.cocci, admin/coccinelle/symbol.cocci:
Remove.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.h b/src/buffer.h index 54e7ef288ed..9618fc6ded1 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -991,15 +991,15 @@ BUF_FETCH_MULTIBYTE_CHAR (struct buffer *buf, ptrdiff_t pos) | |||
| 991 | 991 | ||
| 992 | /* Return the marker that stands for where OV starts in the buffer. */ | 992 | /* Return the marker that stands for where OV starts in the buffer. */ |
| 993 | 993 | ||
| 994 | #define OVERLAY_START(OV) MVAR (XOVERLAY (OV), start) | 994 | #define OVERLAY_START(OV) XOVERLAY (OV)->start |
| 995 | 995 | ||
| 996 | /* Return the marker that stands for where OV ends in the buffer. */ | 996 | /* Return the marker that stands for where OV ends in the buffer. */ |
| 997 | 997 | ||
| 998 | #define OVERLAY_END(OV) MVAR (XOVERLAY (OV), end) | 998 | #define OVERLAY_END(OV) XOVERLAY (OV)->end |
| 999 | 999 | ||
| 1000 | /* Return the plist of overlay OV. */ | 1000 | /* Return the plist of overlay OV. */ |
| 1001 | 1001 | ||
| 1002 | #define OVERLAY_PLIST(OV) MVAR (XOVERLAY (OV), plist) | 1002 | #define OVERLAY_PLIST(OV) XOVERLAY (OV)->plist |
| 1003 | 1003 | ||
| 1004 | /* Return the actual buffer position for the marker P. | 1004 | /* Return the actual buffer position for the marker P. |
| 1005 | We assume you know which buffer it's pointing into. */ | 1005 | We assume you know which buffer it's pointing into. */ |