emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Al Haji-Ali <abdo.haji.ali@gmail.com>
To: emacs-orgmode@gnu.org
Subject: extended background on org-block-end-line
Date: Tue, 08 Nov 2022 17:52:00 +0000	[thread overview]
Message-ID: <871qqdxrjz.fsf@gmail.com> (raw)


I'll admit this "bug" is not critical, but it is visually annoying (at least to me).
When hiding an org entry, source blocks with extended backgrounds remain visible.

To re-produce:

0. Run `emacs -Q`

1. Create a buffer with this content and ensure `org-mode` is on
------------------------------------------------------------
* One
#+begin_src emacs-lisp
#+end_src
* Two
#+begin_src emacs-lisp
#+end_src
------------------------------------------------------------

2. Change the face `org-block-end-line` to have an extended background on the end-line of the
org-block

(set-face-attribute
   'org-block-end-line nil
   :extend t
   :background "#4e5079")

4. Go to "One" and press tab

5. Notice how the background colour now appears next to "One".

Is there a way to fix this? Note that if the org-block is not the last line in the entry (for example if there's an empty line before "* Two") then the visual artefact is not present.  

-- Al


             reply	other threads:[~2022-11-08 20:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-08 17:52 Al Haji-Ali [this message]
2022-11-09  2:26 ` extended background on org-block-end-line Ihor Radchenko
2022-11-09 14:14   ` Abdul-Lateef Haji-Ali
2022-11-10  1:38     ` Ihor Radchenko
2024-04-08 14:18   ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871qqdxrjz.fsf@gmail.com \
    --to=abdo.haji.ali@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).