From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Bensen Newsgroups: gmane.emacs.help Subject: Re: function Qs Date: Sat, 24 Feb 2007 16:58:40 -0600 Organization: Prairienet, The Community Network For East Central Illinois Message-ID: References: <1172351923.424973.71530@8g2000cwh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172360442 6154 80.91.229.12 (24 Feb 2007 23:40:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Feb 2007 23:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 25 00:40:34 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HL6VG-00037X-B4 for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Feb 2007 00:40:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HL6VG-0007ka-4D for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Feb 2007 18:40:34 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.ks.uiuc.edu!news.prairienet.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: slip-86.prairienet.org Original-X-Trace: wildfire.prairienet.org 1172357649 8571 192.17.3.106 (24 Feb 2007 22:54:09 GMT) Original-X-Complaints-To: newsmgr@prairienet.org Original-NNTP-Posting-Date: Sat, 24 Feb 2007 22:54:09 +0000 (UTC) User-Agent: Thunderbird 1.5 (X11/20051201) In-Reply-To: <1172351923.424973.71530@8g2000cwh.googlegroups.com> Original-Xref: shelby.stanford.edu gnu.emacs.help:145845 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41449 Archived-At: weber wrote: > 1. Documentation for functions is easily accessed with Control-h f and > then enter the name of the function. Very nice. Thank you. > Maybe it would be better if you told us what to you want to > accomplish... there might be an easier way. Nah, that's no fun* :) The current problem isn't nearly as important as the general learning experience. According to the help section for end-of-buffer, point-max is the equivalent function I'm looking for. Are there more functions like this? point-min? point-end-of-line? I don't see them documented. The help section for set-mark says to define your own variable instead of using mark: (let ((beg (point))) (forward-line 1) (delete-region beg (point))) With return values, this could be written something like (delete-region (point) (point-next-line)) So it sounds like changing point is standard procedure, but changing mark is discouraged? *This is what I've been trying to do (it seems to work now): (defun indent-buffer () (interactive) (indent-region 1 (point-max) nil)) -- Dan www.prairienet.org/~dsb