Dear developer:

I have encountered a visual bug regarding =org-habit-insert-consistency-graphs= 
in the org-agenda.

If an Org habit's TODO heading consists /only/ of a link, the blank spaces 
inserted after the heading to align the consistency graph in =org-agenda= will 
incorrectly inherit the text properties of the link. Most notably, it inherits 
the underline face property, resulting in an unwanted continuous underline 
stretching across the empty spaces between the heading and the graph.

I am currently using the following advice as a workaround to prevent the text 
properties from being sticky:

#+begin_src emacs-lisp
(defun my/org-habit-prevent-underline-leak (orig-fn &rest args)
  (let ((text-property-default-nonsticky
         (append '((face . t)
                   (mouse-face . t)
                   (keymap . t)
                   (help-echo . t))
                 text-property-default-nonsticky)))
    (apply orig-fn args)))

(advice-add 'org-habit-insert-consistency-graphs :around 
#'my/org-habit-prevent-underline-leak)
#+end_src

Reply via email to