From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Line wrap reconsidered Date: Wed, 27 May 2020 00:43:41 +0800 Message-ID: <87tv026402.fsf@localhost> References: <92FF4412-04FB-4521-B6CE-52B08526E4E5@gmail.com> <83r1v7vmwy.fsf@gnu.org> <87imgjpihp.fsf@localhost> <83k10yvjlx.fsf@gnu.org> <83v9kiu08d.fsf@gnu.org> <167B04CA-E2EE-4D5B-8C65-250B4666461F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="91853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel To: Yuan Fu , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 26 18:53:26 2020 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 1jdcpR-000Nis-Tq for ged-emacs-devel@m.gmane-mx.org; Tue, 26 May 2020 18:53:25 +0200 Original-Received: from localhost ([::1]:56226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdcpQ-0004U2-UF for ged-emacs-devel@m.gmane-mx.org; Tue, 26 May 2020 12:53:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdckX-0004ke-Hc for emacs-devel@gnu.org; Tue, 26 May 2020 12:48:21 -0400 Original-Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:41098) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdckW-0006pq-3q; Tue, 26 May 2020 12:48:21 -0400 Original-Received: by mail-pf1-x42c.google.com with SMTP id 23so10405586pfy.8; Tue, 26 May 2020 09:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=OO9eYe6wt4fGK0naICj6vCwM/ZUU3KnyyTFeV+Ub+hY=; b=C5FlUwwJ9iQNPmS1w1HuG7tbOl8fHBx4KDU+X61uIS86FA/qZ3O7IwbwE9iWu50HJk CbXipbHTO45Ypeoue0MtZJZT0jUifp4nncnRKmODW3xO7M7e6ChHajpUA7e5XB3hYVXj dt5VNl52R5kh/19JSG10eOimy65iOZIjM9xtdtuqTUN0P4fUOaILqYXgjAaX/mU0y34O RG3jMW55/1V3Sqe06SRNtlS9Xmyo5Gy2o7wmhqEqCPjx7oNhfwnlupErybnM/yrpMkxY KxFLi40B/j811AnVDVefCrGXFBf7W/uRgVpR71Rq4zyhU1FsUc1iGOyM2iHAx7EshFML wBBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=OO9eYe6wt4fGK0naICj6vCwM/ZUU3KnyyTFeV+Ub+hY=; b=Wx5dWUPMXrFbC6s65mcw4Lf/SqSngGj5dlL9IuhzqDCaKcccYL9z/WHfF3qG1xoVda yoBooqn7otenF3b+eQeT66EtKV71PXLRLvM4fobITViX7DQAh1Cg1erjsa7jGxSoSs5y z5asyrvvhEvZrjj/EowgZg7S6+QNBkHDBZufRzRJKjzMaksE7IWHv9xQ/OFOFuJcgcaY 5+LwCCbyLFh3HpRrDVADzJyU6Ehx21nGaCKNWCJRFOBouc+PwAWXGaWSzCouh0lanwx0 b/2zGtJvBEN5sJqjI2qwldN56cR6tkVzX5dX+rEe213hFYkY8VA23HNZTdL+kDhY/SyY iUIA== X-Gm-Message-State: AOAM530QEw7Q98Hr5l0l8Q1f6aEndUTt0MftuM9gX6QCVBzhOt2IAHQR C5XXhhMNw6drg+A7/xEk2Cc= X-Google-Smtp-Source: ABdhPJyOGUCLixDZV1vVXqyV9ql5z2a+rme9mK5WT3v22VGAJWInpjy/jhEzzGt6bG412ajAz8KGpg== X-Received: by 2002:a63:8f54:: with SMTP id r20mr1821994pgn.165.1590511698179; Tue, 26 May 2020 09:48:18 -0700 (PDT) Original-Received: from localhost (97.151-89-23.rdns.scalabledns.com. [23.89.151.97]) by smtp.gmail.com with ESMTPSA id i17sm72018pfq.197.2020.05.26.09.48.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 09:48:17 -0700 (PDT) In-Reply-To: <167B04CA-E2EE-4D5B-8C65-250B4666461F@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:251463 Archived-At: > I think he means that, in such a file: > > BODY TEXT=E2=80=A6 > BODY TEXT=E2=80=A6 > > | LONG TABLE | > | LONG TABLE | > > BODY TEXT=E2=80=A6 > BODY TEXT=E2=80=A6 > > We only truncate lines in LONG TABLE, and wraps BODY TEXT. There is no > way to know if some text is table or body without major mode adding > text properties to distinguish them.=20 Yes, this is precisely what I mean. Thanks! Regards, Ihor Yuan Fu writes: >> On May 26, 2020, at 12:31 PM, Eli Zaretskii wrote: >>=20 >>> From: Stefan Monnier >>> Cc: Ihor Radchenko , casouri@gmail.com, >>> emacs-devel@gnu.org >>> Date: Tue, 26 May 2020 11:59:21 -0400 >>>=20 >>>> I don't understand what you mean by "not wrap the table". >>>=20 >>> He means to truncate the lines in the table but wrap them in the rest. >>=20 >> But then why do we need to mark text with some property? > > I think he means that, in such a file: > > BODY TEXT=E2=80=A6 > BODY TEXT=E2=80=A6 > > | LONG TABLE | > | LONG TABLE | > > BODY TEXT=E2=80=A6 > BODY TEXT=E2=80=A6 > > We only truncate lines in LONG TABLE, and wraps BODY TEXT. There is no wa= y to know if some text is table or body without major mode adding text prop= erties to distinguish them. > > Yuan --=20 Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong U= niversity, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg