From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: How to get back to a place in a buffer, or: what is a window configuration? Date: Wed, 3 Aug 2016 15:06:58 -0700 (PDT) Message-ID: <4606363b-67a0-4008-a2ea-9d5a1693b806@default> References: <87zioutd4v.fsf@mbork.pl> <(message> <03> <2016> <11:30:43> <+0200)> <87mvktsexe.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1470262064 16199 195.159.176.226 (3 Aug 2016 22:07:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2016 22:07:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Robert Thorpe , Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 04 00:07:40 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bV4KB-0003UL-D5 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Aug 2016 00:07:39 +0200 Original-Received: from localhost ([::1]:36888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV4K7-0001E4-SA for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Aug 2016 18:07:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV4Jh-0001Dl-Cl for help-gnu-emacs@gnu.org; Wed, 03 Aug 2016 18:07:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bV4Je-0002BX-52 for help-gnu-emacs@gnu.org; Wed, 03 Aug 2016 18:07:09 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:31113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bV4Jd-0002BK-TH for help-gnu-emacs@gnu.org; Wed, 03 Aug 2016 18:07:06 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u73M73oo000622 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 3 Aug 2016 22:07:03 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u73M7071027995 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Aug 2016 22:07:02 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u73M70Ve008637; Wed, 3 Aug 2016 22:07:00 GMT In-Reply-To: <87mvktsexe.fsf@robertthorpeconsulting.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111058 Archived-At: > > sometimes I work on a particular place in some buffer, and Emacs for > > some reason scrolls me out of that place. >=20 > I used to have the problem. I found it was caused by using > auto-revert-mode. It was either applying auto-revert-mode to dired > buffers or applying it to buffer lists that caused the problem, I can't > remember which. Try disabling those and see if it fixes it. Reverting a Dired buffer centers the line that was current, and puts the cursor at the beginning of the file name on that line. This happens regardless of how you revert (using `g' or using `auto-rever-mode'). For buffer reverting, you have `after-revert-hook' (and `before...'), which you could no doubt use to counteract any such window and point movement.