From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian van den Broek Subject: Re: sticky agenda and clock persistence interaction Date: Fri, 21 Sep 2012 10:32:36 -0400 Message-ID: References: <87bogzebua.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF4IE-0007Os-Qm for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 10:33:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TF4I9-0000f3-UU for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 10:33:22 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:60990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF4I9-0000ey-Pn for emacs-orgmode@gnu.org; Fri, 21 Sep 2012 10:33:17 -0400 Received: by ied10 with SMTP id 10so6434667ied.0 for ; Fri, 21 Sep 2012 07:33:16 -0700 (PDT) In-Reply-To: <87bogzebua.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode On 21 September 2012 09:37, Bastien wrote: > 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) > > ? Hi Bastien, (After the bad website report, I'm pleased to see I've not done anything so silly this time :-) I have a file, ogrconf.el that gets loaded by my .emacs. It starts with (require 'org-install). So, the error I reported emerged from what you suggest, save that I have a few hundred lines of config between the require and the sticky and persistence lines. I just tested, and if I start out my orgconf.el with (require 'org-install) (setq org-agenda-sticky t) (org-clock-persistence-insinuate) (thus, putting the relevant lines before any of my other org configuration) I get the same warning I reported in the original post. I've not done the backtrace assuming that the same warning with pretty much the same cause would have the same backtrace; I'm happy to provide if it is wanted. >> 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.) It's intentional. At some point, my .emacs became unwieldy. I separated my config into a bunch of files which .emacs loads and put them into a user-created dir ~/.emacsd, leaving ~/.emacs.d for emacs to have its way with. I prefer to enforce separation between files I administer and those under emacs's control. Best, Brian