From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Scrolling the screen vertically Date: Wed, 04 Jul 2012 18:34:54 +0300 Message-ID: <83hatn4k0x.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1341416124 1044 80.91.229.3 (4 Jul 2012 15:35:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2012 15:35:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 04 17:35:23 2012 Return-path: Envelope-to: geh-help-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 1SmRbp-0007ig-Hw for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jul 2012 17:35:17 +0200 Original-Received: from localhost ([::1]:55345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmRbo-0008Ps-CF for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jul 2012 11:35:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmRbZ-0008KL-HQ for help-gnu-emacs@gnu.org; Wed, 04 Jul 2012 11:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmRbU-0000mj-Nl for help-gnu-emacs@gnu.org; Wed, 04 Jul 2012 11:35:01 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:60929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmRbU-0000mZ-Eq for help-gnu-emacs@gnu.org; Wed, 04 Jul 2012 11:34:56 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M6N0090073TWF00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 04 Jul 2012 18:34:54 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M6N009PK7A6WK00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 04 Jul 2012 18:34:54 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85658 Archived-At: > Date: Wed, 4 Jul 2012 17:29:22 +0300 > From: Valera Rozuvan > > While horizontal scrolling of a screen is easy with the default key > combos C-v and M-v, most times I run into the problem of quickly > scrolling sideways. This is a problem for me because I use > > (setq truncate-lines t) > > in my ~/.emacs > > There is the C-a to go to the beginning of the line, and also the C-e > to go to the end of the line. But if the line is very long, I would > like fine-grained control - to scroll by the screen's width with an > overlap of a few characters. Currently I use M-f and M-b to go right > or left by words (this is faster then just using the right and left > keys on the keyboard to move by a single character), but this method > is still slow. > > Ideally I would like to write some key combo which lets me peek on any > off-screen text (lines that are longer than the screen's width), and > then go back to the location of the cursor (ideally the cursor > shouldn't move). Is it possible to shift the "view-port" (don't know > how to properly call it) 50 characters left or right? Did you know about "C-x <" and "C-x >"? If they don't do what you want, then please explain more.