Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
In GNU Emacs 20, the code for the complete function looks like this:
(defun mark-whole-buffer () "Put point at beginning and mark at end of buffer." (interactive) (push-mark (point)) (push-mark (point-max)) (goto-char (point-min)))
Like all other functions, the
mark-whole-buffer function fits
into the template for a function definition. The template looks like
(defun name-of-function (argument-list) "documentation..." (interactive-expression...) body...)
Here is how the function works: the name of the function is
mark-whole-buffer; it is followed by an empty argument list,
`()', which means that the function does not require arguments.
The documentation comes next.
The next line is an
(interactive) expression that tells Emacs
that the function will be used interactively. These details are similar
simplified-beginning-of-buffer function described in the
|webmaster||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|