Re: [Orgmode] Patch for windowing problem

2009-07-21 Thread Bastien
Hi Robert,

Robert Goldman  writes:

> The closest I can do is to set calendar-setup to 'two-frame, which
> does pop up a frame and leave my cursor trapped in it, but it actually
> behaves even /worse/ than Aquamacs, because I can't assign a date at
> all.

Yes, this is a bug - fixed.  Let me know if it also fixes the other
issue you have - if not, I will investigate further.

Thanks for your patience!

-- 
 Bastien


___
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: Help: Convert Org-Mode to Shadowplan for Palm (Centro)

2009-07-21 Thread Jeff Stautz
p.raschdorff  macbay.de> writes:

> using both - my Palm OS device with the ShadowPlan outliner and Org-mode,
> I've tried to bring these two worlds together.
>
> Shadow-Org
> http://code.google.com/p/shadow-org/
>
> are two perl-scripts that can convert org to shadowplan (xml) and back.
> Doing some testing, it seems that the Tags present in the original
> shadowplan-file are not included in the XML file.
>
> Since my setup in showplan on the palm and in orgmode are based on tags, I
> would like to know if someone has successfully converted ShadowPlan <->
> Orgmode including tags and dates?!

I'm the author of those scripts, but it's been quite a while since I
looked at them... And to be honest, it's been a VERY long while since
I used ShadowPlan.

The tags limitation is due to the fact that my copy of Shadow Desktop
(OS X version) never supported tags. As I recall, the tags are stored
in a separate XML file somewhere -- but this was never implemented on
the Mac version of Shadow Desktop.

(See: http://groups.yahoo.com/group/shadow-discuss/message/23454)

It may take a big of spelunking to sort out how Shadow Plan stores
that data. I've never seen Shadowplan's XML tag files, so I wouldn't
know how to go about parsing them.

Feel free to dive into the SVN repository and make changes to those
scripts as you see fit.

--Jeff

--Jeff


___
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] tabs pic mode and org

2009-07-21 Thread Rustom Mody
When I try to use ditaa with org (which is a very neat combo BTW)
I keep getting tabs in the picture which gives hell if I move rectangles around.

What is the way of telling org (or it picture mode?) -- No tab-chars please!


___
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] tabs pic mode and org

2009-07-21 Thread Giovanni Ridolfi

--- Mar 21/7/09, Rustom Mody  ha scritto:
> What is the way of telling org (or it picture mode?) -- No
> tab-chars please!

Hi, Rustom,

how about using emacs ? ;-)

M-x untabify 

cheers,
Giovanni





___
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: [SOLVED] org-export-blocks

2009-07-21 Thread Simon Mullis
I'm not sure if anyone is interested, but I found this pretty funny

I was using Vim today (which I still occassionally do) and could not
figure out why my save wasn't working for the doc I was editing.
After numerous attempts, I looked down and saw my fingers were trying
"C-x C-s"...

That's a first for me!

After weeks/months of trying not to use Vim :wq in Emacs I am now no
longer able to use anything but Notepad..

;-)

SM

2009/7/16 Bastien :
> Hi Simon,
>
> Simon Mullis  writes:
>
>> "(load "/usr/share/org-mode/lisp/org-exp-blocks.el")"
>
> The convention is to "require" a feature rather than to load a file:
>
>  (require 'org-exp-blocks)
>
> The feature 'org-exp-blocks is provided by the library at the end:
>
>  (provide 'org-exp-blocks)
>
> HTH,
>
> PS: welcome to the light side...
>
> --
>  Bastien
>



-- 
Simon Mullis
_
si...@mullis.co.uk


___
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: tabs pic mode and org

2009-07-21 Thread Bernt Hansen
Rustom Mody  writes:

> When I try to use ditaa with org (which is a very neat combo BTW)
> I keep getting tabs in the picture which gives hell if I move rectangles 
> around.
>
> What is the way of telling org (or it picture mode?) -- No tab-chars please!

When I edit ditaa blocks in 

#begin_ditaa x.png

#end_ditaa

and then using C-c ' inside the block I never get TABs in the result.
This prefixes all of the lines with ': ' and uses spaces only for the
diagram.

Are you doing something differently?

My ditaa blocks look something like this:

* Test
#+begin_ditaa x.png
:  ++
:  ||   +-+
:  ||   | |
:  ||   | |
:  ++   +-+
#+end_ditaa

-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] suggestion: converting plain lists to subtrees

2009-07-21 Thread Ilya Shlyakhter
A suggestion for a simple but useful command: convert a plain list to
a full-blown org subtree.
Sometimes I start with a plain list and later realize that it is
getting complex and a full-fledged hierarchy is needed.
Converting by hand is a pain.   It would be great if this could be automated.
Thanks,
ilya


___
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] suggestion: converting plain lists to subtrees

