Keeping the point in view

Discussion of programming Lisps using Emacs, including SLIME and other tools

Keeping the point in view

Postby Pixel_Outlaw » Tue Mar 04, 2014 7:00 pm

I've been working a lot with files having lines of around 1500 characters.
These are part of a file format and cannot be modified.

My problem is that I can often move along the lines with C-PgUp and c-PgDown yet the point does not follow the current chunk of buffer. Sure I can click with my mouse to put point in view but how do you do this with the keyboard?

What is the best solution to keeping point in view when scrolling?
Most editors use a horizontal scrollbar but as there isn't one in emacs I'm stuck editing very long lines.
Pixel_Outlaw
 
Posts: 41
Joined: Mon Aug 26, 2013 9:24 pm

Re: Keeping the point in view

Postby Goheeca » Wed Mar 05, 2014 6:07 am

If the data are homogenous there is another possibility: turn on line wrapping & use the goal column. So you can easily jump on the same logical column of line. I know, it's not the answer you wanted to hear.
cl-2dsyntax is my attempt to create a Python-like reader. My mirror of CLHS (and the dark themed version).
User avatar
Goheeca
 
Posts: 197
Joined: Thu May 10, 2012 12:54 pm

Re: Keeping the point in view

Postby Pixel_Outlaw » Wed Mar 05, 2014 11:00 pm

Goheeca wrote:If the data are homogenous there is another possibility: turn on line wrapping & use the goal column. So you can easily jump on the same logical column of line. I know, it's not the answer you wanted to hear.



I don't quite follow what you are saying regarding data being homogeneous...
My real gripe with line wrapping is that the lines have positional data in similar columns and I need to see the vertical fields aligned. (These are propritary file formats used by EDI or Electronic Data Interchange)
I get the feeling that Emacs is mostly a programmers tool where you practice 80 column source code.

I wonder if the scroll bar on the side is actually controlled via an emacs function? I know it is GTK on Windows at work.
Perhaps there is a way to impliment a horizontal scrollbar as that is also a GTK widgit?

Don't get me wrong I love emacs though. Favorite editor.
Pixel_Outlaw
 
Posts: 41
Joined: Mon Aug 26, 2013 9:24 pm


Return to Emacs

Who is online

Users browsing this forum: No registered users and 2 guests