[Orgmode] Personal accounting with emacs, org and...?

2010-07-22 Thread Marcelo de Moraes Serpa
Hey list,

I was wondering if anyone out there manages his personal accounting
with org. I never really managed my personal finances, but I think
it's about time to know where my money comes from and where it is
going (and where the leaks are :P). I would use something like
lessaccounting.com, but I would rather integrate it into my
orgmode-based PIM. Any ideas?

Cheers,

Marcelo.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Personal accounting with emacs, org and...?

2010-07-22 Thread Russell Adams
On Thu, Jul 22, 2010 at 01:20:58AM -0500, Marcelo de Moraes Serpa wrote:
 Hey list,
 
 I was wondering if anyone out there manages his personal accounting
 with org. I never really managed my personal finances, but I think
 it's about time to know where my money comes from and where it is
 going (and where the leaks are :P). I would use something like
 lessaccounting.com, but I would rather integrate it into my
 orgmode-based PIM. Any ideas?

I use John Wiegley's Ledger (of Remember fame), which is a CLI tool
that does reporting against plain text files.

I do my expense reporting and business accounting in it. Very flexible
and because it is text based, I can use version control and emacs.

Thanks.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] feature request - tangle-and-evaluate-tangled-file

2010-07-22 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Eric

On 21/07/2010 18:50, Eric Schulte wrote:
 Hi Rainer,
 
 Thanks for your patience and persistence.  I've pushed up what I believe
 should be a fix for this excess buffer movement.  There still may be
 some issues with things like ess-load-file, but those can now optionally
 be squashed by wrapping your hook functions with `save-window-excursion'
 as shown.
 
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (save-window-excursion
 (ess-load-file (buffer-file-name)
 #+end_src

Thanks a lot - I'll report back if I have still problems with it.

That hook really makes my life much easier.

Cheers,

Rainer

 
 Best -- Eric
 
 Rainer M Krug r.m.k...@gmail.com writes:
 
 On 21/07/2010 09:49, Rainer M Krug wrote:
 On 21/07/2010 09:23, Rainer M Krug wrote:
 Hi Eric


 On 21/07/2010 00:41, Eric Schulte wrote:
 Hi Rainer,

 I see the problem.  When ess-load-file is called an even number of
 times, it results in flip-flopped buffers.  I'm not sure of a good

 Thanks for the clarification.

 solution here, aside from possibly tangling to a 3rd file, e.g.

 #+begin_src R :tangle /tmp/nothing.R
  y - 9
 #+end_src

 to ensure a good final balance.  Alternately you could try wrapping the
 ess-load-file call in save-window-excursion, which will inhibit it's
 ability to change buffers -- and result in the *R* window taking over
 your frame.

 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (save-window-excursion (ess-load-file 
 (buffer-file-name)
 #+end_src

 Sorry I can't be of more help.

 No problem - now I know where the problem is sitting and I might be able
 to work around it.

 Just an idea: if I could put an if statement in the hook, so that only
 when the buffer-file-name is a specific name, ess-load-file is called, I
 assume that it should work?
 I'll try that one out as well.

 It seems, that it has nothing to do with ess-load-file. I'll send you
 the file I am working on directly, as it is quite longish.

 I managed to reproduce the problem with the following org file:


 
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

 evaluate this
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (message I'm in %s (buffer-file-name
 #+end_src

 then tangle

 #+begin_src R :comments yes
  x - 8
 #+end_src

 #+begin_src R
  y - 9
 #+end_src

 #+begin_src R :tangle file2.R
  y - 9
 #+end_src
 

 What I did:

 1) Opened a file containing the text above
 2) evaluated the lisp code to set the hook
 3) C-x 2 to create a second buffer which shows the same file
 4) go to the top buffer and C-c C-v t to tangle
 - The top window is switching to a different buffer
 5) reproducible here.

 6) If I open to-load.r but make sure that both windows are displaying
 the .org buffer, it doesn't happen - only that the second buffer is
 switching to to-load.r

 7) if to-load.r is not visited by a buffer but file2.R is, the switching
 is there again.

 Hope this helps,

 Rainer



 Cheers,

 Rainer



 Cheers and thanks,

 Rainer



 Best -- Eric

 Rainer M Krug r.m.k...@gmail.com writes:

 Hi Eric

 I just discovered a switching of buffers when tangling the following
 org file with the new org-babel-post-tangle-hook.

 Otherwise it is working perfectly now.


 #
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

 evaluate this
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (ess-load-file (buffer-file-name
 #+end_src

 then tangle

 #+begin_src R :comments yes
  x - 8
 #+end_src
 t
 #+begin_src R
  y - 9
 #+end_src

 #+begin_src R :tangle file2.R
  y - 9
 #+end_src

 A second buffer will open with the R session.
 If you tangle a second time, these buffers are switching, i.e. where the
 .org buffer was is the R buffer and vice-versa.
 #





- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxH5XcACgkQoYgNqgF2egqEIQCdGs6S0J9McYwLOu5gecr8/QRu

[Orgmode] Re: Personal accounting with emacs, org and...?

2010-07-22 Thread Gour
On Thu, 22 Jul 2010 01:26:29 -0500
 Russell == Russell Adams rlad...@adamsinfoserv.com wrote:

Russell I do my expense reporting and business accounting in it. Very
Russell flexible and because it is text based, I can use version
Russell control and emacs.

Do you do invoices as well?


Sincerely,
Gour

-- 

Gour  | Hlapicina, Croatia  | GPG key: F96FF5F6



signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Personal accounting with emacs, org and...?

2010-07-22 Thread Russell Adams
On Thu, Jul 22, 2010 at 08:39:54AM +0200, Gour wrote:
 On Thu, 22 Jul 2010 01:26:29 -0500
  Russell == Russell Adams rlad...@adamsinfoserv.com wrote:
 
 Russell I do my expense reporting and business accounting in it. Very
 Russell flexible and because it is text based, I can use version
 Russell control and emacs.
 
 Do you do invoices as well?

I do not invoice from Ledger.

I use a web based system called Freshbooks, and I'd recommend
them.

Ledger comes with few output formats, it is really just a reporting
tool. I built some perl scripts that create expense reports in Latex
from ledger output combined with scanned receipt images, but not
invoicing.

Thanks.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Some problems with times in a spreadsheet

2010-07-22 Thread Cecil Westerhof
Op woensdag 21 jul 2010 15:46 CEST schreef Juan:

 | # | Total hours | 16@ 15' 0 | 18@ 5' 0  |
 | ^ | | totalTime1 | totalTime2 |
 |---+-++|
 #+TBLFM: $totalTime1=vsum(@-i...@-i); f2 :: $totalTime2=vsum(@-i...@-i); f2

 First of all I would like to see 16.25 instead of 16@ 15' 0. Is this
 possible?

 Calc's deg function does this.

 use deg(vsum(...)) in the formulas

That works. Thanks. I should learn calc. ;-}

I now have (I already made changes):
|---+-+--+--|
| # | Total hours | 14.00| 6.00 |
| ^ | | totalTime1   | totalTime2   |
|   | Hourly rate | 40   | 50   |
| ^ | | hourRate1| hourRate2|
| # |  To declare | 560.00   | 300.00   |
| ^ | | declaration1 | declaration2 |
|---+-+--+--|
#+TBLFM: $totalTime1=deg(vsum(@-i...@-i)); f2 :: 
$totalTime2=deg(vsum(@-i...@-i)); f2 :: $declaration1=$totalTime1*$hourRate1; 
f2 :: $declaration2=$totalTime2*$hourRate2; f2

This works. One strange thing (not important I think, but I mention
it), I needed to recalculate twice. The first time the 'Total hours'
was displayed correctly, only the second time 'To declare' was
displayed correctly.

I have two formula's that I have to write for every column, I still
would like to now if there is a way to only write them once.

I am not very happy with the long line of formula's. Especially when I
have to repeat formula's. Would something like this be possible?
#+TBLFM: $totalTime1=deg(vsum(@-i...@-i)); f2 ::
 $totalTime2=deg(vsum(@-i...@-i)); f2 ::
 $declaration1=$totalTime1*$hourRate1; f2 ::
 $declaration2=$totalTime2*$hourRate2; f2

This would at least make updating repeating formula's easier and
easier to check.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: clocktable: maximum level 0 does not only avoid listing items but also does not calculate items

2010-07-22 Thread Rainer Stengele
Am 21.07.2010 16:24, schrieb Carsten Dominik:
 
 On Jul 13, 2010, at 11:21 AM, Rainer Stengele wrote:
 
 Hi all!

 lately I use the marvelous clocktables a lot...

 For toplevel clocktables which just sum up all I use :maxlevel 0

 The manual reads

 :maxlevelMaximum level depth to which times are listed in the table.

 which I misunderstood.
 I understood: an unlisted item does not mean that its time is not added!
 But it looks like :maxlevel 0 does not add everything up.
 
 
 I cannot reproduce this, :maxlevel 0 works for me.
 

 Ok, maybe the manual is a bit misleading here.



 How can I get a clocktable without any details which simply adds up 
 everything in the scope?

 BTW, the :stepskip0 parameter does not seem to be included in the manual.
 
 It is in the manual.
 
 - Carsten


 Rainer





Carsten,

maybe I misunderstood.


1. Without maxlevbel I get I get

#+BEGIN: clocktable :scope (file1.org file2) :timestamp t :tstart 
2010-05-01 Sa 00:00 :tend  2010-07-31 Sa 23:55
Clock summary at [2010-07-22 Do 09:07]

| File  | L | Timestamp   | Headline   | Time | 
   ||
|---+---+-++--++|
|   |   | Timestamp   | *Total time*   | *327:51* | 
   ||
...



with :maxlevel 0 I get


#+BEGIN: clocktable :maxlevel 0 :scope (file1.org file2) :timestamp t 
:tstart 2010-05-01 Sa 00:00 :tend  2010-07-31 Sa 23:55
Clock summary at [2010-07-22 Do 09:11]

| File | L | Timestamp | Headline | Time |
|--+---+---+--+--|
|  |   | Timestamp | *Total time* | *232:17* |
|--+---+---+--+--|
#+END:


I would like to get the same results!
Is :maxlevel 0 intended to not include the sublevel clocks?
If not how can I debug this?


- Rainer

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: skip entry with inherited tags

2010-07-22 Thread Carsten Dominik

Hi Martin,

On Jul 21, 2010, at 4:32 PM, Carsten Dominik wrote:


Hi Martin,

I just looked at your patch.

If I have a normal agenda (i.e. *not* a block agenda), then your
patch will cause the preset filter *not* to be applied.


OK, that was obviously incorrect, sorry about that.

However, it still does not work correctly, here is the counter example:

-
* TODO test 1 :a:
* TODO test 2 :b:

* at 1:a:
  SCHEDULED: 2010-07-22 Thu
* at 1:b:
  SCHEDULED: 2010-07-22 Thu
--

With this custom command:

(setq org-agenda-custom-commands
  '((x testmartin
 ((agenda  ((org-agenda-filter-preset '(+a
  (alltodo  ((org-agenda-filter-preset '(+b)
 nil nil)))

the result is incorrect, both with and without your patch.

The internal logic of the filter and the preset filter is such that
it applies to the entire view, and you should not set in the local
options for a command that is part of a block agenda view.

I have now documented this limitation.

Sorry that this took so long - thank you for your patience.

Best wishes

- Carsten





- Carsten

On Jul 13, 2010, at 10:34 PM, Martin Pohlack wrote:


Hi Carsten and Matt,

On 13.07.2010 20:48, Carsten Dominik wrote:

On Jul 13, 2010, at 7:41 PM, Martin Pohlack wrote:

Hard to respond to this vague situation :-).

It would be great if you could point me at more specific situations
that
might break or if others could test the patch.  I have been using  
it

for
more than a month now without problems.


The specific one I meant is if you use r or g to rebuild the agenda,
if you do something like a refile command which does an automatic
rebuild,
do you get back the view you expected?


Yes, I regularly use 'r'.  It works for me.  Refiling a single  
entry did

not show a problem.

Also, if you apply other filter commands, either with /, or  
narrowing
the filter with /, does that give the expected results while you  
are

in your block agenda?


I quickly applied a tag filter using '/' 'tab'.  Only the relevant
entries were shown.  Some block agendas become empty as expected.
Clearing the filter restores the expected full view.

I am not entirely sure that the patch does not have problems though.

Matt: could you give the patch a quick test at your end?


I will only be able to study this more closely after the release.


Take your time, I will wait for more details to emerge or feedback
from
other testers.

One more note here: The current situation for block agendas is a  
bit

problematic as their limitations are not documented afaik.

Writing custom agendas is not easy in itself.  If things don't  
work,

it
is really hard to distinguish between driver errors and  
limitations of

the block agendas.


Do you have suggestions on how to improve the situation?


* Well, the best thing to do would be to remove the limitations of  
the

block agendas, obviously :-), which I hope this patch does.

* The second best thing is to document them.

I am aware of this tag filter limitation, but no others from the  
top of

my head.  Do others know more?

Cheers,
Martin


- Carsten





- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: clocktable: maximum level 0 does not only avoid listing items but also does not calculate items

2010-07-22 Thread Carsten Dominik


On Jul 22, 2010, at 9:16 AM, Rainer Stengele wrote:


Am 21.07.2010 16:24, schrieb Carsten Dominik:


On Jul 13, 2010, at 11:21 AM, Rainer Stengele wrote:


Hi all!

lately I use the marvelous clocktables a lot...

For toplevel clocktables which just sum up all I use :maxlevel 0

The manual reads

:maxlevelMaximum level depth to which times are listed in the  
table.


which I misunderstood.
I understood: an unlisted item does not mean that its time is not  
added!

But it looks like :maxlevel 0 does not add everything up.



I cannot reproduce this, :maxlevel 0 works for me.



Ok, maybe the manual is a bit misleading here.



How can I get a clocktable without any details which simply adds  
up everything in the scope?


BTW, the :stepskip0 parameter does not seem to be included in  
the manual.


It is in the manual.

- Carsten



Rainer






Carsten,

maybe I misunderstood.


1. Without maxlevbel I get I get

#+BEGIN: clocktable :scope (file1.org file2) :timestamp  
t :tstart 2010-05-01 Sa 00:00 :tend  2010-07-31 Sa 23:55

Clock summary at [2010-07-22 Do 09:07]

| File  | L | Timestamp   | Headline   |  
Time |||
|---+---+-+ 
+--++|
|   |   | Timestamp   | *Total time*   |  
*327:51* |||

...



with :maxlevel 0 I get


#+BEGIN: clocktable :maxlevel 0 :scope (file1.org  
file2) :timestamp t :tstart 2010-05-01 Sa 00:00 :tend   
2010-07-31 Sa 23:55

Clock summary at [2010-07-22 Do 09:11]

| File | L | Timestamp | Headline | Time |
|--+---+---+--+--|
|  |   | Timestamp | *Total time* | *232:17* |
|--+---+---+--+--|
#+END:


I would like to get the same results!


Indeed, this looks wrong.

Unfortunately I don't have time to look at this before my vacation  
(starting tomorrow) :(

Please remind me when I get back.

- Carsten


Is :maxlevel 0 intended to not include the sublevel clocks?
If not how can I debug this?


- Rainer


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: bug: images always inlined when exporting to HTML

2010-07-22 Thread Ulf Stegemann
Hi Carsten,

Carsten Dominik carsten.domi...@gmail.com wrote:

 please pull and check if this is fixed now.

works again here :) Thanks for fixing!

Ulf


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] indent levels in dynamic block clock?

2010-07-22 Thread Carsten Dominik


On Jul 22, 2010, at 12:36 AM, jeff stern wrote:


hi, please forgive me if this is a FAQ. i could not find it in the
manual nor by searching the list archives.

i love the dynamic block clock feature (C-c C-x C-r) and love that i
can set certain paramters
(http://orgmode.org/manual/Clocking-work-time.html).

i was wondering if it is already possible to indent the 2nd column by
the level? or whether this would require new coding?

for instance, suppose my dynamic block has :scope 3, then

i'd like all level 1 items to have no indentation
level 2 items would appear, say, 2 spaces in
level 3 items would appear, say, 3 spaces in



No, this is not possible, because every re-align of the
table will destroy this indentation.

- Carsten



so that instead of this:

| L | Headline |   Time |   
|  |
|---+--++-- 
+--|
|   | *Total time* | *4:00* |   
|  |
|---+--++-- 
+--|
|   | *File time*  | *3:57* |   
|  |
| 1 | email communication  |   0:15 |   
|  |
| 1 | Case management/documenting/organization |   0:25 |   
|  |
| 1 | training |   0:08 |   
|  |
| 2 | contact John Doe || 0:08  
|  |
| 1 | well-being   |   2:03 |   
|  |
| 2 | warts|| 2:03  
|  |
| 3 | DONE find books on warts ||  |  
2:03 |


it might appear more like this:

| L | Headline |   Time |   
|  |
|---+--++-- 
+--|
|   | *Total time* | *4:00* |   
|  |
|---+--++-- 
+--|
|   | *File time*  | *3:57* |   
|  |
| 1 | email communication  |   0:15 |   
|  |
| 1 | Case management/documenting/organization |   0:25 |   
|  |
| 1 | training |   0:08 |   
|  |
| 2 |   contact John Doe   || 0:08  
|  |
| 1 | well-being   |   2:03 |   
|  |
| 2 |   warts  || 2:03  
|  |
| 3 | DONE find books on warts ||  |  
2:03 |



has this been done already and i'm just missing something obvious?

if not, does anyone have any ideas where i'd start to write the code
to implement this? (i'm a newbie at lisp)

thanks!

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [BABEL] evaluation of R code in export

2010-07-22 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

assuming I have the following in an org buffer (and enabled evaluation
of R code), and export it to html.

The exported html looks perfect, but when I go into the *R_test* buffer,
I see all the commands evaluated in the export (which is not such a
problem), but they are also inserted in the history.

When evaluating a line of code in ESS, this line is evaluated, but NOT
added to the history. Would that be possible for evaluation of R code
during export as well?

My reasoning is, that I have a report in an .org file, which is using an
existing R session in which I conduct simulations. When creating the
report from a finished simulation, my command history in the *R* buffer
contains all the commands evaluated for the export, and if I want to
change one parameter for the simulation, I either have to go back
several commands to find it, or type it in again. If the evaluated
commands would not appear in the history, I could simply go one command
back.

If it is not to much work, it would be great if this could be changed.

Cheers and thanks for an excellent tool,

Rainer



#+BABEL: session *R_test*
** test
#+begin_src R :exports both
  x - 5
  x
#+end_src



- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxH/xAACgkQoYgNqgF2egrGlwCbBQRxj99q3czxPlIJLGO1DId5
5AcAoIxXu99Y1TfzSrEUFSVgnYwrsy7e
=oCM5
-END PGP SIGNATURE-

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Some problems with times in a spreadsheet

2010-07-22 Thread Andreas Burtzlaff
Cecil Westerhof cldwester...@gmail.com writes:

 Op woensdag 21 jul 2010 15:46 CEST schreef Juan:

 | # | Total hours | 16@ 15' 0 | 18@ 5' 0  |
 | ^ | | totalTime1 | totalTime2 |
 |---+-++|
 #+TBLFM: $totalTime1=vsum(@-i...@-i); f2 :: $totalTime2=vsum(@-i...@-i); f2

 First of all I would like to see 16.25 instead of 16@ 15' 0. Is this
 possible?

 Calc's deg function does this.

 use deg(vsum(...)) in the formulas

 That works. Thanks. I should learn calc. ;-}

 I now have (I already made changes):
 |---+-+--+--|
 | # | Total hours | 14.00| 6.00 |
 | ^ | | totalTime1   | totalTime2   |
 |   | Hourly rate | 40   | 50   |
 | ^ | | hourRate1| hourRate2|
 | # |  To declare | 560.00   | 300.00   |
 | ^ | | declaration1 | declaration2 |
 |---+-+--+--|
 #+TBLFM: $totalTime1=deg(vsum(@-i...@-i)); f2 :: 
 $totalTime2=deg(vsum(@-i...@-i)); f2 :: $declaration1=$totalTime1*$hourRate1; 
 f2 :: $declaration2=$totalTime2*$hourRate2; f2

 This works. One strange thing (not important I think, but I mention
 it), I needed to recalculate twice. The first time the 'Total hours'
 was displayed correctly, only the second time 'To declare' was
 displayed correctly.

 I have two formula's that I have to write for every column, I still
 would like to now if there is a way to only write them once.

No, I'm afraid not.

 I am not very happy with the long line of formula's. Especially when I
 have to repeat formula's. Would something like this be possible?
 #+TBLFM: $totalTime1=deg(vsum(@-i...@-i)); f2 ::
  $totalTime2=deg(vsum(@-i...@-i)); f2 ::
  $declaration1=$totalTime1*$hourRate1; f2 ::
  $declaration2=$totalTime2*$hourRate2; f2


The formula editor ( C-c ' ) will display the formulas one per line and
make duplicating and changing them much easier.

HTH

Andreas

 This would at least make updating repeating formula's easier and
 easier to check.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-startup-indented shifts columns in column-view

2010-07-22 Thread Carsten Dominik


On Jul 22, 2010, at 10:14 AM, Carsten Dominik wrote:



On Jul 13, 2010, at 5:11 PM, Julien Fantin wrote:


Thanks for noticing Dominik,

Reverting back to regular indentation is what I've done,


THis is not what I mean.

What I mean is that you can turn off org-indent-mode just while you
use column view.  Basically, define yourself a function key to toggle
org-indent-mode, and turn it off before entering column view,
and on afterwards.  Very likely, the fix for this issue will  
eventually

do this automatically, but it is not trivial to do this and make sure
that everything else will still work correctly.  Will be a while
before I get to this.


Just minutes after sending this message I realized, that there is
a simple way to fix this issue, by overruling the line-prefix and
wrap-prefix text properties in the overlays that are used
for column view. Works like a charm, and is a very simple fix.

- Carsten





however, I'm
afraid I have something else to report on that...
I mentionned this  issue in a separate thread :
http://article.gmane.org/gmane.emacs.orgmode/27388/


I hope that Dan Davison will find time to look into this question.

- Carsten



cheers

On Tue, Jul 13, 2010 at 2:14 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:


On Jul 6, 2010, at 9:55 PM, Julien Fantin wrote:


I've been using the org-startup-indented and org-adapt-indentation
variables for sometime, but I just realized that org-startup- 
indented when
set to true, ends up shifting the cloumns in column-view  
according to the

headline level.

So headline 2 is shifted by 1 character to the right, headline 3  
by 2

characters and so forth.

Is this the expected behaviour ? I hope not, because I'd like to  
use both

features, but it makes the column-view quite impractical.


Hi Julien,

this is indeed a bug.  As it is not trivial to fix it,
I will only be able to get to it after the release.
As a work-around for now, turn off org-indent-mode before
switching to column view.

- Carsten




- Carsten





- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-collector : display problem with propview

2010-07-22 Thread d . tchin
Hi

I try to use org-collector. Since I have changed org-mode to release 7.01
there is a modification in the display of propview.


Below an example :

-

* View
#+BEGIN: propview  :cols (ITEM CATEGORY) :scope tree :match Inside1 
| ITEM | CATEGORY   |
|+--|
| Inside first a \n\n\n\n\n\n:Inside1: | firstentry |
| Inside first b \n\n\n\n\n\n:Inside1: | firstentry |
|+--|
||  |
#+END:


#+BEGIN: propview  :cols (ITEM CATEGORY) :scope tree :match Inside2 
| ITEM   | CATEGORY|
|--+---|
| Inside second\n\n\n\n\n\n:Inside2: | secondentry |
|--+---|
|  |   |
#+END:
  
** First entry
   :PROPERTIES:
   :CATEGORY:  firstentry
   :END:
*** Inside first a  :Inside1:
*** Inside first b  :Inside1:
** Second entry
   :PROPERTIES:
   :CATEGORY:  secondentry
   :END:   
*** Inside second   :Inside2:



There were \n added after ITEM entry then the tag. 

Subsidiary question : is it possible not to display the tag in propview
ang ITEM entry. 


GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
Org-mode version 7.01



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Personal accounting with emacs, org and...?

2010-07-22 Thread Eric S Fraga
On Thu, 22 Jul 2010 01:26:29 -0500, Russell Adams rlad...@adamsinfoserv.com 
wrote:
 
 On Thu, Jul 22, 2010 at 01:20:58AM -0500, Marcelo de Moraes Serpa wrote:
  Hey list,
  
  I was wondering if anyone out there manages his personal accounting
  with org. I never really managed my personal finances, but I think
  it's about time to know where my money comes from and where it is
  going (and where the leaks are :P). I would use something like
  lessaccounting.com, but I would rather integrate it into my
  orgmode-based PIM. Any ideas?
 
 I use John Wiegley's Ledger (of Remember fame), which is a CLI tool
 that does reporting against plain text files.
 
 I do my expense reporting and business accounting in it. Very flexible
 and because it is text based, I can use version control and emacs.

and, with org-babel, you can place your ledger entries in an org
file...  I have a simple ob-ledger implementation which doesn't do
tangling yet (as I don't yet know how to provide this level of
support) but it does work for single blocks of ledger entries.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-collector : display problem with propview

2010-07-22 Thread d . tchin
 d.tchin writes:

 
 Hi
 

...

 Subsidiary question : is it possible not to display the tag in propview
 ang ITEM entry. 

Sorry. For this question, what I want is to get ITEM entry without the
tag in propview display.

 
 GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
 Org-mode version 7.01
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode at gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Some problems with times in a spreadsheet

2010-07-22 Thread Darlan Cavalcante Moreira

I always use the formula editor even when I have a single formula. It will
even highlight in the cells in the table related to the construct where the
cursor is in (the region pointed by @-i...@-i, for instance). It also makes
easy to change a cell reference using shift+arrows.

To make it short, it is better to understand the single line below the
table with all formulas as the place where org stores the formulas, and not
the place where you should manually edit them.

--
Darlan

At Thu, 22 Jul 2010 10:43:04 +0200,
Andreas Burtzlaff and...@gmx.net wrote:
 
 Cecil Westerhof cldwester...@gmail.com writes:
 
  Op woensdag 21 jul 2010 15:46 CEST schreef Juan:
 
  | # | Total hours | 16@ 15' 0 | 18@ 5' 0  |
  | ^ | | totalTime1 | totalTime2 |
  |---+-++|
  #+TBLFM: $totalTime1=vsum(@-i...@-i); f2 :: $totalTime2=vsum(@-i...@-i); 
  f2
 
  First of all I would like to see 16.25 instead of 16@ 15' 0. Is this
  possible?
 
  Calc's deg function does this.
 
  use deg(vsum(...)) in the formulas
 
  That works. Thanks. I should learn calc. ;-}
 
  I now have (I already made changes):
  |---+-+--+--|
  | # | Total hours | 14.00| 6.00 |
  | ^ | | totalTime1   | totalTime2   |
  |   | Hourly rate | 40   | 50   |
  | ^ | | hourRate1| hourRate2|
  | # |  To declare | 560.00   | 300.00   |
  | ^ | | declaration1 | declaration2 |
  |---+-+--+--|
  #+TBLFM: $totalTime1=deg(vsum(@-i...@-i)); f2 :: 
  $totalTime2=deg(vsum(@-i...@-i)); f2 :: 
  $declaration1=$totalTime1*$hourRate1; f2 :: 
  $declaration2=$totalTime2*$hourRate2; f2
 
  This works. One strange thing (not important I think, but I mention
  it), I needed to recalculate twice. The first time the 'Total hours'
  was displayed correctly, only the second time 'To declare' was
  displayed correctly.
 
  I have two formula's that I have to write for every column, I still
  would like to now if there is a way to only write them once.
 
 No, I'm afraid not.
 
  I am not very happy with the long line of formula's. Especially when I
  have to repeat formula's. Would something like this be possible?
  #+TBLFM: $totalTime1=deg(vsum(@-i...@-i)); f2 ::
   $totalTime2=deg(vsum(@-i...@-i)); f2 ::
   $declaration1=$totalTime1*$hourRate1; f2 ::
   $declaration2=$totalTime2*$hourRate2; f2
 
 
 The formula editor ( C-c ' ) will display the formulas one per line and
 make duplicating and changing them much easier.
 
 HTH
 
 Andreas
 
  This would at least make updating repeating formula's easier and
  easier to check.
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-startup-indented shifts columns in column-view

2010-07-22 Thread Julien Fantin
Great job Dominik,

I have in fact went the true indentation way since then, and don't
miss org-indent-mode actually.

I've managed to get the src blocks to behave the same way, by seting
org-preserve-indentation to nil and org-edit-src-content to 0. So what
I described in the other thread is actually a non-issue, and could be
adapted with proper configuration settings.

All in all this is very nice, I was just a few tweaks away from
getting the almost exact same beahviour without using org-indent-mode,
and I like the idea of looking at the actual file without any magic.
I was also pleasantly surprised to find out that the indentation is
automatically adapted on headlines promotion and demotion commands.

Org-mode never ceases to amaze...

Cheers

On Thu, Jul 22, 2010 at 10:45 AM, Carsten Dominik domi...@uva.nl wrote:

 On Jul 22, 2010, at 10:14 AM, Carsten Dominik wrote:


 On Jul 13, 2010, at 5:11 PM, Julien Fantin wrote:

 Thanks for noticing Dominik,

 Reverting back to regular indentation is what I've done,

 THis is not what I mean.

 What I mean is that you can turn off org-indent-mode just while you
 use column view.  Basically, define yourself a function key to toggle
 org-indent-mode, and turn it off before entering column view,
 and on afterwards.  Very likely, the fix for this issue will eventually
 do this automatically, but it is not trivial to do this and make sure
 that everything else will still work correctly.  Will be a while
 before I get to this.

 Just minutes after sending this message I realized, that there is
 a simple way to fix this issue, by overruling the line-prefix and
 wrap-prefix text properties in the overlays that are used
 for column view. Works like a charm, and is a very simple fix.

 - Carsten



 however, I'm
 afraid I have something else to report on that...
 I mentionned this  issue in a separate thread :
 http://article.gmane.org/gmane.emacs.orgmode/27388/

 I hope that Dan Davison will find time to look into this question.

 - Carsten


 cheers

 On Tue, Jul 13, 2010 at 2:14 PM, Carsten Dominik
 carsten.domi...@gmail.com wrote:

 On Jul 6, 2010, at 9:55 PM, Julien Fantin wrote:

 I've been using the org-startup-indented and org-adapt-indentation
 variables for sometime, but I just realized that org-startup-indented
 when
 set to true, ends up shifting the cloumns in column-view according to
 the
 headline level.

 So headline 2 is shifted by 1 character to the right, headline 3 by 2
 characters and so forth.

 Is this the expected behaviour ? I hope not, because I'd like to use
 both
 features, but it makes the column-view quite impractical.

 Hi Julien,

 this is indeed a bug.  As it is not trivial to fix it,
 I will only be able to get to it after the release.
 As a work-around for now, turn off org-indent-mode before
 switching to column view.

 - Carsten



 - Carsten




 - Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Some problems with times in a spreadsheet

2010-07-22 Thread Cecil Westerhof
Op donderdag 22 jul 2010 10:43 CEST schreef Andreas Burtzlaff:

 I have two formula's that I have to write for every column, I still
 would like to now if there is a way to only write them once.

 No, I'm afraid not.

I have to live with it then.


 I am not very happy with the long line of formula's. Especially when I
 have to repeat formula's. Would something like this be possible?
 #+TBLFM: $totalTime1=deg(vsum(@-i...@-i)); f2 ::
 $totalTime2=deg(vsum(@-i...@-i)); f2 ::
 $declaration1=$totalTime1*$hourRate1; f2 ::
 $declaration2=$totalTime2*$hourRate2; f2


 The formula editor ( C-c ' ) will display the formulas one per line and
 make duplicating and changing them much easier.

Works like a charm. Not optimal (I need to enter the formula editor to
check), but good enough.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] LaTeX table export issue

2010-07-22 Thread Bart Bunting
Hi all,

I have found what is possibly a bug in the LaTeX export in org-mode but
I'm not totally sure.

I am no LaTeX expert, in fact I know very little about it.  I have used
a process of ilimination to try and produce the simplest case I can to
demonstrate the issue.

What happens is that if I have a table at the top of my document before
a heading line and use the  #+ATTR_LaTeX: setting it appears that the
settings used in that #+ATTR_LaTeX: line are then used for all
subsequent tables and other #+ATTR_LaTeX: lines are ignored.

If I add a heading line before the first #+ATTR_LaTeX: line then each
table works as expected.

To demonstrate the issue I have created the small org-mode file below. 

Steps to reproduce:

- copy the below text into a .org file.
- remove the Section One heading.
- export to pdf.

You will see that the second table inherits the settings from the first.

Next:
- Put the Section One heading back.
- Export to pdf again.

You will see that now each table has it's own correct settings.

I hope this makes sense to someone :)

Regards

Bart

--- Sample org file ---
  

* Section One
#+ATTR_LaTeX: align=|p{50mm}|p{50mm}|
|---+--+--|
|   | Reference   | 333 |
|---+--+--|
|   | Document Name:   | wibble   |
|---+--+--|


* Section Two

#+ATTR_LaTeX: align=|p{50mm}|p{40mm}|p{30mm}|
|---++---|
| Plan  | Contention | Monthly   |
|---++---|
| 512/256Kbps   |   16:1 | $565.00   |
|---++---|



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Captions for source code

2010-07-22 Thread Robert Klein

Hi list,

I'm trying to get source code exported to HTML with captions, e.g. like:


#+caption: Examples of variable declaration.
#+begin_src sql
SELECT 6*9;
#+end_src

There seems to be code in org-exp.el, see lines 2128 and
following in version 7.01f of org-mode.

However, I'm unable to find out what I'm doing wrong, atm.

Do you know how I can get this working?

Thank you very much!

Best regards
Robert

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-22 Thread Tassilo Horn
Sébastien Vauban wxhgmqzgw...@spammotel.com
writes:

 This is the point where I conclude that there can't be done anything
 about it except modifying Gnus' cache mechanism.[2]

 Do you think that would happen?  Are there people aware of this, and
 willing to do such a change?

I'm not sure, but I think the gnus registry caches message-ids and other
information.  Maybe, that could speed things up a bit.

Bye,
Tassilo


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] Minor fix to beamer export docs

2010-07-22 Thread Puneeth
A patch to fix beamer class export documentation.

-- Puneeth

diff --git a/doc/org.texi b/doc/org.texi
index 639abf1..7eb2ce9 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -9909,9 +9909,9 @@ different level - then the hierarchy above
frames will produce the sectioning
 structure of the presentation.

 A template for useful in-buffer settings or properties can be inserted into
-the buffer with @kbd{M-x org-beamer-settings-template}.  Among other things,
-this will install a column view format which is very handy for editing
-special properties used by beamer.
+the buffer with @kbd{M-x org-insert-beamer-options-template}.  Among other
+things, this will install a column view format which is very handy for
+editing special properties used by beamer.

 You can influence the structure of the presentation using the following
 properties:
@@ -9976,7 +9976,7 @@ environment or the @code{BEAMER_col} property.
 Column view provides a great way to set the environment of a node and other
 important parameters.  Make sure you are using a COLUMN format that is geared
 toward this special purpose.  The command @kbd{M-x
-org-beamer-settings-template} defines such a format.
+org-insert-beamer-options-template} defines such a format.

 Here is a simple example Org document that is intended for beamer export.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Personal accounting with emacs, org and...?

2010-07-22 Thread Matt Lundin
Russell Adams rlad...@adamsinfoserv.com writes:

 On Thu, Jul 22, 2010 at 01:20:58AM -0500, Marcelo de Moraes Serpa wrote:
 Hey list,
 
 I was wondering if anyone out there manages his personal accounting
 with org. I never really managed my personal finances, but I think
 it's about time to know where my money comes from and where it is
 going (and where the leaks are :P). I would use something like
 lessaccounting.com, but I would rather integrate it into my
 orgmode-based PIM. Any ideas?

 I use John Wiegley's Ledger (of Remember fame), which is a CLI tool
 that does reporting against plain text files.

 I do my expense reporting and business accounting in it. Very flexible
 and because it is text based, I can use version control and emacs.


+1 for ledger. It comes bundled with a nice emacs mode (ledger.el) that
makes entering data quite simple.

Matt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Re Audible reminder in org-mode not working

2010-07-22 Thread Matthew Lundin
Hi evita,

evita moreno evitamoren...@live.com writes:

 Typing 
 $ sudo lsmod | grep pcspkr
 in my terminal does not give anything. It simply shows the next prompt
 (if I am using the correct terminology - I am new in emacs and Linux!).


You could try sudo modprobe pcspkr. This should activate the
system beep if your distribution has turned it off. 

Best,
Matt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-22 Thread Bernt Hansen


Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org
writes:

 Hi Bernt,

 Bernt Hansen wrote:
 Mirroring your mail server with offline imap or some other tool and linking
 to the local mirror might help your access times. I've never used that
 myself but others have reported success with this.

 I am (or was) a bit reluctant about this, as I always try (or tried) to have
 portable solutions that my colleagues can use on Windows. Some of them use my
 .emacs file, just changing user-name variables and some such. Same for my
 .gnus file.

 Installing local imap servers only running on Ubuntu is thus inserting a
 difference that others won't be able to match. But if that's the way to go.

 Bernt, what's your IMAP server, by the way?

I use Cyrus on my network.

-Bernt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-collector : display problem with propview

2010-07-22 Thread Eric Schulte
Hi,

The following minimal patch to org-collector.el should remove tags from
the ITEM text, which will also remove the many \n characters.  Please
let me know if this works for you.

Thanks -- Eric

diff --git a/contrib/lisp/org-collector.el b/contrib/lisp/org-collector.el
index 72eb8f2..2646b3f 100644
--- a/contrib/lisp/org-collector.el
+++ b/contrib/lisp/org-collector.el
@@ -177,7 +177,7 @@ variables and values specified in props
   ;; collect the properties from every header
   (let* ((header-props
 	  (let ((org-trust-scanner-tags t))
-	(org-map-entries (quote (cons (cons ITEM (org-get-heading))
+	(org-map-entries (quote (cons (cons ITEM (org-get-heading t))
 	  (org-entry-properties)))
 			 match scope)))
 	 ;; read property values

d.tchin d.tc...@voila.fr writes:

 Hi

 I try to use org-collector. Since I have changed org-mode to release 7.01
 there is a modification in the display of propview.


 Below an example :

 -

 * View
 #+BEGIN: propview  :cols (ITEM CATEGORY) :scope tree :match Inside1 
 | ITEM | CATEGORY   |
 |+--|
 | Inside first a \n\n\n\n\n\n:Inside1: | firstentry |
 | Inside first b \n\n\n\n\n\n:Inside1: | firstentry |
 |+--|
 ||  |
 #+END:


 #+BEGIN: propview  :cols (ITEM CATEGORY) :scope tree :match Inside2 
 | ITEM   | CATEGORY|
 |--+---|
 | Inside second\n\n\n\n\n\n:Inside2: | secondentry |
 |--+---|
 |  |   |
 #+END:
   
 ** First entry
:PROPERTIES:
:CATEGORY:  firstentry
:END:
 *** Inside first a:Inside1:
 *** Inside first b:Inside1:
 ** Second entry
:PROPERTIES:
:CATEGORY:  secondentry
:END:   
 *** Inside second :Inside2:

 

 There were \n added after ITEM entry then the tag. 

 Subsidiary question : is it possible not to display the tag in propview
 ang ITEM entry. 


 GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
 Org-mode version 7.01



 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Personal accounting with emacs, org and...?

2010-07-22 Thread Eric Schulte
Eric S Fraga ucec...@ucl.ac.uk writes:

 On Thu, 22 Jul 2010 01:26:29 -0500, Russell Adams rlad...@adamsinfoserv.com 
 wrote:
 
 On Thu, Jul 22, 2010 at 01:20:58AM -0500, Marcelo de Moraes Serpa wrote:
  Hey list,
  
  I was wondering if anyone out there manages his personal accounting
  with org. I never really managed my personal finances, but I think
  it's about time to know where my money comes from and where it is
  going (and where the leaks are :P). I would use something like
  lessaccounting.com, but I would rather integrate it into my
  orgmode-based PIM. Any ideas?
 
 I use John Wiegley's Ledger (of Remember fame), which is a CLI tool
 that does reporting against plain text files.
 
 I do my expense reporting and business accounting in it. Very flexible
 and because it is text based, I can use version control and emacs.

 and, with org-babel, you can place your ledger entries in an org
 file...  I have a simple ob-ledger implementation which doesn't do
 tangling yet (as I don't yet know how to provide this level of
 support) but it does work for single blocks of ledger entries.

Tangling does not require *any* language specific support.  Since the
integration of Babel into Org-mode any type of code block should tangle
just fine.  For example the following minimal org file tangles a code
block of the fictional /schulte/ language to a file eric.sh

--8---cut here---start-8---
* top

#+begin_src schulte :tangle eric.sh
  hello world
#+end_src
--8---cut here---end---8---

It does look like there is fertile ground for Babel-Ledger
integration.

Best -- Eric

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Installing/updating org on the mac woes

2010-07-22 Thread Marcelo de Moraes Serpa
Hi list,

The current make install doesn't work for installing org on the mac. I
wanted to update to version 7 but emacs still loads version 6.33x. The
install task is copying files to /usr/local/share/emacs/site-lisp/.
What should in order to make emacs load from it ? (It seems Emacs.app
has org mode built in into the bundle).

Thanks,

Marcelo.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Installing/updating org on the mac woes

2010-07-22 Thread Marcelo de Moraes Serpa
Ops, forgot the question:

Any ideas on how I could fix it?

Cheers,

Marcelo.

On Thu, Jul 22, 2010 at 1:30 PM, Marcelo de Moraes Serpa
celose...@gmail.com wrote:
 Hi list,

 The current make install doesn't work for installing org on the mac. I
 wanted to update to version 7 but emacs still loads version 6.33x. The
 install task is copying files to /usr/local/share/emacs/site-lisp/.
 What should in order to make emacs load from it ? (It seems Emacs.app
 has org mode built in into the bundle).

 Thanks,

 Marcelo.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Installing/updating org on the mac woes

2010-07-22 Thread Eric Schulte
Hi Marcelo,

Ensuring that the path to the latest Org-mode is on the front of your
load path *before* you require org-install.  The following should work

(add-to-list 'load-path /usr/local/share/emacs/site-lisp/)
(require 'org-install)

Best -- Eric

Marcelo de Moraes Serpa celose...@gmail.com writes:

 Ops, forgot the question:

 Any ideas on how I could fix it?

 Cheers,

 Marcelo.

 On Thu, Jul 22, 2010 at 1:30 PM, Marcelo de Moraes Serpa
 celose...@gmail.com wrote:
 Hi list,

 The current make install doesn't work for installing org on the mac. I
 wanted to update to version 7 but emacs still loads version 6.33x. The
 install task is copying files to /usr/local/share/emacs/site-lisp/.
 What should in order to make emacs load from it ? (It seems Emacs.app
 has org mode built in into the bundle).

 Thanks,

 Marcelo.


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Installing/updating org on the mac woes

2010-07-22 Thread Marcelo de Moraes Serpa
Thanks Eric,

I've done it and I'm getting a confusing output from org-version:

Org-mode version 6.33x (release_7.01g.20.gdd484)

It seems it has updated, but it shows 6.33x as version and between
paranthesis it shows release 7.01. Any ideas?

Thanks,

Marcelo.

On Thu, Jul 22, 2010 at 1:46 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Hi Marcelo,

 Ensuring that the path to the latest Org-mode is on the front of your
 load path *before* you require org-install.  The following should work

 (add-to-list 'load-path /usr/local/share/emacs/site-lisp/)
 (require 'org-install)

 Best -- Eric

 Marcelo de Moraes Serpa celose...@gmail.com writes:

 Ops, forgot the question:

 Any ideas on how I could fix it?

 Cheers,

 Marcelo.

 On Thu, Jul 22, 2010 at 1:30 PM, Marcelo de Moraes Serpa
 celose...@gmail.com wrote:
 Hi list,

 The current make install doesn't work for installing org on the mac. I
 wanted to update to version 7 but emacs still loads version 6.33x. The
 install task is copying files to /usr/local/share/emacs/site-lisp/.
 What should in order to make emacs load from it ? (It seems Emacs.app
 has org mode built in into the bundle).

 Thanks,

 Marcelo.


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Installing/updating org on the mac woes

2010-07-22 Thread Juan
This is what I do.

I use emacs 24 (downloaded from emacsformacosx.com), not aquamacs
emacs.

I make a local copy of Makefile with the following changes to the header:

  ##--
  ##  YOU MUST EDIT THE FOLLOWING LINES
  ##--

  # Name of your emacs binary
  EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs

  # Where local software is found
  prefix=/Applications/Emacs.app

  # Where local lisp files go.
  lispdir = $(prefix)/Contents/Resources/lisp/org

  # Where info files go.
  infodir = $(prefix)/Contents/Resources/info

So I compile using this makefile:

  make -f my_makefile clean
  make -f my_makefile
  make -f my_makefile doc
  sudo make -f my_makefile install

The bad thing is that I have to update this makefile every time a new
version comes from the git repo. This happens with enough low
frequency as to avoid me finding a better way.

Regards,
.j.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Installing/updating org on the mac woes

2010-07-22 Thread Marcelo de Moraes Serpa
Thanks. What's the output of M-x org-version for you ?

Marcelol.

On Thu, Jul 22, 2010 at 2:06 PM, Juan pech...@computer.org wrote:
 This is what I do.

 I use emacs 24 (downloaded from emacsformacosx.com), not aquamacs
 emacs.

 I make a local copy of Makefile with the following changes to the header:

  ##--
  ##  YOU MUST EDIT THE FOLLOWING LINES
  ##--

  # Name of your emacs binary
  EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs

  # Where local software is found
  prefix=/Applications/Emacs.app

  # Where local lisp files go.
  lispdir = $(prefix)/Contents/Resources/lisp/org

  # Where info files go.
  infodir = $(prefix)/Contents/Resources/info

 So I compile using this makefile:

  make -f my_makefile clean
  make -f my_makefile
  make -f my_makefile doc
  sudo make -f my_makefile install

 The bad thing is that I have to update this makefile every time a new
 version comes from the git repo. This happens with enough low
 frequency as to avoid me finding a better way.

 Regards,
 .j.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Captions for source code

2010-07-22 Thread Eric Schulte
Hi Robert,

Currently captions are only supported for Tables and for Links, not for
code blocks.  Although the caption attribute is used by code blocks it
is only used to hold the code block name, not as an actual caption.

Adding real captions to code blocks (and moving the code block name to
it's own property) certainly seems like a good idea for future
development.  If anyone is interested the
`org-export-attach-captions-and-attributes' function is probably a good
place to start.  I've added this to my personal stack, but we'll see if
that ends up meaning anything.

