From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Conditional summing in column-mode? Date: Fri, 25 Aug 2017 21:55:52 +0200 Message-ID: <87shgfxvzr.fsf@nicolasgoaziou.fr> References: <87bmn4ytce.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlKi0-0005Rq-Nt for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 15:56:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlKhv-0000h7-IH for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 15:56:00 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:45152) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlKhv-0000ga-Bz for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 15:55:55 -0400 In-Reply-To: (Stig Brautaset's message of "Fri, 25 Aug 2017 18:10:31 +0100") 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" To: Stig Brautaset Cc: emacs-org list Stig Brautaset writes: > However, I would like to add an advice around =3Dorg-columns-compute-all= =3D > to run the =3Dsb/org-map-confirmed-days=3D function, and this I have not > been successful at. I've tried doing this: > > : (add-function :before org-columns-compute-all #'sb/org-map-confirmed-da= ys) > > However, I keep getting the following error: > > : Use of gv-ref probably requires lexical-binding > : advice--add-function: Symbol=E2=80=99s value as variable is void: org-c= olumns-compute-all > > I would appreciate if anyone has any insight into solving this. Not really your question but since you can define your own summary function (see `org-columns-summary-types'), just make sure the summary function first refreshes the new property in headlines below the node you're currently summarizing. Regards,