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:13:33 +0200 Message-ID: References: <83r1o0727y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bc731505b5f71061" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33617"; 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:35:16 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 1kmgtP-0008cx-DU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 18:35:15 +0100 Original-Received: from localhost ([::1]:33346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmgtO-0004M5-Dx for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 12:35:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmgtC-0004Kj-OF for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 12:35:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmgtC-0002Db-Fq for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 12:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmgtC-0003q3-DO for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 12:35: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: Tue, 08 Dec 2020 17:35: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.160744886214675 (code B ref 45116); Tue, 08 Dec 2020 17:35:02 +0000 Original-Received: (at 45116) by debbugs.gnu.org; 8 Dec 2020 17:34:22 +0000 Original-Received: from localhost ([127.0.0.1]:59536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmgsY-0003od-0y for submit@debbugs.gnu.org; Tue, 08 Dec 2020 12:34:22 -0500 Original-Received: from mail-lj1-f171.google.com ([209.85.208.171]:44506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmgYh-0007V2-UU for 45116@debbugs.gnu.org; Tue, 08 Dec 2020 12:13:54 -0500 Original-Received: by mail-lj1-f171.google.com with SMTP id m13so4540181ljo.11 for <45116@debbugs.gnu.org>; Tue, 08 Dec 2020 09:13:51 -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=9ZTCJnD9B6bxWymsjrvOGm8Ow+FUh2KiHqkmUgaZ7Nk=; b=aTbch29LswOxqd0YkXmFnQj2ApESKUgVhMnOjkOZHTEoyR5tEFPHiz8gI6g46HeB+U +SGH2tfkHGZ4Xdhc/Olc4clbXbphGZ2jTrUOeqchjLjOsNU4G+1o79hitj72kNrpQlR/ JGs7VA6+XlB/75o97f9j4E5kgICiPIUCx8Ed3QvdXiVk5XFPFXvYdGV+J3qqMNPhBK2o kMelZ7NRl2sdl0SDN890lrGDCDyv94oC6rCshOWm0NIaI7Eo5artwT0X+NUJ/AFtrZaO sun/wiQh5J4+Z8fAnIxUQoDw1Xjij664ZHLpi91eSyLXZSXs1p+AAxWemka7ylIaNs6S DZYQ== 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=9ZTCJnD9B6bxWymsjrvOGm8Ow+FUh2KiHqkmUgaZ7Nk=; b=pKBn/viAGirOm2pM33fr0o91dKVMjJME1CHAhopLfQBIudFsoaJTOt6ziuSDUluGQO PZa+YOAy5U46Gxlo8o92WoL3wkVhS4nty/boJIXHFTduE+ARyPlQ6UIjeJpT8jGBAnb0 Uk8Wfqove4Fmu9IEX2jql/grgm3azHwjFW+PQqucKJocvLjB6bv5C56WtuKP3maOmgkS W3v+McKgsOtptHUZA4F7vQN4D7j3q1pdadCCzBEgE+LKUoDmtOtrrQlWQyrypxraHKgJ nwgKfoz77Ebf9lnnmk8I+l8A96h9IpE25GTQN1kYxIGAOPA7BovWcwTQqiU0IDQMMi6A YNqQ== X-Gm-Message-State: AOAM532lgXUmS7+dLJnDFW2itAymPCkbAc0hYlEuFjZwbTVChHgbJJv4 VDpDxMYg/jcZxEeYsA8xA6C23Ynutrl1jan6HQg= X-Google-Smtp-Source: ABdhPJxNBQw1oynJR4Zafel4ysB7RCZVz8eoFqpX7msveZufAmX+BNssaZPSijvPxOc/bDPe1emx0I45x/QjZtE/VpQ= X-Received: by 2002:a2e:b8d0:: with SMTP id s16mr11032079ljp.423.1607447625887; Tue, 08 Dec 2020 09:13:45 -0800 (PST) In-Reply-To: <83r1o0727y.fsf@gnu.org> X-Mailman-Approved-At: Tue, 08 Dec 2020 12:34:21 -0500 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:195406 Archived-At: --000000000000bc731505b5f71061 Content-Type: text/plain; charset="UTF-8" Apologies. I didn't make myself sufficiently clear. 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. On Tue, Dec 8, 2020 at 5:21 PM Eli Zaretskii wrote: > > From: David Klein > > Date: Tue, 8 Dec 2020 10:16:40 +0200 > > > > runemacs.exe -Q > > (setq auto-mode-alist > > (cons '("\\.latex$" . latex-mode) auto-mode-alist))^X^E > > (add-hook 'latex-mode-hook 'refill-mode)^X^E > > ^X^F junk.latex > > Type in a few random lines interspersed with empty lines > > Go back to the end of a line that is followed by an empty line and type > > a space (or several). No space gets inserted. Non whitespace inserts > correctly. > > Isn't that expected,, given that the doc string of this mode says: > > When enabled, the > current paragraph is refilled as you edit. Self-inserting > characters only cause refilling if they would cause > auto-filling. > > "Refilled as you edit means excess whitespace is removed, no? > --000000000000bc731505b5f71061 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Apologies. I didn't make myself sufficiently clear.
If I typed in the text=C2=A0

&quo= t;The quick brown

jumped=C2=A0

over
"

and then went up to th= e end of the first line and type the characters '[space]' 'H= 9; 'e' 'l' 'l' 'o'

I get

"The quick brownHello"
=

instead of=C2=A0

"Th= e quick brown Hello"

i.e. zero spaces instead= of one. Only excess whitespace should be removed and the first space isn&#= 39;t excess.


On Tue, Dec 8, 2020 at 5:21 PM Eli Zaretskii <eliz@gnu.org> wrote:
> From: David Klein <dklein0@gmail.com>
> Date: Tue, 8 Dec 2020 10:16:40 +0200
>
> runemacs.exe -Q
> (setq auto-mode-alist
>=C2=A0 =C2=A0 =C2=A0 =C2=A0(cons '("\\.latex$" . latex-mo= de) auto-mode-alist))^X^E
> (add-hook 'latex-mode-hook 'refill-mode)^X^E
> ^X^F junk.latex
> Type in a few random lines interspersed with empty lines
> Go back to the end of a line that is followed by an empty line and typ= e
> a space (or several). No space gets inserted. Non whitespace inserts c= orrectly.

Isn't that expected,, given that the doc string of this mode says:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0When enabled, the
=C2=A0 current paragraph is refilled as you edit.=C2=A0 Self-inserting
=C2=A0 characters only cause refilling if they would cause
=C2=A0 auto-filling.

"Refilled as you edit means excess whitespace is removed, no?
--000000000000bc731505b5f71061--