unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dan Bensen <randomgeek@cyberspace.net>
To: help-gnu-emacs@gnu.org
Subject: Re: function Qs
Date: Sat, 24 Feb 2007 16:58:40 -0600	[thread overview]
Message-ID: <erqfmg$8br$1@wildfire.prairienet.org> (raw)
In-Reply-To: <1172351923.424973.71530@8g2000cwh.googlegroups.com>

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

  reply	other threads:[~2007-02-24 22:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-24 21:07 function Qs Dan Bensen
2007-02-24 21:18 ` weber
2007-02-24 22:58   ` Dan Bensen [this message]
2007-02-24 23:50     ` Drew Adams
2007-02-25  3:19       ` Matthew Flaschen
2007-02-25  4:37         ` Matthew Flaschen
     [not found]       ` <mailman.68.1172373580.7795.help-gnu-emacs@gnu.org>
2007-02-25  4:43         ` james
2007-02-25  6:57           ` Matthew Flaschen
2007-02-25 15:27           ` Drew Adams
2007-02-25 15:36             ` Matthew Flaschen
2007-02-25 22:54               ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='erqfmg$8br$1@wildfire.prairienet.org' \
    --to=randomgeek@cyberspace.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).