From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5018: 23.1.50; Feature request: truncate-lines text property Date: Sun, 04 Jun 2017 22:05:08 +0300 Message-ID: <83vaoba80r.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1496603171 19740 195.159.176.226 (4 Jun 2017 19:06:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Jun 2017 19:06:11 +0000 (UTC) Cc: 5018@debbugs.gnu.org To: Michael Brand Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 04 21:06:08 2017 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 1dHaql-0004t9-Mg for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Jun 2017 21:06:07 +0200 Original-Received: from localhost ([::1]:58249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHaqr-0001SF-07 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Jun 2017 15:06:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHaqk-0001S9-5C for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 15:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHaqg-0003PB-Rz for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 15:06:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53444) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHaqg-0003OY-Fd for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 15:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dHaqg-0006Ux-8n for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 15:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jun 2017 19:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5018 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5018-submit@debbugs.gnu.org id=B5018.149660313124943 (code B ref 5018); Sun, 04 Jun 2017 19:06:02 +0000 Original-Received: (at 5018) by debbugs.gnu.org; 4 Jun 2017 19:05:31 +0000 Original-Received: from localhost ([127.0.0.1]:56121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHaqB-0006UF-5l for submit@debbugs.gnu.org; Sun, 04 Jun 2017 15:05:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHaq8-0006U1-PP for 5018@debbugs.gnu.org; Sun, 04 Jun 2017 15:05:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHaq0-0002qE-Bd for 5018@debbugs.gnu.org; Sun, 04 Jun 2017 15:05:23 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHaq0-0002q9-8V; Sun, 04 Jun 2017 15:05:20 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4660 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dHapz-0002pJ-KM; Sun, 04 Jun 2017 15:05:20 -0400 In-reply-to: (message from Michael Brand on Sun, 4 Jun 2017 20:11:51 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:133269 Archived-At: > From: Michael Brand > Date: Sun, 4 Jun 2017 20:11:51 +0200 > > I would like to express my serious interest in this. Would you like to work on implementing this feature? I can provide guidance if needed. > I would like to add that this new feature would have to allow to a) > truncate all lines, b) truncate only the lines with the new text > property or c) not truncate any line. I would propose to come up with an agreed set of requirements for the feature. The original request is quite vague and leaves a lot TBD. For example: . is the override supposed to work in reverse, i.e. when the buffer-specific value of truncate-lines is non-nil, but the property's value is nil, is it expected that the line with the property will wrap instead of being truncated? . what text is supposed to have this property to mark the line as truncated, and how will Emacs know where the effect of the property ends? e.g., will we require the property to be set on the entire line, including the newline, or will it be enough to set it only on part of the line? . should truncate-partial-width-windows obey this property as well? . when point moves along a line which is being truncated, and goes outside of the visible portion of the window, how do we want to hscroll the text in the window, in those parts that display lines which wrap? . should we also truncate if this property is on a display string or on an overlay string, or only if it's on buffer text? Needless to say, the more we require from the feature, the harder it will be to implement correctly. We should choose wisely.