Best -- Eric

Robert Klein rokl...@roklein.de writes:

 Hi list,

 I'm trying to get source code exported to HTML with captions, e.g. like:


 #+caption: Examples of variable declaration.
 #+begin_src sql
 SELECT 6*9;
 #+end_src

 There seems to be code in org-exp.el, see lines 2128 and
 following in version 7.01f of org-mode.

 However, I'm unable to find out what I'm doing wrong, atm.

 Do you know how I can get this working?

 Thank you very much!

 Best regards
 Robert

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-22 Thread Sébastien Vauban
Hi Tassilo,

Tassilo Horn wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Even if feasable, doing your way seems to add a layer of complexity to the
 installation... Would you have config to share, would I go that way?

 Sure, but be aware that I don't use that setup anymore.

Thanks a lot for the detailed information you provided us with... But may I
ask what's your current setup, then (did I miss that information in your
previous posts?)...

And why did you stop using it?

Once again, thanks a lot for the precious help you give me/us.

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-22 Thread Sébastien Vauban
Hi Matt,

Matt Lundin wrote:
 Tassilo Horn tass...@member.fsf.org writes:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Even if feasable, doing your way seems to add a layer of complexity to the
 installation... Would you have config to share, would I go that way?

 Here's my .offlineimaprc.  It synched from 2 different accounts from two
 different imap servers to one locally running dovecot server with 2
 user accounts uni and fastmail.  Those are only plain dovecot users,
 they don't require system users.

 I'd like to add that if you don't want to run dovecot as a daemon, you
 can invoke it as a process from both gnus and offlineimap. This
 simplifies setting up the dovecot.conf file considerably.

