From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-clock mode-line format configuration Date: Tue, 26 Jan 2010 23:02:16 +0100 Message-ID: <9599D4D8-9556-4676-9754-82EA3FEF9E01@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Na3QL-0008MY-CK for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 03:38:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Na3QE-0008LV-Lm for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 03:38:51 -0500 Received: from [199.232.76.173] (port=55517 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na3QE-0008LG-9f for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 03:38:46 -0500 Received: from mx20.gnu.org ([199.232.41.8]:59250) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Na3QA-0001gH-QM for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 03:38:43 -0500 Received: from mail-fx0-f216.google.com ([209.85.220.216]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Na3Q9-0000Fi-Ky for emacs-orgmode@gnu.org; Wed, 27 Jan 2010 03:38:41 -0500 Received: by fxm8 with SMTP id 8so4630608fxm.26 for ; Wed, 27 Jan 2010 00:38:39 -0800 (PST) In-Reply-To: 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: Kiwon Um Cc: emacs-orgmode@gnu.org 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 > 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. - Carsten