From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-agenda-files for calfw Date: Fri, 28 Aug 2015 09:25:31 -0400 Message-ID: <87twrj4kac.fsf@pierrot.dokosmarshall.org> References: <871tep7x63.fsf@free.fr> <87zj1clqrj.fsf@ucl.ac.uk> <874mjkpcmw.fsf@free.fr> <87pp28w3x9.fsf@alphaville.usersys.redhat.com> <874mjj3gkh.fsf@free.fr> <87zj1b21vo.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVJfL-0004QF-Al for emacs-orgmode@gnu.org; Fri, 28 Aug 2015 09:26:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVJfI-0003ff-0b for emacs-orgmode@gnu.org; Fri, 28 Aug 2015 09:25:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:52494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVJfH-0003fS-QQ for emacs-orgmode@gnu.org; Fri, 28 Aug 2015 09:25:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZVJfB-0007a5-JN for emacs-orgmode@gnu.org; Fri, 28 Aug 2015 15:25:49 +0200 Received: from pool-108-20-41-232.bstnma.fios.verizon.net ([108.20.41.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Aug 2015 15:25:49 +0200 Received: from ndokos by pool-108-20-41-232.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Aug 2015 15:25:49 +0200 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-orgmode@gnu.org Julien Cubizolles writes: > Julien Cubizolles writes: > >> Nick Dokos writes: >> >> >>> Bind org-agenda-files in a let before calling cfw:open-org-calendar: >>> >>> (let ((org-agenda-files '(...))) >>> (cfw:open-org-calendar)) >> >> That's exactly what I needed, thanks. > > I just noticed something very weird, as soon as the agenda is recreated > (next month in a month view), the binding of org-agenda-files is lost, > and reverts to the global value... > > I admit I didn't read your original question very carefully, so I might have overlooked something, but the behavior above is not weird: the let binds org-agenda-files and then calls cfw:ooc - when that returns the let binding is gone as well. -- Nick