2009-07-21 Thread Dan Davison
Ilya Shlyakhter  writes:

> A suggestion for a simple but useful command: convert a plain list to
> a full-blown org subtree.

Have you seen org-toggle-heading? (C-c * when not in a table).

However, it seems that it doesn't preserve any list hierarchical
structure when converting to headlines.

Bastien -- I think C-c * could do with a mention in the manual section
on Plain Lists. Here's a patch which just copies the section on C-c *
from the Structure Editing section.

Dan

diff --git a/doc/org.texi b/doc/org.texi
index 3dc329e..75d9c79 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -1435,6 +1435,15 @@ region when calling this, all lines will be converted to 
list items.  If the
 first line already was a list item, any item markers will be removed from the
 list.  Finally, even without an active region, a normal line will be
 converted into a list item.
+...@kindex C-c *
+...@item C-c *
+Turn a normal line or plain list item into a headline (so that it
+becomes a subheading at its location). Also turn a headline into a
+normal line by removing the stars. If there is an active region, turn
+all lines in the region into headlines. If the first line in the
+region was an item, turn only the item lines into headlines. Finally,
+if the first line is a headline, remove the stars from all headlines
+in the region.
 @kindex s...@key{left}
 @kindex s...@key{right}
 @item s...@key{left}/@key{right}



> Sometimes I start with a plain list and later realize that it is
> getting complex and a full-fledged hierarchy is needed.
> Converting by hand is a pain.   It would be great if this could be automated.
> Thanks,
> ilya
>
>
> ___
> 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] Error after org-remember-insinuate on Aquamacs

2009-07-21 Thread Markus Baden

Hi all,

Ok, I'm not really fluent in emacs, but I try to describe my problem  
anyhow ;-) I'm using org-mode in Aquamacs for a while now and since  
lately the following error occurs (unfortunately I don't know what  
change caused the problem):


When loading the minimal .emacs below [1], which just loads org-mode  
and remember, I get the following error:


Variable binding depth exceeds max-specpdl-size

My setup is
Aquamacs 1.8
orgmode 6.27a
remember 2.0

If I load the same .emacs in the console based emacs (22.3.1) of the  
fink distribution on my mac no error occurs. And also no error occurs  
when commenting out org-remember-insinuate.


Can anybody tell me what this max-specpdl-size is about (except from  
what i have learned from describe-variable) and (hopefully) help to  
get my Aquamacs/org-setup working again.


(Btw: How can I debug emacs in order to find out where exactly the  
error lies)


Thank you very much for your help,

Markus

