When I use org-return or newline, the current line is reindented incorrectly.
Steps to reproduce:
Steps to reproduce:
1. Launch emacs `emacs -Q -L path/to/org-mode/lisp`
2. Execute `org-mode`3. Past this into the scratch buffer:
#+begin_src conf
pid /tmp/nginx.pid;
events {}
# one two three four five six seven eight nine ten eleven twelve thirtheen
fourteen
http {
upstream application {
server 127.0.0.1:3000;
}
server {
listen 8080;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/secrets/.htpasswd_automations;
location / {
proxy_set_header Authorization "";
proxy_pass http://application;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /healthz {
auth_basic off;
return 200 "OK";
}
}
}
#+end_src
4. Move the cursor to the comment line " upstream application {".
5. Exectue this sequence of commands: move-end-of-line -> org-return
The " upstream application {" gets reindented incorrectly, like this:
http {
upstream application {
server 127.0.0.1:3000; }
Expected behavior:
It shouldn't be reindented at all. I don't see such behavior on the 9.7.11
version.
Emacs version: GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.49, cairo version 1.18.2) of 2025-10-1
Org version: Org mode version 9.8-pre (release_9.7.34-463-g1afa55 @
/home/wurfkreuz/.source/org-mode/lisp/