Lines Matching refs:xcp
910 static char *xcp; /* current position */ variable
1115 for (cp = xcp; cp < (xcp + nb); ++nc) in x_nb2nc()
1189 xlp = xcp = xep = buf; in x_emacs()
1190 *xcp = 0; in x_emacs()
1253 x_goto(xcp); in x_emacs()
1334 memmove(xcp + len, xcp, xep - xcp + 1); in x_do_ins()
1335 memmove(xcp, cp, len); in x_do_ins()
1336 xcp += len; in x_do_ins()
1345 char *cp = xcp; in x_ins()
1356 x_adj_ok = tobool(xcp >= xlp); in x_ins()
1362 while (cp > xcp) in x_ins()
1376 if (xcp == xbuf) { in x_del_back()
1381 x_goto(xcp - 1); in x_del_back()
1382 } while ((++i < x_arg) && (xcp != xbuf)); in x_del_back()
1393 cp = xcp; in x_del_char()
1421 cp = xcp; in x_delete()
1432 nb = cp - xcp; in x_delete()
1435 if (xmp != NULL && xmp > xcp) { in x_delete()
1436 if (xcp + nb > xmp) in x_delete()
1437 xmp = xcp; in x_delete()
1449 memmove(xcp, xcp + nb, xep - xcp + 1); in x_delete()
1453 x_zots(xcp); in x_delete()
1474 while (cp > xcp) in x_delete()
1513 char *cp = xcp; in x_bword()
1537 char *cp = xcp; in x_fword()
1549 nc = x_nb2nc(cp - xcp); in x_fword()
1561 xcp = cp; in x_goto()
1563 } else if (cp < xcp) { in x_goto()
1565 while (cp < xcp) in x_goto()
1566 x_bs3(&xcp); in x_goto()
1567 } else if (cp > xcp) { in x_goto()
1569 while (cp > xcp) in x_goto()
1570 x_zotc3(&xcp); in x_goto()
1652 if (xcp == xbuf) { in x_mv_back()
1657 x_goto(xcp - 1); in x_mv_back()
1658 if (xcp == xbuf) in x_mv_back()
1667 char *cp = xcp, *cp2; in x_mv_forw()
1669 if (xcp == xep) { in x_mv_forw()
1686 char *cp = xcp; in x_search_char_forw()
1708 char *cp = xcp, *p, tmp[4]; in x_search_char_back()
1827 xep = xcp = xbuf + strlen(xbuf); in x_load_hist()
1981 size_t curs = xcp - xbuf; in x_search_dir()
2015 xcp = xbuf; in x_del_line()
2019 *xcp = 0; in x_del_line()
2122 while (cp > xcp) in x_redraw()
2147 if (xcp == xbuf) { in x_transpose()
2150 } else if (xcp == xep || Flag(FGMACS)) { in x_transpose()
2151 if (xcp - xbuf == 1) { in x_transpose()
2159 x_bs3(&xcp); in x_transpose()
2160 if (utf_mbtowc(&tmpa, xcp) == (size_t)-1) { in x_transpose()
2164 x_bs3(&xcp); in x_transpose()
2165 if (utf_mbtowc(&tmpb, xcp) == (size_t)-1) { in x_transpose()
2169 utf_wctomb(xcp, tmpa); in x_transpose()
2170 x_zotc3(&xcp); in x_transpose()
2171 utf_wctomb(xcp, tmpb); in x_transpose()
2172 x_zotc3(&xcp); in x_transpose()
2178 if (utf_mbtowc(&tmpa, xcp) == (size_t)-1) { in x_transpose()
2182 x_bs3(&xcp); in x_transpose()
2183 if (utf_mbtowc(&tmpb, xcp) == (size_t)-1) { in x_transpose()
2187 utf_wctomb(xcp, tmpa); in x_transpose()
2188 x_zotc3(&xcp); in x_transpose()
2189 utf_wctomb(xcp, tmpb); in x_transpose()
2190 x_zotc3(&xcp); in x_transpose()
2220 size_t col = xcp - xbuf; in x_kill()
2240 strndupx(cp, xcp, nchars, AEDIT); in x_push()
2260 xmp = xcp; in x_yank()
2278 x_goto(xcp - len); in x_meta_yank()
2294 xlp = xep = xcp = xbp = xbuf; in x_abort()
2296 *xcp = 0; in x_abort()
2567 xmp = xcp; in x_set_mark()
2581 if (xmp > xcp) { in x_kill_region()
2582 rsize = xmp - xcp; in x_kill_region()
2583 xr = xcp; in x_kill_region()
2585 rsize = xcp - xmp; in x_kill_region()
2604 xmp = xcp; in x_xchg_point_mark()
2674 nwords = x_cf_glob(&i, xbuf, xep - xbuf, xcp - xbuf, in x_expand()
2708 nwords = x_cf_glob(&flags, xbuf, xep - xbuf, xcp - xbuf, in do_complete()
2760 xcp = xbuf + start; in do_complete()
2762 memmove(xcp, xcp + olen, xep - xcp + 1); in do_complete()
2811 if ((xbp = xcp - (x_displen / 2)) < xbuf) in x_adjust()
2818 xbp = xcp >= xep ? xep : x_bs0(xcp, xbuf); in x_adjust()
2825 if (xbp == xbuf && xcp != xbuf && col_left >= 0 && col_left < pwidth) { in x_adjust()
3003 xcp = xbp = xbuf; in x_comment()
3015 char *o_xbp = xbp, *o_xep = xep, *o_xcp = xcp; in x_version()
3022 xbuf = xbp = xcp = v; in x_version()
3032 xcp = o_xcp; in x_version()
3189 char *cp = xcp; in x_fold_case()