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

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

bug#6454: 24.0.50; kill-buffer switches current-buffer


From: martin rudalics
Subject: bug#6454: 24.0.50; kill-buffer switches current-buffer
Date: Fri, 18 Jun 2010 14:19:09 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

>    (goto-line 1 buffer))

makes sure there's a window showing BUFFER and selects that window.

>     (kill-buffer buffer)

detects that the window showing BUFFER is the selected window, shows
another buffer in that window, and makes the other buffer current.

Tha according lines in window_loop are:

    Fset_window_buffer (window, buffer, Qnil);
    if (EQ (window, selected_window))
      Fset_buffer (w->buffer);

with the most recent change

1989-10-21  Richard Stallman  (address@hidden)

        * window.c (window_loop): For UNSHOW_BUFFER, don't Fset_buffer
        unless window is the selected one.

So this is another incarnation of the "buffer shown in the selected
window is not necessarily the current buffer" dichotomy.  Looks like
a bug but I'm not sure whether fixing it could break other things.

martin





reply via email to

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