From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Move the point to the end of current buffer with the whole buffer selected. Date: Fri, 26 May 2023 11:21:10 +0300 Message-ID: <83lehblczt.fsf@gnu.org> References: <877csvvjz2.fsf@web.de> <83o7m7lhgf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12855"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 26 10:21:20 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q2ShM-00036z-3A for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 26 May 2023 10:21:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2Sgt-0001Fd-0Q; Fri, 26 May 2023 04:20:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2Sgj-0000uD-IQ for help-gnu-emacs@gnu.org; Fri, 26 May 2023 04:20:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2Sgj-0007Fz-A4 for help-gnu-emacs@gnu.org; Fri, 26 May 2023 04:20:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=x+1tl1mX8vTixP6FXIb1vlT06wG5yN9ILAu+PF9mqbM=; b=VyXhyZI6Kpy4FDHK8Adu JjlLs+k+aDhOm48THuKRo6ebn0aQUBAhC3YdpoYqGa//DgM84SILKl2w5Fk94REYQIQD1AnP7nlvr pcVNhWue5hJ2ixRPQXRsX/lJicOamTWCyBlmCa7cycB8JRgCtHgYSf/fIzYVLkZnJVnrKQheCLRxy VN6EFvObcQWB9D1MB7RG2pvl1Q2Q2AHftvgwPecyuTuJFfaNHeEfYqHGit9suD4Lpi7XU95rHcLri 0up99Zu+u7ZKDNKg/kpiY28sz3sTuAgAkOccmHuxqpLtpW7PoAah4lSpU/ioy3oROP402lkU3ohFF QQ7y7w4mNtorOg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2Sgi-0005xr-0D for help-gnu-emacs@gnu.org; Fri, 26 May 2023 04:20:40 -0400 In-Reply-To: (message from Hongyi Zhao on Fri, 26 May 2023 15:21:50 +0800) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143750 Archived-At: > From: Hongyi Zhao > Date: Fri, 26 May 2023 15:21:50 +0800 > Cc: help-gnu-emacs@gnu.org > > On Fri, May 26, 2023 at 2:44 PM Eli Zaretskii wrote: > > > Based on my tries, the following keystroke sequence does the trick: > > C-x h > C-S- > > On the other hand, `C-h k C-S- RET` reveals the following: > > ``` begin quote > C- (translated from C-S-) runs the command end-of-buffer > (found in global-map), which is an interactive byte-compiled Lisp > function in ‘simple.el’. > > It is bound to C- and M->. > It can also be invoked from the menu: Edit → Go To → Goto End of > Buffer > > (end-of-buffer &optional ARG) > > Move point to the end of the buffer. > With numeric arg N, put point N/10 of the way from the end. > If the buffer is narrowed, this command uses the end of the > accessible part of the buffer. > > Push mark at previous position, unless either a C-u prefix > is supplied, or Transient Mark mode is enabled and the mark is active. > > This function is for interactive use only; > in Lisp code use `(goto-char (point-max))' instead. > Probably introduced at or before Emacs version 22.1. > ``` end quote > > But based on my testing, C- and M->. can only select the last > line when issued after C-x h. You are missing the "shift-select" feature, which the Shift key in C-S- activates.