[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local
From: |
martin rudalics |
Subject: |
bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local |
Date: |
Mon, 10 Oct 2011 14:57:11 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> I tried it now. It seems to do a good job, but it sometimes loses one
> of the 2 places in one of the files I visited. E.g., visit xdisp.c
> and window.c, display each one in turn in 2 separate windows at 2
> different places. Then start switching buffers in both windows, and
> after a few switches I can only see one place in window.c.
My crystal ball tells me that you did the following:
(1) Remove one of these buffers from the last window that shows it -
`point' goes to its `window-point'.
(2) Show this buffer in the other window.
In this case the test
(let* ((entry (and (get-buffer-window buffer 0)
(assq buffer (window-prev-buffers))))
will fail and the buffer will be shown at the position of its `point'.
Try
(let* ((entry (and ; (get-buffer-window buffer 0)
(assq buffer (window-prev-buffers))))
and I'm sure the function will do what you want.
Unfortunately, omitting that conjunct might give surprising results when
you switch to a buffer that you haven't seen for quite some time, in a
window where this buffer was shown earlier. In this case you probably
do want to show the buffer at the position of `point'.
martin
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, (continued)
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, martin rudalics, 2011/10/08
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Eli Zaretskii, 2011/10/08
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, martin rudalics, 2011/10/08
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Eli Zaretskii, 2011/10/08
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, martin rudalics, 2011/10/08
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Eli Zaretskii, 2011/10/08
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, martin rudalics, 2011/10/08
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Eli Zaretskii, 2011/10/08
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, martin rudalics, 2011/10/09
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Eli Zaretskii, 2011/10/09
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local,
martin rudalics <=
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Stefan Monnier, 2011/10/11
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Steve Yegge, 2011/10/11
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Stefan Monnier, 2011/10/11
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Steve Yegge, 2011/10/11
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, martin rudalics, 2011/10/12
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Stefan Monnier, 2011/10/12
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, Stefan Monnier, 2011/10/12
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, martin rudalics, 2011/10/12
- bug#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local, martin rudalics, 2011/10/12