From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: getting jerked around by C-x h (select whole buffer as region) Date: Sun, 16 Feb 2003 02:38:01 GMT Organization: Still searching... Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <8465rlv3h5.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045363174 8372 80.91.224.249 (16 Feb 2003 02:39:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2003 02:39:34 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18kEiL-0002Au-00 for ; Sun, 16 Feb 2003 03:39:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18kEj6-00083N-00 for gnu-help-gnu-emacs@m.gmane.org; Sat, 15 Feb 2003 21:40:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed.news2me.com!news-xfer.cox.net!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr16.news.prodigy.com.POSTED!cbca52ab!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:MVLVXEMOlhOs3ACj8s/RjkMQKdM= Original-Lines: 23 Original-NNTP-Posting-Host: 63.202.233.77 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr16.news.prodigy.com 1045363081 ST000 63.202.233.77 (Sat, 15 Feb 2003 21:38:01 EST) Original-NNTP-Posting-Date: Sat, 15 Feb 2003 21:38:01 EST X-UserInfo1: TSU[@I_A\S@CRUH[N[O@_WH@YR_B@EXLLBWLOOAFWIWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN Original-Xref: shelby.stanford.edu gnu.emacs.help:110242 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6744 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6744 kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes: > Harry Putnam 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.