From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [HELP} trying to figure out how to figure out? Date: Tue, 19 Jul 2011 02:05:28 +0200 Message-ID: <871uxnuoc7.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QixoE-0003kQ-Tr for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 20:05:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QixoA-0004lR-HQ for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 20:05:10 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:54226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QixoA-0004kK-8o for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 20:05:06 -0400 Received: by fxd18 with SMTP id 18so6070435fxd.39 for ; Mon, 18 Jul 2011 17:05:05 -0700 (PDT) In-Reply-To: (Matthew Sauer's message of "Mon, 18 Jul 2011 17:49:06 -0500") 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: Matthew Sauer Cc: Org Mode Mailing List Hi Matthew, (defconst ...) defines a constant, i.e. a symbol which value will not change. What happens here is that org.el defines org-outline-regexp as a constant, whereas some functions use org-outline-regexp as a symbol for a temporary value (used in let constructs). See for example the macro `org-with-limited-levels' in org-macs.el: #+begin_src emacs-lisp (defmacro org-with-limited-levels (&rest body) "Execute BODY with limited number of outline levels." `(let* ((org-outline-regexp (org-get-limited-outline-regexp))) ,@body)) #+end_src emacs-lisp The let* construct uses org-outline-regexp to store a temporary value... which 100% conflicts (!) with the idea of org-outline-regexp being a constant. Thanks for spotting at this! I've just pushed this fix: http://orgmode.org/w/?p=org-mode.git;a=commit;h=08fc6384bcb3937d933f21d0b12c818603d8a279 PS: some compilation warnings depend on the Emacs version you use, it's always a good idea to tell what version of Emacs you use. -- Bastien