all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Klein <dklein0@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 45116@debbugs.gnu.org
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	[thread overview]
Message-ID: <CALoTaHBKXbs82pmMryL=ix1tdn7KuZW-dOrpuxNCp8i4hy-rpw@mail.gmail.com> (raw)
In-Reply-To: <CALoTaHCbkWQxRO0ziTaVHsnZuWXdWuUiZ+H6VbahZ5mYseVvBQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]

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 <dklein0@gmail.com> 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, <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
>> > '[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?
>>
>

[-- Attachment #2: Type: text/html, Size: 2329 bytes --]

  reply	other threads:[~2020-12-09  8:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-08  8:16 bug#45116: 26.3; refill-mode doesn't allow me to add text at the end of a paragraph David Klein
2020-12-08 15:21 ` Eli Zaretskii
2020-12-08 17:13   ` David Klein
2020-12-08 17:25     ` Eli Zaretskii
2020-12-08 17:36       ` David Klein
2020-12-09  8:16         ` David Klein [this message]
2021-09-08  9:39     ` Lars Ingebrigtsen
2021-09-09 10:37       ` David Klein
2021-09-09 13:11         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALoTaHBKXbs82pmMryL=ix1tdn7KuZW-dOrpuxNCp8i4hy-rpw@mail.gmail.com' \
    --to=dklein0@gmail.com \
    --cc=45116@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.