[1] Here is the .emacs:
;; Org-Mode
(setq load-path (cons "~/elisp/org-6.27a/lisp" load-path))
(require 'org-install)

;; Orgmode remember
(setq load-path (cons "~/elisp/remember/" load-path))
(require 'remember)
(org-remember-insinuate) ; Fails!
(define-key global-map "\C-cr" 'org-remember)



___
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] Error after org-remember-insinuate on Aquamacs

2009-07-21 Thread Nick Dokos
Markus Baden  wrote:

> Hi all,
> 
> Ok, I'm not really fluent in emacs, but I try to describe my problem  
> anyhow ;-) I'm using org-mode in Aquamacs for a while now and since  
> lately the following error occurs (unfortunately I don't know what  
> change caused the problem):
> 

Disclaimer: I know nothing about Aquamacs other than the name.

> When loading the minimal .emacs below [1], which just loads org-mode  
> and remember, I get the following error:
> 
>   Variable binding depth exceeds max-specpdl-size
> 

This typically means that there is a recursive call (or a set of mutually
recursive calls) that does not "bottom out".

> My setup is
>   Aquamacs 1.8
>   orgmode 6.27a
>   remember 2.0
> 
> If I load the same .emacs in the console based emacs (22.3.1) of the  
> fink distribution on my mac no error occurs. And also no error occurs  
> when commenting out org-remember-insinuate.
> 

I hope you are starting both Aquamacs and the "normal" emacs so that they
don't load any init files at all. For "normal" emacs, that's the -Q switch;
I don't know what it is for Aquamacs. The only way I can think of that this
difference in behavior might arise is by having the different emacsen start
differently.

> Can anybody tell me what this max-specpdl-size is about (except from  
> what i have learned from describe-variable) and (hopefully) help to  
> get my Aquamacs/org-setup working again.
> 
> (Btw: How can I debug emacs in order to find out where exactly the  
> error lies)
> 

See the Feedback section in the org manual:

http://orgmode.org/manual/index.html#Feedback

It's likely that you'll get a large backtrace buffer, but it should be
possible to find a cycle of calls that repeats endlessly in the backtrace.

> Thank you very much for your help,
> 
> Markus
> 
> [1] Here is the .emacs:
> ;; Org-Mode
> (setq load-path (cons "~/elisp/org-6.27a/lisp" load-path))
> (require 'org-install)
> 
> ;; Orgmode remember
> (setq load-path (cons "~/elisp/remember/" load-path))
> (require 'remember)
> (org-remember-insinuate) ; Fails!
> (define-key global-map "\C-cr" 'org-remember)
> 

FWIW, I tried this on my emacs (ubuntu 8.04, GNU Emacs 23.1.50.1 
(i686-pc-linux-gnu),
Org-mode version 6.28trans) and had no problem.

HTH,
Nick


___
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] How to Calculate duration time in Table ?

2009-07-21 Thread Xin Shi
Hello,

I have a table in org which stores the date, I'm wondering if there is any
function to calculate the duration? For example:

| Start Date |   End Date | Duration |
|++--|
| 2004.08.07 | 2005.07.08 |  |

I tried to use B&-C&, but failed ...

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


Re: [Orgmode] ANN: org-mac-protocol, let's try again

2009-07-21 Thread Greg Newman
Chris,I figured out what my issue was last night.  My org-mode 6.25 was
stomping on my git clone of 6.28b.  With that fixed i can get it to work...
with only links.
With notes and remember i get the following error every time; any clues?

Process *tramp/scp org-protocol* exited abnormally with code 255




On Mon, Jul 20, 2009 at 8:03 PM, Christopher Suckling <
suckling.l...@googlemail.com> wrote:

> Apologies to the early adopters to whom I sold some dummies.
>
> Hopefully this should work better.
>
> (I had so much residual stuff sitting in memory that I was under the
> false impression that everything just worked TM)
>
> The installer is, I'm afraid, 10.5 only.
>
> The manual includes, um, manual installation instructions for 10.4.
>
> Available from:
>
> http://claviclaws.net/org/
>
> or
>
> git://github.com/claviclaws/org-mac-protocol.git
>
> Best wishes,
>
> Christopher
>
>
> ___
> 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] How to Calculate duration time in Table ?

2009-07-21 Thread Nick Dokos
Xin Shi  wrote:

> I have a table in org which stores the date, I'm wondering if there is any
> function to calculate the duration? For example:
> 
> | Start Date |   End Date | Duration |
> |++--|
> | 2004.08.07 | 2005.07.08 |  |
> 
> I tried to use B&-C&, but failed ...
> 

Try the following:

| Start Date |   End Date | Duration |
|++--|
| 2004.08.07 | 2005.07.08 |  335 |
#+TBLFM: $3=(date(<$2>)-date(<$1>))


See this thread:

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

as well as this post (which is really a followup on the
above):

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

The problem that this last article pointed out was solved
in

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

and Chris Randle's original musings are at

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

HTH,
Nick



___
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] emacs on the iPhone

2009-07-21 Thread Michael Zeller
"Sven Bretfeld"  writes:

>
> Connecting to my PC and starting emacsclient -t via a bash-alias (`ec')
> takes about 5 seconds from everywhere. I think running (and working
> with) a native Emacs on the phone itself (which isn't available anyway)
> could never be much faster. Gnus and Org-mode are ready to go. And no
> need to synchronize.

As an aside, you could actually run emacs natively on the g1. I've
followed the instructions from Jay Freeman (http://www.saurik.com/id/10,
seems to be down though, try using the Google cache) for installing
Debian on the g1 (on your SD card -- I recommend getting an 8GB
card). After you've installed Debian you run openssh and connect to
localhost using ConnectBot.

Even better, you could install xorg and run emacs using AndroidVNC in X,
although I've found this to be much slower. Although, "theoretically"
you could use a browser such as Conkeror in X to follow http links,
although this is extremely slow for me. You're better off with w3m-el,
until newer hardware comes out. Also note that the keyboard under
AndroidVNC is not as nice as ConnectBot's layout.

>
> This is the solution I always dreamed of and more than once asked about
> in this list. I can very much recommend Android (even if its
> relationship to Google can be annoying).

I also recommend Android.

>
> For those who want to give it a try: In ConnectBot CTRL is pressing the
> mouse ball once, META (ESC) is pressing it twice. TAB is twice pressing
> the mouse ball and hitting SPC. To expand a tree in an org file you have
> to set org-cycle to a key. Of course, you should have an internet
> flatrate if you want to write your PhD thesis that way ;-).

With my solution, you don't need to drop all of that money on an
internet plan, but you would need to sync your org files. For using the
g1 without a plan, just buy a prepaid SIM card and connect using adb
shell when registering the phone and execute:

am start -a android.intent.action.MAIN -n com.android.settings/.Settings

to bring up the Wifi settings and register without buying a dataplan. I
spend about $10 a month prepaid and use Skype for everything else.

>
> Greetings
>
> Sven

Thanks,
~Michael Zeller


___
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] emacs on the iPhone

2009-07-21 Thread Greg Newman
Man, you guys are making me want and android phone.I sat in a cafe with a
friend who grep'd his mail server from his g1 and was impressed.

On Tue, Jul 21, 2009 at 2:54 PM, Michael Zeller <
michael.dylan.zel...@gmail.com> wrote:

> "Sven Bretfeld"  writes:
>
> >
> > Connecting to my PC and starting emacsclient -t via a bash-alias (`ec')
> > takes about 5 seconds from everywhere. I think running (and working
> > with) a native Emacs on the phone itself (which isn't available anyway)
> > could never be much faster. Gnus and Org-mode are ready to go. And no
> > need to synchronize.
>
> As an aside, you could actually run emacs natively on the g1. I've
> followed the instructions from Jay Freeman (http://www.saurik.com/id/10,
> seems to be down though, try using the Google cache) for installing
> Debian on the g1 (on your SD card -- I recommend getting an 8GB
> card). After you've installed Debian you run openssh and connect to
> localhost using ConnectBot.
>
> Even better, you could install xorg and run emacs using AndroidVNC in X,
> although I've found this to be much slower. Although, "theoretically"
> you could use a browser such as Conkeror in X to follow http links,
> although this is extremely slow for me. You're better off with w3m-el,
> until newer hardware comes out. Also note that the keyboard under
> AndroidVNC is not as nice as ConnectBot's layout.
>
> >
> > This is the solution I always dreamed of and more than once asked about
> > in this list. I can very much recommend Android (even if its
> > relationship to Google can be annoying).
>
> I also recommend Android.
>
> >
> > For those who want to give it a try: In ConnectBot CTRL is pressing the
> > mouse ball once, META (ESC) is pressing it twice. TAB is twice pressing
> > the mouse ball and hitting SPC. To expand a tree in an org file you have
> > to set org-cycle to a key. Of course, you should have an internet
> > flatrate if you want to write your PhD thesis that way ;-).
>
> With my solution, you don't need to drop all of that money on an
> internet plan, but you would need to sync your org files. For using the
> g1 without a plan, just buy a prepaid SIM card and connect using adb
> shell when registering the phone and execute:
>
> am start -a android.intent.action.MAIN -n com.android.settings/.Settings
>
> to bring up the Wifi settings and register without buying a dataplan. I
> spend about $10 a month prepaid and use Skype for everything else.
>
> >
> > Greetings
> >
> > Sven
>
> Thanks,
> ~Michael Zeller
>
>
> ___
> 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] suggestion: converting plain lists to subtrees

2009-07-21 Thread Bastien
Dan Davison  writes:

> Ilya Shlyakhter  writes:
>
>> A suggestion for a simple but useful command: convert a plain list to
>> a full-blown org subtree.
>
> Have you seen org-toggle-heading? (C-c * when not in a table).
>
> However, it seems that it doesn't preserve any list hierarchical
> structure when converting to headlines.

Yes, Ilya suggestion makes sense, I will work on this.

> Bastien -- I think C-c * could do with a mention in the manual section
> on Plain Lists. Here's a patch which just copies the section on C-c *
> from the Structure Editing section.

Applied, thanks!

-- 
 Bastien


___
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] View Agenda for last 7 days

