From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: Remaining work/progress report: nearly useful, help needed Date: Thu, 11 Oct 2012 13:01:37 +0100 Message-ID: <87d30pjjz2.fsf@ed.ac.uk> References: <87fw5mjv31.fsf@ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMHKw-0000jK-7I for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 07:53:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMHKv-0004fY-0O for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 07:53:58 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:48665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMHKu-0004fT-Of for emacs-orgmode@gnu.org; Thu, 11 Oct 2012 07:53:56 -0400 Received: by mail-wi0-f177.google.com with SMTP id hj13so1681054wib.12 for ; Thu, 11 Oct 2012 04:53:55 -0700 (PDT) In-reply-to: <87fw5mjv31.fsf@ed.ac.uk> 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: Emacs Org mode Just an update to say I have managed to do one of the things I was asking for help with. As with most things, it was easier than I thought. Myles English writes: > Hi orgees, > > In March I had a go at making a "Remaining work/progress report"[1]. > Having make some progress, I am looking for: > > - help, > - collaborators, > - opinions on whether this would be useful enough to be worth the > effort, > - whether anyone else has something like this (but better) and > - any other wisdom, > > with a view to contributing it. [yaddayadda] > 4 Improvements necessary to make it truly useful > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > 1. include a captured column view of the INCLUDEd file b.org: the file's > headings are included in the TOC because it uses the new exporter, but > not in the column-view. Maybe exporting as org first and then > taking the column view of that buffer would work. Done! It can be achieved by making this change to my-progress.el: (with-current-buffer (if view-file (get-file-buffer view-file) (current-buffer)) + ;; do everything in a copy of the current buffer + (org-export-with-current-buffer-copy + (org-export-expand-include-keyword) (save-excursion (setq mytoc (reverse (toc-alist)))) (save-excursion (save-restriction (org-columns) (setq tbl (org-columns-capture-view maxlevel skip-empty-rows)) (setq nfields (length (car tbl))) - (org-columns-quit)))) + (org-columns-quit))))) (goto-char pos) (move-marker pos nil) (when tbl > 2. Accumulate the time Remaining in the same way that CLOCKSUM does; > it propagates upwards to higher level headings so that you can see > (e.g.) how long Chapter 1 will take in total > > 3. Refresh all the Remaining properties automatically > > I would really appreciate some help, particularly with 1. 2 & 3 > > > Thanks, > > Myles > > > Footnotes: > [1] http://comments.gmane.org/gmane.emacs.orgmode/53567