all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
@ 2012-11-29 13:38 Boyan Penkov
  2012-12-10 12:46 ` Vincent Beffara
  0 siblings, 1 reply; 6+ messages in thread
From: Boyan Penkov @ 2012-11-29 13:38 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I'm using org-habit to track habits in the agenda view, displaying the
consistency graph.  I'm also using hl-line to highlight the line the
cursor is on.

When the habit line is highlighted, the line highlight obscures the
consistency graph.  It seems behavior should be opposite -- i.e: the
consistency graph should lie atop the highlight bar, such that the
graph is visible when the line is highlighted.

Thanks!

Emacs  : GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2012-08-27 on bob.porkrind.org
Package: Org-mode version 7.8.11

current state:
==============
(setq
 org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe
		      org-babel-hide-result-toggle-maybe)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-agenda-start-on-weekday nil
 org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames
			       org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-skip-scheduled-if-done t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-tags-column 80
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
		   [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
		 #[nil "\300\301\302\303\304$\207"
		   [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
		 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
		  org-optimize-window-after-visibility-change)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t)
		     (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil))
 org-agenda-tags-column 93
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-export-interblocks '((src org-babel-exp-non-block-elements))
 org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-habit org-irc org-mew
	       org-mhe org-rmail org-vm org-wl org-w3m)
 org-agenda-ndays 9
 org-deadline-warning-days 0
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-habit-graph-column 75
 org-agenda-files '("~/Vazhno/Logs/ToDo/todo.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

--
Boyan Penkov

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
  2012-11-29 13:38 Bug: hl-line obscures org-habit tracking in agenda [7.8.11] Boyan Penkov
@ 2012-12-10 12:46 ` Vincent Beffara
  2012-12-23 18:06   ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent Beffara @ 2012-12-10 12:46 UTC (permalink / raw)
  To: Boyan Penkov; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 3776 bytes --]

Hi, 

Same thing here except with TODO keywords, the font is configured to be black-on-red and hl-line lays on top of that, giving a black-on-darkgrey. Looking at docs about how emacs determines the face at a given location, they speak about a stack of specifications but nothing about the ordering of that stack - certainly org should be above hl-line ? Any way to change that ? (Maybe hl-line uses an "overlay", in which case it seems to be hopeless ...)

/v 

-- 
Vincent Beffara


On Thursday, November 29, 2012 at 14:38 , Boyan Penkov wrote:

> Hello,
> 
> I'm using org-habit to track habits in the agenda view, displaying the
> consistency graph. I'm also using hl-line to highlight the line the
> cursor is on.
> 
> When the habit line is highlighted, the line highlight obscures the
> consistency graph. It seems behavior should be opposite -- i.e: the
> consistency graph should lie atop the highlight bar, such that the
> graph is visible when the line is highlighted.
> 
> Thanks!
> 
> Emacs : GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
> of 2012-08-27 on bob.porkrind.org (http://bob.porkrind.org)
> Package: Org-mode version 7.8.11
> 
> current state:
> ==============
> (setq
> org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
> org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe
> org-babel-hide-result-toggle-maybe)
> org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
> org-occur-hook '(org-first-headline-recenter)
> org-metaup-hook '(org-babel-load-in-session-maybe)
> org-agenda-start-on-weekday nil
> org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
> org-confirm-shell-link-function 'yes-or-no-p
> org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames
> org-beamer-place-default-actions-for-lists)
> org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
> org-agenda-skip-scheduled-if-done t
> org-after-todo-state-change-hook '(org-clock-out-if-current)
> org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
> org-tags-column 80
> org-agenda-before-write-hook '(org-agenda-add-entry-text)
> org-babel-pre-tangle-hook '(save-buffer)
> org-mode-hook '(#[nil "\300\301\302\303\304$\207"
> [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
> #[nil "\300\301\302\303\304$\207"
> [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
> org-babel-result-hide-spec org-babel-hide-all-hashes)
> org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
> org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
> org-optimize-window-after-visibility-change)
> org-export-latex-format-toc-function 'org-export-latex-format-toc-default
> org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t)
> (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil))
> org-agenda-tags-column 93
> org-export-first-hook '(org-beamer-initialize-open-trackers)
> org-export-interblocks '((src org-babel-exp-non-block-elements))
> org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-habit org-irc org-mew
> org-mhe org-rmail org-vm org-wl org-w3m)
> org-agenda-ndays 9
> org-deadline-warning-days 0
> org-confirm-elisp-link-function 'yes-or-no-p
> org-metadown-hook '(org-babel-pop-to-session-maybe)
> org-habit-graph-column 75
> org-agenda-files '("~/Vazhno/Logs/ToDo/todo.org (http://todo.org)")
> org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
> )
> 
> --
> Boyan Penkov



