[Top][All Lists]

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

Re: address@hidden: *Buffer List* column headers don't sort unless selec

From: Daniel Pfeiffer
Subject: Re: address@hidden: *Buffer List* column headers don't sort unless select buffer first]
Date: Mon, 18 Oct 2004 22:53:39 +0200


Richard Stallman <address@hidden> skribis:

> Could you be so kind as to fix this?

done, but not quite right.  I changed the mouse command to

                        (define-key map [header-line mouse-2]
                          `(lambda (e)
                             (interactive "e")
                             (if e (set-buffer (window-buffer (posn-window 
(event-end e)))))
                             (Buffer-menu-sort ,column)))

now it sorts well enough, no matter what window is active.  But, when clicked
with a different window active, the point, which I painstakingly saved in
yesterday's fix, gets set to 1.  Heaven knows by whom -- it is correct when I
leave this command, and then afterwards something happens.

> ------- Start of forwarded message -------
> From: "Drew Adams" <address@hidden>
> emacs -q
> In any buffer, for example, *scratch*, do this: `C-x C-b'.
> Click any of the *Buffer List* header-line column headers. The column is not
> sorted. You must first select the *Buffer List* buffer first, by, say,
> clicking in its window. Then, column sorting works.
> Command buffer-menu code shows that it calls `switch-to-buffer'.
> However, the *Buffer List* buffer is displayed in a new window, and it
> is not selected: C-x C-b, then M-: (current-buffer) shows that the
> current buffer remains the original buffer (e.g. *scratch*).
> The *Buffer List* buffer should be selected when you do C-x C-b, so that
> column sorting works as advertised (e.g. by the help tooltips).

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

lerne / learn / apprends / lär dig / ucz się    Esperanto:

reply via email to

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