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: Wed, 9 Dec 2020 10:16:11 +0200 Message-ID: References: <83r1o0727y.fsf@gnu.org> <83wnxs5hwx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c857dc05b603acdc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21007"; 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 Wed Dec 09 09:17:10 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 1kmuer-0005Li-Ao for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 09:17:09 +0100 Original-Received: from localhost ([::1]:58204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmueq-00086z-2O for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 03:17:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmuek-00086s-HP for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 03:17:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmuek-0001E9-90 for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 03:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmuek-0001Bc-3t for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 03:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Klein Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Dec 2020 08:17:02 +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.16075017924506 (code B ref 45116); Wed, 09 Dec 2020 08:17:02 +0000 Original-Received: (at 45116) by debbugs.gnu.org; 9 Dec 2020 08:16:32 +0000 Original-Received: from localhost ([127.0.0.1]:60898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmueF-0001Ac-PN for submit@debbugs.gnu.org; Wed, 09 Dec 2020 03:16:32 -0500 Original-Received: from mail-lj1-f175.google.com ([209.85.208.175]:44790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmueD-0001AI-KT for 45116@debbugs.gnu.org; Wed, 09 Dec 2020 03:16:30 -0500 Original-Received: by mail-lj1-f175.google.com with SMTP id m13so1186610ljo.11 for <45116@debbugs.gnu.org>; Wed, 09 Dec 2020 00:16:29 -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=w5dzd6M2Ed6Jol7kESf/u9V2XotBGl5TTWcwzOVYI08=; b=enZTwdNg277ld2ieKvXoa2sqW7PEQsKEPJp6HaCbpnvYJZLQLSPu9a5lnY+9migtTn bKPdksPp2yGUkklN94U8JzRlf8OUCZ4nG3If7wFuE9mF/zLT6+tULCYYfgD+uDXr+NiS ivLbiJLP2puKprC7X45kRE21BjbYpJcYeORMS/W3Ruc7vYZSLUBAbeXbZjU4KsQOhDDu aL8q9z9R7ePb7oUli+zjJeie3Eg/K1VuldsSHU4QnHedaMKwAXBVbrqEjcjszitrVyxN uhis1kdGh9sleXesMyVaHcWAZclYcnpg+DwWhomTkbL0pPGBYc6M3as8sDve3sg1IF1x 8UOA== 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=w5dzd6M2Ed6Jol7kESf/u9V2XotBGl5TTWcwzOVYI08=; b=aIp/kdQHmC6kspSawGgVkdpC9CX3XKCVrVwhltmSj4N8PJUUUCHobrpcN/OCWHkslw AWj5g1Wna03jOPZgX0yGJPP6qXUmoyvqVn5yP1SGuWqX/CkdXnJpKWaEV2P4AN0dGgpy tt6CRJojejZRDez4jjQmSLSTbshZ6rhq4VMGE6gPp7KdTIUFqHNy87FRWNUchBXx/nfd ydJ+HWHsWWDNyUFMe/Obps5DARWsava/UsWn02PcSL/VUx1G9pZFT3oGPZM1v2z/D5ux 44HtQTue8fA56m00BtvyHhrJDaQ9gPtmDDtF+iGKU9kd/Fm2GFHGAO6IHOy6RSYqWUwb iUtA== X-Gm-Message-State: AOAM531QeY3rcJ1wUVTBQ33DRUdydL6ZSHd9nNO0UkhvMhST3BkDVqmz hKd+EhwbZUVNpImz+n9t7iDVXAHFwQAjkGpp4tCuVNLQvl4= X-Google-Smtp-Source: ABdhPJyMfeNMLehgRFvOgeKiqUcbpG3jJzLCMivZytby6oIIXIPyP0GhB8LZxC4GJc7FJLjnai7NXn4+z1uRqz3BuS0= X-Received: by 2002:a2e:855a:: with SMTP id u26mr628926ljj.0.1607501783520; Wed, 09 Dec 2020 00:16:23 -0800 (PST) In-Reply-To: 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:195478 Archived-At: --000000000000c857dc05b603acdc Content-Type: text/plain; charset="UTF-8" Actually, an even better behaviour would be that when user inserts a whitespace character at the end of the line and the whitespace is preceded by non-whitespace, refill *does* insert the whitespace immediately into the buffer. On Tue, Dec 8, 2020 at 7:36 PM David Klein wrote: > 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? >> > --000000000000c857dc05b603acdc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Actually, an even better behaviour would be that when user= inserts a whitespace character at the end of the line and the whitespace i= s preceded by non-whitespace, refill does=C2=A0insert the whitespace= immediately into the buffer.

On Tue, Dec 8, 2020 at 7:36 PM David Klein &l= t;dklein0@gmail.com> wrote:
=
F= or example, set a flag when user inserts a space character after a non-spac= e character. If he subsequently inserts a non space character, insert a sin= gle space into the buffer.

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

On Tue, 8 De= c 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?
--000000000000c857dc05b603acdc--