emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Agenda view > Face for deadlines > PATCH
Date: Thu, 12 Aug 2010 10:34:30 +0200	[thread overview]
Message-ID: <87zkws5iw9.fsf@mundaneum.com> (raw)
In-Reply-To: 87sk3o76se.fsf@mundaneum.com

Hi all,

Sébastien Vauban wrote:
> Carsten Dominik wrote:
>> Sébastien Vauban wrote:
>>> Sébastien Vauban wrote:
>>>> Sébastien Vauban wrote:
>>>>>
>>>>> In the same kind of thought, trying to enhance the way we (or I)
>>>>> visualize tasks in the agenda, I have chosen some sort of "inverse
>>>>> video" face for deadlines.
>>>>>
>>>>> (my-org-deadline-yesterday ((t (:foreground "white" :background "#D80000" :weight bold))))
>>>>> (my-org-deadline-today ((t (:foreground "white" :background "#E9A36A" :weight bold))))
>>>>> (my-org-deadline-tomorrow ((t (:foreground "black" :background "#B4F1B3" :weight bold))))
>>>>> (my-org-deadline-later ((t (:foreground "black" :background "#AACAFC"))))
>>>>>
>>>>> [...]
>>>>>
>>>>> The result is the following:
>>>>>
>>>>> Week-agenda (W20-W21):
>>>>> 2010-05-18 Tue _________________________________________________________________
>>>>>   Personal:   17:15-17:20 Sarah!                                 :home::errands:
>>>>>   refile:     Sched. 2x:  TODO [#A] Update reservations Scorpios       :refile::
>>>>> x Family: xxx In  -1 d.:  TODO [#A] Photos-reportage Andre xxxx :home::computer:
>>>>>
>>>>> where the `x' are just some textual way to represent background color.
>>>>>
>>>>> For the sake of clarity, I'd like the first 2 characters (in front of
>>>>> `Family', in my example) not to be "impacted" by that face. Otherwise,
>>>>> when in inverse video, they obfuscate the view of the day separators and
>>>>> of the deadline lines.

Still trying to solve this, now that I have learned a bit more (but, still
only a bit...) on debugging Lisp code.

I've (on purpose) "forgotten" all I did and found in the past (june-july), to
start again from scratch, and be sure I identify the right defuns to work on.

So, to resume, my *goal* is to try applying a face with white background (in
my case) on the first 2 characters of every TODO line appearing in the agenda.

But, question: *which defun* does do that?  How to find that information?  I
instrumented the org packages with ELP, and got many function calls. I
searched for functions that were called at least as many times as the number
of lines I have in my weekly agenda.

(is there a better way to _trace_ function calls, and see a call tree?  `M-x
trace', mabye, but it did not help me a lot so far -- maybe lacking
experience)

By stepping through some functions, I've understood that the functions that
interest me are the following:

org-agenda-list
   -> org-finalize-agenda-entries
       -> *org-agenda-highlight-todo*

Though, what I really don't understand is that I `C-u C-M-x' the function
=org-agenda-highlight-todo=, and then call =org-agenda-list=, expecting to
trace the function that *highlights every TODO line* of my agenda.

And... no, *edebug is not launched*!?  I really don't understand that...

On the contrary, executing `C-c a s' does stop me in that function. So, the
function has *well been instrumented*.

Any idea about which wrong direction I'm taking?

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-08-12  8:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13  8:41 Agenda view > Day separator Sébastien Vauban
2010-05-13 15:06 ` Eric S Fraga
2010-05-13 18:27 ` Carsten Dominik
2010-05-13 19:34   ` Eric S Fraga
2010-05-17 11:23     ` Sébastien Vauban
2010-05-17 20:51       ` Markus Heller
2010-05-17 21:02         ` Nick Dokos
2010-05-17 21:14           ` Markus Heller
2010-05-18  7:39             ` Sébastien Vauban
2010-05-18  8:33               ` Štěpán Němec
2010-05-18 11:17                 ` Sébastien Vauban
2010-05-18 12:30                   ` Štěpán Němec
2010-05-18 12:06         ` J. David Boyd
2010-05-18  8:02 ` Agenda view > Face for deadlines Sébastien Vauban
2010-05-19 21:53   ` Agenda view > Face for deadlines > PATCH Sébastien Vauban
2010-05-21  7:43     ` Sébastien Vauban
2010-05-21 14:37       ` Carsten Dominik
2010-07-12 21:02         ` Sébastien Vauban
2010-08-12  8:34           ` Sébastien Vauban [this message]
2010-08-12 14:26             ` Bastien
2010-08-13 10:13               ` Sébastien Vauban
2010-08-16 19:51                 ` Bastien

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=87zkws5iw9.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).