From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#31666: Bad interaction between visual-line-mode and wrap-prefix on long lines Date: Fri, 01 Jun 2018 10:00:52 +0200 Message-ID: <874liney17.fsf@gmx.net> References: <0c50eeb5-7c99-e8ba-2d0b-865b6617cfe1@live.com> <83fu27hnko.fsf@gnu.org> <99baa6b2-584f-789f-ecf8-d845aedd18ef@live.com> <87fu27bboa.fsf@gmail.com> <878t7zf0qw.fsf@gmx.net> <834lingdxj.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527840112 30853 195.159.176.226 (1 Jun 2018 08:01:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 1 Jun 2018 08:01:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: clement.pitclaudel@live.com, npostavs@gmail.com, 31666@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 01 10:01:48 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fOf0N-0007vp-UC for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Jun 2018 10:01:48 +0200 Original-Received: from localhost ([::1]:48050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOf2U-0005Uf-TZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Jun 2018 04:03:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOf0i-0004TX-FL for bug-gnu-emacs@gnu.org; Fri, 01 Jun 2018 04:02:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOf0c-0001ZS-Im for bug-gnu-emacs@gnu.org; Fri, 01 Jun 2018 04:02:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48852) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOf0c-0001ZJ-Eq for bug-gnu-emacs@gnu.org; Fri, 01 Jun 2018 04:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fOf0b-0004zz-O4 for bug-gnu-emacs@gnu.org; Fri, 01 Jun 2018 04:02: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: Fri, 01 Jun 2018 08:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31666-submit@debbugs.gnu.org id=B31666.152784006419142 (code B ref 31666); Fri, 01 Jun 2018 08:02:01 +0000 Original-Received: (at 31666) by debbugs.gnu.org; 1 Jun 2018 08:01:04 +0000 Original-Received: from localhost ([127.0.0.1]:56749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fOezg-0004yg-8W for submit@debbugs.gnu.org; Fri, 01 Jun 2018 04:01:04 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:59003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fOezf-0004y5-Bb for 31666@debbugs.gnu.org; Fri, 01 Jun 2018 04:01:03 -0400 Original-Received: from rosalinde ([83.135.11.132]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MVvi4-1fmjJF34Ia-00X6qB; Fri, 01 Jun 2018 10:00:53 +0200 In-Reply-To: <834lingdxj.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 01 Jun 2018 10:32:08 +0300") X-Provags-ID: V03:K1:6KQy2cTAnTMQ6dpHP4QphD5ZpSMxkrMLBZZPBY7erN34SMWnkcW FN/fHDohRgKPOZdeCUe63LwYSgdanvTI+ecgKrK9FHi8hAtFpBN6XBfZGxKCPECTKWANN1Q hX5pMaMLxbcM6NUxehB7KUwQrzzWOi5qGCLi+MmJGAXtskycwGjLcD5S6oq9zQKO2K06MR/ m2Mz7omAsU6lVvTg6Qujg== X-UI-Out-Filterresults: notjunk:1;V01:K0:jtsExR3cXns=:SdonG4CHnGQtG00I6iQSZ7 0cmzlu1dv6TfVP3WP4b+dYs/pRtrsdPKywElOs82pN4fclRwRATKvTWwXAYDOCkuAxowYNwBY IauGzvcbILDymiaW0gZq1ZFTdSEOYrsicV++4RREYXF7Y6uQXGzm/BmRG9gZ3H9ZiCWpHQFHC dumWMQt6ngdasaJFzhftxUYltmT6bjDnH63i1vwtqYpVyBkkPPMptY3UTwhPGrl3O32reWqrK fsjTa/JRHDx6TAhu+yg9AgWSGmUK7Dl3hfZ9seNCjgDm3zaCN1aJXQjXnfluImuONUBU6UBCu SuwpAFkA6HNhYQH6c7RyW9URlmXlquOSG1ENFs7lgGrSUnjpkrz5VJtQ7qhiA0mM92EalczGZ INOA8RihsJWSPP+BT8isqRzRkO0eHFD8r3UjSOZ0mNh4THFaY8P7VdrEtNIT3pQjgE6gqTrqB JR2pjOd9qK5KHbh3XZx4uMzNnKzCs9j9q+V3M2kGGrIbooEkqR03NgLyKKI7st/b3MmTDaOB2 wNEg3L5ggZhKBJkBnYumv2J2YsYnKb/OHzZlaDdPTTHoSSgIgXGF6dQJNADBZWF6Ud2LEFdwu L8c/ZqAQQGf0nlO/1WATSt/UPnbyDkXNRvETziik1u6cLoAnF7JOSUvXw8SdsmqTFtjmWQmRH 1nBatRxAuNkg7oHaEqKlxFg941qWfOzR46hmVixQ+1uh4V6xmCTWBwKdukWH5EnTkjrJo+Kit H4gnZHqr2AViPL92mI7pLKCXDnfTNrVPBE02qdyBAhBn+nhHSyNNEAURCmxlaDQvqBIHaUJA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146807 Archived-At: On Fri, 01 Jun 2018 10:32:08 +0300 Eli Zaretskii wrote: > [...] What you propose would require it to look ahead one more > screen line (to determine whether it will still be too long after > wrapping), which will slow down redisplay and complicate the code even > more. > > It will also have a nasty (IMO) effect, whereby adding or removing a > character to the "bbb..." part will make the display change between > this: > > aaaaaaaaaaaaaaaa > bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb > > and this: > > aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb > > This will cause all the rest of the text below this line to scroll up > or down, But this is what already happens with visual-line-mode enabled... > which will require us to disable several redisplay > optimizations when just one character is inserted/deleted. ...or have I misunderstood what you're referring to? > If someone can find a clever technique to overcome these difficulties, > I'm sure patches will be very welcome. > >> This is also an issue in todo-mode, which by default >> enables visual-line-mode and indents with wrap-prefix. For example, >> here both items have no space after the date, but the second one is too >> long for the window, so Visual Line mode breaks it: >> >> 1 [May 31, 2018] http://git.savannah.gnu.org/cgit/emacs.git/log/ >> 2 [May 31, 2018] >> http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c0a0351249c1e6a9307224d >> 8337ff8916f4cf138 >> >> It would be nice if the display could be like this: >> >> 1 [May 31, 2018] http://git.savannah.gnu.org/cgit/emacs.git/log/ >> 2 [May 31, 2018] http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c0a035124 >> 9c1e6a9307224d8337ff8916f4cf138 > > The usual way of handling these situations is to turn on > truncate-lines. Any reasons why you don't do that in that mode? > Especially since we now have horizontal scrolling of just the current > line? I would find it more inconvenient to scroll to see the whole item. The line-breaking is just an aesthetic issue here. Steve Berman