all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <help-gnu-emacs@gnu.org>
Subject: `save-exursion' makes a comeback!
Date: Tue, 15 Mar 2011 08:07:56 -0700	[thread overview]
Message-ID: <BA9480CB71564F5A8A93586687B41D3E@us.oracle.com> (raw)

  Emacs Excursion
  ---------------

  Your mama said when you left the nest,
  "Go out and play and learn and test
  the waters.

  Discover what's right, what's wrong, what's left.
  Sow your wildest oats, follow your farthest quest.
  But when you're done come back, come home, and rest."

Pun-summary: `save-excursion' makes a comeback!

That's all that can or need ever be said about it.

Maybe you've looked at some of the recent WARNING brouhaha,
maybe not.  Whether you were bored or amused, aghast or
confused, this is all you ever need to know about
`save-excursion': it makes a comeback.

It makes (forces) Emacs to come back, to the same buffer at
the same point, with the same mark.  NOTHING more.

It does not matter what kind of excursion you make, where you
go or what you do.  What you did while in Vegas stays in Vegas.
`save-excursion' just brings you back.

Forget about `save-excursion' "saving" or "restoring" or
"hiding" or "protecting" anything.  Forget about it "defeating"
or being "defeated".  Forget all of that right now.

The real name of `save-excursion' is `come-back-here'.
Just remember that and Bob's your uncle.




             reply	other threads:[~2011-03-15 15:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-15 15:07 Drew Adams [this message]
     [not found] <mailman.3.1300201687.14512.help-gnu-emacs@gnu.org>
2011-03-15 15:23 ` `save-exursion' makes a comeback! David Kastrup
2011-03-15 16:02   ` Drew Adams
     [not found]   ` <mailman.4.1300204937.1264.help-gnu-emacs@gnu.org>
2011-03-15 16:11     ` David Kastrup
2011-03-16 12:48 ` Uday S Reddy

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

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

  git send-email \
    --in-reply-to=BA9480CB71564F5A8A93586687B41D3E@us.oracle.com \
    --to=drew.adams@oracle.com \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.