From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Line wrap reconsidered Date: Mon, 25 May 2020 15:31:06 -0400 Message-ID: <9B24BBB0-698A-463B-8033-E5262924C4B6@gmail.com> References: <92FF4412-04FB-4521-B6CE-52B08526E4E5@gmail.com> <83r1v7vmwy.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) 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="91204"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 25 21:32:03 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 1jdIpO-000Ndi-QU for ged-emacs-devel@m.gmane-mx.org; Mon, 25 May 2020 21:32:02 +0200 Original-Received: from localhost ([::1]:41504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdIpN-0006jw-SN for ged-emacs-devel@m.gmane-mx.org; Mon, 25 May 2020 15:32:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdIoa-0005mX-Fi for emacs-devel@gnu.org; Mon, 25 May 2020 15:31:15 -0400 Original-Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:37008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdIoZ-0005vo-4q; Mon, 25 May 2020 15:31:12 -0400 Original-Received: by mail-qk1-x733.google.com with SMTP id b27so8380674qka.4; Mon, 25 May 2020 12:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kpcU2pXgHTZ8HGeufdTVd+i6o9kVBXubvgLXmlS6CaU=; b=qfNXGMPdVexS29UX7UXfAU/LafGB9XtSkTKqWEqfJnu6oItF4hi1BLxkmKcY2J7qZH ta4UJiAXd4BN3158JYs5s1vce9uNFDWJAAMC7HhU8a2flcwDG3U6go49YVJyiN5BAeTz nEMc68+Eqf3DgNizQUxOK7K4Uzqh6Mv0/EVuLsB63QML7NlSIileOLiI/ZIzcfctS2AZ 3DmRGv75Hb/iO5dluoYo+1w8fCy+Nmr390ZAiCixvkCHzTlFeWgjaXrteBXbrkxDfZ8Z UKcF4/2wf4xaw1YaxoE6ADRlxQ2uMjUKAXQibBnLNDVnCzgG0R+wJJODaMhSXFbqoGbt mPYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kpcU2pXgHTZ8HGeufdTVd+i6o9kVBXubvgLXmlS6CaU=; b=CAVvPmPPY2aaXHxEUhcBrx7mqKXBry9qCyZfSEts2LtRh4luQHzAY1m4+13TL+pDgS V0/3SdVqF+igYnVGwhZaHcG8gudQLgFkwQrlsMUkY6O6i5/sHjrPYc9Lk3Qo0cPjoIiY 1GmOt9p+sJJUNMtOCqtK0LWAK8W6+NFjMjtEkISXRDse051+Z6Uqv4plSaXctN/MSxA2 c09fB27032xm3tLt7Jrh0CydWqbrGrCLzdDS5LVLsUC2bj8TV3uwxBmydY4BFsYej5Pc mwKRnEODZ0HUmi8yAPsNaWoaTQzHkTCxsO8tfaWYZMcPmILW8L7lY/+T83dpY9H6gd7f 5upw== X-Gm-Message-State: AOAM5328L388OSi4b+CTg2WWnXAOIu8zM0OCv1TOEACO+9Avfsox1Q5s c36GfXOPhx6C6eyKW3QwwnQDnj322kfu/Q== X-Google-Smtp-Source: ABdhPJyvhmd31BJ8RqMgioRs54hfSnCAAEeCBokcXnRoplR+RRw/0S6Z6CrkwjW9+FXhtjY+6J705A== X-Received: by 2002:a37:414f:: with SMTP id o76mr27753383qka.375.1590435067267; Mon, 25 May 2020 12:31:07 -0700 (PDT) Original-Received: from [192.168.1.10] (c-174-60-229-153.hsd1.pa.comcast.net. [174.60.229.153]) by smtp.gmail.com with ESMTPSA id n68sm14053788qkb.58.2020.05.25.12.31.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 May 2020 12:31:06 -0700 (PDT) In-Reply-To: <83r1v7vmwy.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::733; envelope-from=casouri@gmail.com; helo=mail-qk1-x733.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, 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:251385 Archived-At: > On May 25, 2020, at 3:23 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Mon, 25 May 2020 14:13:04 -0400 >>=20 >> Here is what I come up with: in redisplay code, instead of only = checking for whitespace, check for a =E2=80=98no-wrap text-property, if = the character has this property, don=E2=80=99t wrap before[1] this = character (or maybe it can be the opposite, only wrap when the character = has a =E2=80=98can-wrap property). And this text property is calculated = and applied once.=20 >=20 > What are the use cases for such a feature? I=E2=80=99m still trying to solve this problem: = https://lists.gnu.org/archive/html/emacs-devel/2020-03/msg00095.html Basically, allow Emacs to wrap at more places (between CJK char) with = more complex rules (not before a period or comma, etc). Yuan=