[O] [babel] Is there a way to use edebug on emacs-lisp code blocks ?

2012-01-01 Thread Marc-Oliver Ihm

Hi 2012, hi all !

Is there a way to use edebug for debugging my emacs-lisp code blocks ?
(Or is there another preferred way to debug emacs-lisp code in babel ?)

For normal coding I use edebug a lot and it would be great to be able to use it 
in babel too.

The only workaround I can currently imagine would be to define global functions 
to do the work and
only call these functions from the code blocks ...

with kind and curious regards, Marc-Oliver Ihm




Re: [O] Problems exporting org-babel to HTML

2012-01-01 Thread Marco Craveiro
On Thu, 2011-12-29 at 14:10 -0700, Eric Schulte wrote:
> Please update to the latest version of Org-mode available from git at
> http://orgmode.org/org-mode-download.html and let us know if the problem
> persists.

Eric, git latest did solve the problem - thanks. For google posterity,
if you are running emacs 23 or 24 (at the time of this writing with org
mode v7.7) and if you bump into the following error while batch
exporting from gnuplot:

Symbol's function definition is void: copy-seq

You will need to obtain a later version of org-mode, which contains the
fix described here:

http://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg01203.html

Many thanks for your help

Marco




Re: [O] Location of OpenDocument style files should be configurable

2012-01-01 Thread Ulrich Mueller
> On Sat, 31 Dec 2011, Ulrich Mueller wrote:

> On Sat, 31 Dec 2011, Jambunathan K wrote:
>> Let know how things go.

> Looks like the current git head is working fine.

Sorry, I was a bit too fast with my reply. In fact, things are still
broken.

The problem is that when building org-odt.elc (with "make all"), the
value of datadir is ignored. Instead, its value at the time of
"make install" is embedded into the byte-compiled file.

This fails, because Gentoo builds are done in a sandboxed environment,
therefore org-odt.elc will contain some path like
/var/tmp/portage/app-emacs/org-mode-7.8.02-r1/image/usr/share/emacs/etc/org-mode/styles/
instead of the correct /usr/share/emacs/etc/org-mode/styles/.

So, could the build system please be changed, such that the datadir
value at _compile_ time is taken, not at _install_ time? (And of
course, it cannot be assumed that the final datadir exists at compile
time.)

Thanks,
Ulrich



Re: [O] LaTeX export

2012-01-01 Thread York Zhao
> Read Chapter 14 of the Org-mode manual. And go to
> http://orgmode.org/worg/ and search with the keyword "literate".

Thanks, I've read these already, they are helpful.

Happy New Year
York



Re: [O] [babel] Is there a way to use edebug on emacs-lisp code blocks ?

2012-01-01 Thread Nicolas Goaziou
Hello,

Marc-Oliver Ihm  writes:

> Is there a way to use edebug for debugging my emacs-lisp code blocks ?
> (Or is there another preferred way to debug emacs-lisp code in
> babel ?)

You can open the block in a temporary buffer, with C-c ', and use C-u
C-M-x from there.


Regards,

-- 
Nicolas Goaziou



Re: [O] Location of OpenDocument style files should be configurable

2012-01-01 Thread Ulrich Mueller
> So, could the build system please be changed, such that the datadir
> value at _compile_ time is taken, not at _install_ time?

I.e., something like the patch included below.

BTW, maybe one could think about supporting DESTDIR? That should be
trivial to implement, simply prepend $(DESTDIR) to all destination
paths in the install-* make targets. I can prepare a patch if this is
wanted.


Cheers,
Ulrich


>From f6eb5150418bfd5de35b8f4f9ca39f4cbff1d40b Mon Sep 17 00:00:00 2001
From: Ulrich Mueller 
Date: Sun, 1 Jan 2012 21:39:21 +0100
Subject: [PATCH] Don't re-compile org-odt.el at install time.

---
 Makefile |6 +-
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 520b0fd..642b21f 100644
--- a/Makefile
+++ b/Makefile
@@ -247,14 +247,10 @@ p:
 g:
