* getting jerked around by C-x h (select whole buffer as region)
@ 2003-02-15 17:22 Harry Putnam
2003-02-15 17:49 ` Kai Großjohann
0 siblings, 1 reply; 3+ messages in thread
From: Harry Putnam @ 2003-02-15 17:22 UTC (permalink / raw)
How can I avoid being jerked to the top of a large buffer when I run
the command C-x h (select whole buffer as region).
Its quite irritating to be viewing certain lines then be jerked clear
into the next state suddenly. Especiall since C-x C-x doens't bring
you back to ground zero. Instead it jerks to the bottom of the buffer.
In fact that has the ear marks of a bug maybe.
wc -l shows 789
emacs +30 file
We make changes at 30, 93, 74, 390, 456
We are now at ground zero 456
We decide for some reason to select the who buffer, maybe to feed it
thru a shell script or something.
We press C-x h.. zoom-Jerko .. Now we are at line 1
We press C-x C-x.. zoom-Jerko now we are at line 789
Well ya, one can save marks in regesters or whatever, but why all the
commotion to begin with? Hard to imagine a time when our user would
want that. Seems she most likely would want to remain at marks location.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: getting jerked around by C-x h (select whole buffer as region)
2003-02-15 17:22 getting jerked around by C-x h (select whole buffer as region) Harry Putnam
@ 2003-02-15 17:49 ` Kai Großjohann
2003-02-16 2:38 ` Harry Putnam
0 siblings, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2003-02-15 17:49 UTC (permalink / raw)
Harry Putnam <hgp@sbcglobal.net> writes:
> How can I avoid being jerked to the top of a large buffer when I run
> the command C-x h (select whole buffer as region).
This is not possible: the region is always the stretch of text
between point and mark. So either point or mark must be at the
beginning of the buffer, and the other must be at the end.
I wonder if C-u C-SPC takes you back (possibly repeat a couple of
times). If not, then you might have to do C-SPC before C-x h so that
C-u C-SPC can take you back.
--
A turnip curses Elvis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: getting jerked around by C-x h (select whole buffer as region)
2003-02-15 17:49 ` Kai Großjohann
@ 2003-02-16 2:38 ` Harry Putnam
0 siblings, 0 replies; 3+ messages in thread
From: Harry Putnam @ 2003-02-16 2:38 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 956 bytes --]
kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:
> Harry Putnam <hgp@sbcglobal.net> writes:
>
>> How can I avoid being jerked to the top of a large buffer when I run
>> the command C-x h (select whole buffer as region).
>
> This is not possible: the region is always the stretch of text
> between point and mark. So either point or mark must be at the
> beginning of the buffer, and the other must be at the end.
Some one sent me code privately that does it. But I hadn't really
considered the actual mechanics; point-min and point-max being the
region and all. However, I wonder if it would be serious bloatation
to add code to C-x h that remembers starting mark.
>
> I wonder if C-u C-SPC takes you back (possibly repeat a couple of
> times). If not, then you might have to do C-SPC before C-x h so that
> C-u C-SPC can take you back.
Turns out this does work. I didn't know about C-u C-SPC. It takes
two jumps to get back .... thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-16 2:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-15 17:22 getting jerked around by C-x h (select whole buffer as region) Harry Putnam
2003-02-15 17:49 ` Kai Großjohann
2003-02-16 2:38 ` Harry Putnam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).