diff options
| author | Stefan Monnier | 2008-03-20 18:38:34 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-03-20 18:38:34 +0000 |
| commit | 6ba7f443e926fc6c6b2e14f0e4ace5dba1269720 (patch) | |
| tree | d0f13d15f5aab6cafcc9d37c2fd8fb3e5baba5f1 /src/buffer.h | |
| parent | bf1c0f273079b617703d7e875880db85da127493 (diff) | |
| download | emacs-6ba7f443e926fc6c6b2e14f0e4ace5dba1269720.tar.gz emacs-6ba7f443e926fc6c6b2e14f0e4ace5dba1269720.zip | |
* intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
(set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
work on current_buffer only instead (that was already the case
for some of the code anyway).
* buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
(temp_set_point, temp_set_point_both): Use EMACS_INT.
(SET_PT, SET_PT_BOTH): Adjust.
* intervals.h (set_point, temp_set_point, set_point_both)
(temp_set_point_both): Remove redundant declarations.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/buffer.h b/src/buffer.h index eb1f0a71686..a12e72374ed 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -208,22 +208,22 @@ Boston, MA 02110-1301, USA. */ | |||
| 208 | 208 | ||
| 209 | /* Macros to set PT in the current buffer, or another buffer. */ | 209 | /* Macros to set PT in the current buffer, or another buffer. */ |
| 210 | 210 | ||
| 211 | #define SET_PT(position) (set_point (current_buffer, (position))) | 211 | #define SET_PT(position) (set_point (position)) |
| 212 | #define TEMP_SET_PT(position) (temp_set_point (current_buffer, (position))) | 212 | #define TEMP_SET_PT(position) (temp_set_point (current_buffer, (position))) |
| 213 | 213 | ||
| 214 | #define SET_PT_BOTH(position, byte) \ | 214 | #define SET_PT_BOTH(position, byte) (set_point_both (position, byte)) |
| 215 | (set_point_both (current_buffer, (position), (byte))) | ||
| 216 | #define TEMP_SET_PT_BOTH(position, byte) \ | 215 | #define TEMP_SET_PT_BOTH(position, byte) \ |
| 217 | (temp_set_point_both (current_buffer, (position), (byte))) | 216 | (temp_set_point_both (current_buffer, (position), (byte))) |
| 218 | 217 | ||
| 219 | #define BUF_TEMP_SET_PT(buffer, position) \ | 218 | #define BUF_TEMP_SET_PT(buffer, position) \ |
| 220 | (temp_set_point ((buffer), (position))) | 219 | (temp_set_point ((buffer), (position))) |
| 221 | 220 | ||
| 222 | extern void set_point P_ ((struct buffer *, int)); | 221 | extern void set_point P_ ((EMACS_INT)); |
| 223 | extern INLINE void temp_set_point P_ ((struct buffer *, int)); | 222 | extern INLINE void temp_set_point P_ ((struct buffer *, EMACS_INT)); |
| 224 | extern void set_point_both P_ ((struct buffer *, int, int)); | 223 | extern void set_point_both P_ ((EMACS_INT, EMACS_INT)); |
| 225 | extern INLINE void temp_set_point_both P_ ((struct buffer *, int, int)); | 224 | extern INLINE void temp_set_point_both P_ ((struct buffer *, |
| 226 | extern void enlarge_buffer_text P_ ((struct buffer *, int)); | 225 | EMACS_INT, EMACS_INT)); |
| 226 | extern void enlarge_buffer_text P_ ((struct buffer *, EMACS_INT)); | ||
| 227 | 227 | ||
| 228 | 228 | ||
| 229 | /* Macros for setting the BEGV, ZV or PT of a given buffer. | 229 | /* Macros for setting the BEGV, ZV or PT of a given buffer. |