From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [Orgmode] Grouping clock report by tag? Date: Fri, 06 May 2011 19:55:22 -0400 Message-ID: <87bozfgz9x.fsf@norang.ca> References: <87bp1oe66l.fsf@gnu.org> <8762rwp2mg.fsf@gnu.org> <83fwqzb5qf.fsf@yahoo.it> <87pqnw7nk3.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIUrt-0000mM-9m for emacs-orgmode@gnu.org; Fri, 06 May 2011 19:55:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIUrr-0000l2-MV for emacs-orgmode@gnu.org; Fri, 06 May 2011 19:55:33 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:13267 helo=mho-02-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIUrr-0000ku-KF for emacs-orgmode@gnu.org; Fri, 06 May 2011 19:55:31 -0400 In-Reply-To: (John Hendy's message of "Fri, 6 May 2011 15:30:12 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: Bastien , emacs-orgmode John Hendy writes: > On Thu, May 5, 2011 at 6:08 PM, Bernt Hansen wrote: >> Niels Giesen posted some patches for summarizing clock reports by >> arbitrary properties. =C2=A0Maybe this will be useful? >> >> http://thread.gmane.org/gmane.emacs.orgmode/40160 >> >> I'm not aware of any functionality that does what you describe above. >> > > His is actually pretty darn close. It looks like Carsten just > re-requested a patch in some standard format a few days ago, so > perhaps I can hold my breath for it to get applied. Otherwise, do I > just copy/paste his code into manual files and then do something like > 'patch -p0 file.patch'? > > And will it get overrun by my next pull? > > Sorry... never applied a patch to org-mode files. Creating the patches is fairly easy. 1) Take the email with the patches in it and cut out the #+begin_src and #+end_src lines and everything in front of the first patch so the file is just the 3 patches consecutively. 2) Save the file (I put mine in /tmp/patch) 3) Create a local topic branch for these patches $ git checkout -b clock-report-by-property origin/master 4) Apply the patches to create the 3 commits on this branch $ git am /tmp/patch Then try it out. I've done the above steps and pushed the result to=20 git://git.norang.ca/org-mode.git ng/clock-reports-by-property after fixing up the email address since git doesn't like the syntax provided in the mail. I have not fixed the changelog entries for these patches but they should be fine for just giving it a trial run. You can grab the patches from my git repository with $ git fetch git://git.norang.ca/org-mode.git ng/clock-reports-by-property This will create a temporary ref called FETCH_HEAD which you can check out. $ git checkout FETCH_HEAD and later just go back to your master with=20 $ git checkout master HTH, Bernt