2009-07-21 Thread Jonathan Arkell
Hi Org peeps

I'd like to have a custom agenda block to show the previous 7 days, or even the 
last week for GTD style weekly reviews, but I can't figure out how to make it 
go.  So if I view the agenda on the 21st of july, I should see July 14th 
through 20th.  If it is easier, seeing the 3rd week in July would also be fine 
(13th-19th)

So far this is what I have for my org-agenda-custom-commands:

("W" "Weekly Review"
 ((agenda ""
  ((org-agenda-overriding-header "Last 7 Days (broken)")
   (org-agenda-ndays 7)
   (org-agenda-repeating-timestamp-show-all t)))
  (agenda ""
  ((org-agenda-overriding-header "Next 30 Days")
   (org-agenda-ndays 30)
   (org-agenda-include-diary t)
   (org-agenda-files nil)
   (org-agenda-show-all-dates t)
   (org-agenda-use-time-grid nil)))
  (stuck "")
  ,(jonnay-org-tags-todo "PROJECTs that are waiting to be 
re-understood" (list "_reproject") "PROJECT")
  (todo "PROJECT")
  (todo "TODO")
  (todo "WAITING"))
 nil
 ("weekly.html" "weekly.ps" ))

I tried setting org-agenda-ndays to -7, but that didn't really work.  Is there 
some way to tell org-agenda to start at a different date?

Jonathan Arkell
Sr. Developer
Inspired by Drum + Bass, Scheme, Kawaii
402 - 11 Avenue SE
Calgary, AB T2G 0Y4
t: 403.206.4377
www.criticalmass.com


The information contained in this message is confidential. It is intended to be 
read only by the individual or entity named above or their designee. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any distribution of this message, in any form, is strictly prohibited. If 
you have received this message in error, please immediately notify the sender 
and delete or destroy any copy of this message.


___
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: View Agenda for last 7 days

2009-07-21 Thread Bernt Hansen
Jonathan Arkell  writes:

> Hi Org peeps
>
> I'd like to have a custom agenda block to show the previous 7 days, or even 
> the last week for GTD style weekly reviews, but I can't figure out how to 
> make it go.  So if I view the agenda on the 21st of july, I should see July 
> 14th through 20th.  If it is easier, seeing the 3rd week in July would also 
> be fine (13th-19th)
>

That's easy...  but it's not a custom agenda...

(setq org-agenda-start-on-weekday nil)

then your weekly agenda starts on today.  Then left arrow to the 7 days
before today.

You can also jump directly to any date with 'j' in the agenda to show
the 7 days starting on the given date.

Does that help?

-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] How to Calculate duration time in Table ?

