* Multiline list entries / Is auto-fill-mode in org(roam) usual?
@ 2022-04-03 20:28 c.buhtz
2022-04-03 21:02 ` c.buhtz
2022-04-04 3:42 ` Kaushal Modi
0 siblings, 2 replies; 21+ messages in thread
From: c.buhtz @ 2022-04-03 20:28 UTC (permalink / raw)
To: emacs-orgmode
Hello togehter,
is it usual to have auto-fill-mode (automatic new-line after n
characters) turned on in org or org-roam (including fill-column set e.g.
to 80)?
Or let me ask from another point of view: Is it usual to have multiline
list entries?
- first list entry
- second list entry with more then 80 chars/columns two with Lorem ipsum
dolor
sit amet, consetetur sadipscing elitr
- third entry
Without auto-fill-mode it would look like this, without any linebreak in
an entry:
- first list entry
- second list entry with more then 80 chars/columns two with Lorem ipsum
dolor sit amet, consetetur sadipscing elitr
- third entry
I know that org is not markdown but I tried some markdown editors to
test it. They still recognize the linebreak in my first example and
rendered it "correct" as a 3 item list.
I checked the syntax docu [1] about it but I couldn't find a hint or
didn't understand.
Do I understand it correct that the end of a list is marked by an empty
line?
[1] --
<https://orgmode.org/worg/dev/org-syntax.html#Plain_Lists_and_Items>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
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 3:42 ` Kaushal Modi
1 sibling, 1 reply; 21+ messages in thread
From: c.buhtz @ 2022-04-03 21:02 UTC (permalink / raw)
To: emacs-orgmode
I found org-export-as-html and tested this
- one
eins
ens
This as html is
<ul class="org-ul">
<li>one
eins</li>
</ul>
<p>
ens
</p>
Am 03.04.2022 22:28 schrieb c.buhtz@posteo.jp:
> Hello togehter,
>
> is it usual to have auto-fill-mode (automatic new-line after n
> characters) turned on in org or org-roam (including fill-column set
> e.g. to 80)?
> Or let me ask from another point of view: Is it usual to have
> multiline list entries?
>
> - first list entry
> - second list entry with more then 80 chars/columns two with Lorem
> ipsum dolor
> sit amet, consetetur sadipscing elitr
> - third entry
>
> Without auto-fill-mode it would look like this, without any linebreak
> in an entry:
>
> - first list entry
> - second list entry with more then 80 chars/columns two with Lorem
> ipsum dolor sit amet, consetetur sadipscing elitr
> - third entry
>
> I know that org is not markdown but I tried some markdown editors to
> test it. They still recognize the linebreak in my first example and
> rendered it "correct" as a 3 item list.
> I checked the syntax docu [1] about it but I couldn't find a hint or
> didn't understand.
>
> Do I understand it correct that the end of a list is marked by an empty
> line?
>
> [1] --
> <https://orgmode.org/worg/dev/org-syntax.html#Plain_Lists_and_Items>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
2022-04-03 21:02 ` c.buhtz
@ 2022-04-04 13:25 ` c.buhtz
2022-04-04 15:49 ` Tim Cross
0 siblings, 1 reply; 21+ messages in thread
From: c.buhtz @ 2022-04-04 13:25 UTC (permalink / raw)
To: emacs-orgmode
Thanks to the discussion I now can see and describe my problem clearer.
When using line-fill-mode it does not take the current org list
indention into account. Because of this org lines like this will appear.
- one entry with a very long text ending in the second line
end
- second entry
This is recognized (e.g. while html export) as two one-item-lists with a
paragraph between them.
When I press RET myself the point is correct indented but not when it is
done automatically via line-fill-mode.
Is there a solution for this?
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
2022-04-04 13:25 ` c.buhtz
@ 2022-04-04 15:49 ` Tim Cross
2022-04-04 18:13 ` c.buhtz
0 siblings, 1 reply; 21+ messages in thread
From: Tim Cross @ 2022-04-04 15:49 UTC (permalink / raw)
To: c.buhtz; +Cc: emacs-orgmode
c.buhtz@posteo.jp writes:
> Thanks to the discussion I now can see and describe my problem clearer.
>
> When using line-fill-mode it does not take the current org list indention into
> account. Because of this org lines like this will appear.
>
> - one entry with a very long text ending in the second line
> end
> - second entry
>
> This is recognized (e.g. while html export) as two one-item-lists with a
> paragraph between them.
>
> When I press RET myself the point is correct indented but not when it is done
> automatically via line-fill-mode.
>
> Is there a solution for this?
What is line-fill-mode? It isn't a 'standard' emacs mode, so must be
some add-on?
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.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
2022-04-04 15:49 ` Tim Cross
@ 2022-04-04 18:13 ` c.buhtz
2022-04-05 1:02 ` Tim Cross
0 siblings, 1 reply; 21+ messages in thread
From: c.buhtz @ 2022-04-04 18:13 UTC (permalink / raw)
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
2022-04-04 18:13 ` c.buhtz
@ 2022-04-05 1:02 ` Tim Cross
0 siblings, 0 replies; 21+ messages in thread
From: Tim Cross @ 2022-04-05 1:02 UTC (permalink / raw)
To: c.buhtz; +Cc: emacs-orgmode
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/)
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
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 3:42 ` Kaushal Modi
2022-04-04 4:06 ` Ihor Radchenko
1 sibling, 1 reply; 21+ messages in thread
From: Kaushal Modi @ 2022-04-04 3:42 UTC (permalink / raw)
To: Emacs orgmode
[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]
On Sun, Apr 3, 2022, 4:29 PM <c.buhtz@posteo.jp> wrote:
> Hello togehter,
>
> is it usual to have auto-fill-mode (automatic new-line after n
> characters) turned on in org or org-roam (including fill-column set e.g.
> to 80)?
>
I cannot comment on that. Enabling auto-fill-mode is user preference.
Or let me ask from another point of view: Is it usual to have multiline
> list entries?
>
Yes, if auto-fill-mode is enabled in org-mode.
I know that org is not markdown but I tried some markdown editors to
> test it. They still recognize the linebreak in my first example and
> rendered it "correct" as a 3 item list.
> I checked the syntax docu [1] about it but I couldn't find a hint or
> didn't understand.
>
> Do I understand it correct that the end of a list is marked by an empty
> line?
>
Yes. I think that the list items follow the same rules as Paragraphs [1]
i.e. A list item continues until it sees a blank line. This is identical to
Markdown.
Below, you have 2 list items:
- item 1
- item 2
Below is also 2 list items:
- item 1
item 1 continued
- item 2
Below is also 2 list items, but the first item has 2 paragraphs:
- item 1
second paragraph in item 1
- item 2
I hope that helps.
[1]: https://orgmode.org/manual/Paragraphs.html#Paragraphs
[-- Attachment #2: Type: text/html, Size: 2700 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
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
0 siblings, 2 replies; 21+ messages in thread
From: Ihor Radchenko @ 2022-04-04 4:06 UTC (permalink / raw)
To: Kaushal Modi; +Cc: Emacs orgmode
Kaushal Modi <kaushal.modi@gmail.com> writes:
>> Do I understand it correct that the end of a list is marked by an empty
>> line?
>>
>
> Yes. I think that the list items follow the same rules as Paragraphs [1]
> i.e. A list item continues until it sees a blank line. This is identical to
> Markdown.
>
I think your examples are a bit misleading. A list item continues until
there are _2_ blank lines or until the subsequent line is not indented >=
current list item indentation:
1. list item 1
not a list item because it not indented
2. completely new list
Also,
1. list item 1
Still a list item - new paragraph inside the list
Indented, but not a list item because there are two blank lines above
Everything is described in the manual. See https://orgmode.org/manual/Plain-Lists.html#Plain-Lists
Best,
Ihor
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
2022-04-04 4:06 ` Ihor Radchenko
@ 2022-04-04 4:26 ` Kaushal Modi
2022-04-04 7:16 ` c.buhtz
1 sibling, 0 replies; 21+ messages in thread
From: Kaushal Modi @ 2022-04-04 4:26 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Emacs orgmode
[-- Attachment #1: Type: text/plain, Size: 881 bytes --]
On Mon, Apr 4, 2022, 12:06 AM Ihor Radchenko <yantar92@gmail.com> wrote:
>
> I think your examples are a bit misleading.
I have the indentations correct in my three examples.
A list item continues until
> there are _2_ blank lines or until the subsequent line is not indented >=
> current list item indentation:
>
The whole list ends after 2 blank lines. But I didn't demonstrate this rule
in my examples. I was just focusing on plain single new line char vs a
blank line (2 consecutive newlines) in my examples.
1. list item 1
> not a list item because it not indented
> 2. completely new list
>
> Also,
>
> 1. list item 1
>
> Still a list item - new paragraph inside the list
>
>
> Indented, but not a list item because there are two blank lines above
>
> Everything is described in the manual. See
> https://orgmode.org/manual/Plain-Lists.html#Plain-Lists
+1
>
>
[-- Attachment #2: Type: text/html, Size: 2051 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?
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
2022-04-04 14:32 ` Multiline list entries / Is auto-fill-mode in org(roam) usual? c.buhtz
1 sibling, 2 replies; 21+ messages in thread
From: c.buhtz @ 2022-04-04 7:16 UTC (permalink / raw)
To: emacs-orgmode
Dear Ihor,
thanks for your feedback.
Am 04.04.2022 06:06 schrieb Ihor Radchenko:
> A list item continues until
> there are _2_ blank lines or until the subsequent line is not indented
> >=
> current list item indentation:
Intereseting. What 2 lines not 1 like in paragraphs. Am I right to say
that a paragraph ends with one blank line?
> Everything is described in the manual. See
> https://orgmode.org/manual/Plain-Lists.html#Plain-Lists
I showed you a worg-link. Again this is a good example why worg hurts
more then it helps; newbies. The site looked very official.
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2022-04-05 7:49 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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).