help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move the point to the end of current buffer with the whole buffer se


From: Hongyi Zhao
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

On Fri, May 26, 2023 at 4:21 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > 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 <eliz@gnu.org> wrote:
> > >
> > Based on my tries, the following keystroke sequence does the trick:
> >
> > C-x h
> > C-S-<END>
> >
> > On the other hand, `C-h k C-S-<END> RET` reveals the following:
> >
> > ``` begin quote
> > C-<end> (translated from C-S-<end>) 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-<end> 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-<end> 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-<END> activates.

How to find the detailed expansion on this feature from the built-in document?

Regards,
Zhao



reply via email to

[Prev in Thread] Current Thread [Next in Thread]