GNU bug report logs -
#43948
28.0.50; [PATHC][NS] Make s-<left/right> to move to beginning/end of line
Previous Next
Reported by: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Date: Mon, 12 Oct 2020 11:38:01 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Done: Alan Third <alan <at> idiocy.org>
Bug is archived. No further changes may be made.
Full log
Message #58 received at 43948 <at> debbugs.gnu.org (full text, mbox):
> Andrii Kolomoiets <andreyk.mad <at> gmail.com> writes:
>
> tsuucat <tsuucat <at> icloud.com> writes:
>
>> macOS’s 'Command-Left/Right Arrow’ is not same as 'Control-A/E'.
>>
>> Why not use beginning-of-visual-line/end-of-visual-line?
>
> Isn't the visual-line-mode designed for this?
>
> I see two issues with binding s-<right> to end-of-visual-line:
>
> 1. emacs -Q
> 2. M-: (set-frame-width nil 50)
> 3. M-<
> 4. M-x end-of-visual-line
> The point moved to the beginning of the next visual line
> 5. M-<
> 6. M-x toggle-truncate-lines
> 7. M-x end-of-visual-line
> The point is not moved to the end of the line. Other macos apps will
> move point to the end of the line.
I confirmed M-x end-of-visual-line behaves differently with visual-line-mode
enabled than it does with visual-line-mode disabled (= end-of-visual-line is
intended with visual-line-mode enabled).
So Emacs doesn’t provide macOS 'Command-Left/Right Arrow’ equivalent
commands but using move-(beginning|end)-of-line is the most suitable choice.
Sorry for the noise. 🙇
This bug report was last modified 4 years and 249 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.