editor:current-point
editor:current-mark &optional pop-p no-error-p
Returns the current mark. If pop-p is t
, the mark is popped off the point ring. If no mark is set and no-error-p is t
, nil
is returned; otherwise an error is signalled. The default for both of these optional arguments is nil
.
editor:set-current-mark point
Sets the current mark to be point .
editor:buffer-point buffer
Returns the current point in buffer .
editor:point< point1 point2
Returns non- nil
if point1 is before point2 in the buffer.
editor:point> point1 point2
Returns non- nil
if point1 is after point2 in the buffer.
editor:copy-point point &optional kind new-point
Makes and returns a copy of point . The argument kind can take the value :before
, :after
, or :temporary
. If new-point is supplied, the copied point is bound to that as well as being returned.
editor:move-point point new-position
Moves point to new-position , which should itself be a point.
editor:start-line-p point
Returns t
if the current point is immediately before the first character in a line, and nil
otherwise.
editor:end-line-p point
Returns t
if the current point is immediately after the last character in a line, and nil
otherwise.
editor:same-line-p point1 point2
Returns t
if point1 and point2 are on the same line, and nil
otherwise.
editor:save-excursion &rest body
Saves the location of the point and the mark and restores them after completion of body . This restoration is accomplished even when there is an abnormal exit from body .