From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kiwon Um Subject: Re: org-clock mode-line format configuration Date: Wed, 27 Jan 2010 22:12:50 +0900 Message-ID: References: <9599D4D8-9556-4676-9754-82EA3FEF9E01@gmail.com> <48AC00D2-F7E0-47AE-8384-B4A59C63C9CE@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Na7hi-0007g4-2P for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 08:13:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Na7hc-0007fL-Vp for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 08:13:05 -0500 Received: from [199.232.76.173] (port=42403 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na7hc-0007fI-ST for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 08:13:00 -0500 Received: from mail-pw0-f47.google.com ([209.85.160.47]:38348) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Na7hc-0005OJ-Fa for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 08:13:00 -0500 Received: by pwj10 with SMTP id 10so4086743pwj.26 for ; Wed, 27 Jan 2010 05:12:59 -0800 (PST) In-Reply-To: <48AC00D2-F7E0-47AE-8384-B4A59C63C9CE@gmail.com> (Carsten Dominik's message of "Wed, 27 Jan 2010 13:59:35 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > On Jan 27, 2010, at 10:25 AM, Kiwon Um wrote: > >> Carsten Dominik writes: >> >>> On Jan 26, 2010, at 11:00 AM, Kiwon Um wrote: >>> >>>> Dear orgmode dev team: >>>> >>>> When the clock is started on an item, the item is shown on the mode >>>> line. But the string on the mode line just shows the raw string of >>>> the >>>> item, so sometimes it looks ugly when it contains a link. >>>> >>>> So I suggest to make it customizable, >>> >>> It is customizable, see the variable org-clock-heading-function >>> >> >> Would you please show me the function defun doing what I want? I have >> no idea to how to build org-clock-heading. > > Untested: > > (setq org-clock-heading-function > (lambda () > (replace-regexp-in-string > "\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1" > (nth 4 org-heading-components)))) > This code doesn't work. According to the documentation for the variable org-clock-heading-function, the result should be org-clock-heading, not a string. Kiwon Um