Re: [O] Most Recent Org Update

2013-11-05 Thread Vladimir Lomov
Hello,
** Dov Grobgeld [2013-11-05 09:24:24 +0200]:

 I had the same problem after pulling from git yesterday and worked around
 it by doing:

 ; This is a bug work around
 (defun org-element-cache-reset (optional all) (interactive))

 before requiring org.

I noticed that 'org-element-cache-reset' function is defined in
'org.el' (actually it is declare-function as many others) and used in
2 placed in that file.

At 1/5 of 'org.el' file there is (require 'org-footnote) and in that
file there only one call to org-element-cache-reset function *without*
defining it (no 'declare-function'). That call is in function
'org-footnote-section' and has form

  :initialize 'custom-initialize-set
  :set (lambda (var val) (set var val) (org-element-cache-reset 'all))

As I understand, the chain: (require 'org) [in .emacs] which it turns
(require 'org-footnote) which has 'initialize' and call to
'org-element-cache-reset' leads to this issue.

(As I said earlier I don't know Emacs Lisp well enough so use quoted
terms).

I tried to put 'declare-function' into 'org-footnote.el' but without
luck (other error message), so I came up to my workaround (I noticed
that there is a line in 'org.el' which do something with
'org-footnote-section' and set it to nil).

---
WBR, Vladimir Lomov


-- 
Fourth Law of Applied Terror:
The night before the English History mid-term, your Biology
instructor will assign 200 pages on planaria.

Corollary:
Every instructor assumes that you have nothing else to do except
study for that instructor's course.



Re: [O] Most Recent Org Update

2013-11-05 Thread Nicolas Goaziou
Hello,

Sam Flint swfl...@flintfam.org writes:

 I pulled org from git just now, restarted Emacs, and got this error:
 Symbol's function definition is void: org-element-chache reset
 Any ideas why?

Thank you for reporting it.

This should now be fixed. Could you confirm it?


Regards,

-- 
Nicolas Goaziou



[O] Most Recent Org Update

2013-11-04 Thread Sam Flint
I pulled org from git just now, restarted Emacs, and got this error:
Symbol's function definition is void: org-element-chache reset
Any ideas why?

Thanks
-- 
Sam Flint
swfl...@flintfam.org
freenode: swflint
(402) 517-8468
http://flintfam.org/~swflint
BAFBF3FF



Re: [O] Most Recent Org Update

2013-11-04 Thread Achim Gratz
Sam Flint writes:
 I pulled org from git just now, restarted Emacs, and got this error:
 Symbol's function definition is void: org-element-chache reset
 Any ideas why?

You probably meant to type org-element-cache-reset... my guess is you
didn't actually re-load Org after the Git pull.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




Re: [O] Most Recent Org Update

2013-11-04 Thread Samuel W. Flint
On Mon, November 4, 2013 1:59 pm, Achim Gratz wrote:
 Sam Flint writes:
 I pulled org from git just now, restarted Emacs, and got this error:
 Symbol's function definition is void: org-element-chache reset
 Any ideas why?

 You probably meant to type org-element-cache-reset... my guess is you
 didn't actually re-load Org after the Git pull.
No, org-element-cache-reset isn't even in my .emacs.  And yes, I did
reload org, I did say I restarted emacs, now, didn't I?


Sam
-- 
Sam Flint
swfl...@flintfam.org
freenode: swflint
(402) 517-8468
http://flintfam.org/~swflint
BAFBF3FF




Re: [O] Most Recent Org Update

2013-11-04 Thread Samuel W. Flint
On Mon, November 4, 2013 7:13 pm, Samuel W. Flint wrote:
 On Mon, November 4, 2013 1:59 pm, Achim Gratz wrote:
 Sam Flint writes:
 I pulled org from git just now, restarted Emacs, and got this error:
 Symbol's function definition is void: org-element-chache reset
 Any ideas why?

 You probably meant to type org-element-cache-reset... my guess is you
 didn't actually re-load Org after the Git pull.
 No, org-element-cache-reset isn't even in my .emacs.  And yes, I did
 reload org, I did say I restarted emacs, now, didn't I?
I neglected to mention the fact that switching to the maint branch fixed
the problem.

Sam

-- 
Sam Flint
swfl...@flintfam.org
freenode: swflint
(402) 517-8468
http://flintfam.org/~swflint
BAFBF3FF




Re: [O] Most Recent Org Update

2013-11-04 Thread Vladimir Lomov
Hello,
** Achim Gratz [2013-11-04 20:59:58 +0100]:

 Sam Flint writes:
  I pulled org from git just now, restarted Emacs, and got this error:
  Symbol's function definition is void: org-element-chache reset
  Any ideas why?

 You probably meant to type org-element-cache-reset... my guess is you
 didn't actually re-load Org after the Git pull.

No, that call was introduced in commit
0cecf32a0ae559266555b96668dc305710366c96
by Nicolas Goaziou.

I faced with the same problem; I started a fresh session of Emacs with
Org-mode from git but Emacs stuck showing me that message (Symbol's
function ...).

I don't know Emacs Lisp very well but according to the commit now
'org-footnote-section' must call 'org-element-cache-reset' at
initialization time (:set line in defcustom of 'org-footnote-section')
and exactly that causes a problem.

The workaround I found is to set 'org-section-footnote' to nil _before_
(require 'org) in .emacs.

 Regards,
 Achim.

---
WBR, Vladimir Lomov

-- 
The net is like a vast sea of lutefisk with tiny dinosaur brains embedded
in it here and there. Any given spoonful will likely have an IQ of 1, but
occasional spoonfuls may have an IQ more than six times that!
-- James 'Kibo' Parry



Re: [O] Most Recent Org Update

2013-11-04 Thread Dov Grobgeld
I had the same problem after pulling from git yesterday and worked around
it by doing:

; This is a bug work around
(defun org-element-cache-reset (optional all) (interactive))

before requiring org.

Regards,
Dov



On Tue, Nov 5, 2013 at 4:51 AM, Vladimir Lomov lomov...@gmail.com wrote:

 Hello,
 ** Achim Gratz [2013-11-04 20:59:58 +0100]:

  Sam Flint writes:
   I pulled org from git just now, restarted Emacs, and got this error:
   Symbol's function definition is void: org-element-chache reset
   Any ideas why?

  You probably meant to type org-element-cache-reset... my guess is you
  didn't actually re-load Org after the Git pull.

 No, that call was introduced in commit
 0cecf32a0ae559266555b96668dc305710366c96
 by Nicolas Goaziou.

 I faced with the same problem; I started a fresh session of Emacs with
 Org-mode from git but Emacs stuck showing me that message (Symbol's
 function ...).

 I don't know Emacs Lisp very well but according to the commit now
 'org-footnote-section' must call 'org-element-cache-reset' at
 initialization time (:set line in defcustom of 'org-footnote-section')
 and exactly that causes a problem.

 The workaround I found is to set 'org-section-footnote' to nil _before_
 (require 'org) in .emacs.

  Regards,
  Achim.

 ---
 WBR, Vladimir Lomov

 --
 The net is like a vast sea of lutefisk with tiny dinosaur brains embedded
 in it here and there. Any given spoonful will likely have an IQ of 1, but
 occasional spoonfuls may have an IQ more than six times that!
 -- James 'Kibo' Parry