[Orgmode] Re: Org and financial data

2009-01-06 Thread Memnon Anon
Hi!

Manish mailtomanish.sha...@gmail.com writes:

 Have you considered (a more convenient and flexible approach, IMHO)
 John Weigley's Ledger [1]

Well, I heard of it. But I am hesitating to learn another tool.
But hey, there is a Debian Package, so I will have a look at it.
This sentence from the info file looks promising:

, [Ledger Info File: 1. Introduction
|  As you keep your ledger, you are recording information about your
| life and habits, and sometimes that information can start telling you
| things you aren't aware of.  Such is the aim of all good accounting
| tools.
`

I just thought this would be way too sophisticated for my simple needs.
Thanks for the tip, I am looking into it ...




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


Re: [Orgmode] Agenda column view conflicts with diary inclusion

2009-01-06 Thread Carsten Dominik

Hi Matt, how about a backtrace, and maybe you can try
to figure out which line in your diary file causes the problem?

- Carsten

On Jan 5, 2009, at 2:46 AM, Matthew Lundin wrote:



When I include diary entries in the agenda, I get the following error
while calling columns view in the agenda:

org-entry-properties: Wrong type argument: stringp, nil

When I turn off diary inclusion by typing D, the problem goes away.

Certainly, it is trivial to turn off diary inclusion before calling
columns view or to create a custom agenda command that does the same,
but I thought I'd report this behavior.

Thanks,
Matt



___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: possible bug in publish

2009-01-06 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jan 6, 2009, at 4:28 AM, Richard Riley wrote:



Hi Carsten

See here:

http://richardriley.net/default/projects/xmonad/index.html

note the contents pane with foreground: wheat .

The publish has treated an included src file as org file and assumed  
the

source lines were org levels.

regards


r.




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


Re: [Orgmode] Re: extensible syntax

2009-01-06 Thread Carsten Dominik


On Jan 5, 2009, at 5:19 PM, Samuel Wales wrote:


Hello again :),

Let me provide examples -- using footnotes.

All footnote references and definitions would be inside
$[...].  (As mentioned in my previous post.)

There was a concern about keeping code executable.  You can
use a parameter to specify whether you want the footnote to:

 - disappear in the code (thus keeping the code executable
   without having to use comments, so that the reference is
   at the correct position in the line, yet keeping the
   link pointing to the correct position)
 - or show up as a numbered or labeled reference

The reference can look like:

 (defun my-example-defun $[fn defun name :invisible t] ()
   (interactive P) ;$[fn interactive]
   ...

The second reference is visible, but the first is not.  Note
that this allows references with spaces (or anything else).
No need to worry about syntax conflicts within org.

There was also a concern about conflicting with code syntax.
Your decision as a user is whether you want $[...] to be
interpreted as code or footnote.  You could want either one.

To make it be interpreted as code, you simply prefix the $
with a \.  That takes away org's special handling of the
syntax.  org's footnote code merely checks for a \ in front
of the $ and then it knows not to do anything except remove
the \.

In fact, the footnote code doesn't even have to do that.
The org extensible syntax code (the code for $[...]) is what
does it.  The footnote code simply calls the extensible
syntax code.

To make it be a footnote, you don't do anything.

This will work for all code examples you can dream up.
There is no need to worry about which languages have $[...]
in them.

The advantage is that for future features, the same
solutions will work.  And since the syntax is extensible, it
will work for completely new features.

Finally, the escaping scheme should be familiar to users, as
it is a common method in programming languages.

Is this idea possibly of interest?


Hi Samuel,

this is interesting and I will keep it in mind for the next
syntax change we will need.

Thanks.

- Carsten





--
For personal gain, myalgic encephalomyelitis denialists are knowingly
causing further suffering and death by grossly corrupting science.  Do
you care about the world?
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Suggestion with bad patch for org-remember-templates

2009-01-06 Thread Wes Hardaker
 On Mon, 5 Jan 2009 19:41:09 +0100, Carsten Dominik 
 domi...@science.uva.nl said:

 The only benefit to using another buffer is if the person canceled the
 request (ctrl-g) in mid-selection then the original contents of the
 remember buffer would be unaltered.

CD There are more reasons why it matters.

Ok, I could certainly argue further but it doesn't matter to me which
way it goes.  I'm fine with either way :-)

 --
 In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find.  -- Terry Pratchett

CD I do love this citation in your signature..

If you haven't read any of his books, then I strongly suggest you do.
He's a fantastic author full of quips like that.  I have a very hard
time choosing between quotes of his.  I'll change it for this message
for you :-)

Suggested key sequence for you:

ctrl-c r Buy _The Color of Magic_ by /Terry Pratchett/ and read it ctrl-c ctrl-c

-- 
The trouble with having an open mind, of course, is that people will
 insist on coming along and trying to put things in it.   -- Terry Pratchett


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


Re: [Orgmode] Agenda column view conflicts with diary inclusion

2009-01-06 Thread Matthew Lundin

Hi Carsten, 

Carsten Dominik domi...@science.uva.nl writes:

 Hi Matt, how about a backtrace, and maybe you can try
 to figure out which line in your diary file causes the problem?

 - Carsten

Absolutely. I've put the results below, along with a sample diary file
I ran the test on and my configuration. I'm copying a backtrace for
the first time, so feel free to tell me if I've failed to include
something.

First, before I include the results, I believe I've identified the
culprit: it's the syntax for generic monthly events in the diary,
e.g.,

*/3 Monthly meeting

When I remove this line from the sample diary file, agenda column view
works fine. 

(By the way, this was the impetus I needed to switch all my
appointments to org-mode, since it's so nice to be able to add notes
to events in org-mode files.)

Best,
Matt

---begin Backtrace---

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  looking-at(nil)
  org-entry-properties(#marker at 1 in diary)
  byte-code(ÆÇ!ˆÈ ˆ`ɓˆÉ‰‰12ÊË!ƒƒ2Ë234Ì4!3Lˆ*‚—ÍÎ 
Ï\‰ƒ^Ð\fÑÒ#†YrÓ\f!qˆ5)2‚—ÊÔ!ƒvÕÔ!ƒvƒv2‚—ÖeÏ\‰ƒ—Í\fÏ\Ð\fÑÒ#†•rÓ\f!qˆ5)22†ž52Ô234Ì4!3Lˆ*×2!ˆ6ƒ¿Ø7!ˆŠebˆm„=Í`Ï\†ÒÍ`Ù\‰ƒ6Ú\f!Û8\‰ƒñÜÝ\nA†íÞ\„9ƒÍ`ß\‰ƒà
!áâGãä %ˆ8BBÉ:Š:ƒ 
:bˆnƒ(å‚)âæå`\\\*B1B1çè!ˆ‚Ã1…†é21\ê
34Ì4!3Lˆ*ë ˆìÊí!…d-34Ì4!3L*ƒwíâ!ˆîï1\ˆ;…†ð1!.‡ 
[org-columns-begin-marker d a p m maxwidths org-verify-version columns 
org-columns-remove-overlays nil boundp org-agenda-overriding-columns-format 
make-variable-buffer-local get-text-property point-at-bol org-hd-marker 
org-entry-get COLUMNS t marker-buffer org-columns-current-fmt 
local-variable-p next-single-property-change org-columns-compile-format 
org-agenda-colview-compute org-marker org-entry-properties assoc string-match 
\\S-  duration org-minutes-to-hh:mm-string put-text-property 0 face 
org-warning 1 count-lines beginning-of-line 2 org-columns-get-autowidth-alist 
org-columns-current-maxwidths org-columns-display-here-title 
org-columns-flyspell-was-active flyspell-mode mapc #[(x) �...@!ˆÂa!‡ [x 
goto-line org-columns-display-here] 2] org-agenda-colview-summarize cache ...] 
7)
* org-agenda-columns()
  call-interactively(org-agenda-columns)

---end Backtrace---

---begin diary file---

*/6 Monthly meeting
Thursday Weekly discussion
%%(and (= 1 (calendar-day-of-week date)) (diary-block 1 12 2009 2 28 2009)) 
3:30pm-5:00pm Weekly meeting
%%(diary-anniversary 3 5 1975) James turns %d
%%(diary-block 1 19 2009 1 22 2009) Chicago trip 
Jan 7, 2009 2:00pm meeting

---end diary file

---begin diary configuration---

(setq diary-file ~/diary)
(setq cal-tex-diary t)
(setq cal-tex-holidays nil)

(setq view-diary-entries-initially t)
(setq mark-diary-entries-in-calendar t)
(setq number-of-diary-entries 1)
(add-hook 'diary-display-hook 'fancy-diary-display)
(add-hook 'list-diary-entries-hook 'sort-diary-entries t)
(add-hook 'today-visible-calendar-hook 'calendar-mark-today)

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


[Orgmode] Re: Suggestion with bad patch for org-remember-templates

2009-01-06 Thread Carsten Dominik


On Jan 6, 2009, at 3:32 PM, Wes Hardaker wrote:

On Mon, 5 Jan 2009 19:41:09 +0100, Carsten Dominik domi...@science.uva.nl 
 said:


The only benefit to using another buffer is if the person canceled  
the

request (ctrl-g) in mid-selection then the original contents of the
remember buffer would be unaltered.


CD There are more reasons why it matters.

Ok, I could certainly argue further but it doesn't matter to me which
way it goes.  I'm fine with either way :-)


--
In the bathtub of history the truth is harder to hold than the  
soap,

and much more difficult to find.  -- Terry Pratchett


CD I do love this citation in your signature..

If you haven't read any of his books, then I strongly suggest you do.
He's a fantastic author full of quips like that.  I have a very hard
time choosing between quotes of his.  I'll change it for this message
for you :-)

Suggested key sequence for you:

ctrl-c r Buy _The Color of Magic_ by /Terry Pratchett/ and read it  
ctrl-c ctrl-c


I do have that one, and about 8 others... :-)

- Carsten



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


[Orgmode] Keeping Org footnotes where they are defined in HTML export

2009-01-06 Thread Madhu

From the Changes.html file for 6.11:
,
| Footnotes in HTML export are now collected at the end of the document.
| 
| Previously footnotes would be left in the document where they are
| defined, now they are all collected and put into a special div at
| the end of the document.
`

Turns out the previous behaviour is exactly what I wanted.  How would
I go about getting this behaviour back?

--
Madhu


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


Re: [Orgmode] Agenda column view conflicts with diary inclusion

2009-01-06 Thread Carsten Dominik

fixed, thanks.

- Carsten

On Jan 6, 2009, at 4:01 PM, Matthew Lundin wrote:



Hi Carsten,

Carsten Dominik domi...@science.uva.nl writes:


Hi Matt, how about a backtrace, and maybe you can try
to figure out which line in your diary file causes the problem?

- Carsten


Absolutely. I've put the results below, along with a sample diary file
I ran the test on and my configuration. I'm copying a backtrace for
the first time, so feel free to tell me if I've failed to include
something.

First, before I include the results, I believe I've identified the
culprit: it's the syntax for generic monthly events in the diary,
e.g.,

*/3 Monthly meeting

When I remove this line from the sample diary file, agenda column view
works fine.

(By the way, this was the impetus I needed to switch all my
appointments to org-mode, since it's so nice to be able to add notes
to events in org-mode files.)

Best,
Matt

---begin Backtrace---

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
 looking-at(nil)
 org-entry-properties(#marker at 1 in diary)
 byte-code(ÆÇ!ˆÈ ˆ`ɓˆÉ‰‰‰‰‰‰12ÊË!ƒƒ2Ë234Ì4! 
3Lˆ*‚—ÍÎ Ï\‰ƒ^Ð\fÑÒ#†YrÓ\f!qˆ5)2‚—ÊÔ!ƒvÕÔ!ƒvƒv2‚—ÖeÏ\‰ƒ—Í 
\fÏ\Ð\fÑÒ#†•rÓ\f!qˆ5)22†ž52Ô234Ì4!3Lˆ*×2!ˆ6ƒ¿Ø7!ˆŠ 
ebˆm„=Í`Ï\†ÒÍ`Ù\‰ƒ6Ú\f!Û8\‰ƒñÜÝ\nA†íÞ\„9ƒÍ`ß 
\‰ƒà	!áâ	Gãä	%ˆ8	BBÉ:Š:ƒ :bˆnƒ(å‚)âæå`\\\*B1B1çè!ˆ‚ 
Ã1

†é21\ê
34Ì4!3Lˆ*ë ˆìÊí!
d-34Ì4!3L*ƒwíâ!ˆîï1\ˆ;
†ð1!.‡ [org-columns-begin-marker d a p m maxwidths org-verify- 
version columns org-columns-remove-overlays nil boundp org-agenda- 
overriding-columns-format make-variable-buffer-local get-text- 
property point-at-bol org-hd-marker org-entry-get COLUMNS t marker- 
buffer org-columns-current-fmt local-variable-p next-single-property- 
change org-columns-compile-format org-agenda-colview-compute org- 
marker org-entry-properties assoc string-match \\S-  duration  
org-minutes-to-hh:mm-string put-text-property 0 face org-warning 1  
count-lines beginning-of-line 2 org-columns-get-autowidth-alist org- 
columns-current-maxwidths org-columns-display-here-title org-columns- 
flyspell-was-active flyspell-mode mapc #[(x) Ã...@!ˆÂa!‡ [x goto- 
line org-columns-display-here] 2] org-agenda-colview-summarize  
cache ...] 7)

* org-agenda-columns()
 call-interactively(org-agenda-columns)

---end Backtrace---

---begin diary file---

*/6 Monthly meeting
Thursday Weekly discussion
%%(and (= 1 (calendar-day-of-week date)) (diary-block 1 12 2009 2 28  
2009)) 3:30pm-5:00pm Weekly meeting

%%(diary-anniversary 3 5 1975) James turns %d
%%(diary-block 1 19 2009 1 22 2009) Chicago trip
Jan 7, 2009 2:00pm meeting

---end diary file

---begin diary configuration---

(setq diary-file ~/diary)
(setq cal-tex-diary t)
(setq cal-tex-holidays nil)

(setq view-diary-entries-initially t)
(setq mark-diary-entries-in-calendar t)
(setq number-of-diary-entries 1)
(add-hook 'diary-display-hook 'fancy-diary-display)
(add-hook 'list-diary-entries-hook 'sort-diary-entries t)
(add-hook 'today-visible-calendar-hook 'calendar-mark-today)

---end diary configuration---




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


Re: [Orgmode] Keeping Org footnotes where they are defined in HTML export

2009-01-06 Thread Carsten Dominik


On Jan 6, 2009, at 4:21 PM, Madhu wrote:



From the Changes.html file for 6.11:
,
| Footnotes in HTML export are now collected at the end of the  
document.

|
| Previously footnotes would be left in the document where they are
| defined, now they are all collected and put into a special div at
| the end of the document.
`

Turns out the previous behaviour is exactly what I wanted.  How would
I go about getting this behaviour back?



You cannot, unfortunately.  I think the current behavior
is much cleaner and better.

- Carsten



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


Re: [Orgmode] Org and financial data

2009-01-06 Thread Matthew Lundin

Hi Memnon,
Memnon Anon gegendosenflei...@googlemail.com writes:

 Hi!

 A new year has started and I try to get even more organized.
 So, I think it is time to keep track of my financial data, and
 I think orgmode is the way to go.

If your needs are simple (i.e., just tracking discretionary spending)
you might consider using properties and column views to keep track of
where your money is going. I find that this creates a nice way to sum
up weekly, monthly, and yearly expenditures. I described my admittedly
simple setup in this post:

http://article.gmane.org/gmane.emacs.orgmode/9827

I create a tree for each year, a subtree for each month, and a subtree
for each week, such as:

---begin org file---

#+COLUMNS: %30ITEM(Item) %15spendtype(Category) %10amount(Amount){$} 
%10goal(Goal){$} 
#+PROPERTY: spendtype_all food office household entertainment

* 2008
** December 
   :PROPERTIES:
   :END:
*** Week One (November 29-December 6)
:PROPERTIES:
:goal: #fill in your own goal here#
:END:
 Post Office[2008-12-02 Tue]
 :PROPERTIES:
 :amount:   14.40
 :spendtype: office
 :END:
 Grocery store[2008-12-04 Thu]
 :PROPERTIES:
 :amount:   18.86
 :spendtype: food
 :END:
 
# More entries can go here.

---end property---

With this setup, column views provides a nice summary of weekly and
monthly spending. If you like, you can also add weekly goals to the
headline for the week and compare yearly, monthly, weekly sums to your
goals.

To search for a type of spending you easily do a tag search (e.g, C-a
m +spendtype=food), optionally restricting the search to a
particular subtree. You could then use columns view in the agenda to
see the total.

Warning: property searches will be really slow if you don't restrict
them to your spending file. If you prefer, you could easily use tags
to keep track of types of spending.

Finally, Eric Schulte's org-collector.el is great for creating
filtered tables of results. See this thread for more information:
http://thread.gmane.org/gmane.emacs.orgmode/9908

For more sophisticated financial tracking, I'd probably recommend a
tool devoted to that purpose.

Best,
Matt


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


Re: [Orgmode] Org and financial data

2009-01-06 Thread Matthew Lundin
Matthew Lundin m...@imapmail.org writes:

 To search for a type of spending you easily do a tag search (e.g, C-a
 m +spendtype=food), optionally restricting the search to a
 particular subtree. You could then use columns view in the agenda to
 see the total.

Sorry, I always goof up the keybindings. The C-a m above should read
C-c a m.

- Matt



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


[Orgmode] Re: shortcut keys for mark ups

2009-01-06 Thread Bernt Hansen
Xin Shi x...@cornell.edu writes:

 In org mode, are there any shortcut keys for typing the following mark-ups?

 #+BEGIN_EXAMPLE
 #+END_EXAMPLE

Not that I'm aware of.  You can use a function like the following to
achieve this - or maybe you can use yasnippets (I've never tried that
yet)


(defun bth-begin-example ()
  (interactive)
  (save-excursion
(beginning-of-line)
(insert #+BEGIN_EXAMPLE\n)
(end-of-line)
(insert \n#+END_EXAMPLE)))


(global-set-key (kbd f9 e) 'bth-begin-example)


Then you can just type f9 e while on a line and it'll put the EXAMPLE
block around the current line.

HTH,

-Bernt


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


[Orgmode] BUG-Repeated task deadlines from last year not displayed on the agenda

2009-01-06 Thread Bernt Hansen
Hi Carsten,

I've been bad and let a couple of my overhead tasks slip past their
deadline dates.

*** TODO Q1 Accounting: October
DEADLINE: 2008-11-30 Mon +1y
- CLOSING NOTE [2008-01-30 Wed 12:18]

This task does not show up on my agenda anymore (probably because the
year changed).  If I change the deadline entry to this:

DEADLINE: 2008-11-30 Mon

then it shows up as 37 days late.  I'm bringing this up as soon as I
noticed it just so people are aware of this.  I have a few of these
tasks that just dropped off my agenda (probably at the beginning of the
year).

Regards,
Bernt




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


Re: [Orgmode] shortcut keys for mark ups

2009-01-06 Thread Carsten Dominik


Hi Xin,

there is only an undocumented way to do this:

On an empty line, insert e and then type TAB.

See org-structure-template-alist for a configurable list of similar  
templates.


HTH

- Carsten


On Jan 6, 2009, at 5:35 PM, Xin Shi wrote:


Hello,

In org mode, are there any shortcut keys for typing the following  
mark-ups?


#+BEGIN_EXAMPLE
#+END_EXAMPLE

Thanks!

Xin



___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] shortcut keys for mark ups

2009-01-06 Thread Xin Shi

Hi Carsten,

That's cool! I think it'll be great to document them on the org-manual.

Xin


Carsten Dominik wrote:


Hi Xin,

there is only an undocumented way to do this:

On an empty line, insert e and then type TAB.

See org-structure-template-alist for a configurable list of similar 
templates.


HTH

- Carsten


On Jan 6, 2009, at 5:35 PM, Xin Shi wrote:


Hello,

In org mode, are there any shortcut keys for typing the following 
mark-ups?


#+BEGIN_EXAMPLE
#+END_EXAMPLE

Thanks!

Xin



___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: shortcut keys for mark ups

2009-01-06 Thread Xin Shi

Hi Bernt,

Thanks for your reply! That's what I was trying to do. But I think 
Carsten's suggestion of using the org-structure-template-alist is more 
appealing to general user.


Xin


Bernt Hansen wrote:

Xin Shi x...@cornell.edu writes:

  

In org mode, are there any shortcut keys for typing the following mark-ups?

#+BEGIN_EXAMPLE
#+END_EXAMPLE



Not that I'm aware of.  You can use a function like the following to
achieve this - or maybe you can use yasnippets (I've never tried that
yet)


(defun bth-begin-example ()
  (interactive)
  (save-excursion
(beginning-of-line)
(insert #+BEGIN_EXAMPLE\n)
(end-of-line)
(insert \n#+END_EXAMPLE)))


(global-set-key (kbd f9 e) 'bth-begin-example)


Then you can just type f9 e while on a line and it'll put the EXAMPLE
block around the current line.

HTH,

-Bernt
  




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


[Orgmode] Function to get the title of a heading

2009-01-06 Thread Daniel Clemente

Hi,

  I want to get the title of some entry in Elisp. That is, from this heading:

*** TODO Do something!

  I want the Do something!.


  I know no function to do this; although there is probably one. What I found 
is:

-  (org-entry-properties) returns the TODO keyword, the tags, and the category, 
but not the title.
-  (org-get-entry) has no useful documentation but it seems to return the 
content, not the heading.
-  (org-get-header HEADER) does something else related to mail; it seems to be 
unused and not much documented.
-  (org-get-heading t) seems to return the full line (even with keyword), but 
with properties:

#(TODO Do something! 0 4
  (org-category test1 fontified t face org-todo)
  4 18
  (org-category test1 fontified t face org-level-3))


  Based on this, I did a function to remove the TODO keyword and the properties.

(defun org-get-heading-title ()
Returns the heading of the current entry as a string, without the leading 
stars, the TODO keyword or the tags.
(let (
  (title-with-props (org-get-heading t))
  (keyword (org-get-todo-state))
  )
  (substring-no-properties title-with-props (if keyword (1+ (length keyword
  )
)

  Suggestions:
- This could also be implemented as a parameter to (org-get-heading).
- Or the title returned in (org-entry-properties)
- And (org-get-header HEADER) could be removed.
- In any case, such a function can be included in Org-mode so that it is easy 
to find.


  Thanks,
Daniel


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


Re: [Orgmode] Re: shortcut keys for mark ups

2009-01-06 Thread Carsten Dominik


On Jan 6, 2009, at 7:50 PM, Xin Shi wrote:


Hi Bernt,

Thanks for your reply! That's what I was trying to do. But I think  
Carsten's suggestion of using the org-structure-template-alist is  
more appealing to general user.


I do like thought that Bernt puts his template around the current  
line.


- Carsten




Xin


Bernt Hansen wrote:

Xin Shi x...@cornell.edu writes:


In org mode, are there any shortcut keys for typing the following  
mark-ups?


#+BEGIN_EXAMPLE
#+END_EXAMPLE



Not that I'm aware of.  You can use a function like the following to
achieve this - or maybe you can use yasnippets (I've never tried that
yet)


(defun bth-begin-example ()
 (interactive)
 (save-excursion
   (beginning-of-line)
   (insert #+BEGIN_EXAMPLE\n)
   (end-of-line)
   (insert \n#+END_EXAMPLE)))


(global-set-key (kbd f9 e) 'bth-begin-example)


Then you can just type f9 e while on a line and it'll put the  
EXAMPLE

block around the current line.

HTH,

-Bernt





___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: BUG-Repeated task deadlines from last year not displayed on the agenda

2009-01-06 Thread Carsten Dominik

Hmmm, looks like we are right up there with the ZUNE 30 ... :-(

- Carsten

On Jan 6, 2009, at 7:06 PM, Bernt Hansen wrote:


Hi Carsten,

I've been bad and let a couple of my overhead tasks slip past their
deadline dates.

*** TODO Q1 Accounting: October
   DEADLINE: 2008-11-30 Mon +1y
   - CLOSING NOTE [2008-01-30 Wed 12:18]

This task does not show up on my agenda anymore (probably because the
year changed).  If I change the deadline entry to this:

   DEADLINE: 2008-11-30 Mon

then it shows up as 37 days late.  I'm bringing this up as soon as I
noticed it just so people are aware of this.  I have a few of these
tasks that just dropped off my agenda (probably at the beginning of  
the

year).

Regards,
Bernt






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


Re: [Orgmode] Re: shortcut keys for mark ups

2009-01-06 Thread Richard Riley

Or use the org-mode map rather than global key

(define-key org-mode-map  (kbd C-f9) '(lambda()(interactive)(insert 
#+BEGIN_EXAMPLE\n\n#+END_EXAMPLE)(previous-line)))


Xin Shi x...@cornell.edu writes:

 Hi Bernt,

 Thanks for your reply! That's what I was trying to do. But I think
 Carsten's suggestion of using the org-structure-template-alist is
 more appealing to general user.

 Xin


 Bernt Hansen wrote:
 Xin Shi x...@cornell.edu writes:

   
 In org mode, are there any shortcut keys for typing the following mark-ups?

 #+BEGIN_EXAMPLE
 #+END_EXAMPLE
 

 Not that I'm aware of.  You can use a function like the following to
 achieve this - or maybe you can use yasnippets (I've never tried that
 yet)

 
 (defun bth-begin-example ()
   (interactive)
   (save-excursion
 (beginning-of-line)
 (insert #+BEGIN_EXAMPLE\n)
 (end-of-line)
 (insert \n#+END_EXAMPLE)))


 (global-set-key (kbd f9 e) 'bth-begin-example)
 

 Then you can just type f9 e while on a line and it'll put the EXAMPLE
 block around the current line.

 HTH,

 -Bernt
   



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

-- 
 important and urgent problems of the technology of today are no longer the 
satisfactions of the primary needs or of archetypal wishes, but the reparation 
of the evils and damages by the technology of yesterday.  ~Dennis Gabor, 
Innovations:  Scientific, Technological and Social, 1970


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


[Orgmode] Re: BUG-Repeated task deadlines from last year not displayed on the agenda

2009-01-06 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jan 6, 2009, at 7:06 PM, Bernt Hansen wrote:


Hi Carsten,

I've been bad and let a couple of my overhead tasks slip past their
deadline dates.

*** TODO Q1 Accounting: October
   DEADLINE: 2008-11-30 Mon +1y
   - CLOSING NOTE [2008-01-30 Wed 12:18]

This task does not show up on my agenda anymore (probably because the
year changed).  If I change the deadline entry to this:

   DEADLINE: 2008-11-30 Mon

then it shows up as 37 days late.  I'm bringing this up as soon as I
noticed it just so people are aware of this.  I have a few of these
tasks that just dropped off my agenda (probably at the beginning of  
the

year).

Regards,
Bernt






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


[Orgmode] Re: Suggestion with bad patch for org-remember-templates

2009-01-06 Thread James TD Smith
On 2009-01-05 19:41:09(+0100), Carsten Dominik wrote:

 On Jan 5, 2009, at 5:31 PM, Wes Hardaker wrote:

  On Sun, 4 Jan 2009 08:23:04 +0100, Carsten Dominik 
  domi...@science.uva.nl
   said:
 
  CD I think it would be better not to use the remember buffer for this,
  CD but another, dedicated, temporary buffer.
 
  Why would it matter though? You're already opening and displaying it...
  Granted, you could stop doing that.
 
  The only benefit to using another buffer is if the person canceled the
  request (ctrl-g) in mid-selection then the original contents of the remember
  buffer would be unaltered.

 There are more reasons why it matters.

 It is possible to make setup that will pop up the remember buffer in a
 different/new frame, but you might still want to have the template selection
 in your current frame. Also, it is allowed to call org-remember again in an
 existing remember buffer, to apply a new template to the existing context.

Also, the template selection interface needs to be usable when there is no
remember buffer, as it is also used to select a template to jump to the last
note stored using that template.

 Most of all, it is much cleaner this way. A dispatcher splash screen is by
 definition a one-off temporary buffer. Creating and displaying temporary
 buffer is very cheap and easily done, and it is the standard way to do this
 kind of stuff.

 I have reasonably strong feelings about this, because at the beginning of my
 career, I did work with legacy computer codes which where done in the old days
 when dynamic allocation was not possible and computer memory was small, so
 people would write programs where the same vector was used for different
 purposes, in different locations of the program... :-)

Agreed.

--
|-James TD Smith-email/ahktenz...@mohorovi.cc-|


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


[Orgmode] Re: BUG-Repeated task deadlines from last year not displayed on the agenda

2009-01-06 Thread Bernt Hansen
Thanks! :)

-Bernt

Carsten Dominik domi...@science.uva.nl writes:

 Fixed, thanks.

 - Carsten

 On Jan 6, 2009, at 7:06 PM, Bernt Hansen wrote:

 Hi Carsten,

 I've been bad and let a couple of my overhead tasks slip past their
 deadline dates.

 *** TODO Q1 Accounting: October
DEADLINE: 2008-11-30 Mon +1y
- CLOSING NOTE [2008-01-30 Wed 12:18]

 This task does not show up on my agenda anymore (probably because the
 year changed).  If I change the deadline entry to this:

DEADLINE: 2008-11-30 Mon

 then it shows up as 37 days late.  I'm bringing this up as soon as I
 noticed it just so people are aware of this.  I have a few of these
 tasks that just dropped off my agenda (probably at the beginning of
 the
 year).

 Regards,
 Bernt




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


[Orgmode] Re: Org and financial data

2009-01-06 Thread Memnon Anon
Hey!
Matthew Lundin m...@imapmail.org writes:

 I think orgmode is the way to go.

 If your needs are simple (i.e., just tracking discretionary spending)
 you might consider using properties and column views to keep track of
 where your money is going. I find that this creates a nice way to sum
 up weekly, monthly, and yearly expenditures. I described my admittedly
 simple setup in this post:

Well, for now, my needs are simple. This may change, but keeping a
double-entry accounting system seems overkill for my very limited
budget as a student. Your setup is great, I played with it a while,
and I think I will test and adopt/extend it to my needs.

 For more sophisticated financial tracking, I'd probably recommend a
 tool devoted to that purpose.

Well, ledger is still installed. 
Some day, I will have a closer look at this. But for now, I have
other things to do ...

Thank you *very* much for this basic setup!

memnon

P.S.: btw.: It seems that cc is widely used on this mailinglist.
So I use it even if I know the person is subscribed.
Is this the preferred way? Every list has its own conventions :(


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