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: Tue, 26 May 2020 08:38:39 -0400 Message-ID: References: <92FF4412-04FB-4521-B6CE-52B08526E4E5@gmail.com> <992befca-e34c-b3d0-0963-60dd08b4b6e1@gmx.at> 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="104574"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 26 14:40:05 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 1jdYsG-000R25-Tp for ged-emacs-devel@m.gmane-mx.org; Tue, 26 May 2020 14:40:04 +0200 Original-Received: from localhost ([::1]:46600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdYsG-0002dT-07 for ged-emacs-devel@m.gmane-mx.org; Tue, 26 May 2020 08:40:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdYqy-0000z3-9h for emacs-devel@gnu.org; Tue, 26 May 2020 08:38:44 -0400 Original-Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:34003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdYqw-0004iX-Ia for emacs-devel@gnu.org; Tue, 26 May 2020 08:38:44 -0400 Original-Received: by mail-qk1-x72d.google.com with SMTP id f18so3536145qkh.1 for ; Tue, 26 May 2020 05:38:41 -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=Z3rcgDMZu0/MwyzBjk5vww6BEpEfT4QCWywI5PfR9AY=; b=GtLEGq+KQy+EcPEIDAGhLybNQDaB5rDFCgKSB0Yu91KGbaqeYAqxaWaFwCbun9LKB5 TKL+3Fir/qHsEIuzFeIIT461JAVbIw+GrCE10v6199N5QBLhn3+hTCXPEzDhwIaoocth BTd3Km7ErAAGT501hn8tLmY6X9ag0kGla1Urb10U5PIH/v33iv6TS1v3r/l+4fQ9roXN hNrmGR7IAEK0te/RXcWMIG3KZSZLyRz1x13jvBRjlO2tTWVneGCRpsNkuzsrVHEFj6sl O84sa1qyG9sXOFlePNCi3hfIpBDcIuJSXwH4vaJu8wyL7TvEegnGXgvL6s6Slbm3kd7M BZyA== 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=Z3rcgDMZu0/MwyzBjk5vww6BEpEfT4QCWywI5PfR9AY=; b=WnK+FRsIXQMGJ0geGUxsLb6F5OJh5BgnuBQQARN7QyO4LaLIYonQ/fXy4P3CPKYLak v0+umZ0/3bBL7Ff6959D9XsGEUQZJapzAx3DPaSp7I1L4wfabCj0+FgjRyYnQwHb0UEL 8BzBjEAgCB41ioDphlbFZSFqiOSDqwFjEKGkvghLA9ghEGGyZFf0m7L5YY30aXPDQjb6 I1Nu6emDp3+J9htMYsbB9CpnRgHsifR/Afgm8mdbHHzL0hENcYZT7sk44uHlGF0hblUj qQXDM35zqV6A396nL3L0+sbYyNedB2Aph2UfQTb/ThfquyP26IhNBqsqKEh41mXBaDkA T1Qw== X-Gm-Message-State: AOAM53181cHs+RMOtbT9azXFzqAxhwVTKT1rbijZUdDGwkppwYdY5W5M mfWQTurytF/LsxukcZwaoDs= X-Google-Smtp-Source: ABdhPJwsN/05O6/C52vs9K9UhQfdqr14zNj/fTF43jRZ9AB93vofKlG6uEiDH4MHgSR2NS6BVigS9g== X-Received: by 2002:a37:46c1:: with SMTP id t184mr1111052qka.192.1590496721317; Tue, 26 May 2020 05:38:41 -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 a189sm17187591qkd.52.2020.05.26.05.38.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 May 2020 05:38:40 -0700 (PDT) In-Reply-To: <992befca-e34c-b3d0-0963-60dd08b4b6e1@gmx.at> X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=casouri@gmail.com; helo=mail-qk1-x72d.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:251445 Archived-At: > On May 26, 2020, at 4:02 AM, martin rudalics wrote: >=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. > > > > Could this be plausible? Is checking text property is fast enough = for redisplay? > > > > [1] There are some complications to this, some characters can=E2=80=99= t have line break before them, some can=E2=80=99t have after; maybe use = =E2=80=98before, =E2=80=98after and nil instead of binary value. >=20 > While you're there could you please have a short look at Adam's patch = for > Bug#13399? For whatever reason he stopped working on this back then. I had a look, with my proposal the various whitespaces could be wrapped, = yes. Yuan=