From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: patiobarbecue Newsgroups: gmane.emacs.help Subject: Re: how to browse data with many many columns Date: Mon, 22 Dec 2008 06:50:24 -0800 (PST) Message-ID: <21129072.post@talk.nabble.com> References: <21120962.post@talk.nabble.com> <1229939259.285615@arno.fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229957468 16009 80.91.229.12 (22 Dec 2008 14:51:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2008 14:51:08 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 22 15:52:14 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 1LEm8i-0003yt-Lh for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Dec 2008 15:52:12 +0100 Original-Received: from localhost ([127.0.0.1]:59405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEm7W-0008Tr-5m for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Dec 2008 09:50:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LEm77-0008TH-Bw for help-gnu-emacs@gnu.org; Mon, 22 Dec 2008 09:50:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LEm75-0008Si-RQ for Help-gnu-emacs@gnu.org; Mon, 22 Dec 2008 09:50:33 -0500 Original-Received: from [199.232.76.173] (port=60953 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEm75-0008ST-OD for Help-gnu-emacs@gnu.org; Mon, 22 Dec 2008 09:50:31 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:45618) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LEm75-0006LP-BF for Help-gnu-emacs@gnu.org; Mon, 22 Dec 2008 09:50:31 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LEm6y-0005m6-29 for Help-gnu-emacs@gnu.org; Mon, 22 Dec 2008 06:50:24 -0800 In-Reply-To: <1229939259.285615@arno.fh-trier.de> X-Nabble-From: vancouver.michael@gmail.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:60901 Archived-At: thanks, Andreas, it works pretty well. is it possible to out the code in .emacs, or even bind it to a key? (setq header-line-format (buffer-substring 1 (line-end-position (goto-char 1)))) so I don't need to type it in everytime. After all, it is a common task for me to read tables. Sincerely Yours, Michael Andreas Politz wrote: > > patiobarbecue wrote: >> Dear there, >> >> I have data file with many columns. The first line has field names as >> usual. >> I am reading column 35 for example, CTRL+v will turn the page BUT focus >> on >> column 1, and I have to locate column 35 again -:) Is there a convenient >> way? > > Indeed. > > ,----[ C-h f set-goal-column RET ] > | set-goal-column is an interactive compiled Lisp function in `simple.el'. > | It is bound to C-x C-n. > | (set-goal-column ARG) > | > | Set the current horizontal position as a goal for C-n and C-p. > | Those commands will move to this position in the line moved to > | rather than trying to keep the same horizontal position. > | With a non-nil argument, clears out the goal column > | so that C-n and C-p resume vertical motion. > | The goal column is stored in the variable `goal-column'. > | > `---- > > >> Also is it possible to keep the first line (table field names) visible >> while >> browse line 200? >> > > (setq header-line-format > (buffer-substring 1 (line-end-position (goto-char 1)))) > > > You need to eval this the buffers context (e.g. with M-:). > > > -ap >> Thanks for your reply in advance. >> >> Michael > > -- View this message in context: http://www.nabble.com/how-to-browse--data-with-many-many-columns-tp21120962p21129072.html Sent from the Emacs - Help mailing list archive at Nabble.com.