[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:24:07 +0000 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 |
John Paul Wallington <address@hidden> wrote:
> 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?
Missed one! How about the following change?
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:22:42 -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))
(point)))
(last (progn (goto-char (point-max))
(forward-line -1)
@@ -112,7 +113,8 @@
(signal (car condition) (cdr condition)))
((< (point) (car state))
(goto-char (point-min))
- (forward-line 2))
+ (unless Buffer-menu-use-header-line
+ (forward-line 2)))
((> (point) (cdr state))
(goto-char (point-max))
(forward-line -1)