I wrote this function that indents the
whole buffer without moving the cursor.
(defun indent-buffer()
"Indent the whole buffer from point-min to point-max using
the command indent-region"
(interactive)
(indent-region 0 (point-max) nil))
Javier
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 11:22 AM
To: [EMAIL PROTECTED]
Subject: the indent-buffer function
Hi everybody,
I would like to make the indent-buffer function like this:
(defun indent-buffer()
(beginning-of-file)
<function to go to the end of file while selecting> (ctrl-shift-end)
(indent-region)
(exchange-point-and-mark)
)
Being a non-lisp expert programmer (yet), I would like any help to
correct and to complete the above function, please.
Thanks,
--
[@666[]]::::::::::::::::::::::::::::::::::>
andriamasinoro fenintsoa (mr)
iremia-university of la reunion (france)
email : [EMAIL PROTECTED]
tél : (+262) 816 863 (portable) / (+262) 938 324 (office)
fax : (+262) 938 260
================
"most people don't plan to fail, they simply fail to plan."
----------------------------