Next Prev Up Top Contents Index

6.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 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

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

Returns t if the current point is immediately before the first character in a line, and nil otherwise.

editor:end-line-p

Function

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

Function

editor:same-line-p point1 point2

Returns t if point1 and point2 are on the same line, and nil 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 - 14 Dec 2001

Next Prev Up Top Contents Index