GNU bug report logs - #20774
auto-fill doesn't work properly when first-line prefix differs in adaptive-fill-mode

Previous Next

Package: emacs;

Reported by: Samuel Freilich <sfreilich <at> google.com>

Date: Mon, 8 Jun 2015 23:46:02 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Samuel Freilich <sfreilich <at> google.com>
To: npostavs <at> users.sourceforge.net
Cc: 20774 <at> debbugs.gnu.org
Subject: bug#20774: auto-fill doesn't work properly when first-line prefix differs in adaptive-fill-mode
Date: Tue, 22 Aug 2017 12:00:53 -0400
[Message part 1 (text/plain, inline)]
Yes, that's correct. Sorry for getting that wrong in my initial description
of the bug. That's the same as the indentation behavior with auto-fill-mode
disabled. A hanging indent is not assumed with only one line.

On Tue, Aug 22, 2017 at 8:49 AM, <npostavs <at> users.sourceforge.net> wrote:

> Samuel Freilich <sfreilich <at> google.com> writes:
>
> > $ emacs -Q -l markdown-mode.el
> > M-x markdown-mode RET
> > M-x auto-fill-mode RET
> > M-x set-fill-column RET 5 RET
> >
> > Type the following into the buffer and hit RET:
> > * Item
> >
> > Actual result:
> > *
> >   Item
> >   [cursor]
> >
> > Expected result:
> > * Item
> >   [cursor]
>
> With the patch I get
>
> * Item
> [cursor]
>
> i.e, the cursor lands in column 0.  Is it correct?
>
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 325 days ago.

Previous Next


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