Next Previous Up Top Contents Index

defcommand

5.3.9 Points

editor:current-point

Function

editor:current-point

Returns the current point.
editor:current-mark

Function

editor:current-mark &optional pop-p no-error-p

Returns the current mark. If pop-p ist, the mark is popped off the point ring. If no mark is set and no-error-p ist,nil is returned; otherwise an error is signalled. The default for both of these optional arguments isnil.
editor:set-current-mark

Function

editor:set-current-mark point

Sets the current mark to be point.
editor:buffer-point

Function

editor:buffer-point buffer 

Returns the current point in buffer.
editor:point<

Function

editor:point< point1 point2

Returns non-nil if point1 is before point2 in the buffer.
editor:point>

Function

editor:point> point1 point2

Returns non-nil if point1 is after point2 in the buffer.
editor:copy-point

Function

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

Function

editor:move-point point new-position

Moves point to new-position, which should itself be a point.
editor:start-line-p

Function

editor:start-line-p point

Returnst if the current point is immediately before the first character in a line, andnil otherwise.
editor:end-line-p

Function

editor:end-line-p point

Returnst if the current point is immediately after the last character in a line, andnil otherwise.
editor:same-line-p

Function

editor:same-line-p point1 point2

Returnst if point1 and point2 are on the same line, andnil otherwise.
editor:save-excursion

Macro

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.

LispWorks Editor User Guide - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker