From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20122: auto-revert and list-buffers cause buffer recentering Date: Mon, 16 Mar 2015 22:07:28 +0200 Message-ID: <83k2ygzoxr.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1426536503 7536 80.91.229.3 (16 Mar 2015 20:08:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 20:08:23 +0000 (UTC) Cc: 20122@debbugs.gnu.org To: Mario Valencia Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 21:08:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YXbJ6-000527-88 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 21:08:12 +0100 Original-Received: from localhost ([::1]:51464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXbJ5-00077a-BP for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 16:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXbJ2-00077S-1Y for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 16:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXbIw-0004fg-05 for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 16:08:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXbIv-0004fc-Sc for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 16:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YXbIv-00085b-Jx for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 16:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Mar 2015 20:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20122 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20122-submit@debbugs.gnu.org id=B20122.142653647131079 (code B ref 20122); Mon, 16 Mar 2015 20:08:01 +0000 Original-Received: (at 20122) by debbugs.gnu.org; 16 Mar 2015 20:07:51 +0000 Original-Received: from localhost ([127.0.0.1]:48934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXbIk-00085C-UG for submit@debbugs.gnu.org; Mon, 16 Mar 2015 16:07:51 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:48584) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXbIi-000851-06 for 20122@debbugs.gnu.org; Mon, 16 Mar 2015 16:07:49 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NLB00A00MDQ6Q00@a-mtaout20.012.net.il> for 20122@debbugs.gnu.org; Mon, 16 Mar 2015 22:07:46 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLB00ARAMKT7000@a-mtaout20.012.net.il>; Mon, 16 Mar 2015 22:07:41 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100561 Archived-At: > Date: Mon, 16 Mar 2015 12:20:03 -0600 > From: Mario Valencia > > do the following: > (global-auto-revert-mode) > (setq global-auto-revert-non-file-buffers t) > > then M-x list-buffers > now open a file and move down a page at least. the file begins > auto-recentering. the line with the cursor moves toward the center. It's a bug in tabulated-list-print: it calls 'recenter' without ensuring that its buffer, in this case "*Buffer List*", is in the selected window. Here's the Lisp backtrace to prove this: Lisp Backtrace: "recenter" (0x82dd80) "tabulated-list-print" (0x82e08c) "tabulated-list-revert" (0x82e384) "revert-buffer" (0x82e678) "auto-revert-handler" (0x82e978) "auto-revert-buffers" (0x82ed4c) "apply" (0x82ed48) "byte-code" (0x82efcc) "timer-event-handler" (0x82f40c) I think the easiest solution is simply to remove the call to 'recenter', it's not really needed there, just a nicety.