Always good to know. Thanks for the followup.

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Installing/updating org on the mac woes

2010-07-22 Thread Eric Schulte
Hi Marcelo,

I get the following output from org-version

Org-mode version 7.01trans (release_7.01g.21.g8bda0)

I agree it's upsetting that you are getting 6.33 for your main
org-version.  This value actually comes from the `org-version' variable,
so I'd recommend looking at this variable with the `describe-variable'
function (bound to C-h v).  From the variable page you can jump to the
source-code defining this variable in org.el, you can then do C-x C-f to
find out the directory in which org.el is located and therefore which
org-mode is being loaded.

If you're still loading org from an old directory you could try removing
that directory from your load-path *before* you require org-install.

Hope this helps.  Best -- Eric

Marcelo de Moraes Serpa celose...@gmail.com writes:

 Thanks Eric,

 I've done it and I'm getting a confusing output from org-version:

 Org-mode version 6.33x (release_7.01g.20.gdd484)

 It seems it has updated, but it shows 6.33x as version and between
 paranthesis it shows release 7.01. Any ideas?

 Thanks,

 Marcelo.

 On Thu, Jul 22, 2010 at 1:46 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Hi Marcelo,

 Ensuring that the path to the latest Org-mode is on the front of your
 load path *before* you require org-install.  The following should work

 (add-to-list 'load-path /usr/local/share/emacs/site-lisp/)
 (require 'org-install)

 Best -- Eric

 Marcelo de Moraes Serpa celose...@gmail.com writes:

 Ops, forgot the question:

 Any ideas on how I could fix it?

 Cheers,

 Marcelo.

 On Thu, Jul 22, 2010 at 1:30 PM, Marcelo de Moraes Serpa
 celose...@gmail.com wrote:
 Hi list,

 The current make install doesn't work for installing org on the mac. I
 wanted to update to version 7 but emacs still loads version 6.33x. The
 install task is copying files to /usr/local/share/emacs/site-lisp/.
 What should in order to make emacs load from it ? (It seems Emacs.app
 has org mode built in into the bundle).

 Thanks,

 Marcelo.


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-22 Thread Tassilo Horn
Sébastien Vauban wxhgmqzgw...@spammotel.com
writes:

Hi Sébastien,

 Even if feasable, doing your way seems to add a layer of complexity
 to the installation... Would you have config to share, would I go
 that way?

 Sure, but be aware that I don't use that setup anymore.

 Thanks a lot for the detailed information you provided us with... But
 may I ask what's your current setup, then (did I miss that information
 in your previous posts?)...

Sure.  Now I use Gnus only for newsgroups and KMail (with emacs(client)
as editor and a custom message-mode derived mode) for mails.

For the completeness, here's the mode:

--8---cut here---start-8---
(defvar th-kmail-tmp-file-regexp \\(kontact\\|kmail\\).*\\.tmp$
  Regexp that matches the file names of kmail's temporary files.)

(defun kmail-save-message-and-exit ()
  (interactive)
  (goto-char 0)
  (forward-line 1)
  (delete-region 1 (point))
  (save-buffer)
  (server-edit))

(define-derived-mode kmail-mode message-mode KMail
  Major mode for editing mails from kmail.
\\{kmail-mode-map}
  (goto-char 0)
  (insert --text follows this line--\n)
  (define-key kmail-mode-map (kbd C-c C-c) 'kmail-save-message-and-exit)
  (define-key kmail-mode-map (kbd C-c #)   'kmail-save-message-and-exit))

(add-hook 'kmail-mode-hook 'th-message-mode-init)

(add-to-list 'auto-mode-alist
 (cons th-kmail-tmp-file-regexp 'kmail-mode))

(add-to-list 'recentf-exclude th-kmail-tmp-file-regexp)
--8---cut here---end---8---


 And why did you stop using it?

I gave up on my offlineimap/dovecot/gnus combo (I used happily many
years) because I frequently subscribe to mailinglists for only a short
period of time, and this didn't work out too well with offlineimap.

And I like being able to restrict the message list incrementally by
simply entering parts of the author name or subject.  Gnus cannot do
that.  But I think there's a anything-source for that right now, but for
me it came a bit too late.

 Once again, thanks a lot for the precious help you give me/us.

I'm happy for being useful. :-)

Bye,
Tassilo


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [BABEL] help adding a language, please?

2010-07-22 Thread scrawler
Hi guys,

Org-mode newbie, here.  I'd like to add newlisp to the list
of languages that babel supports.  I got ob-template.el and
replaced all  occurrences of template with newlisp.

When I try to execute a code block, it fails, looking for
inf-newlisp.  That's inferior-mode, right?  Can I work
around that somehow?  There is a newlisp mode available
here:
http://github.com/may/newlisp-mode
I'm running Org-mode 7.01.

Org-mode is great!  I sure hope you guys are tolerant of
stupid questions, because I've got a bunch of them. 
:-)

-- 
signature riding a horse: clopclopclopclop
-tom

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Finding old appointments

2010-07-22 Thread Tassilo Horn
Hi all,

for some projects, I have tenth of appointment entry children with a
past timestamp.  They sometimes annoy me cause they make spotting the
actual entries harder.

Is there a way to spot such outdated entries, like building an agenda
view of outdated entries?  To be more precise, with outdated entry I
mean a headline that contains only past timestamps and has only finished
todos and is not tagged with ARCHIVE (cause then I already spotted it).

Maybe that's a task for a custom agenda view?  I have to admit, that I
didn't use those till now...

Bye,
Tassilo


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Personal accounting with emacs, org and...?

2010-07-22 Thread Eric S Fraga
On Thu, 22 Jul 2010 10:06:30 -0700, Eric Schulte schulte.e...@gmail.com 
wrote:
 
 Eric S Fraga ucec...@ucl.ac.uk writes:
 
  On Thu, 22 Jul 2010 01:26:29 -0500, Russell Adams 
  rlad...@adamsinfoserv.com wrote:
  
  On Thu, Jul 22, 2010 at 01:20:58AM -0500, Marcelo de Moraes Serpa wrote:
   Hey list,
   
   I was wondering if anyone out there manages his personal accounting
   with org. I never really managed my personal finances, but I think
   it's about time to know where my money comes from and where it is
   going (and where the leaks are :P). I would use something like
   lessaccounting.com, but I would rather integrate it into my
   orgmode-based PIM. Any ideas?
  
  I use John Wiegley's Ledger (of Remember fame), which is a CLI tool
  that does reporting against plain text files.
  
  I do my expense reporting and business accounting in it. Very flexible
  and because it is text based, I can use version control and emacs.
 
  and, with org-babel, you can place your ledger entries in an org
  file...  I have a simple ob-ledger implementation which doesn't do
  tangling yet (as I don't yet know how to provide this level of
  support) but it does work for single blocks of ledger entries.
 
 Tangling does not require *any* language specific support.  Since the
 integration of Babel into Org-mode any type of code block should tangle
 just fine.  For example the following minimal org file tangles a code
 block of the fictional /schulte/ language to a file eric.sh

Yes, thanks, I figured this out on the way home (the advantage of a
long commute is time to play!) before I got your email.  The tangling
works like a charm.  What's even better is that ability to specify the
tangle property as an org property which only affects code blocks
within a certain heading!  Fantastic.

 It does look like there is fertile ground for Babel-Ledger
 integration.

Attached is my simple, linux only, org-babel solution and an example
org file which uses it.  Note, I've still not had a chance to look at
the ob-template in Worg so I'm sure my ob-ledger file could be
improved...

Thanks again all those who have contributed to babel!

eric
;;; ob-ledger.el --- org-babel functions for ledger evaluation

;; Copyright (c) 2009 Eric S Fraga

;; based on code by
;; Copyright (C) 2009 Eric Schulte

;; Author: Eric Schulte
;; Keywords: literate programming, reproducible research
;; Homepage: http://orgmode.org
;; Version: 0.01

;;; License:

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

;;; Commentary:

;; Org-Babel support for evaluating ledger entries.
;;
;; This differs from most standard languages in that
;;
;; 1) there is no such thing as a session in ledger
;;
;; 2) we are generally only going to return output from the leger program
;;
;; 3) we are adding the cmdline header argument
;;
;; 4) there are no variables

;;; Code:
;; (require 'org-babel)

;;(org-babel-add-interpreter ledger)

;;(add-to-list 'org-babel-tangle-langs '(ledger ledger))

(defvar org-babel-default-header-args:ledger
  '((:results . output) (:cmdline . bal))
  Default arguments to use when evaluating a ledger source block.)

(defun org-babel-execute:ledger (body params)
  Execute a block of Ledger entries with org-babel.  This function is
called by `org-babel-execute-src-block'.
  (message executing Ledger source code block)
  (let ((result-params (split-string (or (cdr (assoc :results params)) )))
(cmdline (cdr (assoc :cmdline params)))
(in-file (make-temp-file org-babel-ledger))
(out-file (make-temp-file org-babel-ledger-output))
)
(with-temp-file in-file (insert body))
(message (concat ledger -f  in-file   cmdline))
(with-output-to-string (shell-command (concat ledger -f  in-file   
cmdlineout-file)))
(with-temp-buffer (insert-file-contents out-file) (buffer-string))
))

(defun org-babel-prep-session:ledger (session params)
  (error Ledger does not support sessions))

(provide 'ob-ledger)
;;; org-babel-ledger.el ends here

* ledger test
*** income and expenses
:PROPERTIES:
:tangle:   account.ledger
:END:
The property for this heading specifies where the tangled output of
the ledger code blocks in what follows should end up.
* income
  The first set of entries relates to income, either monthly pay or
 

Re: [Orgmode] Re: Installing/updating org on the mac woes

2010-07-22 Thread Marcelo de Moraes Serpa
Ah, it is still loading org from the Emacs.app application bundle:
/Applications/Emacs.app/Contents/Resources/lisp/org/org.el.gz. I had
to remove  the /Applications/Emacs.app/Contents/Resources/lisp/org
directory and then it loaded my other updated copy.

Marcelo.

On Thu, Jul 22, 2010 at 2:30 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Hi Marcelo,

 I get the following output from org-version

 Org-mode version 7.01trans (release_7.01g.21.g8bda0)

 I agree it's upsetting that you are getting 6.33 for your main
 org-version.  This value actually comes from the `org-version' variable,
 so I'd recommend looking at this variable with the `describe-variable'
 function (bound to C-h v).  From the variable page you can jump to the
 source-code defining this variable in org.el, you can then do C-x C-f to
 find out the directory in which org.el is located and therefore which
 org-mode is being loaded.

 If you're still loading org from an old directory you could try removing
 that directory from your load-path *before* you require org-install.

 Hope this helps.  Best -- Eric

 Marcelo de Moraes Serpa celose...@gmail.com writes:

 Thanks Eric,

 I've done it and I'm getting a confusing output from org-version:

 Org-mode version 6.33x (release_7.01g.20.gdd484)

 It seems it has updated, but it shows 6.33x as version and between
 paranthesis it shows release 7.01. Any ideas?

 Thanks,

 Marcelo.

 On Thu, Jul 22, 2010 at 1:46 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Hi Marcelo,

 Ensuring that the path to the latest Org-mode is on the front of your
 load path *before* you require org-install.  The following should work

 (add-to-list 'load-path /usr/local/share/emacs/site-lisp/)
 (require 'org-install)

 Best -- Eric

 Marcelo de Moraes Serpa celose...@gmail.com writes:

 Ops, forgot the question:

 Any ideas on how I could fix it?

 Cheers,

 Marcelo.

 On Thu, Jul 22, 2010 at 1:30 PM, Marcelo de Moraes Serpa
 celose...@gmail.com wrote:
 Hi list,

 The current make install doesn't work for installing org on the mac. I
 wanted to update to version 7 but emacs still loads version 6.33x. The
 install task is copying files to /usr/local/share/emacs/site-lisp/.
 What should in order to make emacs load from it ? (It seems Emacs.app
 has org mode built in into the bundle).

 Thanks,

 Marcelo.


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-mode 7.01, error while scheduling item

2010-07-22 Thread Marcelo de Moraes Serpa
Hey guys,

I updated to org-mode Org-mode version 7.01trans
(release_7.01g.20.gdd484), and when trying to schedule an item with
C-c s, I get the following error:

org-eval-in-calendar: Wrong type argument: window-live-p, nil

Any ideas?

Thanks,

Marcelo.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Personal accounting with emacs, org and...?

2010-07-22 Thread Eric Schulte
Eric S Fraga ucec...@ucl.ac.uk writes:

 On Thu, 22 Jul 2010 10:06:30 -0700, Eric Schulte schulte.e...@gmail.com 
 wrote:
[...]
 
 Tangling does not require *any* language specific support.  Since the
 integration of Babel into Org-mode any type of code block should tangle
 just fine.  For example the following minimal org file tangles a code
 block of the fictional /schulte/ language to a file eric.sh

 Yes, thanks, I figured this out on the way home (the advantage of a
 long commute is time to play!) before I got your email.  The tangling
 works like a charm.  What's even better is that ability to specify the
 tangle property as an org property which only affects code blocks
 within a certain heading!  Fantastic.


Great to hear.


 It does look like there is fertile ground for Babel-Ledger
 integration.

 Attached is my simple, linux only, org-babel solution and an example
 org file which uses it.  Note, I've still not had a chance to look at
 the ob-template in Worg so I'm sure my ob-ledger file could be
 improved...


After a quick scan your ob-ledger.el file looks great.  I wouldn't feel
obligated to add all of the functionality listed in the template.  Many
of our language files (e.g. dot, sass, etc...) are very simple.  I think
one of the big wins of our new setup is that language support can be
added in very small increments (e.g. [1]).

Please do let me know when you think this is stable enough for inclusion
into Org-mode.

Cheers -- Eric


 Thanks again all those who have contributed to babel!

 eric


Footnotes: 
[1]  as a mostly unrelated sidebar I've recently started using the
 following 4-line function in place of an ob-javascript.el, for
 embedding javascript in exported html

--8---cut here---start-8---
# Allow for exportation of JS code blocks into html
#+begin_src emacs-lisp :results silent :exports none
  ;; just to let us export the js directly into html
  (defun org-babel-execute:js (body params)
(format script type=\text/javascript\
  !--/*--![CDATA[/*!--*/\n%s\n/*]]*///--
  /script\n body))
#+end_src
--8---cut here---end---8---

Which allows js blocks in an org-mode document like the following to be
exported using the appropriate HTML script tags.

--8---cut here---start-8---
# play with the url of my homepage -- HTML5
#+begin_src js :results html :exports results
  var delay   = 150;
  var index   = 0;
  var word= eschulte/;
  var forward = true;
  function withTlda(str, ind){
  return str.slice(0,ind)+~+str.slice(ind,str.length)}
  function step(){
  window.history.replaceState(, , /+withTlda(word, index));
  if(forward) index++; else index--;
  if(index == (word.length-1) || index == 0) forward = !forward;
  if(forward  index == 1)
  setTimeout('step()', Math.floor(Math.random()*2));
  else
  setTimeout('step()', delay);}
  step();
#+end_src
--8---cut here---end---8---

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [ANN] List improvement v.2

2010-07-22 Thread Nicolas Goaziou
Hello,

Here is a new, and probably final feature-wise, suggestion of list
improvement in Org Mode.

Table of Contents
=
1 What is it about again ? 
2 Is that all ? 
2.1 Preserving blank lines 
2.2 Timer lists 
2.3 Automatic rules 
2.4 `org-apply-on-list' 
3 Where can it be tried ? 


1 What is it about again ? 
~~~

  I redefined lists in Org Mode. Lists start, as before, at a bullet
  (whose true regexp is at `org-item-beginning-re'), and end at either
  `org-list-end-regexp', a new headline, or, obviously, end of buffer.

  `org-list-end-regexp' is customizable and defaults to 2 blank lines,
  but `org-empty-line-terminates-plain-lists' has precedence over it.
  Moreover, any `org-list-end-regexp' found in special blocks does not
  end list. Here are two examples of valid lists:

  Case 1: `org-list-end-regexp' is at default value


  - First item
  
- Sub item

  #+BEGIN_EXAMPLE
  Two blank lines below
  
  
  Two blank lines above
  #+END_SRC
  
- Last sub item
  
  
  List has ended at the beginning of this line.

  Case 2: `org-list-end-regexp' is ^[ \t]*___[ \t]*\n


  - item 1
  - item 2
- sub-item
- sub-item 2
  - item 3
  __
  List has ended at the beginning of this line.

  Now, Org Mode knows when a list has ended and how to indent line
  accordingly. In other words, you can `org-return-indent' three times
  to exit a list and be at the right column to go on with the text.

  This new definition is also understood by exporters (LaTeX, DocBook,
  HTML or ASCII) and `org-list-end-regexp' will appear in source as a
  blank line, whatever its value is (as long as it starts with a caret
  and ends with a newline character, as specified in doc-string).

  Another advantage is that you can have two lists of different types
  in a row like in the example below:


  - item
  - item
  
  
  1. item
  2. item

  In this example, you can move (or cycle, or indent) items in the
  second list without worrying about changing the first one.

2 Is that all ? 


  Yes and no. I tried as much as possible to keep compatibility with
  previous implementation. But, as I was at it, I made a number of
  minor improvements I am now going to describe.

2.1 Preserving blank lines 
===

   `org-move-item-up' and `org-move-item-down' will not eat blank
   lines anymore. You can move an item up and down and stay assured
   list will keep its integrity.

   The same is true for `org-sort-list' that would previously collapse
   the list being sorted. Sorting is now safe.

   `org-insert-item', when 'plain-list-item is set to 'auto in
   `org-blank-before-new-entry' (the default, I think), will work hard
   to guess the appropriate number of blank lines to insert before the
   item to come. The function is also much more predictable (in
   previous version, trying to insert an item with point on a blank
   line between 2 items would create a new headline).

2.2 Timer lists 


   There are three improvements in timer lists (C-c C-x -).

   1. When a new item is created, it should be properly indented and
  not sticked to column 0 anymore,

   2. When an item is inserted in a pre-existing timer list, it will
  take profit of what has been done to `org-insert-item',

   3. `org-sort-list' can now sort timer lists with the t and T
  commands.

   /Note/: in order to preserve lists integrity, Org Mode will send an
   error if you try to insert a timer list inside a list of another
   type.

2.3 Automatic rules 


   I've added sets of rules (applied by default) that can improve
   lists experience. You can deactivate them individually by
   customizing `org-list-automatic-rules'.

   Bullet rule: Some may have noticed that you couldn't obtain *
as a bullet when cycling a list at column 0 or Org
would have taken them for headings.

I extended the idea. Now, * bullet will be changed
to - if you outdent it to column 0. This and the
fact that LaTeX exporter now recognizes such lists
as valid make *-lists very usable.

In the same register, cycling items of a
description list will not offer 1. or 1), as
ordered and description lists are incompatible.

   Checkbox rule: It replaces `org-provide-checkbox-statistics'
  which has become obsolete.

   Indent rule: This set prevents user from breaking his list by
inadvertence, when indenting or outdenting items
and sub-trees. Only moves that keep list integrity
are allowed.

The main advantage of it is when you insert a new
item and immediately press one or more TAB,

Re: [Orgmode] Correct babel format for ditaa?

2010-07-22 Thread John Hendy
I'm at a loss... I tried the minimal config and it worked... then I compared
it to my normal config and didn't see anything wrong so I tried it there and
it also worked. I did change the current figure from #+begin_ditaa to
#+begin_src ditaa... maybe I had a typo somewhere before?

I literally have no idea what happened. Maybe I changed something last night
before I left with my config but never re-ran things one final time?

Thanks for the help! Sorry I can't provide a better specific resolution to
the problem for future inquirers!


John

On Wed, Jul 21, 2010 at 8:06 PM, John Hendy jw.he...@gmail.com wrote:

 That works as does the attempt on my *home* computer. I was at work
 earlier. I'm truly perplexed as from memory I just cannot think of anything
 different between the home and work .emacs files that would do this. I want
 to go back and look at the load languages section from the work one, though,
 as I got the same error at home prior to adding that section. I'm wondering
 if I have a typo somewhere (though I did copy and paste what's below so just
 not sure!).

 I'll try again and post back tomorrow. I truly appreciate the help.

 John


 On Wed, Jul 21, 2010 at 10:22 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Hi John,

 Yes the following should be sufficient

 ;; setup ditaa
 (setq org-ditaa-jar-path ~/.elisp/org.git/contrib/scripts/ditaa.jar)
 (org-babel-do-load-languages
  'org-babel-load-languages
  '((ditaa . t)
   (gnuplot . t)))


 What happens if you try to evaluate the following in an Org-mode buffer
 with C-c C-c?

 #+begin_src ditaa :file example.png
  +---+
  |   |
  | ditaa example |
  |   |
  +---+
 #+end_src

 Best -- Eric

 John Hendy jw.he...@gmail.com writes:

  Thanks Eric... I should have included that my .emacs file has the
 following
  (which I followed from here:
  http://orgmode.org/Changes.html#ob-configuration-changes):
 
  ;; setup ditaa
  (setq org-ditaa-jar-path ~/.elisp/org.git/contrib/scripts/ditaa.jar)
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((ditaa . t)
 (gnuplot . t)))
  (require 'ob-ditaa)
 
  If I understand correctly, the (ditaa . t) and (require 'ob-ditaa) are
  redundant but since it wasn't working, I tried both. Is this what I need
 to
  have babel work with ditaa?
 
  Thanks for any input...
  John
 
  On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  Hi John,
 
  Yes, (1) below is the preferred format, however the ditaa language is
  not enabled by default.  Please customize the org-babel-load-languages
  variable to enable support for evaluating ditaa code blocks, and then
  try the code block syntax mentioned in (1) below again and a ditaa
  figure should be successfully exported.
 
  A benefit of the (1) (aka Babel) method below is that code blocks can
 be
  evaluated live from inside the Org-mode buffer with C-c C-c.  See
  Chapter 14 of the manual or the relevant portion of the quick guide
  http://orgmode.org/guide/Working-With-Source-Code.html for more
  information on using Babel.
 
  Best -- Eric
 
  John Hendy jw.he...@gmail.com writes:
 
   Hi,
  
  
   I have been having a difficult time with an export (which includes a
  ditaa
   graphic) to PDF via LaTeX recently and am puzzled by it. Which is the
   correct format?
  
   1) Supported by:
   - http://doc.norang.ca/org-mode.html#playingwithditaa
   - http://orgmode.org/Changes.html#ob-configuration-changes(indirectly
  seems
   to indicate this format?)
  
   #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
   ---
   Picture here
   ---
   #+end_src
  
  
   2) Supported by:
   - http://orgmode.org/worg/org-contrib/org-exp-blocks.php
   -
  
 
 http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html
  
   #+begin_ditaa file.png -r -S -s 2.5
   ---
   Picture here
   ---
   #+end_ditaa
  
   Only #2 is working for me currently, though I suspect that #1 is the
  'truer'
   form? Not sure what's going on...
  
  
   Thanks,
   John
  
   P.S. Is there a way to enlarge the output? Using the -s option only
 seems
  to
   make the resolution higher, not change the actual size (inches,
 pixels,
   whatever) in the LaTeX output...
   ___
   Emacs-orgmode mailing list
   Please use `Reply All' to send replies to the list.
   Emacs-orgmode@gnu.org
   http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [BABEL] help adding a language, please?

2010-07-22 Thread Eric Schulte
Hi,

scraw...@gmail.com writes:

 Hi guys,

 Org-mode newbie, here.  I'd like to add newlisp to the list
 of languages that babel supports.

That's fantastic.

 I got ob-template.el and replaced all occurrences of template with
 newlisp.

 When I try to execute a code block, it fails, looking for
 inf-newlisp.  That's inferior-mode, right?  Can I work
 around that somehow?  There is a newlisp mode available
 here:
 http://github.com/may/newlisp-mode
 I'm running Org-mode 7.01.


This depends if you'd rather execute newlisp code blocks in a session
(i.e. in an inferior newlisp buffer, which would require newlisp-mode),
or if you'd rather evaluate newlisp externally.  Most languages support
both types of evaluation, but I'd recommend starting with a single
execution mode (whichever will be simpler to implement), and then
incrementally adding functionality.

I just installed newlisp locally, it looks like a nice language, I may
start using this as I've been looking for a light-weight lisp/scheme for
small scripting tasks.

I just put together the following, which works for me as a simple
evaluation function -- note this takes the external evaluation path.

--8---cut here---start-8---
(defun org-babel-execute:newlisp (body params)
  (let ((tmp-file (make-temp-file org-babel-newlisp)))
(with-temp-file tmp-file
  (insert
   (format (println (begin\n%s\n))\n(exit) body)))
(prog1 (org-babel-eval (format newlisp -f %s tmp-file) )
  (delete-file tmp-file
--8---cut here---end---8---

Note, this doesn't make use of *any* of Babels header argument
functionality, but it could serve as a place to start.


 Org-mode is great!  I sure hope you guys are tolerant of
 stupid questions, because I've got a bunch of them. 
 :-)

Please don't be shy about asking questions, we can be a very
understanding bunch.

Happy Hacking -- Eric

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [BABEL] help adding a language, please?

2010-07-22 Thread David O'Toole
Is there an instruction manual documenting how the new org-babel
language extensions should work? This would really be helpful, because
I had trouble figuring out how to make sessions work in the pre-7.0
api (i'm adding Common Lisp support.) Documenting for how a language
extension is supposed to behave, would be great.

On Thu, Jul 22, 2010 at 4:13 PM,  scraw...@gmail.com wrote:
 Hi guys,

 Org-mode newbie, here.  I'd like to add newlisp to the list
 of languages that babel supports.  I got ob-template.el and
 replaced all  occurrences of template with newlisp.

 When I try to execute a code block, it fails, looking for
 inf-newlisp.  That's inferior-mode, right?  Can I work
 around that somehow?  There is a newlisp mode available
 here:
 http://github.com/may/newlisp-mode
 I'm running Org-mode 7.01.

 Org-mode is great!  I sure hope you guys are tolerant of
 stupid questions, because I've got a bunch of them.
 :-)

 --
 signature riding a horse: clopclopclopclop
 -tom

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Personal accounting with emacs, org and...?

2010-07-22 Thread Eric S Fraga
On Thu, 22 Jul 2010 13:43:00 -0700, Eric Schulte schulte.e...@gmail.com 
wrote:
 
 Eric S Fraga ucec...@ucl.ac.uk writes:

[...]

  Attached is my simple, linux only, org-babel solution and an example
  org file which uses it.  Note, I've still not had a chance to look at
  the ob-template in Worg so I'm sure my ob-ledger file could be
  improved...
 
 
 After a quick scan your ob-ledger.el file looks great.  I wouldn't feel
 obligated to add all of the functionality listed in the template.  Many
 of our language files (e.g. dot, sass, etc...) are very simple.  I think
 one of the big wins of our new setup is that language support can be
 added in very small increments (e.g. [1]).
 
 Please do let me know when you think this is stable enough for inclusion
 into Org-mode.

Well, it's stable enough in that I wrote it more than 6 months ago and
it hasn't changed in that time other than to update to the new babel
layout.  I don't intend to do anything on it immediately in any case
as it works for my use case!

In other words, I'd be happy if it were included in org-mode at your
discretion.

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Installing/updating org on the mac woes

2010-07-22 Thread Juan
On Thu, Jul 22, 2010 at 02:07:47PM -0500, Marcelo de Moraes Serpa wrote:
 Thanks. What's the output of M-x org-version for you ?

7.01 trans.

.j.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Installing/updating org on the mac woes

2010-07-22 Thread David Maus
Juan wrote:
This is what I do.

I use emacs 24 (downloaded from emacsformacosx.com), not aquamacs
emacs.

I make a local copy of Makefile with the following changes to the header:

 [snip]

The bad thing is that I have to update this makefile every time a new
version comes from the git repo. This happens with enough low
frequency as to avoid me finding a better way.

Maybe this FAQ entry will help:

,
| How can I keep local changes and still track Org mode development?
| 
http://orgmode.org/worg/org-faq.php#keeping-local-changes-current-with-Org-mode-development
`

HTH,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpaHtEtM9zLw.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-mode 7.01, error while scheduling item

2010-07-22 Thread David Maus
Marcelo de Moraes Serpa wrote:
I updated to org-mode Org-mode version 7.01trans
(release_7.01g.20.gdd484), and when trying to schedule an item with
C-c s, I get the following error:

org-eval-in-calendar: Wrong type argument: window-live-p, nil

Any ideas?

Can you provide a backtrace for this error?

M-x toggle-debug-on-error RET

and hit the bug.

And which Emacs version do you use?

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpEwoJonfnyI.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode