Lines Matching full:mark
33 * Marks are fixed, and modifications to the line don't update the mark's
35 * place a mark in that text, undo the addition and use ` to move to the
36 * mark, the location will have disappeared. It's tempting to try to adjust
37 * the mark with the changes in the line, but this is hard to do, especially
39 * would move to the first non-blank on the line when the mark location was
40 * past the end of the line. This can be complicated by deleting to a mark
46 * mark had been subsequently reset. Tricky. This is hard to start with,
49 * the mark. Any mark creations are noted as to whether the user created
54 * the absolute mark locations sets both, so that "m'" and "m`" work like
101 * Get the location referenced by a mark.
103 * PUBLIC: int mark_get(SCR *, ARG_CHAR_T, MARK *, mtype_t);
106 mark_get(SCR *sp, ARG_CHAR_T key, MARK *mp, mtype_t mtype) in mark_get()
115 msgq(sp, mtype, "017|Mark %s: not set", KEY_NAME(sp, key)); in mark_get()
120 "018|Mark %s: the line was deleted", KEY_NAME(sp, key)); in mark_get()
126 * The absolute mark is initialized to lno 1/cno 0, and historically in mark_get()
127 * you could use it in an empty file. Make such a mark always work. in mark_get()
131 "019|Mark %s: cursor position no longer exists", in mark_get()
142 * Set the location referenced by a mark.
144 * PUBLIC: int mark_set(SCR *, ARG_CHAR_T, MARK *, int);
147 mark_set(SCR *sp, ARG_CHAR_T key, MARK *value, int userset) in mark_set()
155 * The rules are simple. If the user is setting a mark (if it's a in mark_set()
156 * new mark this is always true), it always happens. If not, it's in mark_set()
181 * Find the requested mark, or, the slot immediately before
190 * Return the requested mark or the slot immediately before in mark_find()
236 * work, i.e. historically you could mark the "line" in an empty in mark_insdel()
237 * file and replace it, and continue to use the mark. Insane, in mark_insdel()