[O] Problem with org-indent-block

2014-09-11 Thread Fabrice Popineau
Hi,

Recently, I started to get problems with org-indent-block returning errors
"Not at a block".
Unfortunately, this is happening while restarting emacs, and I have no idea
about how to debug it.
It would be nice if somehow this function could give the file and the point
in the file where the error is happening.
Any idea on how to achieve this?

To make it clearer, it seems that this user-error stops the loading of my
prelude based configuration. Nothing is loaded after reporting it, and
especially not my own Org configuration file.

Thanks for any hint,

Fabrice


Re: [O] Improved way to include some headlines from an external org file

2014-09-11 Thread Andrea Rossetti
Xavier Garrido  writes:
> Of course, I can achieve that by using =:lines= and calculating how many 
> lines embeds the given headline. 

  Hi Xavier, another possible approach (maybe less handy, but in
some cases it might fit): the user could keep one .org file
per headline, and #+INCLUDE one headline (= one entire file)
when needed.

  Kindest regards,

Andrea



Re: [O] org-crypt doesn't automatically encrypt on save

2014-09-11 Thread Darlan Cavalcante Moreira

You need to load org-crypt and call org-crypt-use-before-save-magic
before you open the org file.

For instance, my configuration for org-crypt is
--8<---cut here---start->8---
(autoload 'org-decrypt-entry "org-crypt.el" "Decrypt the content of the current 
headline." t)
(autoload 'org-decrypt-entries "org-crypt.el" "Decrypt all entries in the 
current buffer." t)
(autoload 'org-encrypt-entry "org-crypt.el" "Encrypt the content of the current 
headline." t)
(autoload 'org-encrypt-entries "org-crypt.el" "Encrypt all top-level entries in 
the current buffer." t)

(with-eval-after-load "org-crypt"
  ;; Automatically encrypts everything that has the tag "crypt"
  ;; when you save the file
  (org-crypt-use-before-save-magic)
  (setq org-tags-exclude-from-inheritance (quote ("crypt" "Project")))
  (setq org-crypt-key "8NUMBERS")
  (setq org-crypt-disable-auto-save t)
  )
--8<---cut here---end--->8---

Only this gives the same problem you have. When I decrypt an entry
org-crypt is finally loaded but since I'm already visiting the file then
the save magic will not kick in. In my case I only have one file where I
use org-crypt and I define the function below

--8<---cut here---start->8---
(defun my-find-senhas-org-heading nil
  (interactive)
  (require 'org-crypt)
  (find-file "~/org/passwords.org")
  )
--8<---cut here---end--->8---

If I often used org-crypt in any org file I would always require
org-crypt and call org-crypt-use-before-save-magic in my Emacs
configuration, but since I only use for this particular file, then
defining a function to visit this file works better for me.


hob...@poukram.net writes:

> Hello org-mode World,
>
> is anyone successfully using org-crypt with
> org-crypt-use-before-save-magic ?
>
> I set it up as per the docs, but apparently the org-mode
> before-save-hook is not populated with org-encrypt-entries as it should
> when I open an org buffer, meaning that crypt tagged headlines are not
> encrypted when I save the file
>
> *but* it works if I manually call M-x org-mode after opening the file...
>
> In summary:
>
> C-x C-f test.org / M-x org-decrypt-entry / C-x C-s does not reencrypt
> the entry
>
> C-x C-f test.org / M-x org-mode / M-x org-decrypt-entry / C-x C-s does
> work as expected.
>
> Any idea ?
>
> I'm using the Emacs Starter Kit, so that might interfere, but I can't
> see how and where...
>
> Thanks,
> --
> Rémi


-- 
Darlan Cavalcante Moreira
darc...@gmail.com



Re: [O] Error with removing zero time clocks in capture.

2014-09-11 Thread Malcolm Purvis
> "Nicolas" == Nicolas Goaziou  writes:

Nicolas> This should be fixed. Thank you for reporting it.

I can confirm that the error has gone.

Thanks,

Malcolm

-- 
   Malcolm Purvis 



[O] meaningfull names for org-src buffers

2014-09-11 Thread Adriaan Sticker
Hi all

I was wondering if it's somehow possible to give named org src buffer the
name they were give in their #+NAME tag? Now there are just called
something like:
*Org Src test.org[ R ]*

But if you have multiple org-src buffers opened at the same time, its hard
to find the correct one back.

Greets


Re: [O] autosave in org-src buffer only works ones

2014-09-11 Thread Adriaan Sticker
Cool, thanks!

2014-09-11 18:28 GMT+02:00 Nicolas Goaziou :

> Hello,
>
> Adriaan Sticker  writes:
>
> > I've the following in my init.el
> >
> > (setq org-edit-src-auto-save-idle-delay 5)
> >
> > If I open in my org file a R code block with C-c ', edit into the opened
> > org-src buffer with the ESS major mode activated and wait for 5s, I can
> see
> > autosave kicking in and my org buffer gets updated with my new code. But
> > when I keep editing it doesn't save anymore. So it only save ones after
> the
> > first 5s when the org-src got openend and then it stops.
>
> This should now be fixed. Thank you for reporting it.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] Error with removing zero time clocks in capture.

2014-09-11 Thread Nicolas Goaziou
Hello,

Malcolm Purvis  writes:

> With the current git version of org (release_8.3beta-323-gec8f24) I'm
> getting an error in the element cache when I try to capture a task
> because the clocked time for the captured task is 0.

This should be fixed. Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou



[O] org-crypt doesn't automatically encrypt on save

2014-09-11 Thread Rémi Letot
Hello org-mode World,

is anyone successfully using org-crypt with
org-crypt-use-before-save-magic ?

I set it up as per the docs, but apparently the org-mode
before-save-hook is not populated with org-encrypt-entries as it should
when I open an org buffer, meaning that crypt tagged headlines are not
encrypted when I save the file

*but* it works if I manually call M-x org-mode after opening the file...

In summary:

C-x C-f test.org / M-x org-decrypt-entry / C-x C-s does not reencrypt
the entry

C-x C-f test.org / M-x org-mode / M-x org-decrypt-entry / C-x C-s does
work as expected.

Any idea ?

I'm using the Emacs Starter Kit, so that might interfere, but I can't
see how and where...

Thanks,
--
Rémi




Re: [O] Table Formula: Update column, then update value

2014-09-11 Thread Eric S Fraga
On Thursday, 11 Sep 2014 at 10:50, Tory S. Anderson wrote:
> When I apply the formula 
>
>   #+TBLFM: $4=$3*$2::$hrs=vsum(@I..II)::$ttl=vsum(@I..II)
> It doesn't give me any errors, but it also doesn't do anything to
> $4. So if I change one of my hour amounts, the "hrs" field will update
> appropriately, but not the "cost" field, which remains unchanged. It
> appears that the initial formula is not doing anything.
>
> Org-mode version 8.2.7c (8.2.7c-61-g4b9146-elpa

You are correct.  I get the same behaviour.  Definitely a bug.

If you remove the last line (with labels) and replace the last row
formulae with direct references, it works.

 #+TBLFM: $4=$3*$2::@7$2=vsum(@I..@II)::@7$4=vsum(@I..@II)
 
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-320-gb5c9de


signature.asc
Description: PGP signature


Re: [O] specifying the coding language resulting from a a :results code source block

2014-09-11 Thread Ista Zahn
Can't you just do

#+begin_src foo :wrap src bar
   hello world
#+end_src

?

Best,
Ista


On Thu, Sep 11, 2014 at 5:11 AM, Dror Atariah  wrote:
> Is there some change in the status of this issue? Can one now specify the
> language of the result?
>
> Cheers,
> Dror
>
> --
> Mahalo Tom,
>
> It looks like that's what I'll be doing for the ruby block.  That said, it
> would be great if the :results code argument would allow a language
> specification.
>
> Greg
>
>
> On Jun 27, 2012, at 10:22 AM, Thomas S. Dye wrote:
>
>> Greg Tucker-Kellogg  writes:
>>
>>> I have a Ruby block that creates some dot code.  I'd like to be able
>>> to have the #+RESULTS block enclosed
>>> in a src block that starts "#+BEGIN_SRC dot".  Using :results value
>>> code generates the enclosing SRC block,
>>> but using the same language (Ruby) used to generate the code.  Is
>>> there a way to specify the coding language
>>> of a generated #+RESULTS  src block?
>>>
>>> Thanks,
>>>
>>> Greg
>>>
>> Aloha Greg,
>>
>> This works for me with an emacs-lisp code block named harris-matrix that
>> generates dot code.
>>
>> #+header: :var input=harris-matrix
>> #+header: :file temp.pdf
>> #+header: :cmdline -Tpdf
>> #+header: :results output
>> #+BEGIN_SRC dot
>> $input
>> #+END_SRC
>>
>> It's not quite what you were after, but it might help?
>>
>> All the best,
>> Tom
>>
>> --
>> Thomas S. Dye
>> http://www.tsdye.com



[O] bug#18401: 24.4.50; emerge-files fails for org files

2014-09-11 Thread Glenn Morris
Detlev Zundel wrote:

> problem and lingers for a while now.  Who can merge the org repository?
> Is there something that an outsider like me can do to help?

Thanks for asking! :)

Anyone with a copy of the Org repo and the Emacs repo can generate the
diff that needs to be applied from the former to the latter.

Anyone with write access to the Org repo can get write access to the
Emacs repo and apply that diff. (This is a generalization, but I think
it is true. E.g. I assume all people with Org write access have FSF
assignments.)

However, I think this is wasted effort, so I have suggested not doing it
any more; http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00298.html .





Re: [O] autosave in org-src buffer only works ones

2014-09-11 Thread Nicolas Goaziou
Hello,

Adriaan Sticker  writes:

> I've the following in my init.el
>
> (setq org-edit-src-auto-save-idle-delay 5)
>
> If I open in my org file a R code block with C-c ', edit into the opened
> org-src buffer with the ESS major mode activated and wait for 5s, I can see
> autosave kicking in and my org buffer gets updated with my new code. But
> when I keep editing it doesn't save anymore. So it only save ones after the
> first 5s when the org-src got openend and then it stops.

This should now be fixed. Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou



Re: [O] Lisp error: wrong-number-of-arguments when publishing current project file

2014-09-11 Thread Nicolas Goaziou


Hello,

Sebastien Vauban 
writes:

> When publishing a site project, or some file from it, I get the
> following error:

[...]

> ("c:/Program Files (x86)/emacs-24.3/lisp/org/org-publish.elc" . 30759) "P"] 2)

You seem to be using a "org-publish.el" library that doesn't match the
Org version you're using.


Regards,

-- 
Nicolas Goaziou




[O] autosave in org-src buffer only works ones

2014-09-11 Thread Adriaan Sticker
Hi all

I've the following in my init.el

(setq org-edit-src-auto-save-idle-delay 5)

If I open in my org file a R code block with C-c ', edit into the opened
org-src buffer with the ESS major mode activated and wait for 5s, I can see
autosave kicking in and my org buffer gets updated with my new code. But
when I keep editing it doesn't save anymore. So it only save ones after the
first 5s when the org-src got openend and then it stops.

Can this somehow be fixed or is this behaviour expected? I have quite big
source block so this can be an issue.

Thanks in advance


[O] How can I add a note to a TODO state change sometimes but not always?

2014-09-11 Thread William Denton

I have this in a projects file:

#+TODO: TODO(t!) WAITING(w!) DONE(d!) CANCELED(c@)

When I move something from TODO to WAITING, it adds a timestamp without asking 
for a note.  That's fine 8 or 9 times out of 10 ... but sometimes I want to add 
a note too.


If I use the @ it will always ask me for a note, and I have to C-c C-c to get 
out of that.  I'd like to avoid that if I can.


Is there a way (a prefix or alternate command) that I can use to have Org let me 
add an optional note when I change a TODO state?


I see that C-c C-z (org-add-note) adds a note, but it does it to the item as a 
whole, not to the WAITING workflow change, like so:


* WAITING Find out how to sometimes add a note when I change to WAITING
  - Note taken on [2014-09-11 Thu 11:36] \\
Asked on mailing list
  - State "WAITING"from "WAITING"[2014-09-11 Thu 11:30]
  - State "WAITING"from "TODO"   [2014-09-11 Thu 11:25]

Thanks,

Bill
--
William Denton ↔  Toronto, Canada ↔  http://www.miskatonic.org/

[O] [BUG] BBDB anniversary links don't open in agenda

2014-09-11 Thread Matt Lundin
BBDB anniversary links don't open in the agenda.

At the moment, the function org-agenda-open-link seems to be set up only
to open links if they are actually in the original buffer. But bbdb
anniversary links are generated from the following sexp:

%%(org-bbdb-anniversaries)

When org-agenda-open-link jumps to the buffer to look for a link like
[[bbdb:John Doe]], it will not find it. This seems symptomatic of a
bigger problem in org-agenda-open-link, which is that (AFAICT) it will
*never* get to the second item in the conditional.

Here are the details:

1. This bit of code searches both the original buffer and the agenda
line for links (notice the prefix):

,[ org-agenda.el, lines 8516-8519
|(buffer (and marker (marker-buffer marker)))
|(prefix (buffer-substring (point-at-bol) (point-at-eol)))
|(lkall (and buffer (org-offer-links-in-entry
|buffer marker arg prefix)))
`

2. This will trigger the first conditional, since there will always be
both a buffer and a link. But this means that the function never arrives
at the second conditional, which opens links found in the agenda buffer
itself.

3. Instead, a bbdb link will be lost in the first conditional, which
assumes that that the link can actually be found in the buffer.

,[ 8530-8537
| (if (or (not trg) (string-match org-any-link-re trg))
| (save-excursion
|   (save-restriction
| (widen)
| (goto-char marker)
| (when (search-forward l nil lkend)
|   (goto-char (match-beginning 0))
|   (org-open-at-point
`

The bug was introduced with commit
bd779fad624af01dbcb35b381dee10452dc945b1 on Jan 13, 2013:

It would be easy enough to insert a check for bbdb links in the first
conditional clause. However, it seems to me that the logic of
org-agenda-open-link has become rather convoluted.

Is there a scenario in which one would ever reach the second conditional
clause, which opens links found only in the agenda buffer?

Any advice on the best way to proceed would be greatly appreciated.

Best,
Matt



Re: [O] Table Formula: Update column, then update value

2014-09-11 Thread Tory S. Anderson
When I apply the formula 
  #+TBLFM: $4=$3*$2::$hrs=vsum(@I..II)::$ttl=vsum(@I..II)
It doesn't give me any errors, but it also doesn't do anything to $4. So if I 
change one of my hour amounts, the "hrs" field will update appropriately, but 
not the "cost" field, which remains unchanged. It appears that the initial 
formula is not doing anything. 

Org-mode version 8.2.7c (8.2.7c-61-g4b9146-elpa


Eric S Fraga  writes:

> On Thursday, 11 Sep 2014 at 10:00, Tory S. Anderson wrote:
>> I have a table that calculates daily cost and then sums the hours and
>> the weekly cost. But I can't seem to get a formula that will do the
>> former.
>>
>>   | Date | Hours | Rate | Cost |
>>   |--+---+--+--|
>>   | September 8  |  0.50 |1 |   1. |
>>   | September 9  |  2.00 |1 |   2. |
>>   | September 10 |  2.00 |1 |   2. |
>>   | September 11 |  2.00 |1 |   2. |
>>   | September 12 |  2.00 |1 |   2. |
>>   |--+---+--+--|
>>   |  |   8.5 |  | 399. |
>>   | ^|   hrs |  |  ttl |
>>
>>   #+TBLFM: $hrs=vsum(@I..II)::$ttl=vsum(@I..II)
>>
>> Before the formula above works, I end up pasting the following line
>> just below the last date (above the @II line):
>>
>>   #+TBLFM: $4=vsum($2*$3)
>
>>
>> So, I have to copy-paste into the middle of my table, run the line,
>> then cut the line back out of the table and run the lower line. I'm
>> just sure there's a better way; it even seems like once upon a time I
>> had something working. But is there a non-repetitive way to autofill
>> the COST ($4) column between @I..II without wiping out everything
>> else?
>
> I am not sure what is the problem here.  The above table works fine for
> me with this TBLFM line:
>
> #+TBLFM: $4=$3*$2::$hrs=vsum(@I..II)::$ttl=vsum(@I..II)
>
> What is it you expect?  Note, your September 8 entry for the cost is
> wrong... but will get updated if you use this TBLFM line.



Re: [O] Table Formula: Update column, then update value

2014-09-11 Thread Eric S Fraga
On Thursday, 11 Sep 2014 at 10:00, Tory S. Anderson wrote:
> I have a table that calculates daily cost and then sums the hours and
> the weekly cost. But I can't seem to get a formula that will do the
> former.
>
>   | Date | Hours | Rate | Cost |
>   |--+---+--+--|
>   | September 8  |  0.50 |1 |   1. |
>   | September 9  |  2.00 |1 |   2. |
>   | September 10 |  2.00 |1 |   2. |
>   | September 11 |  2.00 |1 |   2. |
>   | September 12 |  2.00 |1 |   2. |
>   |--+---+--+--|
>   |  |   8.5 |  | 399. |
>   | ^|   hrs |  |  ttl |
>
>   #+TBLFM: $hrs=vsum(@I..II)::$ttl=vsum(@I..II)
>
> Before the formula above works, I end up pasting the following line
> just below the last date (above the @II line):
>
>   #+TBLFM: $4=vsum($2*$3)

>
> So, I have to copy-paste into the middle of my table, run the line,
> then cut the line back out of the table and run the lower line. I'm
> just sure there's a better way; it even seems like once upon a time I
> had something working. But is there a non-repetitive way to autofill
> the COST ($4) column between @I..II without wiping out everything
> else?

I am not sure what is the problem here.  The above table works fine for
me with this TBLFM line:

#+TBLFM: $4=$3*$2::$hrs=vsum(@I..II)::$ttl=vsum(@I..II)

What is it you expect?  Note, your September 8 entry for the cost is
wrong... but will get updated if you use this TBLFM line.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-320-gb5c9de


signature.asc
Description: PGP signature


[O] Improved way to include some headlines from an external org file

2014-09-11 Thread Xavier Garrido

Dear Orgers,

By following discussions on this list, I think I have understood that 
the inclusion mechanism through =#+INCLUDE= directive is a bit rough and 
only allows a limited range of use. I know how to include only lines 
using =:lines= parameter but what I would like to achieve is to only 
include some headlines from an external org file. Is there a way using 
babel for example (like this function 
https://github.com/thesoftwarebin/the-emacs-software-bin/blob/master/include-many-files/include-many-files.org) 
to write something like that


#+BEGIN_SRC org
#+INCLUDE: "./base.org" :headline "First base chapter"
,* A more personal chapter
#+INCLUDE: "./base.org" :headline "Second base chapter"
,* Another personal chapter
#+END_SRC

Of course, I can achieve that by using =:lines= and calculating how many 
lines embeds the given headline. But every time the "First base chapter" 
length changes I will have to change all the subsequent =#INCLUDE:= 
commands. I do not know how hard it is to implement this but I think it 
will be a nice addition (at least one I will use a lot).


Thanks for your answer,
Xavier



[O] Table Formula: Update column, then update value

2014-09-11 Thread Tory S. Anderson
I have a table that calculates daily cost and then sums the hours and the 
weekly cost. But I can't seem to get a formula that will do the former.

  | Date | Hours | Rate | Cost |
  |--+---+--+--|
  | September 8  |  0.50 |1 |   1. |
  | September 9  |  2.00 |1 |   2. |
  | September 10 |  2.00 |1 |   2. |
  | September 11 |  2.00 |1 |   2. |
  | September 12 |  2.00 |1 |   2. |
  |--+---+--+--|
  |  |   8.5 |  | 399. |
  | ^|   hrs |  |  ttl |
  #+TBLFM: $hrs=vsum(@I..II)::$ttl=vsum(@I..II)

Before the formula above works, I end up pasting the following line just below 
the last date (above the @II line): 

  #+TBLFM: $4=vsum($2*$3)

So, I have to copy-paste into the middle of my table, run the line, then cut 
the line back out of the table and run the lower line. I'm just sure there's a 
better way; it even seems like once upon a time I had something working. But is 
there a non-repetitive way to autofill the COST ($4) column between @I..II 
without wiping out everything else? 



Re: [O] Syntaxhighlighing in headers

2014-09-11 Thread Thorsten Jolitz
Manfred Lotz  writes:

> Hi there,
> If have something like this
>
> * Information (Local)
>
> because of the parenthesis the line will not be highlighted.

I see the same issue for quite some time now.

> Is there a customization knob to get ( and ) added to the list of valid
> characters?

I don't know, unfortunately.

PS

#+BEGIN_SRC emacs-lisp
 (call-interactively 'org-version)
#+END_SRC

#+results:
: Org-mode version 8.3beta (release_8.3beta-277-g698705 @ 
/usr/share/emacs/24.3/lisp/org/lisp/)

-- 
cheers,
Thorsten




[O] bug#18401: 24.4.50; emerge-files fails for org files

2014-09-11 Thread Detlev Zundel
Hi Glenn,

> Detlev Zundel wrote:
>
>> org-overview: `recenter'ing a window that does not display current-buffer.
>
> This was apparently fixed in the Org repository months ago,
> but still not in the Emacs one. Ref:
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17724#26
>
> (We now have 4 separate Emacs reports for this.)

Oops, thanks for the context.  So this is actually a pretty fundamental
problem and lingers for a while now.  Who can merge the org repository?
Is there something that an outsider like me can do to help?

Thanks
  Detlev
  
-- 
Programming X-Windows is like trying to find the square root of pi
using roman numerals.
  -- The UNIX Haters Handbook





[O] Syntaxhighlighing in headers

2014-09-11 Thread Manfred Lotz
Hi there,
If have something like this

* Information (Local)

because of the parenthesis the line will not be highlighted.


Is there a customization knob to get ( and ) added to the list of valid
characters?



-- 
Thanks, Manfred






Re: [O] specifying the coding language resulting from a a :results code source block

2014-09-11 Thread Dror Atariah
Is there some change in the status of this issue? Can one now specify the
language of the result?

Cheers,
Dror

--
Mahalo Tom,

It looks like that's what I'll be doing for the ruby block.  That said, it
would be great if the :results code argument would allow a language
specification.

Greg


On Jun 27, 2012, at 10:22 AM, Thomas S. Dye wrote:

> Greg Tucker-Kellogg  writes:
>
>> I have a Ruby block that creates some dot code.  I'd like to be able
>> to have the #+RESULTS block enclosed
>> in a src block that starts "#+BEGIN_SRC dot".  Using :results value
>> code generates the enclosing SRC block,
>> but using the same language (Ruby) used to generate the code.  Is
>> there a way to specify the coding language
>> of a generated #+RESULTS  src block?
>>
>> Thanks,
>>
>> Greg
>>
> Aloha Greg,
>
> This works for me with an emacs-lisp code block named harris-matrix that
> generates dot code.
>
> #+header: :var input=harris-matrix
> #+header: :file temp.pdf
> #+header: :cmdline -Tpdf
> #+header: :results output
> #+BEGIN_SRC dot
> $input
> #+END_SRC
>
> It's not quite what you were after, but it might help?
>
> All the best,
> Tom
>
> --
> Thomas S. Dye
> http://www.tsdye.com


[O] Error with removing zero time clocks in capture.

2014-09-11 Thread Malcolm Purvis
With the current git version of org (release_8.3beta-323-gec8f24) I'm
getting an error in the element cache when I try to capture a task
because the clocked time for the captured task is 0.

The following minimum configuration demonstrates the problem:

--8<---cut here---start->8---
(require 'org)

(global-set-key (kbd "C-c c") 'org-capture)

(setq org-default-notes-file "/tmp/inbox.org")

(setq org-capture-templates
  (quote (("t" "todo" entry (file)
   "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t

(setq org-clock-out-remove-zero-time-clocks t)
(setq org-log-into-drawer t)
--8<---cut here---end--->8---

Typing the sequence "C-c c t C-c C-c" will result in the following
backtrace:

--8<---cut here---start->8---
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  <=(nil 666)
  (and (memq (org-element-type up) (quote (center-block drawer dynamic-block 
quote-block special-block))) (<= (org-element-property :contents-begin up) beg) 
(> (org-element-property :contents-end up) end))
  (if (and (memq (org-element-type up) (quote (center-block drawer 
dynamic-block quote-block special-block))) (<= (org-element-property 
:contents-begin up) beg) (> (org-element-property :contents-end up) end)) 
(org-element--cache-shift-positions up offset (quote (:contents-end :end))) 
(setq before up) (if robust-flag (progn (setq robust-flag nil
  (while up (if (and (memq (org-element-type up) (quote (center-block drawer 
dynamic-block quote-block special-block))) (<= (org-element-property 
:contents-begin up) beg) (> (org-element-property :contents-end up) end)) 
(org-element--cache-shift-positions up offset (quote (:contents-end :end))) 
(setq before up) (if robust-flag (progn (setq robust-flag nil (setq up 
(org-element-property :parent up)))
  (let ((up before) (robust-flag t)) (while up (if (and (memq (org-element-type 
up) (quote (center-block drawer dynamic-block quote-block special-block))) (<= 
(org-element-property :contents-begin up) beg) (> (org-element-property 
:contents-end up) end)) (org-element--cache-shift-positions up offset (quote 
(:contents-end :end))) (setq before up) (if robust-flag (progn (setq 
robust-flag nil (setq up (org-element-property :parent up))) (if (or (< 
(org-element-property :end before) beg) robust-flag) after before))
  (if (not before) after (let ((up before) (robust-flag t)) (while up (if (and 
(memq (org-element-type up) (quote (center-block drawer dynamic-block 
quote-block special-block))) (<= (org-element-property :contents-begin up) beg) 
(> (org-element-property :contents-end up) end)) 
(org-element--cache-shift-positions up offset (quote (:contents-end :end))) 
(setq before up) (if robust-flag (progn (setq robust-flag nil (setq up 
(org-element-property :parent up))) (if (or (< (org-element-property :end 
before) beg) robust-flag) after before)))
  (let* ((elements (org-element--cache-find (1- beg) (quote both))) (before 
(car elements)) (after (cdr elements))) (if (not before) after (let ((up 
before) (robust-flag t)) (while up (if (and (memq (org-element-type up) (quote 
...)) (<= (org-element-property :contents-begin up) beg) (> 
(org-element-property :contents-end up) end)) 
(org-element--cache-shift-positions up offset (quote (:contents-end :end))) 
(setq before up) (if robust-flag (progn (setq robust-flag nil (setq up 
(org-element-property :parent up))) (if (or (< (org-element-property :end 
before) beg) robust-flag) after before
  org-element--cache-for-removal(666 667 -1)
  (let ((first (org-element--cache-for-removal beg end offset))) (if first 
(setq org-element--cache-sync-requests (cons (let ((beg (org-element-property 
:begin first)) (key (org-element--cache-key first))) (cond ((> beg end) (vector 
key beg nil offset nil nil 1)) ((let ... ...)) (t (let* ... ... ... 
org-element--cache-sync-requests)) (if org-element--cache-sync-requests (progn 
(let* ((v (car org-element--cache-sync-requests))) (aset v 3 (+ (aref v 3) 
offset)))
  (if (and next (zerop (aref next 6)) (> (setq delete-to (+ (aref next 2) (aref 
next 3))) end) (<= (setq delete-from (aref next 1)) end)) (progn (let* ((v 
next)) (aset v 3 (+ (aref v 3) offset))) (if (> beg delete-from) (let ((up 
(aref next 5))) (while up (org-element--cache-shift-positions up offset (quote 
(:contents-end :end))) (setq up (org-element-property :parent up (let 
((first (org-element--cache-for-removal beg delete-to offset))) (if first 
(progn (aset next 0 (org-element--cache-key first)) (aset next 1 
(org-element-property :begin first)) (aset next 5 (org-element-property :parent 
first))) (if next (progn (org-element--cache-sync (current-buffer) end 
beg))) (let ((first (org-element--cache-for-removal beg end offset))) (if first 
(setq org-element--cache-sync-requests (cons (let ((beg ...) (key ...)) (cond 
(... ...) (...) (t ..

[O] Unable to use org-sbe

2014-09-11 Thread Dror Atariah
I'm trying to use org-sbe but keep failing... I'm trying to use the example
that can be found in the documentation of ob-table.el and the second column
is filled with #ERROR.

Here is the related output piped to *Messages*:

Re-applying formulas to full table...(line 10)
Re-applying formulas to 10 lines...done
Re-applying formulas...done [2 times]


I would be happy to provide further information, if only I'd know where to
look for it.

Org version:
Org-mode version 8.2.7c (8.2.7c-61-g4b9146-elpaplus @
/my/path/.emacs.d/elpa/org-plus-contrib-20140908/)

Thanks in advance,
Dror


Re: [O] Lisp error: wrong-number-of-arguments when publishing current project file

2014-09-11 Thread Sebastien Vauban
Achim Gratz wrote:
> Nick Dokos writes:
>> First thing I would do is delete the org-publish.elc file and try with
>> uncompiled org-publish.el. That should at least give you a better
>> backtrace.
>
> You could just do C-u C-c C-x ! (reload Org uncompiled) and then get
> that backtrace.

Didn't know about that. Thanks Achim!

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Lisp error: wrong-number-of-arguments when publishing current project file

2014-09-11 Thread Achim Gratz
Nick Dokos writes:
> First thing I would do is delete the org-publish.elc file and try with
> uncompiled org-publish.el. That should at least give you a better
> backtrace.

You could just do C-u C-c C-x ! (reload Org uncompiled) and then get
that backtrace.


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

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Lisp error: wrong-number-of-arguments when publishing current project file

2014-09-11 Thread Sebastien Vauban
Hello Nick,

Nick Dokos wrote:
> Sebastien Vauban  writes:
>> When publishing a site project, or some file from it, I get the
>> following error:
>>
>> Debugger entered--Lisp error: (wrong-number-of-arguments #[(&optional force)
>> "\303 ^X\304\216 ?\205^K^@
>> ^Z\305\306 !+\207" [wconfig force org-publish-use-timestamps-flag
>> current-window-configuration ((set-window-configuration wconfig))
>> org-publish-file buffer-file-name] 2 ("c:/Program Files
>> (x86)/emacs-24.3/lisp/org/org-publish.elc" . 30759) "P"] 2)
>>   org-publish-current-file(nil nil)
>>   ...
>>
>> Do you have an idea how to chase this problem?
>>
>
> First thing I would do is delete the org-publish.elc file and try with
> uncompiled org-publish.el. That should at least give you a better
> backtrace.

You're right. I'll do it.

Best regards,
  Seb

-- 
Sebastien Vauban