emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: c.buhtz@posteo.jp
Cc: emacs-orgmode@gnu.org
Subject: Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
Date: Tue, 05 Apr 2022 11:02:59 +1000	[thread overview]
Message-ID: <87bkxgpb48.fsf@gmail.com> (raw)
In-Reply-To: <1a4d5c524929fb018d18b875ff5ed28d@posteo.de>


c.buhtz@posteo.jp writes:

> Dear Tim
>
> Am 04.04.2022 17:49 schrieb Tim Cross:
>> What is line-fill-mode? It isn't a 'standard' emacs mode, so must be
>> some add-on?
>
> Sorry this was a "typo".
>
>> At any rate, I don't see this problem when using standard
>> auto-fill-mode. With this mode, when lines wrap (because I've exceeded
>> the fill column) or if I use C-q to trigger filling, the wrapped lines
>> are indented correctly so that lists are preserved.
>
> This is not the case with me.
> Please see this screenrecording
> https://debianforum.de/forum/gallery/image/3641/source
>
> In the top window you see the relevant lines from my init.el.
> In the bottom you see a orgroam capture buffer while I am tiping a 
> loreipsum line and exceeding the fill column. It is not intended.
>
> And that is how it looks like in raw org
>
> :PROPERTIES:
> :ID:       7fe439ec-c46d-4da5-902a-3ba40cebb25e
> :END:
>
> #+title: test
> #+date: [2022-04-04 Mo 20:04]
>
> - Lorem ipsum dolro sit amet, consetetur sadipscing elitr, sed diam 
> nonumy
> eirmod tempor invidunt ut
> - second item
>    second line in second item
> -
>
> The first list entry got its newline char automatically via 
> auto-fill-mode.
> The second entry got its newline by myself via pressing RET.

I cannot reproduce your issue using a clean Emacs. I suspect this is
either something incorrect in your init.el file or something caused by
org-roam (which is not part of org-mode).

I note from the screenshot you provided that you are explicitly setting
auto-fill-function. This is not the standard way to turn on
auto-fill-mode and it could break mode specific settings for
auto-filling. Instead, you should call auto-fill-mode in the appropriate
mode specific hook (as specified in the emacs manual).

I would suggest you try reproducing your issue in a clean Emacs e.g.

emacs -Q

open an org file

do M-x auto-fill-mode

do M-x org-capture

to start a data capture

do M-x auto-fill-mode to enable auto-filling in the capture buffer

Add list items to the capture buffer, some long, some short and let
auto-fill do the filling

complete the capture

When I do this, the lists are formatted correctly and long lines are
wrapped with the correct item indentation.

This is with

GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30,
cairo version 1.16.0) of 2022-04-05
Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/local/share/emacs/29.0.50/lisp/org/)


  reply	other threads:[~2022-04-05  1:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-03 20:28 Multiline list entries / Is auto-fill-mode in org(roam) usual? c.buhtz
2022-04-03 21:02 ` c.buhtz
2022-04-04 13:25   ` c.buhtz
2022-04-04 15:49     ` Tim Cross
2022-04-04 18:13       ` c.buhtz
2022-04-05  1:02         ` Tim Cross [this message]
2022-04-04  3:42 ` Kaushal Modi
2022-04-04  4:06   ` Ihor Radchenko
2022-04-04  4:26     ` Kaushal Modi
2022-04-04  7:16     ` c.buhtz
2022-04-04  7:44       ` Ihor Radchenko
     [not found]         ` <9ab81ac1c7c4a2e26187cf50ee8f3000@posteo.de>
2022-04-04 12:31           ` Remove old WORG page with Org Syntax (draft) in favour of new syntax page by Timothy (was: Multiline list entries / Is auto-fill-mode in org(roam) usual?) Ihor Radchenko
2022-04-04 16:08             ` Remove old WORG page with Org Syntax (draft) in favour of new syntax page by Timothy Nicolas Goaziou
2022-04-04 17:06               ` Timothy
2022-04-05  6:24                 ` Ihor Radchenko
2022-04-05  6:56                   ` Timothy
2022-04-05  7:26                     ` Ihor Radchenko
2022-04-05  7:46                       ` Timothy
2022-04-04 14:32       ` Multiline list entries / Is auto-fill-mode in org(roam) usual? c.buhtz
2022-04-04 15:02         ` Kaushal Modi
2022-04-04 15:54         ` Tim Cross

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87bkxgpb48.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=c.buhtz@posteo.jp \
    --cc=emacs-orgmode@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).