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

[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: Fri, 07 Oct 2011 09:07:14 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

>> Even if you had such a feature it would not DTRT with multiple windows
>> showing the same buffer on the same frame.  But if, in step (9) above,
>> you do `previous-buffer' or `switch-to-prev-buffer', the window's point
>> should show up at `point-min'.  `switch-to-buffer' could, in principle,
>> retrieve that position by scanning `window-prev-buffers' of that window.
>
> I think `switch-to-buffer' should do the same as `previous-buffer' here
> -- it seems like the obvious solution.  Is there any reason not to?

We'd have to handle two issues:

(1) If a buffer is shown nowhere else and you `switch-to-buffer' to it,
    you probably want it to show it at the actual position of `point' -
    whatever that means for you.

(2) If the buffer is already shown on another frame with `point' visible
    it makes sense to `switch-to-buffer' at some position it earlier had
    on the present frame.

Whatever we did here, it would make `switch-to-buffer' behave
inconsistently.  I still think that the OP instead of

> 8) switch to buffer *scratch* (or any other buffer)
> 9) switch to buffer BUF

should switch to the previous buffer in 9).

martin





reply via email to

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