all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.