[Top][All Lists]

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

Re: electric-buffer-list moves position

From: John Paul Wallington
Subject: Re: electric-buffer-list moves position
Date: Thu, 06 Mar 2003 10:11:17 +0000
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50

Martin Fredriksson <address@hidden> wrote:

> When using electric-buffer-list to switch between buffers, the
> position is often lost (position is moved to top row, leftmost
> character position).  I am sorry to have to say "often", but I have
> not had time to research it further.  I write this bug report anyway,
> in case anyone has an idea.  I will attempt to look into this
> further, and try to determine what happens.

Does the following change fix it?

Index: ebuff-menu.el
RCS file: /cvsroot/emacs/emacs/lisp/ebuff-menu.el,v
retrieving revision 1.29
diff -u -r1.29 ebuff-menu.el
--- ebuff-menu.el       4 Feb 2003 11:12:24 -0000       1.29
+++ ebuff-menu.el       6 Mar 2003 10:09:51 -0000
@@ -74,7 +74,8 @@
                               (throw 'electric-buffer-menu-select nil)))
                    (let ((start-point (point))
                          (first (progn (goto-char (point-min))
-                                       (forward-line 2)
+                                       (unless Buffer-menu-use-header-line
+                                         (forward-line 2))
                          (last (progn (goto-char (point-max))
                                       (forward-line -1)

reply via email to

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