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 19:26:45 -0400 Message-ID: References: <92FF4412-04FB-4521-B6CE-52B08526E4E5@gmail.com> <878shfsq35.fsf@gnus.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="30637"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 26 01:27:18 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 1jdMV3-0007sU-RL for ged-emacs-devel@m.gmane-mx.org; Tue, 26 May 2020 01:27:17 +0200 Original-Received: from localhost ([::1]:42272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdMV2-0006xg-SU for ged-emacs-devel@m.gmane-mx.org; Mon, 25 May 2020 19:27:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdMUa-0006N0-Qj for emacs-devel@gnu.org; Mon, 25 May 2020 19:26:48 -0400 Original-Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:45631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdMUa-0004Hq-4j for emacs-devel@gnu.org; Mon, 25 May 2020 19:26:48 -0400 Original-Received: by mail-qt1-x829.google.com with SMTP id y1so4154392qtv.12 for ; Mon, 25 May 2020 16:26:47 -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=4Jf0yYRIqJTDNEUfZGdiknQ/O/4vRFydntOnl0VMHRg=; b=rDmUpR0JknoBHYGLnUo/SHdxRsNAeH+hTB4rZthV96OtuXNvHjb+yXfe28/MPV49I9 7gg3zEPb9TYAC3iaV5NFzL4sNNbs5Uj9U6XpEoBuaWCxMZyiEHssKal8ScXIZQwxKYeV 1eVBT62L/qphdtqqVyf5p0jBfqPRU/VOoAHl2Vigktn3DWzkaG/b5wBCUq40/Vq+TmIK OIgoHDGdZkli0epR7RVdx+FpC2arKhZzJv0/cBjHGmXySIamUfm6KVbOHvXCQVzY6a5Z x3oBGYqKYSYpWalAkukOIWdmXscpIs5oDaSF4Fo8VnWNYSRVguEN0HRFA5wHl5CRg7+Z RRRg== 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=4Jf0yYRIqJTDNEUfZGdiknQ/O/4vRFydntOnl0VMHRg=; b=lqvariZjv1JNCXmxN/MbjpydsxrXB3+kqSQsDcbcmsiDtiJvG+w5Z2D9ujWUvaE3ln W25NyN1siNEE2lsZDL0iN6y9y4kEyiQixHegL19TARfa9EDLeMh9BIWEZ422HvjQLAf/ /3bw0hV659f0NBR4BQSVS3a9Gy929YdgFeEdXn5NsTiSLh5Ykw/vJja7dOVED9XfnGof 8T7ePZRrA7RJgM+WD0/ZjeXrnl4+dVIlyj/2zad2dBvsdpUx3MotyOpVRIx30jAu2uBh 9VBsALEvy9t40AkWGNlyI0Lny40evy5oUG/5iZkTPiHpCRqb5ENLQy/Yazp9r8xonSjM 5APQ== X-Gm-Message-State: AOAM532dn2Ev83mnM795GxYPjHaFdX6zj9QdJry4QH3lH7NhmVaUdZjE jIS3qG8JW3XIqSfd4mGJYY59RUcmNZtPlg== X-Google-Smtp-Source: ABdhPJzwJ7R/y5me9IfbOMn/Rhl6zd6iIpQY5QT7u+2oTir7PATDOcxPnL6KEPWz3eSjjgrJw1wGMA== X-Received: by 2002:ac8:4b79:: with SMTP id g25mr4138453qts.29.1590449207094; Mon, 25 May 2020 16:26:47 -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 i24sm16272586qtm.85.2020.05.25.16.26.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 May 2020 16:26:46 -0700 (PDT) In-Reply-To: <878shfsq35.fsf@gnus.org> X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=casouri@gmail.com; helo=mail-qt1-x829.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:251399 Archived-At: > On May 25, 2020, at 4:43 PM, Lars Ingebrigtsen wrote: >=20 > Yuan Fu writes: >=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 > This is like the kinsoku stuff in shr, I guess? But in redisplay > instead? See shr-char-kinsoku-eol-p (and related) for how it's done > there -- it basically checks (aref (char-category-set ,char) ?<) (and > related). Thanks, category table is just the thing I need. Yuan=