* [BUG] `org-fill-paragraph' doesn't respect formatting
@ 2021-12-07 17:12 Tor Kringeland
2021-12-08 11:24 ` Marco Wahl
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Tor Kringeland @ 2021-12-07 17:12 UTC (permalink / raw)
To: emacs-orgmode
Applying `org-fill-paragraph' to /e.g./
/Some text./ Some more text.
when `sentence-end-double-space' is t removes the double space to a
single space. The same happens with other formatting like *bold* and
_underline_. In other instances it is more context aware. /E.g./
applying it to
(Some text.) Some more text.
does nothing, which is correct.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] `org-fill-paragraph' doesn't respect formatting
2021-12-07 17:12 [BUG] `org-fill-paragraph' doesn't respect formatting Tor Kringeland
@ 2021-12-08 11:24 ` Marco Wahl
2022-10-06 8:55 ` Ihor Radchenko
2022-10-06 13:24 ` Rudolf Adamkovič
2 siblings, 0 replies; 4+ messages in thread
From: Marco Wahl @ 2021-12-08 11:24 UTC (permalink / raw)
To: Tor Kringeland; +Cc: emacs-orgmode
Tor Kringeland <tor.a.s.kringeland@ntnu.no> writes:
> Applying `org-fill-paragraph' to /e.g./
>
> /Some text./ Some more text.
>
> when `sentence-end-double-space' is t removes the double space to a
> single space. The same happens with other formatting like *bold* and
> _underline_. In other instances it is more context aware. /E.g./
> applying it to
>
> (Some text.) Some more text.
>
> does nothing, which is correct.
Confirmed.
This should bring the issue to https://updates.orgmode.org/ I think.
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] `org-fill-paragraph' doesn't respect formatting
2021-12-07 17:12 [BUG] `org-fill-paragraph' doesn't respect formatting Tor Kringeland
2021-12-08 11:24 ` Marco Wahl
@ 2022-10-06 8:55 ` Ihor Radchenko
2022-10-06 13:24 ` Rudolf Adamkovič
2 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2022-10-06 8:55 UTC (permalink / raw)
To: Tor Kringeland; +Cc: emacs-orgmode
Tor Kringeland <tor.a.s.kringeland@ntnu.no> writes:
> Applying `org-fill-paragraph' to /e.g./
>
> /Some text./ Some more text.
>
> when `sentence-end-double-space' is t removes the double space to a
> single space. The same happens with other formatting like *bold* and
> _underline_. In other instances it is more context aware. /E.g./
> applying it to
>
> (Some text.) Some more text.
>
> does nothing, which is correct.
This is because Org does not set sentence-end-base to include the markup
markers.
The easiest way to fix this bug will be setting sentence-end-base.
However, in addition to fixing the particular case in this bug report,
such change may have unforeseen consequences in other scenarios.
We may be more selective and only allow the actual parsed emphasis end
markers to be recognized as sentence end.
Or I may be overthinking things because
`org-mode-transpose-word-syntax-table' is already using indiscriminate
approach wrt treating the emphasis barely shielding emphasis additions
to specific commands (like in `org-fill-element').
WDYT?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] `org-fill-paragraph' doesn't respect formatting
2021-12-07 17:12 [BUG] `org-fill-paragraph' doesn't respect formatting Tor Kringeland
2021-12-08 11:24 ` Marco Wahl
2022-10-06 8:55 ` Ihor Radchenko
@ 2022-10-06 13:24 ` Rudolf Adamkovič
2 siblings, 0 replies; 4+ messages in thread
From: Rudolf Adamkovič @ 2022-10-06 13:24 UTC (permalink / raw)
To: Tor Kringeland, emacs-orgmode
Tor Kringeland <tor.a.s.kringeland@ntnu.no> writes:
> The same happens with other formatting like *bold* and _underline_.
+1
I bump into this inconsistency almost every day, e.g.
*Example.* Starting with $n = 12$, ...
Rudy
--
"The whole science is nothing more than a refinement of everyday
thinking."
-- Albert Einstein, 1879-1955
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-06 13:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-07 17:12 [BUG] `org-fill-paragraph' doesn't respect formatting Tor Kringeland
2021-12-08 11:24 ` Marco Wahl
2022-10-06 8:55 ` Ihor Radchenko
2022-10-06 13:24 ` Rudolf Adamkovič
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).