From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: [BUG?] Strange message in minibuffer while exporting into HTML Date: Fri, 11 Oct 2013 17:47:18 +0900 Message-ID: <20131011084718.GE943@smoon> References: <20131011041111.GB943@smoon> <86siw89sar.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUYNe-0004C6-J2 for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 04:47:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUYNX-0001Zx-RC for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 04:47:30 -0400 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:34589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUYNX-0001Zm-Iz for emacs-orgmode@gnu.org; Fri, 11 Oct 2013 04:47:23 -0400 Received: by mail-la0-f46.google.com with SMTP id eh20so3042800lab.5 for ; Fri, 11 Oct 2013 01:47:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: <86siw89sar.fsf@somewhere.org> 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org Hello, ** Sebastien Vauban [2013-10-11 09:32:12 +0200]: > Hello Vladimir, [...] > I confirm the problem on my Windows environment: > - GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-09-30 on LEG570 > - Org-mode version 8.1.1 (release_8.1.1-13-ga1f9a1) > ... and I don't see any problem with your syntax. I'm as puzzled as you are. > Would you wanna help, I think trying to bisect Org mode would be a great step > into fixing what I think to be a problem in Org. Hm, this is my the best approach to "debug": 1. in all cases I run emacs like #+BEGIN_EXAMPLE emacs -Q --eval "(add-to-list 'load-path \"~/tmp/org-mode\")" --eval "(require 'org)" --eval "(require 'ox-html)" ex-call2.org #+END_EXAMPLE 2. this is the file 'ex-call2.org': #+BEGIN_SRC org ,* This is title of first section Call me: ,#+CALL: simp-func() ,* Function definition ,#+NAME: simp-func() ,#+BEGIN_SRC emacs-lisp :var name="My name is..." (format "[You passed data] %S" name) ,#+END_SRC #+END_SRC 3. before run 'C-c C-e h h' (export into HTML) I run ~M-x org-version~ to ensure what version I run; 4. I started from releases: 8.2.1, 8.2... 8.0 and found that in all release begins with 8.1 I see mentioned message, but in releases 8.0.6 and 8.0.7 there is another message: #+BEGIN_QUOTE Reference 'simp-func' not found in this buffer #+END_QUOTE so I decided to find out which commit changed this message. 5. I did: =git bisect release_8.1 release_8.0.7= and after some steps I got: #+BEGIN_EXAMPLE 685b2967247597f75d22cb77896bc8a70503b2c3 is the first bad commit commit 685b2967247597f75d22cb77896bc8a70503b2c3 Author: Eric Schulte Date: Tue Jun 25 07:55:32 2013 -0600 evaluate elisp header args at original call site * lisp/ob-core.el (org-babel-execute-src-block): Ensure that the location is set before anything else is done. * lisp/ob-ref.el (org-babel-ref-parse): Evaluate Emacs Lisp values in header arguments at the location of the original code block. * testing/lisp/test-ob.el (test-ob/location-of-header-arg-eval): Test defending the new header argument evaluation behavior. :040000 040000 9e11b15cf73c6a0a9856f2a3393f27419e251f14 b106e079f13673e440c391bcb6a1e6dddb4994ed M lisp :040000 040000 3935206e2970ec1f338a8b5524906a6d32e58d0e 19f36ce174bbfcd58f6e2bad5313d2de7cdc43c7 M testing #+END_EXAMPLE I have to stop here because I don't know Emacs Lisp and org-mode internals to debug further. --- WBR, Vladimir Lomov -- solaris is bsd, so it should work * Espy takes wichert's crack pipe away