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: Word wrap for non-whitespace-seperated language Date: Sun, 8 Mar 2020 11:04:36 -0400 Message-ID: <17F1587A-CE02-4BF7-9C53-68E66FD733ED@gmail.com> References: <838skgvu2l.fsf@gnu.org> <3692AB81-B291-4D14-BEDE-924F020D94ED@gmail.com> <837e00vsk9.fsf@gnu.org> <9737C398-80FC-4377-91BA-C0891BD5A0F5@gmail.com> <835zfjwgyb.fsf@gnu.org> <6DE83788-5296-4C4F-A265-88B33A43DC93@gmail.com> <4E3669DB-4012-4E56-9517-F1BEB0D97A78@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) 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="82272"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 08 16:05:16 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 1jAxUR-000LHb-N5 for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Mar 2020 16:05:15 +0100 Original-Received: from localhost ([::1]:58448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAxUQ-0004Ua-Ox for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Mar 2020 11:05:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35464) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAxTy-000459-4u for emacs-devel@gnu.org; Sun, 08 Mar 2020 11:04:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAxTx-0005Im-3K for emacs-devel@gnu.org; Sun, 08 Mar 2020 11:04:46 -0400 Original-Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:34718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAxTu-0005HS-5I; Sun, 08 Mar 2020 11:04:42 -0400 Original-Received: by mail-qk1-x730.google.com with SMTP id f3so6962847qkh.1; Sun, 08 Mar 2020 08:04: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=FZNIJOL8Kmd/bLmpCcs4qFG7oLYZCFSSjPFLnQDywn4=; b=f6+Z8+C9t0WpTrYN2E7yc0m08529/Sa5J/hhT04gAwb+QMyASfMD8lXpBwiMaRfJRp C+pHE7JTzuzgy3z/9ielhAu3HX6CjiKPqUEwkOuXhky0nA3cHjL01awPBdGDyIrfkLf9 ywnfjen5fQfxA/JTWEU6AfCz2YwPClpZi79sSSZIgWTk23rUOJEil8PFav5zmAK7o8hs xkSE8bN//ZVFm0zPv9pEgI09oy/OBcvyQq49gNZ3ZiAn/MNk0B0XbaR+DVSp3Ss/xGkc qmE02DKDEoFhp+jzjJC1OeurhimewzDMj9g77kx8CZ1QOTfG5uirq8+ZUvCSMKw5nBzm qoBA== 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=FZNIJOL8Kmd/bLmpCcs4qFG7oLYZCFSSjPFLnQDywn4=; b=WCrCUFGJMorDgKepu2kMmdjaZpSRdQUo6S9mFy0sKB6bRssHGhWiyIvOegxMLJmiLn YaPFh4VAxU5tvXSb8lbbPPXktlLv60ZLTz0d4HUXdsg3VfFgGN2kbheT8zbAMImdGwiB DB5EY8ADV1jQ+yqoFvtb0Di5j+E9rpwLPOc6MYXd8yYkwBqdvx94ul3HAFTToef9cnzy TEjCLt1KPMXk8icL6Ar5JY7R5sGKuzpmQ3mH13PUG5Nbpj/X1aVZnAWjQkqlqPVYuWkC ElsjVh4mrgcuJIxkYltEkt1GQrXFGVPVZUTyH5yli2wMlSvapFEibF4OsqNva33HqDp3 O10g== X-Gm-Message-State: ANhLgQ0clJxlN8KEZ7sy2RTIK8PAoqWth0AD8EGRaJUUid0FMP51ExJV /+4kd6fcyjaDByPY7ypYK+v0yaLzfjHVVh9E X-Google-Smtp-Source: ADFU+vv9zOJhxsOKNIHnyJ4Iek5Yxj0ULVTq3Nw4gta4rpChMvulWo7kO2owUs2f6WGEm9BwQyOyBw== X-Received: by 2002:a37:8046:: with SMTP id b67mr11249354qkd.218.1583679880985; Sun, 08 Mar 2020 08:04:40 -0700 (PDT) Original-Received: from [192.168.1.5] (c-174-60-229-153.hsd1.pa.comcast.net. [174.60.229.153]) by smtp.gmail.com with ESMTPSA id j11sm19763935qtc.91.2020.03.08.08.04.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Mar 2020 08:04:40 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3608.60.0.2.5) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::730 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:245341 Archived-At: > I=E2=80=99ve got something mostly working, it provides on-the-fly word >> wrapping that supports variable pitch fonts and CJK >> characters. With minor changes it can be also used for filling but >> I don=E2=80=99t see the point for hard filling variable-pitch font = text: >> they display differently in different fonts. >=20 > Without truly filling the lines, do the commands C-a, C-n, etc work = properly? It depends on the commands: C-n/p works fine (given line-move-visual is = t), but C-a/e moves to the end of buffer line, which is the = beginning/end of the paragraph in a users eyes: same as what you get by = default when Emacs wraps long lines. Maybe I should call it =E2=80=9Cflywrap=E2=80=9D, as it merely wraps = lines visually (by overlay) rather than editing the buffer content. (It = doesn=E2=80=99t justify either, as Eli pointed out.) Yuan=