On Jan 27, 2010, at 2:33 PM, Kiwon Um wrote:

Carsten Dominik <carsten.domi...@gmail.com> writes:

Hi Um,

not, the result value has to be a string.


Hi Carsten, hmmm... If you are right, it's an easy problem as long as
I'm able to know the variable name containing the string for the mode
line at the moment, isn't it?

No, you are misunderstanding.

the variable org-clock-heading-function hast to be set to a function.
A form starting with `lambda' is a function.

The function needs to return a string, and that string will automatically end up in the variable `org-clock-heading', which is then used to create the string
in the mode line.

Clearer now?

I had a typo in the function:

(setq org-clock-heading-function
     (lambda ()
        (replace-regexp-in-string
         "\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1"
         (nth 4 (org-heading-components)))))





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

Reply via email to