4.2 Text Predicates

start-line-p  mark [Function]
          

Returns t if the mark points before the first character in a line, nil otherwise. [annotate]

[annotate]

end-line-p  mark [Function]
          

Returns t if the mark points after the last character in a line and before the newline, nil otherwise. [annotate]

[annotate]

empty-line-p  mark [Function]
          

Return t of the line which mark points to contains no characters. [annotate]

[annotate]

blank-line-p  line [Function]
          

Returns t if line contains only characters with a Whitespace attribute of 1. See chapter 9 for discussion of character attributes. [annotate]

[annotate]

blank-before-p  mark [Function]
blank-after-p  mark [Function]
          

These functions test if all the characters preceding or following mark on the line it is on have a Whitespace attribute of 1. [annotate]

[annotate]

same-line-p  mark1 mark2 [Function]
          

Returns t if mark1 and mark2 point to the same line, or nil otherwise; That is, (same-line-p a b) <==> (eq (mark-line a) (mark-line b)) [annotate]

[annotate]

mark<  mark1 mark2 [Function]
mark<=  mark1 mark2 [Function]
mark=  mark1 mark2 [Function]
mark/=  mark1 mark2 [Function]
mark>=  mark1 mark2 [Function]
mark>  mark1 mark2 [Function]
          

These predicates test the relative ordering of two marks in a piece of text, that is a mark is mark> another if it points to a position after it. If the marks point into different, non-connected pieces of text, such as different buffers, then it is an error to test their ordering; for such marks mark= is always false and mark/= is always true. [annotate]

[annotate]

line<  line1 line2 [Function]
line<=  line1 line2 [Function]
line>=  line1 line2 [Function]
line>  line1 line2 [Function]
          

These predicates test the ordering of line1 and line2. If the lines are in unconnected pieces of text it is an error to test their ordering. [annotate]

[annotate]

lines-related  line1 line2 [Function]
          

This function returns t if line1 and line2 are in the same piece of text, or nil otherwise. [annotate]

[annotate]

first-line-p  mark [Function]
last-line-p  mark [Function]
          

first-line-p returns t if there is no line before the line mark is on, and nil otherwise. Last-line-p similarly tests tests whether there is no line after mark. [annotate]

[annotate]