From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: sticky agenda and clock persistence interaction Date: Fri, 21 Sep 2012 15:37:17 +0200 Message-ID: <87bogzebua.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF3Q8-00081f-Bc for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 09:37:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TF3Py-0004bZ-Tz for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 09:37:28 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:41058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF3Py-0004bV-MP for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 09:37:18 -0400 Received: by weyu3 with SMTP id u3so372255wey.0 for ; Fri, 21 Sep 2012 06:37:17 -0700 (PDT) In-Reply-To: (Brian van den Broek's message of "Thu, 20 Sep 2012 22:17:55 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Brian van den Broek Cc: emacs-orgmode Hi Brian, Brian van den Broek writes: > I just found that if I have > > (setq org-agenda-sticky t) > (org-clock-persistence-insinuate) > > in my .emacs---or rather in a file that my .emacs invokes with > load-library---I get > > Warning (initialization): An error occurred while loading `/home/brian/.emacs': > > Symbol's function definition is void: org-toggle-sticky-agenda If you are not requiring Org anyhow, org-agenda-sticky will not be known. What if you do (require 'org-install) (setq org-agenda-sticky t) (org-clock-persistence-insinuate) ? > in a *Warnings* buffer, whereas if I have > > (org-clock-persistence-insinuate) > (setq org-agenda-sticky t) > > in my .emacs, emacs launches without complaint. Because org-clock-persistence-insinuate is an autoloaded function. So calling it will load org-clock.el which will require other Org packages as well. > The backtrace from running with --debug-init is attached. (Btw, there is a suspicious ~/.emacsd/ here -- not ~/.emacs.d/. Looks weird but maybe that's intentional.) -- Bastien