From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: How to get back to a place in a buffer, or: what is a window configuration? Date: Wed, 03 Aug 2016 11:30:43 +0200 Message-ID: <87zioutd4v.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470216708 6657 195.159.176.226 (3 Aug 2016 09:31:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2016 09:31:48 +0000 (UTC) User-Agent: mu4e 0.9.16; emacs 25.1.50.6 To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 03 11:31:43 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 1bUsWd-0001VM-MN for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Aug 2016 11:31:43 +0200 Original-Received: from localhost ([::1]:32872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUsWa-0000Wj-9A for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Aug 2016 05:31:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUsVt-0000VX-Bf for help-gnu-emacs@gnu.org; Wed, 03 Aug 2016 05:30:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUsVs-0004TR-7f for help-gnu-emacs@gnu.org; Wed, 03 Aug 2016 05:30:57 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:38086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUsVs-0004St-0D for help-gnu-emacs@gnu.org; Wed, 03 Aug 2016 05:30:56 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 5268FE6209 for ; Wed, 3 Aug 2016 11:30:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5Fdha8FahVfa for ; Wed, 3 Aug 2016 11:30:47 +0200 (CEST) Original-Received: from localhost (unknown [IPv6:2a01:114f:970:8d00:a288:b4ff:fe90:5e24]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 85253E6066 for ; Wed, 3 Aug 2016 11:30:47 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:5e00:2:52::8 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:111051 Archived-At: Hi all, sometimes I work on a particular place in some buffer, and Emacs for some reason scrolls me out of that place. I want then to get back to it. Is there a way (in stock Emacs or with help of M?elpa) to accomplish that? Bonus points for a package/command which /temporarily/ disables C-v/M-v and other commands that might result in scrolling text in the window. (Narrowing to what is currently visible should do the trick, so a combination of M-r, C-e and C-SPC would probably do what I want. Coding that is three minutes, but maybe someone did it already?) Note that it's not the same as keeping a position in a register. A simple experiment shows that keeping a /window configurations/ seems to do what I want, but from reading the manual I'm not sure what a "window configuration" really is. What does a "window configuration" consist of, exactly? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University