emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `org-fill-paragraph' (`M-q') in Org Mode source blocks


From: Sébastien Miquel
Subject: Re: `org-fill-paragraph' (`M-q') in Org Mode source blocks
Date: Mon, 3 Oct 2022 07:18:11 +0000

Hi,

Ihor Radchenko writes:
I am still getting the described behaviour.
However, it does not happen in Org mode itself.
`fill-paragraph' in emacs-lisp-mode does exactly the observed behaviour.

Try
1. emacs -Q
2. insert
;; A comment
(+ 2 2)
3. M-h M-q

Is it emacs-lisp-mode bug? Or is it illegal to fill-region in source
code buffers?
I think the original report is about M-q, not M-h M-q. M-q behaves as 
expected in emacs-lisp-mode.
Currently, org-fill-paragraph will not work properly when called inside 
src blocks. This can be easily fixed, but probably requires yet another 
org-fill-paragraph-act-natively variable.
--
Sébastien Miquel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]