2009-07-21 Thread Bastien
Nick Dokos  writes:

> Try the following:
>
> | Start Date |   End Date | Duration |
> |++--|
> | 2004.08.07 | 2005.07.08 |  335 |
> #+TBLFM: $3=(date(<$2>)-date(<$1>))

Nice, I added a note in Worg/org-hacks.org.

-- 
 Bastien


___
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] View Agenda for last 7 days

2009-07-21 Thread Bastien
Jonathan Arkell  writes:

> I'd like to have a custom agenda block to show the previous 7 days, or
> even the last week for GTD style weekly reviews, but I can't figure
> out how to make it go.  

Check `org-agenda-start-day' - combining it with `org-agenda-ndays'
should do it.

HTH,

-- 
 Bastien


___
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] How to Calculate duration time in Table ?

2009-07-21 Thread Nick Dokos
Bastien  wrote:

> Nick Dokos  writes:
> 
> > Try the following:
> >
> > | Start Date |   End Date | Duration |
> > |++--|
> > | 2004.08.07 | 2005.07.08 |  335 |
> > #+TBLFM: $3=(date(<$2>)-date(<$1>))
> 
> Nice, I added a note in Worg/org-hacks.org.
> 

Thanks for doing that. The only problem is that the TBLFM line has been
stripped, so it's not clear *what* the solution is, unless one follows
the link to the message. Would it work better if I had quoted the above
(e.g. boxquote or the gnus message method)?

