From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: C-l equiv w/ "truncate lines" mode? Date: Tue, 8 Apr 2008 21:36:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8cc69610-b565-4b4a-a052-490f124323fc@q1g2000prf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1207716091 23832 80.91.229.12 (9 Apr 2008 04:41:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2008 04:41:31 +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 Apr 09 06:42:03 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JjS8I-00056F-VK for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Apr 2008 06:42:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JjS7f-0002L7-8l for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Apr 2008 00:41:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q1g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 24.6.97.120 Original-X-Trace: posting.google.com 1207715761 29688 127.0.0.1 (9 Apr 2008 04:36:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 9 Apr 2008 04:36:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q1g2000prf.googlegroups.com; posting-host=24.6.97.120; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:157820 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53191 Archived-At: On Apr 8, 1:42=C2=A0pm, "Bryan W. Lepore" wrote: > is there a C-l equivalent -- perhaps "center vertical"? -- in "truncate > lines" mode (that is ativated by M-x toggle-truncate-lines)? > > -bryan C-l (Alt+x recenter) works for me in truncate-lines minor mode. perhaps you wanted a new command that scroll left or right horizontally by certain points so that your cursor is at the center? if so you could write a function that calls scroll-left or scroll- right. The amount n, can be obtained by finding out the current position of cursor wrt the current line length. You can find out current position of cursor with (point), and beginning and ending pos of the current line with point-at-bol and point-at-eol. Xah xah@xahlee.org =E2=88=91 http://xahlee.org/ =E2=98=84