unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* save-restriction, save-excursion
@ 2002-09-16 23:31 pokerface
  2002-09-17  2:02 ` Ryan Yeske
  0 siblings, 1 reply; 5+ messages in thread
From: pokerface @ 2002-09-16 23:31 UTC (permalink / raw)


I am beginning to study Emacs Lisp and I have the following question:

Why is it wrong to write (save-restriction
                           (save-excursion
                               ....))

and it is recommended instead to write
                         (save-excursion
                           (save-restriction
                               ....))

Can someone please give an example of the difference?

Thank you.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-09-18 22:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-16 23:31 save-restriction, save-excursion pokerface
2002-09-17  2:02 ` Ryan Yeske
2002-09-17  2:33   ` David Kastrup
2002-09-17  6:24     ` Ryan Yeske
2002-09-18 22:17       ` pokerface

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).