[-- Attachment #2: Screen Shot 2012-12-10 at 13.40.34.png --]
[-- Type: image/png, Size: 9528 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
  2012-12-10 12:46 ` Vincent Beffara
@ 2012-12-23 18:06   ` Bastien
  2012-12-24  0:18     ` Boyan Penkov
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-12-23 18:06 UTC (permalink / raw)
  To: Vincent Beffara; +Cc: emacs-orgmode, Boyan Penkov

Hi Boyan and Vincent,

Vincent Beffara <vbeffara+ml@gmail.com> writes:

> Same thing here except with TODO keywords, the font is configured to be
> black-on-red and hl-line lays on top of that, giving a
> black-on-darkgrey. Looking at docs about how emacs determines the face at a
> given location, they speak about a stack of specifications but nothing
> about the ordering of that stack - certainly org should be above hl-line ?
> Any way to change that ? (Maybe hl-line uses an "overlay", in which case it
> seems to be hopeless ...)

Yes, I think this is pretty hopeless.

Before switching to Vi, maybe you can try to activate `hl-line-mode'
within `org-agenda-finalize-hook', because fontification is done late in
the agenda creation and this hook is called just before it.  Not tested,
though.

2 cts,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
  2012-12-23 18:06   ` Bastien
@ 2012-12-24  0:18     ` Boyan Penkov
  2012-12-24  1:27       ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Boyan Penkov @ 2012-12-24  0:18 UTC (permalink / raw)
  To: Bastien; +Cc: Vincent Beffara, emacs-orgmode

Salut Bastien,

I'm unsure how to use hooks; can you provide a specific line to put in my .emacs?

Thanks!
--
Boyan Penkov




On Dec 23, 2012, at 1:06 PM, Bastien <bzg@altern.org> wrote:

> Hi Boyan and Vincent,
> 
> Vincent Beffara <vbeffara+ml@gmail.com> writes:
> 
>> Same thing here except with TODO keywords, the font is configured to be
>> black-on-red and hl-line lays on top of that, giving a
>> black-on-darkgrey. Looking at docs about how emacs determines the face at a
>> given location, they speak about a stack of specifications but nothing
>> about the ordering of that stack - certainly org should be above hl-line ?
>> Any way to change that ? (Maybe hl-line uses an "overlay", in which case it
>> seems to be hopeless ...)
> 
> Yes, I think this is pretty hopeless.
> 
> Before switching to Vi, maybe you can try to activate `hl-line-mode'
> within `org-agenda-finalize-hook', because fontification is done late in
> the agenda creation and this hook is called just before it.  Not tested,
> though.
> 
> 2 cts,
> 
> -- 
> Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
  2012-12-24  0:18     ` Boyan Penkov
@ 2012-12-24  1:27       ` Bastien
  2012-12-24  1:33         ` Boyan Penkov
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-12-24  1:27 UTC (permalink / raw)
  To: Boyan Penkov; +Cc: Vincent Beffara, emacs-orgmode

Howdy,

Boyan Penkov <boyan.penkov@gmail.com> writes:

> I'm unsure how to use hooks; can you provide a specific line to put in
> my .emacs?

(add-hook 'org-agenda-finalize-hook 'hl-mode-line)

I didn't test this.  HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
  2012-12-24  1:27       ` Bastien
@ 2012-12-24  1:33         ` Boyan Penkov
  0 siblings, 0 replies; 6+ messages in thread
From: Boyan Penkov @ 2012-12-24  1:33 UTC (permalink / raw)
  To: Bastien; +Cc: Vincent Beffara, emacs-orgmode

Hello Bastien,

Thanks for the tip -- however, I can confirm that this did *not* fix the problem.  The behavior remains the same.  FWIW, it didn't seem to do damage either.

Thanks for thinking about this!

Cheers!
--
Boyan Penkov




On Dec 23, 2012, at 8:27 PM, Bastien <bzg@altern.org> wrote:

> Howdy,
> 
> Boyan Penkov <boyan.penkov@gmail.com> writes:
> 
>> I'm unsure how to use hooks; can you provide a specific line to put in
>> my .emacs?
> 
> (add-hook 'org-agenda-finalize-hook 'hl-mode-line)
> 
> I didn't test this.  HTH,
> 
> -- 
> Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-12-24  1:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-29 13:38 Bug: hl-line obscures org-habit tracking in agenda [7.8.11] Boyan Penkov
2012-12-10 12:46 ` Vincent Beffara
2012-12-23 18:06   ` Bastien
2012-12-24  0:18     ` Boyan Penkov
2012-12-24  1:27       ` Bastien
2012-12-24  1:33         ` Boyan Penkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.