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.devel Subject: Re: truncate-lines as newline property Date: Sun, 10 Mar 2024 21:32:57 +0200 Message-ID: <86msr5vq52.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22427"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Evgeny Zajcev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 10 20:33:45 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rjOvZ-0005Zu-1L for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Mar 2024 20:33:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjOur-0001m7-PP; Sun, 10 Mar 2024 15:33:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjOup-0001lu-LR for emacs-devel@gnu.org; Sun, 10 Mar 2024 15:32:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjOup-0003fF-CZ; Sun, 10 Mar 2024 15:32:59 -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=7zzZJKWNOQZmjPbB7ktgAftb/k6wwsWdjDEg+Xc8RHs=; b=pcRNzLi8rICD kP3J5oKJtIg6AjfEafQ6G2j2FGZhJ8Ou/eqVi8C40cJmLn8RUqkr7A8W1KeaXgk+pkuPOgBbhR1fU NzdMF3J5vZhZVnZqSBvc0QGoY4ZY2Yr/a4tZyzOzWF+0Z6eHuu/V11yrzvGzSYnyIcmyXChpjm0kc 0QOAdWF/RQ/fcvUyEN0LRysfFRdAWXfkTm8vojvuyPim93SGhccFXTYeS4dGF5je5nhwbFNe9/iyS 804q45zYZZ+0EjoKwaJai+PLaZVpM6oJa1nFY6R4bxincUQsOYq49rwviHhlOu8lSScTq5GASAQ47 j4uUYCHFOaGC+MFGbSbHag==; In-Reply-To: (message from Evgeny Zajcev on Sun, 10 Mar 2024 21:53:19 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316983 Archived-At: > From: Evgeny Zajcev > Date: Sun, 10 Mar 2024 21:53:19 +0300 > > As I understand, truncate-lines is a buffer property, so it applies to every line in the buffer. > > Is it possible with some rather small changes to redisplay make it per newline property, so you can specify > which line to truncate and to which apply buffer setting? Not without serious changes to the display code, specifically to the code that lays out screen lines and decides what to do when it reaches the edge of the window. Also, there's some C code outside of redisplay, and a lot of Lisp code out there that looks at the buffer-local variable assuming all the lines behave the same. If this can be per-line, all that code will have to be updated. Any real-life rationale for adding such a feature?