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#57669: 29.0.50; C-n, C-p off under long lines Date: Sat, 10 Sep 2022 15:24:42 +0300 Message-ID: <83wnaba039.fsf@gnu.org> References: <87y1uujufi.fsf@dick> <83k06effg6.fsf@gnu.org> <87tu5ijcqg.fsf@dick> <2e25ca87e3d9ee13ba3e@heytings.org> <87illxka46.fsf@dick> <8335d1dr39.fsf@gnu.org> <87mtb8hezl.fsf@dick> <838rmsd4cc.fsf@gnu.org> <878rmsh9me.fsf@dick> <87zgf8fsv3.fsf@dick> <83zgf8bkmn.fsf@gnu.org> <83v8pwbjvy.fsf@gnu.org> <87a678fnnz.fsf@dick> <83r10kbex8.fsf@gnu.org> <875yhwflw7.fsf@dick> <83pmg4bcjt.fsf@gnu.org> <87wnace31g.fsf@dick> <838rmrbrkp.fsf@gnu.org> <87bkrne8lf.fsf@dick> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7695"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57669@debbugs.gnu.org To: dick Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 10 14:26:15 2022 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 1oWzYt-0001oc-3U for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 14:26:15 +0200 Original-Received: from localhost ([::1]:53578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWzYq-0006NM-Vn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 08:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWzYg-0006My-Hj for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 08:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWzYg-0005j1-6P for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 08:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWzYf-0003rh-Sx for bug-gnu-emacs@gnu.org; Sat, 10 Sep 2022 08:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Sep 2022 12:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57669 X-GNU-PR-Package: emacs Original-Received: via spool by 57669-submit@debbugs.gnu.org id=B57669.166281271114791 (code B ref 57669); Sat, 10 Sep 2022 12:26:01 +0000 Original-Received: (at 57669) by debbugs.gnu.org; 10 Sep 2022 12:25:11 +0000 Original-Received: from localhost ([127.0.0.1]:36778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWzXq-0003qV-Jq for submit@debbugs.gnu.org; Sat, 10 Sep 2022 08:25:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWzXn-0003qE-Dk for 57669@debbugs.gnu.org; Sat, 10 Sep 2022 08:25:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48818) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWzXi-0005Pb-1o; Sat, 10 Sep 2022 08:25:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tdyQmEZidaAJj+DNCz/Q2TgdnWvkHkZ6xwMe6nSyPB8=; b=FLRTCElHcUmd FLy6ZIZfuXxg260lk2axAH+1Y1bwUQ03FvlC8FD2lB8NRhr27xY5+OYUnkVY/2bgrnYx+zPRXIGUP jc9cSrW+rBCKrfNsz2Tc4I9zXZCG915vKbA84/Zj2VIIhuqVOX9pzvgnt2+igXCWMEQpdsPvkpqRq ztb4QyVAuNu+96hKqnpY+oeuIGEi5WFwOCupbrP3aaCGDIP/+FgoQjVZLEH+YmLaIPl4bw4trMW1u VH2qoh/UWv3/zEznh3n//uAC1q7wSgopiV2L7WuRuW6W/XjRs8OzVq16QttxroxakiWqN52UpcVQa 7oPM03xw810eKSMb9WSL7Q==; Original-Received: from [87.69.77.57] (port=1685 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWzXh-0001bS-BX; Sat, 10 Sep 2022 08:25:01 -0400 In-Reply-To: <87bkrne8lf.fsf@dick> (message from dick on Sat, 10 Sep 2022 08:07:24 -0400) 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:242096 Archived-At: > From: dick > Cc: 57669@debbugs.gnu.org > Date: Sat, 10 Sep 2022 08:07:24 -0400 > > EZ> So I think this part of the code is equivalent to what we do, in > EZ> back_to_previous_visible_line_start > > I'm glad you noticed! It means you're actually reading the code! You cannot say anything of an essence without ad-hominem, can you? > One difference is I gate line scanning (as opposed to character > scanning) with behaved_p, whereas GNU crosses its fingers and hopes its > POS_LIMIT estimate is far enough. So oddly enough, for all my cavailier > assumptions, at least this part of the code [xdisp.c 9537:9577] is > *more* conservative than GNU. But since behaved_p is actually inaccurate at best, that doesn't really matter, does it? It just trades one class of cases where the shortcut doesn't work for another. You simply haven't yet met the situations where those problems happen, most probably because you tested only simple cases, like all-ASCII files which use a single fixed-pitch font. The code on master went through much more testing, by more users, during several years.