Node:Regexp Review, Next:re-search Exercises, Previous:etags, Up:Regexp Search
Here is a brief summary of some recently introduced functions.
nil. (The expression is evaluated only for its side effects.)
(let ((foo 2)) (while (> foo 0) (insert (format "foo is %d.\n" foo)) (setq foo (1- foo)))) => foo is 2. foo is 1. nil
insert function inserts its arguments at point; the
format function returns a string formatted from its arguments
message formats its arguments;
\n produces a new
Takes four arguments, like
nilor an error message.
(let* ((foo 7) (bar (* 3 foo))) (message "`bar' is %d." bar)) => `bar' is 21.
tfor true if the text after point matches the argument, which should be a regular expression.
tfor true if point is at the end of the accessible part of a buffer. The end of the accessible part is the end of the buffer if the buffer is not narrowed; it is the end of the narrowed part if the buffer is narrowed.
(prog1 1 2 3 4) => 1