${MAKE} pdf && open doc/orgguide.pdf
 
-# Always force re-compilation of org-odt
-lisp/org-odt.elc: org-odt-data-dir
-org-odt-data-dir:
-
 # Sleight of hand to "hard code" the value of $(datadir) in
 # org-odt.el.  See variables `org-odt-styles-dir-list' and
 # `org-odt-schema-dir-list'.
-install-lisp: BATCH_EXTRA = -eval "(setq org-odt-data-dir (expand-file-name 
\"$(datadir)\"))"
+lisp/org-odt.elc: BATCH_EXTRA = -eval "(setq org-odt-data-dir 
(expand-file-name \"$(datadir)\"))"
 
 install-lisp: $(LISPFILES) $(ELCFILES)
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
-- 
1.7.8.1




Re: [O] [babel] Is there a way to use edebug on emacs-lisp code blocks ?

2012-01-01 Thread Marc-Oliver Ihm

Am 01.01.2012 21:05, schrieb Nicolas Goaziou:

Hello,

Marc-Oliver Ihm  writes:


Is there a way to use edebug for debugging my emacs-lisp code blocks ?
(Or is there another preferred way to debug emacs-lisp code in
babel ?)


You can open the block in a temporary buffer, with C-c ', and use C-u
C-M-x from there.


Regards,



Hi Nicolas,

Thanx, that is close ! However, I also need to resolve <> references.

Resolving <> references is something, that org-babel-expand-src-block 
does,
which however is still not what I need, because it only works for #+begin_src 
... #+end_src blocks,
but not for #+call: lines and for the arguments, which can be passed.

So, if I have something like:

#+call: foo(1,2)

I cannot see a way to get a buffer with all the code, that foo might expand 
into, INCLUDING the assignments for the
arguments 1 and 2.

(If babel would give me such a buffer, than it would be easy to use edebug on 
it, I agree.)

So, to be more precise: Is there any command that would expand a full #+call: 
line like above
with all its arguments into pure elisp ?

Thanx for your help !





[O] Difficulty with repeater timestamps in agenda

2012-01-01 Thread Christian Prothmann


Hi,

I am relatively new to org-mode (7.8.02). After working with org-mode for 
several weeks, I came to realize that none of the repeater timestamps or tasks 
(+1d, 1w or +1m)  show in the agenda timeline unless there is another 
"one-time" timestamp for the same day. Basically, I am not able to see them? 
Please advise.

Thanks & Happy New Year to all,

CK

Re: [O] [babel] Is there a way to use edebug on emacs-lisp code blocks ?

2012-01-01 Thread Nicolas Goaziou
Marc-Oliver Ihm  writes:

> So, if I have something like:
>
> #+call: foo(1,2)
>
> I cannot see a way to get a buffer with all the code, that foo might
> expand into, INCLUDING the assignments for the arguments 1 and 2.
>
> (If babel would give me such a buffer, than it would be easy to use edebug on 
> it, I agree.)
>
> So, to be more precise: Is there any command that would expand a full #+call: 
> line like above
> with all its arguments into pure elisp ?

AFAIK, there is no such command.


Regards,

-- 
Nicolas Goaziou



Re: [O] Difficulty with repeater timestamps in agenda

2012-01-01 Thread Bernt Hansen
Christian Prothmann  writes:

> Hi,
>
> I am relatively new to org-mode (7.8.02). After working with org-mode
> for several weeks, I came to realize that none of the repeater
> timestamps or tasks (+1d, 1w or +1m)  show in the agenda timeline
> unless there is another "one-time" timestamp for the same day.
> Basically, I am not able to see them? Please advise.
>
> Thanks & Happy New Year to all,

Hi Christian,

Please show us an example of a repeater entry that you think should show
up in your agenda so we can help diagnose your issue.

Regards,
Bernt



Re: [O] Difficulty with repeater timestamps in agenda

2012-01-01 Thread Nick Dokos
Bernt Hansen  wrote:

> Christian Prothmann  writes:
> 
> > Hi,
> >
> > I am relatively new to org-mode (7.8.02). After working with org-mode
> > for several weeks, I came to realize that none of the repeater
> > timestamps or tasks (+1d, 1w or +1m)  show in the agenda timeline
> > unless there is another "one-time" timestamp for the same day.
> > Basically, I am not able to see them? Please advise.
> >
> > Thanks & Happy New Year to all,
> 
> Hi Christian,
> 
> Please show us an example of a repeater entry that you think should show
> up in your agenda so we can help diagnose your issue.
> 

The OP is talking about the "timeline" in the agenda (C-c a L). This has
been discussed before on the mailing list and it does indeed have the
problem the OP mentions.  The upshot however (afaik) is that "timeline"
is considered obsolete functionality.  There may be different ways to
accomplish what the OP wants however.  See e.g. the extensive thread at

http://thread.gmane.org/gmane.emacs.orgmode/39368

Nick





[O] Feature suggestion

2012-01-01 Thread York Zhao
Hi,

May I suggest a feature that when the point is inside a TeX source block and
"C-c C-c" is pressed, instead of showing the error "No org-babel-execute
function for tex!", can we process the current tex block to output the dvi or
pdf file?

Thanks,

York



Re: [O] Difficulty with repeater timestamps in agenda

2012-01-01 Thread Bernt Hansen
Nick Dokos  writes:

> Bernt Hansen  wrote:
>
>> Christian Prothmann  writes:
>> 
>> > Hi,
>> >
>> > I am relatively new to org-mode (7.8.02). After working with org-mode
>> > for several weeks, I came to realize that none of the repeater
>> > timestamps or tasks (+1d, 1w or +1m)  show in the agenda timeline
>> > unless there is another "one-time" timestamp for the same day.
>> > Basically, I am not able to see them? Please advise.
>> >
>> > Thanks & Happy New Year to all,
>> 
>> Hi Christian,
>> 
>> Please show us an example of a repeater entry that you think should show
>> up in your agenda so we can help diagnose your issue.
>> 
>
> The OP is talking about the "timeline" in the agenda (C-c a L). This has
> been discussed before on the mailing list and it does indeed have the
> problem the OP mentions.  The upshot however (afaik) is that "timeline"
> is considered obsolete functionality.  There may be different ways to
> accomplish what the OP wants however.  See e.g. the extensive thread at
>
> http://thread.gmane.org/gmane.emacs.orgmode/39368

Ah, thanks for the clarification Nick.  I don't use the timeline at all
and didn't get a clue :)

Regards,
Bernt



Re: [O] Difficulty with repeater timestamps in agenda

2012-01-01 Thread Christian Prothmann


Hi Nick,

Thanks for the link. I had also set org-agenda-show-all-dates to nil to no 
avail. I concluded after reading some of the comments in thread that due to the 
history of timeline, I would best use it to see what has happened in an 
org-file - more like reviewing your past journal entries - than as a planning 
tool. Please let me know if you have any further suggestion or comments. Thanks 
again for your quick feedback.

CK 



 From: Nick Dokos 
To: Bernt Hansen  
Cc: Christian Prothmann ; "emacs-orgmode@gnu.org" 
; nicholas.do...@hp.com 
Sent: Sunday, January 1, 2012 8:34 PM
Subject: Re: [O] Difficulty with repeater timestamps in agenda
 
Bernt Hansen  wrote:

> Christian Prothmann  writes:
> 
> > Hi,
> >
> > I am relatively new to org-mode (7.8.02). After working with org-mode
> > for several weeks, I came to realize that none of the repeater
> > timestamps or tasks (+1d, 1w or +1m)  show in the agenda timeline
> > unless there is another "one-time" timestamp for the same day.
> > Basically, I am not able to see them? Please advise.
> >
> > Thanks & Happy New Year to all,
> 
> Hi Christian,
> 
> Please show us an example of a repeater entry that you think should show
> up in your agenda so we can help diagnose your issue.
> 

The OP is talking about the "timeline" in the agenda (C-c a L). This has
been discussed before on the mailing list and it does indeed have the
problem the OP mentions.  The upshot however (afaik) is that "timeline"
is considered obsolete functionality.  There may be different ways to
accomplish what the OP wants however.  See e.g. the extensive thread at

    http://thread.gmane.org/gmane.emacs.orgmode/39368

Nick

Re: [O] Difficulty with repeater timestamps in agenda

2012-01-01 Thread Christian Prothmann
Thanks Bernt!



 From: Bernt Hansen 
To: nicholas.do...@hp.com 
Cc: Christian Prothmann ; "emacs-orgmode@gnu.org" 
 
Sent: Sunday, January 1, 2012 10:45 PM
Subject: Re: Difficulty with repeater timestamps in agenda
 
Nick Dokos  writes:

> Bernt Hansen  wrote:
>
>> Christian Prothmann  writes:
>> 
>> > Hi,
>> >
>> > I am relatively new to org-mode (7.8.02). After working with org-mode
>> > for several weeks, I came to realize that none of the repeater
>> > timestamps or tasks (+1d, 1w or +1m)  show in the agenda timeline
>> > unless there is another "one-time" timestamp for the same day.
>> > Basically, I am not able to see them? Please advise.
>> >
>> > Thanks & Happy New Year to all,
>> 
>> Hi Christian,
>> 
>> Please show us an example of a repeater entry that you think should show
>> up in your agenda so we can help diagnose your issue.
>> 
>
> The OP is talking about the "timeline" in the agenda (C-c a L). This has
> been discussed before on the mailing list and it does indeed have the
> problem the OP mentions.  The upshot however (afaik) is that "timeline"
> is considered obsolete functionality.  There may be different ways to
> accomplish what the OP wants however.  See e.g. the extensive thread at
>
>     http://thread.gmane.org/gmane.emacs.orgmode/39368

Ah, thanks for the clarification Nick.  I don't use the timeline at all
and didn't get a clue :)

Regards,
Bernt

Re: [O] Difficulty with repeater timestamps in agenda

2012-01-01 Thread Nick Dokos
Christian Prothmann  wrote:


> Thanks for the link. I had also set org-agenda-show-all-dates to nil to no 
> avail. I concluded after
> reading some of the comments in thread that due to the history of timeline, I 
> would best use it to
> see what has happened in an org-file - more like reviewing your past journal 
> entries - than as a
> planning tool. Please let me know if you have any further suggestion or 
> comments. Thanks again for
> your quick feedback.
> 

If you haven't read it yet, I think you should read Carsten's note on
the history and usage of the timeline - it explains things far better
than I could:

   http://thread.gmane.org/gmane.emacs.orgmode/39368/focus=40038

Nick




Re: [O] Difficulty with repeater timestamps in agenda

2012-01-01 Thread Christian Prothmann
Thanks!



 From: Nick Dokos 
To: Christian Prothmann  
Cc: Bernt Hansen ; "emacs-orgmode@gnu.org" 
; nicholas.do...@hp.com 
Sent: Sunday, January 1, 2012 11:01 PM
Subject: Re: [O] Difficulty with repeater timestamps in agenda
 
Christian Prothmann  wrote:


> Thanks for the link. I had also set org-agenda-show-all-dates to nil to no 
> avail. I concluded after
> reading some of the comments in thread that due to the history of timeline, I 
> would best use it to
> see what has happened in an org-file - more like reviewing your past journal 
> entries - than as a
> planning tool. Please let me know if you have any further suggestion or 
> comments. Thanks again for
> your quick feedback.
> 

If you haven't read it yet, I think you should read Carsten's note on
the history and usage of the timeline - it explains things far better
than I could:

   http://thread.gmane.org/gmane.emacs.orgmode/39368/focus=40038

Nick