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.bugs Subject: bug#43948: 28.0.50; [PATHC][NS] Make s- to move to beginning/end of line Date: Fri, 13 Nov 2020 10:05:44 +0200 Message-ID: <83d00hy947.fsf@gnu.org> References: <69363AFC-A591-4790-A359-A56E4CD828C1@icloud.com> <83a6vmzlkd.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31391"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, tsuucat@icloud.com, 43948@debbugs.gnu.org To: Andrii Kolomoiets Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 13 09:07:29 2020 Return-path: Envelope-to: geb-bug-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 1kdU7E-00084l-Ne for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Nov 2020 09:07:28 +0100 Original-Received: from localhost ([::1]:42202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdU7D-0002zI-E9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Nov 2020 03:07:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdU6o-0002yu-HX for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 03:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdU6o-00071n-8v for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 03:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdU6o-0005G0-0n for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 03:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Nov 2020 08:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43948 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43948-submit@debbugs.gnu.org id=B43948.160525477020144 (code B ref 43948); Fri, 13 Nov 2020 08:07:01 +0000 Original-Received: (at 43948) by debbugs.gnu.org; 13 Nov 2020 08:06:10 +0000 Original-Received: from localhost ([127.0.0.1]:46567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdU5x-0005Ep-VO for submit@debbugs.gnu.org; Fri, 13 Nov 2020 03:06:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdU5w-0005Ea-2j for 43948@debbugs.gnu.org; Fri, 13 Nov 2020 03:06:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43057) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdU5o-0006hi-ME; Fri, 13 Nov 2020 03:06:01 -0500 Original-Received: from [176.228.60.248] (port=4654 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kdU5o-0003f8-19; Fri, 13 Nov 2020 03:06:00 -0500 In-Reply-To: (message from Andrii Kolomoiets on Fri, 13 Nov 2020 01:20:36 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193212 Archived-At: > From: Andrii Kolomoiets > Cc: tsuucat@icloud.com, alan@idiocy.org, 43948@debbugs.gnu.org > Date: Fri, 13 Nov 2020 01:20:36 +0200 > > Eli Zaretskii writes: > > >> 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 > > > > What else did you expect, in a continued line? There's no place to > > show the cursor except at the beginning of the next screen line. > > Well, sometimes the cursor is on the fringe. Can't be done in this case, because the fringe is "taken" by the continuation bitmap. > With "bar" cursor type this leads to interesting behavior: > emacs -Q > M-: (set-frame-width nil 70) > M-: (setq cursor-type 'bar) > > Now it's easy to place the cursor after the "." on the first line: > M-< C-e > But it is not possible to place the cursor after last "e" on the second > line. > > IIRC it's because the cursor is actually "on" some character and not > "before" or "after" it. Technically, because we decide where to place the cursor before we know what is the shape of the cursor. And yes, we draw the cursor inside a certain character cell (because that's what users generally expect). > And at the end of the first line the cursor is on the "new line" > character. Right. > I didn't mean to say the behavior of the 'end-of-visual-line' function > is wrong. I tried to say that behavior of the 'end-of-visual-line' > function outside the 'visual-line-mode' can be surprising for the users > who press Command- to go to the end of the line. Agreed.