emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: save-window-excursion doesn't restore point properly


From: Michael Cadilhac
Subject: Re: save-window-excursion doesn't restore point properly
Date: Thu, 17 Nov 2005 17:32:36 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Shawn Betts" <address@hidden> writes:

> Steps to reproduce:
>
> C-x 1
> C-x 2
> C-p
> M-: (save-window-excursion (other-window 1))
>
> Note that the point is restored to the same place the point is in the
> other window.

  As written in the documentation, the point of the current buffer is
  not restored.

,----[ C-h f save-window-excursion RET ]
| save-window-excursion is a special form in `src/window.c'.
| (save-window-excursion body ...)
| 
| Execute body, preserving window sizes and contents.
| 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.
| Also restore the choice of selected window.
| Also restore which buffer is current.
| Does not restore the value of point in current buffer.
| 
| [back]
`----

-- 
    Michael Cadilhac, a.k.a. Micha [mika] |
                    Epita/LRDE promo 2007 |   )\._.,--....,'``.
123 av. de Fontainebleau | 08.70.65.13.14 |  /.  _.. \   _\  (` ._,.
94270 Le Kremlin Bicetre | 06.23.20.31.30 | '._.-(,_..'--(,_...`-..'




reply via email to

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