From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Klein Newsgroups: gmane.emacs.bugs Subject: bug#45116: 26.3; refill-mode doesn't allow me to add text at the end of a paragraph Date: Tue, 8 Dec 2020 19:36:43 +0200 Message-ID: References: <83r1o0727y.fsf@gnu.org> <83wnxs5hwx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000092c9d905b5f7631d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9117"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45116@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 08 18:38:39 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kmgwg-0002GO-UY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 18:38:39 +0100 Original-Received: from localhost ([::1]:37080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmgwf-00068d-Sq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 12:38:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmgw6-0005sX-6W for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 12:38:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmgw5-0002kT-Us for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 12:38:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmgw5-0003vd-T1 for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 12:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Klein Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2020 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45116 X-GNU-PR-Package: emacs Original-Received: via spool by 45116-submit@debbugs.gnu.org id=B45116.160744902415030 (code B ref 45116); Tue, 08 Dec 2020 17:38:01 +0000 Original-Received: (at 45116) by debbugs.gnu.org; 8 Dec 2020 17:37:04 +0000 Original-Received: from localhost ([127.0.0.1]:59555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmgv9-0003uM-Mw for submit@debbugs.gnu.org; Tue, 08 Dec 2020 12:37:03 -0500 Original-Received: from mail-lj1-f169.google.com ([209.85.208.169]:37232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmgv7-0003tS-RY for 45116@debbugs.gnu.org; Tue, 08 Dec 2020 12:37:02 -0500 Original-Received: by mail-lj1-f169.google.com with SMTP id s11so12119608ljp.4 for <45116@debbugs.gnu.org>; Tue, 08 Dec 2020 09:37:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hBEelO/PiDqJVpumuaIY5N3GxuwiEHE+FROXz+tf5Jg=; b=e/mVrqf+Vrx6AknHL26GGqFRUvvfnL7JG0eRYYd52Stk2bhl3xykcXbfb37rUOVkdh ZcAfbM2znxPC9Isq09knV4HKJ3sKGpCimbdTDqB6hTWlMZZIgc8/i1nYj3RPCkHYuaeM ZAopAD4YBZ8KDIYDSg/J8dEeIU9yWe3L0Z0lJym8quwz9Wj9ZIRWQSar2t4y1xMA/9E8 EbPagAS36yBxSWeY/olgdCP/djZJnI+UXDkNVfXBXm35uvBZKoTul3bFhuZ31Y2tlSaO ua1ub7Eb/agrH3KVfGWg5nqtef0OXMRwKzVZMf0wVFY3klC/a+BWFuSqAzYiUh4BgSHc yDcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hBEelO/PiDqJVpumuaIY5N3GxuwiEHE+FROXz+tf5Jg=; b=Y4bNUU7U+12VVLzwQAWVAOYKHMstiVbS4JshbSbDP1xD3g0fF38qUOCejA8H3y0fWJ P9uUwhON96x9W4eyMq4Npfaybqn1Y9W9gnvKoj+f5aQ1RQI95QLfPmDe5H1A02VRESGk 2r1rV3eACXOa7DxHLt1BCYZ3sNQ44MFm1VOyz4ugxSUG6jYpMY1VMvHiE/iU178+DOcE Ovsut56NQ8G30Nms6MOgij7Q0wn5QxJxLQAeTfO+teh1/YAG0VoXR4GtxVxND2+RKrKE QMsFlw2H2UMVkbRQvMfG6UPixN76ujDS1J7ifos4NKNnZyBy8//P+8OHZm+6DOQaa3hs NEUg== X-Gm-Message-State: AOAM532NHPoSJZcbdjwzMvZkwTsmvzLzttiR/q1GYCcHpwSMfVFlG3Vt R1KFBy6OIu7PxnvfLJOb8ZaPlyR5wKtAM9Vu0MgrXavNd5c= X-Google-Smtp-Source: ABdhPJzdWvRP2qstJHSi3smYTCRRe5fm+FrF/oDswnal6I9bi3V3DxcNSW0n5FpI8eSfikRtdGGZeJ8ZV7trMLNd21Q= X-Received: by 2002:a2e:164b:: with SMTP id 11mr11242525ljw.34.1607449015665; Tue, 08 Dec 2020 09:36:55 -0800 (PST) In-Reply-To: <83wnxs5hwx.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195408 Archived-At: --00000000000092c9d905b5f7631d Content-Type: text/plain; charset="UTF-8" For example, set a flag when user inserts a space character after a non-space character. If he subsequently inserts a non space character, insert a single space into the buffer. Did you try it out in an emacs buffer? Really, give it a shot. The current behavior is so counterintuitive as to make it useless. On Tue, 8 Dec 2020, 19:25 Eli Zaretskii, wrote: > > From: David Klein > > Date: Tue, 8 Dec 2020 19:13:33 +0200 > > Cc: 45116@debbugs.gnu.org > > > > If I typed in the text > > > > "The quick brown > > > > jumped > > > > over > > " > > > > and then went up to the end of the first line and type the characters > > '[space]' 'H' 'e' 'l' 'l' 'o' > > > > I get > > > > "The quick brownHello" > > > > instead of > > > > "The quick brown Hello" > > > > i.e. zero spaces instead of one. Only excess whitespace should be removed > > and the first space isn't excess. > > What logic would you suggest to implement to decide that this space is > it not excess? > --00000000000092c9d905b5f7631d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
For example, set a flag when user inserts a space charact= er after a non-space character. If he subsequently inserts a non space char= acter, insert a single space into the buffer.

Did you try it out in an emacs buffer? Really, give it a sh= ot. The current behavior is so counterintuitive as to make it useless.=C2= =A0

On Tue, 8 Dec 2020, 19:25 Eli Zaretskii, <eliz@gnu.org> wrote:
> From: David Klein <dklein0@gmail.com>
> Date: Tue, 8 Dec 2020 19:13:33 +0200
> Cc: 45116@debbugs.gnu.org
>
> If I typed in the text
>
> "The quick brown
>
> jumped
>
> over
> "
>
> and then went up to the end of the first line and type the characters<= br> > '[space]' 'H' 'e' 'l' 'l' '= ;o'
>
> I get
>
> "The quick brownHello"
>
> instead of
>
> "The quick brown Hello"
>
> i.e. zero spaces instead of one. Only excess whitespace should be remo= ved
> and the first space isn't excess.

What logic would you suggest to implement to decide that this space is
it not excess?
--00000000000092c9d905b5f7631d--