* [2025-02-21 18:57 +0000] Ihor Radchenko <yanta...@posteo.net>: > Phil Estival <p...@7d.nz> writes: > >>> Does the attached diff fix the problem you are encountering? >> >> Yes it does. Thank you! >> >> But we are losing that previous possibility we had of a >> bi-color display of meta lines, with the second part (past >> the text of a meta line) being of the color of the block. > > That's an accidental feature. Just happen to work. > > Historically, we always used org-fontifiy-whole-block-delimiter-line = t. > It became optional to fontify the newline to avoid underline extending > too far. See https://yhetil.org/emacs-bugs/83d0hd8ceh....@gnu.org/ > > Looking at that discussion, it seems that it happened before :extend t > face attribute got introduced into Emacs. Maybe we can get along with > letting users set :extend t/nil in the face itself and deprecating > org-fontify-whole-block-delimiter-line. >
Ok, now everything is clear. One more clarification though, I wrote "meta lines" instead of "#+begin/end_src" but that was not exact, as "meta lines" covers everything that starts with "#+". > So, you want [remainder of the line] to be fontified differently from > the rest of the #+begin_src ...? Currently, the remainder of the line can either be default, part of begin_src or part of the block body due to this accidental feature. At first what I really wanted was to attenuate #+begin_src and to underline the language but I ended up turning on prettify-symbols-mode for the first and then, annoyed by the extend property being reset, observed the situation and suggested the changes we've been discussing about. The question is: wouldn't it be a good design choice to keep the possibility to emphasize source blocks in org and its exports like in this fourth schema? 1) #+begin_src chicken ┌────────────────────────────────┐ │ #; │ │ #; source │ │ #; │ └────────────────────────────────┘ 2) ┌────────────────────┐ │#+begin_src chicken │ ├────────────────────┴───────────┐ │ #; │ │ #; source │ │ #; │ └────────────────────────────────┘ 3) ┌────────────────────────────────┐ │#+begin_src chicken │ ├────────────────────────────────┤ │ #; │ │ #; source │ │ #; │ └────────────────────────────────┘ 4) ┌─────────────────────┬──────────┐ │ #+begin_src chicken │ │ ├─────────────────────┘ │ │ #; │ │ #; source │ │ #; │ └────────────────────────────────┘