Lines Matching refs:xcp

932 static char *xcp;		/* current position */  variable
1157 for (cp = xcp; cp < (xcp + nb); ++nc) in x_nb2nc()
1237 xlp = xcp = xep = buf; in x_emacs()
1238 *xcp = 0; in x_emacs()
1301 x_goto(xcp); in x_emacs()
1382 memmove(xcp + len, xcp, xep - xcp + 1); in x_do_ins()
1383 memmove(xcp, cp, len); in x_do_ins()
1384 xcp += len; in x_do_ins()
1393 char *cp = xcp; in x_ins()
1404 x_adj_ok = tobool(xcp >= xlp); in x_ins()
1418 if (xcp == xbuf) { in x_del_back()
1423 x_goto(xcp - 1); in x_del_back()
1424 } while ((++i < x_arg) && (xcp != xbuf)); in x_del_back()
1435 cp = xcp; in x_del_char()
1463 cp = xcp; in x_delete()
1474 nb = cp - xcp; in x_delete()
1477 if (xmp != NULL && xmp > xcp) { in x_delete()
1478 if (xcp + nb > xmp) in x_delete()
1479 xmp = xcp; in x_delete()
1491 memmove(xcp, xcp + nb, xep - xcp + 1); in x_delete()
1495 x_zots(xcp); in x_delete()
1552 char *cp = xcp; in x_bword()
1576 char *cp = xcp; in x_fword()
1588 nc = x_nb2nc(cp - xcp); in x_fword()
1600 xcp = cp; in x_goto()
1602 } else if (cp < xcp) { in x_goto()
1604 while (cp < xcp) in x_goto()
1605 x_bs3(&xcp); in x_goto()
1606 } else if (cp > xcp) { in x_goto()
1608 while (cp > xcp) in x_goto()
1609 x_zotc3(&xcp); in x_goto()
1682 if (xcp == xbuf) { in x_mv_back()
1687 x_goto(xcp - 1); in x_mv_back()
1688 if (xcp == xbuf) in x_mv_back()
1697 char *cp = xcp, *cp2; in x_mv_forw()
1699 if (xcp == xep) { in x_mv_forw()
1716 char *cp = xcp; in x_search_char_forw()
1738 char *cp = xcp, *p, tmp[4]; in x_search_char_back()
1857 xep = xcp = xbuf + strlen(xbuf); in x_load_hist()
2007 size_t curs = xcp - xbuf; in x_search_dir()
2037 x_push(xep - (xcp = xbuf)); in x_del_line()
2040 *xcp = 0; in x_del_line()
2161 if (xcp == xbuf) { in x_transpose()
2164 } else if (xcp == xep || Flag(FGMACS)) { in x_transpose()
2165 if (xcp - xbuf == 1) { in x_transpose()
2173 x_bs3(&xcp); in x_transpose()
2174 if (utf_mbtowc(&tmpa, xcp) == (size_t)-1) { in x_transpose()
2178 x_bs3(&xcp); in x_transpose()
2179 if (utf_mbtowc(&tmpb, xcp) == (size_t)-1) { in x_transpose()
2183 utf_wctomb(xcp, tmpa); in x_transpose()
2184 x_zotc3(&xcp); in x_transpose()
2185 utf_wctomb(xcp, tmpb); in x_transpose()
2186 x_zotc3(&xcp); in x_transpose()
2192 if (utf_mbtowc(&tmpa, xcp) == (size_t)-1) { in x_transpose()
2196 x_bs3(&xcp); in x_transpose()
2197 if (utf_mbtowc(&tmpb, xcp) == (size_t)-1) { in x_transpose()
2201 utf_wctomb(xcp, tmpa); in x_transpose()
2202 x_zotc3(&xcp); in x_transpose()
2203 utf_wctomb(xcp, tmpb); in x_transpose()
2204 x_zotc3(&xcp); in x_transpose()
2241 size_t col = xcp - xbuf; in x_kill()
2260 strndupx(killstack[killsp], xcp, nchars, AEDIT); in x_push()
2277 xmp = xcp; in x_yank()
2295 x_goto(xcp - len); in x_meta_yank()
2311 xlp = xep = xcp = xbp = xbuf; in x_abort()
2313 *xcp = 0; in x_abort()
2586 xmp = xcp; in x_set_mark()
2600 if (xmp > xcp) { in x_kill_region()
2601 rsize = xmp - xcp; in x_kill_region()
2602 xr = xcp; in x_kill_region()
2604 rsize = xcp - xmp; in x_kill_region()
2623 xmp = xcp; in x_xchg_point_mark()
2693 nwords = x_cf_glob(&i, xbuf, xep - xbuf, xcp - xbuf, in x_expand()
2727 nwords = x_cf_glob(&flags, xbuf, xep - xbuf, xcp - xbuf, in do_complete()
2779 xcp = xbuf + start; in do_complete()
2781 memmove(xcp, xcp + olen, xep - xcp + 1); in do_complete()
2830 if ((xbp = xcp - (x_displen / 2)) < xbuf) in x_adjust()
2837 xbp = xcp >= xep ? xep : x_bs0(xcp, xbuf); in x_adjust()
2844 if (xbp == xbuf && xcp != xbuf && col_left >= 0 && col_left < pwidth) { in x_adjust()
3021 xcp = xbp = xbuf; in x_comment()
3033 char *o_xbp = xbp, *o_xep = xep, *o_xcp = xcp; in x_version()
3038 xbuf = xbp = xcp = v; in x_version()
3048 xcp = o_xcp; in x_version()
3205 char *cp = xcp; in x_fold_case()
3284 while (cp > xcp) in x_lastpos()
5571 } else if (xmp < xcp) { in x_eval_region()
5573 evend = xcp; in x_eval_region()
5575 evbeg = xcp; in x_eval_region()
5601 xcp = evbeg + newlen; in x_eval_region()
5602 xep = xcp + restlen; in x_eval_region()
5603 memmove(xcp, evend, restlen + /* NUL */ 1); in x_eval_region()