From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: (gnus-icalendar-org-setup) not evaluated in .emacs? Date: Fri, 15 Sep 2017 13:00:19 -0500 Message-ID: <87h8w3g7v0.fsf@fastmail.fm> References: <87a81x3e8n.fsf@hornfels.zedat.fu-berlin.de> <87wp517kut.fsf@t3610> <871sn91iqc.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsuuj-0004qz-A1 for emacs-orgmode@gnu.org; Fri, 15 Sep 2017 14:00:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsuug-0000Ic-6o for emacs-orgmode@gnu.org; Fri, 15 Sep 2017 14:00:29 -0400 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: Loris Bennett Cc: info-gnus-english@gnu.org, emacs-orgmode@gnu.org "Loris Bennett" writes: > > Rereading this, I decided to move the settings out from the Customize > block to before call to gnus-icalendar-org-setup: > > (require 'gnus-icalendar) > (setq gnus-icalendar-org-capture-file "~/git/org.git/gtd.org") > (setq gnus-icalendar-org-capture-headline (quote ("Exchange"))) > (gnus-icalendar-setup) > (gnus-icalendar-org-setup) > > Now I get all the buttons first time round and didn't have to resort to > a flaky hack, so thanks, Eric. > > But should this kind of ordering dependency happen? Or should my > Customize block just be at the beginning of my .emacs rather than at the > end? I looked at the gnus-icalendar-code and this ordering dependency is indeed hard-coded into gnus-icalendar-org-setup. From the code comments: --8<---------------cut here---------------start------------->8--- ;; to enable optional iCalendar->Org sync functionality ;; NOTE: both the capture file and the headline(s) inside must already exist ;; (setq gnus-icalendar-org-capture-file "~/org/notes.org") ;; (setq gnus-icalendar-org-capture-headline '("Calendar")) ;; (gnus-icalendar-org-setup) --8<---------------cut here---------------end--------------->8--- Matt