GNU bug report logs - #45582
28: auto-fill final line of indented paragraph

Previous Next

Package: emacs;

Reported by: Boruch Baum <boruch_baum <at> gmx.com>

Date: Thu, 31 Dec 2020 23:24:01 UTC

Severity: normal

Tags: notabug

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45582 in the body.
You can then email your comments to 45582 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#45582; Package emacs. (Thu, 31 Dec 2020 23:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Boruch Baum <boruch_baum <at> gmx.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 31 Dec 2020 23:24:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Emacs Bug Reporting <bug-gnu-emacs <at> gnu.org>
Subject: 28: auto-fill final line of indented paragraph
Date: Thu, 31 Dec 2020 18:23:25 -0500
Using the emacs-snapshot from ganneff.de (it's a few months old, but
there isn't a more recent. sigh. A more recent debian package for
stable/testing would be helpful for items on my todo list).

1) Start emacs -Q -nw
2) In the scratch buffer
3) M-x set-fill-column 10
4) Enable auto-fill-mode
5) Type two spaces
6) Type about twenty single character words

   At this point everything looks good; we have several indented lines of a
   paragraph.

7) Type return to end the paragraph

   I'm now getting the final line, that had prior been properly indented,
   now re-aligned / out-dented to column 1.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45582; Package emacs. (Fri, 01 Jan 2021 07:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 45582 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 45582 <at> debbugs.gnu.org
Subject: Re: bug#45582: 28: auto-fill final line of indented paragraph
Date: Fri, 01 Jan 2021 09:12:07 +0200
> Date: Thu, 31 Dec 2020 18:23:25 -0500
> From: Boruch Baum <boruch_baum <at> gmx.com>
> 
> 1) Start emacs -Q -nw
> 2) In the scratch buffer
> 3) M-x set-fill-column 10
> 4) Enable auto-fill-mode
> 5) Type two spaces
> 6) Type about twenty single character words
> 
>    At this point everything looks good; we have several indented lines of a
>    paragraph.
> 
> 7) Type return to end the paragraph
> 
>    I'm now getting the final line, that had prior been properly indented,
>    now re-aligned / out-dented to column 1.

You are in Lisp Interaction mode, which has its own indentation
rules.  Try this in Fundamental mode, and you will see the behavior
you expect, I think.

IOW, I don't think there's a bug here.  But if there is a bug, please
tell what behavior you expected and why.

To investigate this further, note that electric-indent-mode is ON, and
see the doc string shown by "C-h k RET".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45582; Package emacs. (Fri, 01 Jan 2021 12:26:01 GMT) Full text and rfc822 format available.

Message #11 received at 45582 <at> debbugs.gnu.org (full text, mbox):

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 45582 <at> debbugs.gnu.org
Subject: Re: bug#45582: 28: auto-fill final line of indented paragraph
Date: Fri, 1 Jan 2021 07:25:21 -0500
n 2021-01-01 09:12, Eli Zaretskii wrote:
> > Date: Thu, 31 Dec 2020 18:23:25 -0500
> > From: Boruch Baum <boruch_baum <at> gmx.com>
>
> You are in Lisp Interaction mode, which has its own indentation rules.
> Try this in Fundamental mode, and you will see the behavior you
> expect, I think.
>
> IOW, I don't think there's a bug here. But if there is a bug, please
> tell what behavior you expected and why.

The default contents of the scratch buffer read: "This buffer is for
text that is not saved ..." so any newcomer to emacs gets the indication
that _text_ typed here will be treated as text (and yes lisp typed here
will be treated as lisp), and people expect text paragraphs not to have
their final line be out-dented *after* completion. Any newcomer to emacs
will clearly consider this a bug. I also do consider it a bug.

> To investigate this further, note that electric-indent-mode is ON

That speaks to the choice of how to classify the bug, not whether it is
a bug. Maybe you'll consider it a bug in that mode, or in auto-fill
mode, or in lisp-interaction-mode, or in the setup of the scratch
buffer, or in the relationship between those three modes, or in the
default comment of that buffer, or in something else. I don't have a
suggestion either way, only the observation that the behavior is
unexpected, counter-intuitive, and annoying.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45582; Package emacs. (Mon, 11 Jan 2021 15:49:02 GMT) Full text and rfc822 format available.

Message #14 received at 45582 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 45582 <at> debbugs.gnu.org
Subject: Re: bug#45582: 28: auto-fill final line of indented paragraph
Date: Mon, 11 Jan 2021 16:48:13 +0100
Boruch Baum <boruch_baum <at> gmx.com> writes:

>> IOW, I don't think there's a bug here. But if there is a bug, please
>> tell what behavior you expected and why.
>
> The default contents of the scratch buffer read: "This buffer is for
> text that is not saved ..." so any newcomer to emacs gets the indication
> that _text_ typed here will be treated as text (and yes lisp typed here
> will be treated as lisp), and people expect text paragraphs not to have
> their final line be out-dented *after* completion. Any newcomer to emacs
> will clearly consider this a bug. I also do consider it a bug.

It says

;; This buffer is for text that is not saved, and for Lisp evaluation.

so the user should be expecting this to be a non-normal (i.e., not a
text-mode) buffer.

So I agree with Eli -- this isn't a bug, and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) notabug. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 11 Jan 2021 15:49:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 45582 <at> debbugs.gnu.org and Boruch Baum <boruch_baum <at> gmx.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 11 Jan 2021 15:49:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 09 Feb 2021 12:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.