emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107570: Further doc fix for save-win


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107570: Further doc fix for save-window-excursion.
Date: Mon, 12 Mar 2012 00:16:50 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107570
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Mon 2012-03-12 00:16:50 +0800
message:
  Further doc fix for save-window-excursion.
modified:
  lisp/subr.el
=== modified file 'lisp/subr.el'
--- a/lisp/subr.el      2012-03-11 16:10:07 +0000
+++ b/lisp/subr.el      2012-03-11 16:16:50 +0000
@@ -3027,11 +3027,11 @@
 
 (defmacro save-window-excursion (&rest body)
   "Execute BODY, then restore previous window configuration.
-Return the value of the last form in BODY.
-Restore which buffer appears in which window, where display
-starts, and the value of point and mark for each window, as well
-as the choice of selected window, and which buffer is current.
-The value of point in the current buffer is not restored.
+This macro saves the window configuration on the selected frame,
+executes BODY, then calls `set-window-configuration' to restore
+the saved window configuration.  The return value is the last
+form in BODY.  The window configuration is also restored if BODY
+exits nonlocally.
 
 BEWARE: Most uses of this macro introduce bugs.
 E.g. it should not be used to try and prevent some code from opening


reply via email to

[Prev in Thread] Current Thread [Next in Thread]