Thanks,
Nick



___
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: Orgmodeorg-export-generic gives an error

2009-07-21 Thread Shelagh Manton
On Mon, 20 Jul 2009 15:39:06 -0700, Wes Hardaker wrote:

>> On Fri, 17 Jul 2009 20:19:19 + (UTC), srinivas
>>  said:
> 
> s> Nick Dokos suggested the following fix to .emacs:
> 
> s> (if (< emacs-major-version 23)
> s> (defun characterp (obj)
> s> (and (char-or-string-p obj) (not (stringp obj)
> 
> s> Inserting this check makes org-export-generic work for me. My Emacs
> s> version on Windows is 22.3.1.
> 
> (I was on vacation for a week and didn't see this problem).
> 
> I wrote export-generic under xemacs and didn't notice that there was a
> function compatibility issue.
> 
> This patch to it should fix things:
> 
> diff --git a/lisp/org-export-generic.el b/lisp/org-export-generic.el
> index 64dcb1f..c9fc161 100644
> --- a/lisp/org-export-generic.el
> +++ b/lisp/org-export-generic.el
> @@ -1029,7 +1029,7 @@ REVERSE means to reverse the list if the plist
> match is a list
>  subtype)
>  (cond
>   ((null prefixtype) "")
> - ((and len (characterp prefixtype)) + ((and len
> (char-or-string-p prefixtype) (not (stringp prefixtype )))
>;; sequence of chars
>(concat (make-string len prefixtype) "\n"))
>   ((stringp prefixtype)

Someone mentioned in a previous post about a function you use to create a 
new org-generic-alist called set-alist which is not known in gnu emacs.

(defun org-set-generic-type (type definition)
  "Adds a TYPE and DEFINITION to the existing list of defined generic
export definitions."
  (set-alist 'org-generic-alist type definition))

 I went searching for the function. I found the library which seems to be 
part of the xemacs bundle. What could we use for people who use gnu 
emacs? Is there a function in emacs that would be a good substitute?

Shelagh



___
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] ANN: org-mac-protocol, let's try again

2009-07-21 Thread Christopher Suckling
On Tue, 21 Jul 2009 15:15:09 -0400, Greg Newman  wrote:

> Chris,I figured out what my issue was last night.  My org-mode 6.25 was
> stomping on my git clone of 6.28b.  With that fixed i can get it to work...
> with only links.
> With notes and remember i get the following error every time; any clues?
>
> Process *tramp/scp org-protocol* exited abnormally with code 255
>

Greg, I did come across this. Unfortunately, I didn't make a note of
when or where and can't reproduce it this evening.

I have a suspicion, but only a suspicion, that it may have resulted from
a (now fixed) tramp bug in CVS Emacs. I last complied on 15 July. Could
this be a possibility?

[There are gaps in the above logic; I can't figure out why org-link
should work whilst org-note and org-remember bork. I'm clutching at
straws. No idea why it is so fragile.]

Christopher


___
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] How to Calculate duration time in Table ?

2009-07-21 Thread Bastien
Nick Dokos  writes:

> Bastien  wrote:
>
>> Nick Dokos  writes:
>> 
>> > Try the following:
>> >
>> > | Start Date |   End Date | Duration |
>> > |++--|
>> > | 2004.08.07 | 2005.07.08 |  335 |
>> > #+TBLFM: $3=(date(<$2>)-date(<$1>))
>> 
>> Nice, I added a note in Worg/org-hacks.org.
>> 
>
> Thanks for doing that. The only problem is that the TBLFM line has been
> stripped, so it's not clear *what* the solution is, unless one follows
> the link to the message. 

Opps, fixed!  Thanks for checking.

> Would it work better if I had quoted the above (e.g. boxquote or the
> gnus message method)?

No no, I just need more sleep :)

-- 
 Bastien


___
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: Orgmodeorg-export-generic gives an error

2009-07-21 Thread Bastien
Shelagh Manton  writes:

> Someone mentioned in a previous post about a function you use to create a 
> new org-generic-alist called set-alist which is not known in gnu emacs.
>
> (defun org-set-generic-type (type definition)
>   "Adds a TYPE and DEFINITION to the existing list of defined generic
> export definitions."
>   (set-alist 'org-generic-alist type definition))
>
>  I went searching for the function. I found the library which seems to be 
> part of the xemacs bundle. What could we use for people who use gnu 
> emacs? Is there a function in emacs that would be a good substitute?

(defun set-alist (symbol key value)
  "Set cdr of an element (KEY . ...) in the alist bound to SYMBOL to VALUE."
  (or (boundp symbol)
  (set symbol nil))
  (set symbol (put-alist key value (symbol-value symbol

(defun put-alist (key value alist)
  "Set cdr of an element (KEY . ...) in ALIST to VALUE and return ALIST.
If there is no such element, create a new pair (KEY . VALUE) and
return a new alist whose car is the new pair and cdr is ALIST."
  (let ((elm (assoc key alist)))
(if elm
(progn
  (setcdr elm value)
  alist)
  (cons (cons key value) alist

Those two functions come from alist.el which is included in Apel:

http://pdb.finkproject.org/pdb/package.php/apel

PS: On debian ~$ apt-get install apel should be okay...

-- 
 Bastien


___
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] Unnecessary comma escapes in HTML export of #+INCLUDE files

2009-07-21 Thread Tang, Hsiu-Khuern
If I include a file in my Org file, say using

#+INCLUDE: "script.sh" src sh

and export to HTML, the included file shows up as a  block, which is nice.
However, a leading comma is put in front of every line that starts with a #,
even those with leading whitespace.  I understand that a comma is used to
escape # in the first column of literal examples, to distinguish from Org
comment lines.  (This escaping is no longer strictly necessary, since the
#+BEGIN_EXAMPLE block can now be indented.)

For included files, could we not add the escaping commas?  Thanks for
considering!

-- 
Best,
Hsiu-Khuern.


___
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] How to Calculate duration time in Table ?

2009-07-21 Thread Xin Shi
Cool! thanks for all :)

Xin


On Tue, Jul 21, 2009 at 7:47 PM, Bastien wrote:

> Nick Dokos  writes:
>
> > Bastien  wrote:
> >
> >> Nick Dokos  writes:
> >>
> >> > Try the following:
> >> >
> >> > | Start Date |   End Date | Duration |
> >> > |++--|
> >> > | 2004.08.07 | 2005.07.08 |  335 |
> >> > #+TBLFM: $3=(date(<$2>)-date(<$1>))
> >>
> >> Nice, I added a note in Worg/org-hacks.org.
> >>
> >
> > Thanks for doing that. The only problem is that the TBLFM line has been
> > stripped, so it's not clear *what* the solution is, unless one follows
> > the link to the message.
>
> Opps, fixed!  Thanks for checking.
>
> > Would it work better if I had quoted the above (e.g. boxquote or the
> > gnus message method)?
>
> No no, I just need more sleep :)
>
> --
>  Bastien
>
>
> ___
> 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] Indentation of text below headlines

2009-07-21 Thread onguarde -
Peace all!

I'm trying to make text below headlines indented as per the example quoted
below.

http://orgmode.org/manual/Clean-view.html#fnd-1
*
Indentation of text below headlines*
You may indent text below each headline to make the left boundary line up
with the headline, like

  *** 3rd level
  more text, now indented

A good way to get this indentation is by hand, and Org supports this with
paragraph filling, line wrapping, and structure
editing1preserving or
adapting the indentation as appropriate. A different approach
would be to have a way to automatically indent lines according to outline
structure by adding overlays or text properties. But I have not yet found a
robust and efficient way to do this in large files

[1 ] See also the variable
org-adapt-indentation.

http://osdir.com/ml/emacs-orgmode-gnu/2009-06/msg00132.html

If the variable `org-adapt-indentation' is non-nil, the entire text is
also indented so that it starts in the same column as the headline
\(i.e. after the stars).

.emacs config file
;(setf org-adapt-indentation nil)
(setf org-adapt-indentation t)

I tried setting it up it .emacs like so but it doesn't seem to work no
matter which I comment.

Am I missing something??
___
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] Patch for windowing problem

2009-07-21 Thread Nick Dokos
Bastien  wrote:

> Hi Robert,
> 
> Robert Goldman  writes:
> 
> > The closest I can do is to set calendar-setup to 'two-frame, which
> > does pop up a frame and leave my cursor trapped in it, but it actually
> > behaves even /worse/ than Aquamacs, because I can't assign a date at
> > all.
> 
> Yes, this is a bug - fixed.  Let me know if it also fixes the other
> issue you have - if not, I will investigate further.
> 

Hi Bastien,

AFAICT this has *not* been fixed: I might have made a mistake of course,
so if anybody else decides to test it, I for one would be grateful.

I'm pretty sure that I got the update (commit
3c031462f5b3a30b1fdd77e0c111586b8287a154) and I rebuilt org-mode and
restarted emacs (I did an org-reload, tested without success and
restarted emacs just to make sure I was getting the new bits).

I eval the following form in the *scratch* buffer:

  (setq calendar-setup 'calendar-only)

to enable frames for the calendar, and then I do (org-remember), and do
C-c C-s to schedule it. The calendar frame pops up, but clicking on it
does nothing: I don't get the overlay in the minibuffer that I get when
I don't use calendar frames. The only way to change the date is using
the keyboard (+3, S-, etc).

Thanks,
Nick




___
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: tabs pic mode and org

2009-07-21 Thread Rustom Mody
Thanks Bernt for C-c ' -- thats what I needed.
BTW Whats the : at BOL for?

On Tue, Jul 21, 2009 at 10:29 PM, Bernt Hansen wrote:
> Rustom Mody  writes:
>
>> When I try to use ditaa with org (which is a very neat combo BTW)
>> I keep getting tabs in the picture which gives hell if I move rectangles 
>> around.
>>
>> What is the way of telling org (or it picture mode?) -- No tab-chars please!
>
> When I edit ditaa blocks in
>
> #begin_ditaa x.png
>
> #end_ditaa
>
> and then using C-c ' inside the block I never get TABs in the result.
> This prefixes all of the lines with ': ' and uses spaces only for the
> diagram.
>
> Are you doing something differently?
>
> My ditaa blocks look something like this:
>
> * Test
> #+begin_ditaa x.png
> :              ++
> :              |        |               +-+
> :              |        |               |                 |
> :              |        |               |                 |
> :              ++               +-+
> #+end_ditaa
>
> -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