diff options
author | Chong Yidong <cyd@gnu.org> | 2012-09-02 12:47:28 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-09-02 12:47:28 +0800 |
commit | 6a787d9a30720e20053909e71d8b7bc313d37a94 (patch) | |
tree | 258c7450b4a423bb597ae4eedc723ddb6bb2c211 /doc/lispref/control.texi | |
parent | 48c948de78cfa6290ca79ab34b7a4d0cb0edfb69 (diff) | |
download | emacs-6a787d9a30720e20053909e71d8b7bc313d37a94.tar.gz |
Recommand against save-window-excursion in Lisp manual.
* windows.texi (Window Configurations): Recommend against using
save-window-excursion.
* control.texi (Catch and Throw):
* positions.texi (Excursions): Don't mention it.
Fixes: debbugs:12075
Diffstat (limited to 'doc/lispref/control.texi')
-rw-r--r-- | doc/lispref/control.texi | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi index 07d2d0d993c..25a7655b7b8 100644 --- a/doc/lispref/control.texi +++ b/doc/lispref/control.texi @@ -556,16 +556,14 @@ the @code{catch} in @code{foo-outer} specifies the same symbol, so that @code{catch} in between). Executing @code{throw} exits all Lisp constructs up to the matching -@code{catch}, including function calls. When binding constructs such as -@code{let} or function calls are exited in this way, the bindings are -unbound, just as they are when these constructs exit normally +@code{catch}, including function calls. When binding constructs such +as @code{let} or function calls are exited in this way, the bindings +are unbound, just as they are when these constructs exit normally (@pxref{Local Variables}). Likewise, @code{throw} restores the buffer and position saved by @code{save-excursion} (@pxref{Excursions}), and -the narrowing status saved by @code{save-restriction} and the window -selection saved by @code{save-window-excursion} (@pxref{Window -Configurations}). It also runs any cleanups established with the -@code{unwind-protect} special form when it exits that form -(@pxref{Cleanups}). +the narrowing status saved by @code{save-restriction}. It also runs +any cleanups established with the @code{unwind-protect} special form +when it exits that form (@pxref{Cleanups}). The @code{throw} need not appear lexically within the @code{catch} that it jumps to. It can equally well be called from another function |