Mercurial > hg > xemacs-beta
comparison man/lispref/positions.texi @ 373:6240c7796c7a r21-2b2
Import from CVS: tag r21-2b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:04:06 +0200 |
parents | cc15677e0335 |
children | 7d59cb494b73 |
comparison
equal
deleted
inserted
replaced
372:49e1ed2d7ed8 | 373:6240c7796c7a |
---|---|
899 @code{save-restriction} construct. Read the entire description here | 899 @code{save-restriction} construct. Read the entire description here |
900 before you try it. | 900 before you try it. |
901 | 901 |
902 If @var{body} changes the current buffer, @code{save-restriction} still | 902 If @var{body} changes the current buffer, @code{save-restriction} still |
903 restores the restrictions on the original buffer (the buffer whose | 903 restores the restrictions on the original buffer (the buffer whose |
904 restructions it saved from), but it does not restore the identity of the | 904 restrictions it saved from), but it does not restore the identity of the |
905 current buffer. | 905 current buffer. |
906 | 906 |
907 @code{save-restriction} does @emph{not} restore point and the mark; use | 907 @code{save-restriction} does @emph{not} restore point and the mark; use |
908 @code{save-excursion} for that. If you use both @code{save-restriction} | 908 @code{save-excursion} for that. If you use both @code{save-restriction} |
909 and @code{save-excursion} together, @code{save-excursion} should come | 909 and @code{save-excursion} together, @code{save-excursion} should come |