|
From: | tsuucat |
Subject: | bug#43948: 28.0.50; [PATHC][NS] Make s-<left/right> to move to beginning/end of line |
Date: | Thu, 12 Nov 2020 19:04:33 +0900 |
> Andrii Kolomoiets <andreyk.mad@gmail.com> writes: > > tsuucat <tsuucat@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. 🙇
[Prev in Thread] | Current Thread | [Next in Thread] |