From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#51530: 28.0.50; allout cannot advance to next visible heading Date: Sun, 31 Oct 2021 23:48:12 +0100 Message-ID: <871r40g6ab.fsf@gmx.net> References: <8635ohw36s.fsf@kademan.org> <83tugxm7gy.fsf@gnu.org> <861r41uf6s.fsf@kademan.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27820"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: 51530@debbugs.gnu.org To: Edmund Kademan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 31 23:49:11 2021 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 1mhJdW-000713-Mg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 23:49:10 +0100 Original-Received: from localhost ([::1]:41760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhJdU-0002bz-R0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 18:49:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhJdO-0002bq-Eq for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 18:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhJdO-0004Fk-3a for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 18:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhJdN-0006Uj-Ko for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 18:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Oct 2021 22:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51530 X-GNU-PR-Package: emacs Original-Received: via spool by 51530-submit@debbugs.gnu.org id=B51530.163572050124913 (code B ref 51530); Sun, 31 Oct 2021 22:49:01 +0000 Original-Received: (at 51530) by debbugs.gnu.org; 31 Oct 2021 22:48:21 +0000 Original-Received: from localhost ([127.0.0.1]:33260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhJcj-0006Tl-In for submit@debbugs.gnu.org; Sun, 31 Oct 2021 18:48:21 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:60893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhJci-0006TZ-EN for 51530@debbugs.gnu.org; Sun, 31 Oct 2021 18:48:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635720494; bh=sdKtsBVQ9bXbBHqp0F7kLj3KFfud/vfcn/FlYeUnJjk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Nei9HOZlm4SJmFC9lkNqvVnxA8QvCOE6ESv+ovqhDo73UJL/PMxP0wE76NtGPsmuH 8eo7KD+XezWWIqTzvFsWyGE/0IE60zPVFL+9Hgn/OH2YbR60UoH3Z17wiDyoHEypvr 28AzLu599KdEEloy7dKE2C3e38XumT24C0Y0c7wM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs ([94.220.126.208]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MGz1f-1mTJFu3791-00E6Ge; Sun, 31 Oct 2021 23:48:14 +0100 In-Reply-To: <861r41uf6s.fsf@kademan.org> (Edmund Kademan's message of "Sun, 31 Oct 2021 16:10:06 -0400") X-Provags-ID: V03:K1:mmWJFDoy1E6xLelQRIgpglQOWlJuO6QZd6Vg2luBRmWsmmlqSSz ARDtAxw6Sh502lxQwReS2uIF+FzCwtYYb77fY5wnNm3NZrpQVrW48s7KGkasrH0RloybYqE 3vEb8kRsDqeJF1797rMrwWUH8jjXeL54awlGKseoPt1/H1/PHrr7gIS1HdOFmZx15YDrfXN mOjcSEHJ/LXJJFNnNAtQQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:PBc68Upexig=:xw/1G/DeqJZ43WrzhaUpIQ cI1UhocQ1TbjMvSrrh+zBly0UUmDNiC++JRReFptV1H7Nc6Rt5CYQSpu90m1Udn7LuNYUMnAK Egum+3x/EFcjftqLwFn3v4c/lcSswAh3UqyGRZtLyUtPIeFFpqeGeumvUYTW1CgF85efhI2o4 Kx7sFG60iPJxzzL4yBM5Q+kr8DldJ8ADiCe8lcgZywrdY1FI0kSt0M8kZkvN0Yz0d+9hs+54X s829nueESiDaubduj2+lhocUge7phR465sJspFc2u++DTYUL7b4L4fOjpvZD5WXV0wLbuydnk yz6TPI2+GqJCZ1FmIrJ7uNbA+pA184WJr0UC8YDnCFRGTCFD+UT7M9mlQdrvxQ4ASlVjRD4rg Mz4xiSccRzN96kSt591aVZJeT6SunOcezryAHMSQgkL37OwxRZu7eDNp1VKbKNi3V1AgqJfdO Zl5gny6nXymywruEDp8AUj2D4/LnAB1YmFTUrZiZ002El2uOgyMUjyDA8HqudMKMG6KQUQg7b QjhcI3WFXhXGitnrgNBgGXafLN1tzClE47aeXqi1L8QjNtRjTzANnbhgezNzjmn662jFxG8t4 uoQfoMG+UD0flq5dmLNs5Plb3Tnl3ne9Q70Y9I9yrletnd4j+8340iQi4jRilGU2t8RAmHePJ Yd1I9l4CSXLpjnO15BNtxmbwhGJpUj/4nZvFq2eb1LPkxocnPFuNe+AEPucB+ye/ZJdwWY8KX T1m2gWMEfChSZ0NU0wR6WCme71+p/PQgggNqro9jS8FPVTeqMFfmvSkq+F1afI08Ifpuvr9l 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:218724 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 31 Oct 2021 16:10:06 -0400 Edmund Kademan wrote: > Eli Zaretskii writes: > >>> From: Edmund Kademan >>> Date: Sun, 31 Oct 2021 12:26:57 -0400 >>> >>> When you: >>> - are in allout mode and >>> - are not truncating lines and >>> - have your cursor on the heading of an entry that contains a line s= o >>> long that it wraps around to the left margin and >>> - try to run the command allout-next-visible-heading (C-c C-o C-a C-= n) >>> the command never completes. >> >> Thanks. >> >> I don't use this mode, so could you please send the minimal file >> needed to reproduce this issue? > > Thank you for responding so promptly. The attached file demonstrates > the problem. I have a personal work-around so there's no urgency as > far as I'm concerned. > > -*- mode: allout -*- > > * topic 1 > Configure emacs so that > lines in this topic fit > the screen without hitting the right > margin. To go to topic 2 put > your cursor on the asterisk > above and hit "n" to run > `allout-next-visible-heading'. > > * topic 2 > Now with your cursor on topic 2's > asterisk, hit "n" again to go to > topic 3. This time emacs just > spins its wheels. > Here is a very long line that wraps around on your display when you are = not truncating lines. Make your emacs window narrow enough so that this d= isplays as at least two "visual" lines. > > * topic 3 > You can get here by hitting "n" > as above if you > `toggle-truncate-lines' or > get rid of topic 2's long line. I can reproduce the problem and the following patch seems to fix it, but I don't know if it causes undesirable behavior in other cases. Steve Berman --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Description: allout.el patch Content-Transfer-Encoding: quoted-printable diff --git a/lisp/allout.el b/lisp/allout.el index 5102ee7341..c1698c1eb4 100644 =2D-- a/lisp/allout.el +++ b/lisp/allout.el @@ -3079,7 +3079,7 @@ allout-next-visible-heading (backward (if (< arg 0) (setq arg (* -1 arg)))) (step (if backward -1 1)) (progress (allout-current-bullet-pos)) - prev got) + prev got line-move-visual) (while (> arg 0) (while (and --=-=-=--