summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-03-30 03:02:02 +0000
committerKarl Heuer <kwzh@gnu.org>1994-03-30 03:02:02 +0000
commit139b8aa5a7aeb160adf0803f8c8c367237fadca7 (patch)
treecc5fd95029fe14675d9c1263eb4194bfd1a1cb04 /src/indent.c
parentc27bb31e492c4af7ee8810a2a03bca31dfae152b (diff)
downloademacs-139b8aa5a7aeb160adf0803f8c8c367237fadca7.tar.gz
(Fcompute_motion): Don't use XFASTINT on possibly-negative coords.
Also another doc fix.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indent.c b/src/indent.c
index 10d4a594f42..7a8995b9392 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -631,7 +631,7 @@ being displayed, perhaps because the line was continued within it.\n\
If OFFSETS is nil, HSCROLL and TAB-OFFSET are assumed to be zero.\n\
\n\
The value is a list of five elements:\n\
- (POS VPOS HPOS PREVHPOS CONTIN)\n\
+ (POS HPOS VPOS PREVHPOS CONTIN)\n\
POS is the buffer position where the scan stopped.\n\
VPOS is the vertical position where the scan stopped.\n\
HPOS is the horizontal position where the scan stopped.\n\
@@ -679,9 +679,9 @@ visible section of the buffer, and pass LINE and COL as TOPOS.")
XINT (width), hscroll, tab_offset);
XFASTINT (bufpos) = pos->bufpos;
- XFASTINT (hpos) = pos->hpos;
+ XSET (hpos, Lisp_Int, pos->hpos);
XSET (vpos, Lisp_Int, pos->vpos);
- XFASTINT (prevhpos) = pos->prevhpos;
+ XSET (prevhpos, Lisp_Int, pos->prevhpos);
return Fcons (bufpos,
Fcons (hpos,