unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Dan Bensen" <randomgeek@cyberspace.net>, <help-gnu-emacs@gnu.org>
Subject: RE: function Qs
Date: Sat, 24 Feb 2007 15:50:02 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICGEDHDLAA.drew.adams@oracle.com> (raw)
In-Reply-To: <erqfmg$8br$1@wildfire.prairienet.org>

> Are there more functions like this?  point-min?  point-end-of-line?  I
> don't see them documented.

M-x apropos point

Command `apropos' is your friend.

The Elisp manual, not the Emacs manual, is the reference for Emacs-Lisp
code. All of the functions you have asked about are explained there. Both
manuals are available via `C-h i'.

> So it sounds like changing point is standard procedure, but changing
> mark is discouraged?

Correct. Actually, both are discouraged if the user doesn't expect any
change. To move point temporarily to obtain a location, wrap the movement in
`save-excursion'.

Again, this is explained in the Elisp manual.

> *This is what I've been trying to do (it seems to work now):
> (defun indent-buffer ()
>    (interactive)
>    (indent-region 1 (point-max) nil))

(point-min), not 1.

  reply	other threads:[~2007-02-24 23:50 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
2007-02-24 23:50     ` Drew Adams [this message]
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=DNEMKBNJBGPAOPIJOOICGEDHDLAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=randomgeek@cyberspace.net \
    /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).