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 18:25:10 +0900 Message-ID: References: <9599D4D8-9556-4676-9754-82EA3FEF9E01@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 1Na49R-0005PA-0M for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 04:25:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Na49M-0005OJ-7I for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 04:25:28 -0500 Received: from [199.232.76.173] (port=46806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na49L-0005OG-Tu for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 04:25:23 -0500 Received: from mail-iw0-f188.google.com ([209.85.223.188]:40421) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Na49L-00076n-Iq for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 04:25:23 -0500 Received: by iwn26 with SMTP id 26so5996865iwn.14 for ; Wed, 27 Jan 2010 01:25:23 -0800 (PST) In-Reply-To: <9599D4D8-9556-4676-9754-82EA3FEF9E01@gmail.com> (Carsten Dominik's message of "Tue, 26 Jan 2010 23:02:16 +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 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. >> or to vanish the link string, e.g. >> using >> (replace-regexp-in-string "\\[\\[.*\\]\\[\\(.*\\)\\]\\]" "\\1" str) > > Yes, that makes sense, I have added this. I have changed the "*" parts > to non-greedy though, in case there are several links in the line. > Cool. I missed that. (replace-regexp-in-string "\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1" s)) Kiwon Um