From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao 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 17:35:29 +0800 Message-ID: References: <877csvvjz2.fsf@web.de> <83o7m7lhgf.fsf@gnu.org> <83lehblczt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23608"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 26 11:36:25 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 1q2Ts0-0005uS-Lt for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 26 May 2023 11:36:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2TrW-0008O0-97; Fri, 26 May 2023 05:35:54 -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 1q2TrR-0008Mz-KX for help-gnu-emacs@gnu.org; Fri, 26 May 2023 05:35:49 -0400 Original-Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2TrP-0006DI-W9; Fri, 26 May 2023 05:35:49 -0400 Original-Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-96f850b32caso92845666b.3; Fri, 26 May 2023 02:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685093742; x=1687685742; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kekro2SogM+XcrUFFZ6m04Az3o6r68It6u4HwR+Iy98=; b=RNLLN5G/s/xPAP6Idj8px4YVd3iawZ7O57Pe0n5tikBSpeaE8FcI2j065DdG4uCtWp dFuRuuVuCQY93x0xzI83prblqthy59I6a1CDJAMRYMhmwb9i5vDctHSFj1n+CTu9FfYR xhLsqd6QwckOBenFwcb/tBy6vDWQnEaBx7EE5XLl18JfZGDcTsqU2iLwitFrqE4jdOtl sZEpxz0mg8JZOPWlugzBMlO6IdNdqkMfPTnwbmVvlhoHqXuoKTr149/yiQX1zKeiZ36Y BAeEDoN03+7tUVX2rbj1XXVeYjK4GYC/mk7mjCTLvqoWVNvI4Q+kWWWWKP5fKC7530fc xu5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685093742; x=1687685742; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kekro2SogM+XcrUFFZ6m04Az3o6r68It6u4HwR+Iy98=; b=OTZvmgzzQppyOuQa+Me5vvOOxYXAX+rFuroIpT1spHv0huTMSUtnPkWGH9PqZdbrB1 +ntiUmoEEZxZbFBFTFAY1qXhpS8Q5EtNxOAQ0mfDYVDBkmaCApWCyuX9bAu0I+DAnaun 13YIsb/gpAZzMtOdl46QVYtxpE+3eMuhVfd/KLdQ6/RoltfTFtMGsUEwCR7VPKuBBwpZ CbQmtV2hIRQmDGDcAcEIN1E46nrqs3vtWb5XW6drA4GToh/5/4NAwEeI4Vz4peqDCnC2 Jm6oe1FQplWhMi4IxYYmhlu9AH7ZH1YBrhAH2dDBq2kOUA9W1loNGnwgzOl1j3+ZHwo3 3WKg== X-Gm-Message-State: AC+VfDxs3TUzdMr2wees7T3NwpKGEiloWEJE8Q4UhkEMZtX3ThE3tjf7 0Qokm1l9J68WxE/Db3Zo8ktlAlylZ+Jc/rFkSvCPqrIkCXjVRQ== X-Google-Smtp-Source: ACHHUZ6Ag1kpFC0Qpz0SzRkV8gR03dDktkB4Z1scstcpPPWkWvOGiwc0o9v/3wDJfDwWfo0+xZPkOhG61XQlrvCsWs0= X-Received: by 2002:a17:906:eec8:b0:968:4ce9:677a with SMTP id wu8-20020a170906eec800b009684ce9677amr1671664ejb.38.1685093741585; Fri, 26 May 2023 02:35:41 -0700 (PDT) In-Reply-To: <83lehblczt.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x62d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:143753 Archived-At: On Fri, May 26, 2023 at 4:21=E2=80=AFPM Eli Zaretskii wrote: > > > 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=E2=80=AFPM Eli Zaretskii wr= ote: > > > > > 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 =E2=80=98simple.el=E2=80=99. > > > > It is bound to C- and M->. > > It can also be invoked from the menu: Edit =E2=86=92 Go To =E2=86=92 Go= to 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. How to find the detailed expansion on this feature from the built-in docume= nt? Regards, Zhao