Re: [Orgmode] org-remember templates with dynamic target headline

2009-06-17 Thread Nick Dokos
Daniel J. Sinder djsin...@gmail.com wrote:

 I want a remember template that will have a target headline based on
 the date on which I call org-remember.
 
 For a simple example, the effect I'd like to achieve is shown by
 putting the following in my .emacs:
 
 (setq org-remember-templates
   `((Journal ?j * %u %?\n ~/org/wjournal.org
 ,(format-time-string %G: Week %V
 
 I'm an elisp noob, but I realize the problem here is that
 format-time-string is only evaluated once when my .emacs is read.  So,
 unless I restart emacs every week.  This doesn't work.
 
 How can I cause format-time-string to be re-evaluated whenever
 org-remember is called?
 

You cannot, unless you change the code. Keith Swartz had a similar
question recently and although I cannot find it in the Gmane archive
(second time today - maybe I'm doing something wrong), here is the last
part of the thread:

,
| To: Robert Goldman rpgold...@sift.info
| cc: emacs-orgmode@gnu.org
| From: Nick Dokos nicholas.do...@hp.com
| Cc: nicholas.do...@hp.com
| Reply-to: nicholas.do...@hp.com
| Subject: Re: [Orgmode] Re: Emacs-orgmode Digest, Vol 39, Issue 122 
| X-Mailer: MH-E 8.1; nmh 1.2; GNU Emacs 23.0.93
| Date: Sat, 30 May 2009 15:39:40 -0400
| Sender: n...@gamaville.dokosmarshall.org
| 
| Robert Goldman rpgold...@sift.info wrote:
| 
|   Date: Fri, 29 May 2009 23:24:58 -0700
|   From: Keith Swartz g...@oneroad.com
|   Subject: [Orgmode] Lazy evaluation when defining org-remember-template
|   To: [orgmode] emacs-orgmode@gnu.org
|   Message-ID: 4a20d13a.2000...@oneroad.com
|   Content-Type: text/plain; charset=ISO-8859-1; format=flowed
|   
|   ...
|   
|   Is there a way I can make that command evaluate at the time it is 
|   invoked, rather than when it is defined? I vaguely recall doing 
|   something like this, but that was five job roles, three houses, two 
|   recessions, and two kids ago. :)
|   
|  
|  I can't swear that this will work, but note that the way you have
|  written this, it will all be evaluated at load time, as you say.  the
|  'list' function will evaluate its arguments to build the list.
|  
|  Now, if you don't want this to be evaluated when org-remember-templates
|  is set, you can quote the form:
|  
|  '(format-time-string %A)
|  
|  [note that you quoted the argument to format-time-string.  I don't
|  believe that's necessary, since strings evaluate to themselves, but I
|  have not tested this.]
|  
|  Actually, I think you would get something easier to read if you quoted
|  the whole list, instead of quoting each element.  Something like:
|  
|  (list '(Todo ?t * TODO %?%^{To do} %^g\n  :LOGBOOK:\n  -
|  Added: %U\n  :END: d:/tmp/_my.todo (format-time-string %A
|  
| 
| That's correct.
| 
|  The question then is, what happens when org-remember-templates is
|  retrieved?  What you want is for this function to be evaluated when the
|  templates are found and used.  That will be done by
|  org-remember-apply-template, which we can examine
|  
|  Unfortunately, I don't see in there anything which retrieves (nth 4
|  entry), which is the place where your format-time-string goes, so I'm
|  not sure what is handling this.  It's a little confusing reading that
|  function's code, since headline is ambiguous between whether it means
|  the headline of the remember note to be inserted or the headline under
|  which to insert the note...  I believe it's the former.
|  
| 
| It's the latter.
| 
| You can figure out things like this fairly quickly by inserting a
| (debug) at the appropriate place, and re-evaluating the defun. When the
| function gets called, it will jump into the debugger when it evals the
| (debug) form, and you can use the full power of lisp to examine
| state. For example, here I defined the template the way you suggested,
| placed a (debug) in org-remember-apply-template, just after the
| insertion of the template in the remember buffer, re-evaluated the defun
| (there is an eval-defun, but I prefer to do that by going to the end of
| the defun - which I can do quickly: repeat M-C-u until I'm at the
| beginning of the defun and M-C-f to move over the whole defun - and then
| C-x C-e to eval the last sexpression.)
| 
| I then call org-remember and in the resulting debug buffer, say
| 
|   e headlineRET
| 
| which says 
| 
| (format-time-string %A)
| 
|   e entryRET
| 
| which says
| 
| (* TODO %?%^{To do} %^g
|   :LOGBOOK:
|   - 
| Added: %U
|   :END: (quote d:/tmp/_my.todo) (format-time-string %A))
| 
| Now you can see that the headline is the third element of this list
| (i.e. (nth 2 entry) - the numbering starts from 0).
| 
|  Perhaps someone else can figure this out, or perhaps you could just try
|  quoting the list and seeing if it works to evaluate the
|  format-time-string when you want it to.  Org usually does The Right Thing.
|  
| But even org cannot perform miracles !-) Somebody has to force the thunk
| in order for delayed evaluation to work. You'd need something like this 
| patch:
| 

[Orgmode] Using org-mode and git to make a wiki

2009-06-17 Thread David Libert
Hello:

I only started learning about org-mode in the last few days.  I have been
reading documentation about it and am very impressed by the system.

I have been wondering about the possibilties if using org-mode and git to
run an improved style of wiki.  I will give some details below.  This could
be a point of discusion here in the mailing list, or else some of us could
quickly try to set something up along these lines.  If people here express
interest I may set up one myself.

I will open discussion by noting some background about myself.  I had heard
of wikis in general for some time and had read some and followed
them.  Then in the last couple of weeks I started two wikis of my own,  in
Wkispaces.  You can link to those from my web page in the signature
 below.

After a small bit of writing into my Wikispaces wikis I explored around in
the world of wikis, and came upon org-mode,  from the point of view
of running it as a wiki.  I am very impressed by org-mode, I think it is the
best wiki style system I have seen so far.

I was thinking what an impovement it would be over regular wikis, if they
could be running in org-mode, with all the outlining features.  And how
great for the writer to be composing messages in emacs instead of a crude
online editor, such as the one at Wikispaces.

Then it occurred to me there would such an easy way to get all that with
existing programs.  Unlike a true wiki, don't read it over the web.
Instead have a local copy, so your own local emacs in org-mode can process
it, even for reading.  That way, the writer is allowed to assume
the readers will have all the org-mode functionality in reading.

Use git for transport.  The wiki would be distibuted across a peer-to-peer
network, with git pushes and pulls.  So you don't need to be an
instution like Wikisaces to set this up.  You don't need a server.  An
ordinary pc could seed the wiki by providing a first node.  The distrbution
would give redundancy and security, ie against data loss.

Wikis in general need history and version control.  So why not make it the
best (in my opinion anyway) version control with git.  So make the wiki
the best editor  (emacs)  and make the version control be the best version
control  (git).  And the best wiki system (org-mode).

I found in the org-mode home page the  worg project,  which is smilar to
this.  A git repository, and writers contribute to worg through git.  But
worg publishes the org-mode as html  and in the end serves it up as a web
page.

I propose we never go to html.  Stay in emacs and org-mode the whole time.
So you know your readers have the full functionality of org-mode
to be reading your writing.

I could see this as taking over the world.  Not realistically, I know in the
real world there is too much intertia and most people are slow to change.
But in terms of making a usable system that I would like to use in a
community.

For example, instead of conventional email, with individuals who I was
already closely collaborasting with, I would like to have a shared space
like
this with only the pair of us having read and write access.  In a group of
only two we could have push and pull permission with each other.  So
instead of sending an email,  you would write a note into a new file or edit
it into an esiting one, commit and push.  On the other side, there could
be scripts to alert you when that dedicated git repositiry has been updated,
giving you the equaivalent of  you have new mail.

But all the collarabateed email would be together in an org directory, and
we could use org to organaze it and structure it, including by refactoring
after the fact.  So the final result could be more strcutred than a mailbox.

It would be easy to forward mail.  Each mail corrspondent could have their
own directory of org-mode files in a git repostory.  To forward mail,
you open both respositrories, each ion their own firectory, then just use
emacs to copy an org-mode file between directories.  Or if you did
individual messages inside a larger file as a heading, yank that and copy to
another buffer into another directory.  Then commit and push in
the second directory.

You could have a main index org file in the mail directory, which would be
like a mail box lisitng in refular email.  And the users could manually
put an opening line linking to the new message.  These could be editted in
manually blog style at the top of the list.  So the recipeitn could
easily find new messages.  And as tyhe index grew it could be archived by
org-mode.  making a permanent index of all mail.

But other indexes could be added later  grouping like messages tofether by
making new lists of links.  Or use org-mode tags.  The full power
of org-mode to refactor.  What you don't have in ordinary email.

And git provides protection against mistakes or bad deletions and so on.

Similarly a small group could make a group version of this.  A group of
friends who want to share all messages.  Or a work group.

And similarly, 

Re: [Orgmode] Using org-mode and git to make a wiki

2009-06-17 Thread Nicolas Girard
2009/6/17 David Libert libert.da...@gmail.com

 I only started learning about org-mode in the last few days.  I have been
 reading documentation about it and am very impressed by the system.

 I have been wondering about the possibilties if using org-mode and git to
 run an improved style of wiki.



Hi David,
what about Blorgit...?
http://orgmode.org/worg/blorgit.php

Nicolas
___
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] Using org-mode and git to make a wiki

2009-06-17 Thread David Libert
On Wed, Jun 17, 2009 at 3:31 AM, Nicolas Girard nicolas.gir...@nerim.netwrote:

 2009/6/17 David Libert libert.da...@gmail.com

 I only started learning about org-mode in the last few days.  I have been
 reading documentation about it and am very impressed by the system.

 I have been wondering about the possibilties if using org-mode and git to
 run an improved style of wiki.



 Hi David,
 what about Blorgit...?
 http://orgmode.org/worg/blorgit.php

 Nicolas


Hi Nicolas:

Thanks,  blorgit was one of the ones I had encountered in search, but I
looked clser at it just now
after getting your reply.

As I noted in the opening post,  I wanted the readers to have org-mode
running.  Checking more closely
into blorgit, I see it does that, even for readers coming in over the web
through browsers.  blorgit
provides a rails plugin,  act-as-org,  to give org-mode functionality.  It
also provides an edit button,
to let web readers edit your  org-mode files.

And it is maintained by git.  So you could also advertise your reposititry
from inside the blog, and let
people pull it.  Then you could pull back or let them push, to also give
them git revisions, which they
could do from insde emacs and org-mode.

Or else let them edit online from the browser.

So this sounds like ideally it could do a lot of what I wanted.  And more,
because it also presents a web
interface to some, with org-mode features and editting of org-mode files.

It might be difficult for me to use with my setup though, though maybe there
is a way.

I dual boot between sidux  (a Linux disto) and XP.  blorgit needs to have
emacs server running to serve
web pages.

I have an ISP where I am allowed to put up static web pages.

This point about being out of sidux sometimes makes a problem for my own
version too.  For that I was planning to find git hostiing for my git
repository.

Maybe there is web hosting where they could run the emacs server and rails?


___
 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


-- 
David Libert
email :libert.da...@gmail.com
web: http://web.ncf.ca/ah170/
___
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] 23.0.94; [PATCH] org-store-link broken within kbd macros

2009-06-17 Thread Andreas Seltenreich
 Your bug report will be posted to the emacs-pretest-...@gnu.org mailing list.

 Please describe exactly what actions triggered the bug
 and the precise symptoms of the bug:

org-store-link works fine when recording a keyboard macro but it is a
NOP when executing it.  The following change appears to fix it.

regards,
andreas

 In GNU Emacs 23.0.94.1 (x86_64-unknown-linux-gnu)
  of 2009-05-28 on tengen

--8---cut here---start-8---
*** org.el.~1.48.~  2009-02-20 10:02:49.0 +0100
--- org.el  2009-06-17 12:55:15.0 +0200
***
*** 6594,6600 
  desc (or desc cpltxt))
  (if (equal desc NONE) (setq desc nil))
  
! (if (and (interactive-p) link)
(progn
  (setq org-stored-links
(cons (list link desc) org-stored-links))
--- 6594,6600 
  desc (or desc cpltxt))
  (if (equal desc NONE) (setq desc nil))
  
! (if (and (or (interactive-p) executing-kbd-macro) link)
(progn
  (setq org-stored-links
(cons (list link desc) org-stored-links))
--8---cut here---end---8---


___
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-batch-agenda lock problem

2009-06-17 Thread Carsten Dominik


On Jun 9, 2009, at 2:53 PM, Angus Gibson wrote:


On 09/06/2009, at 22:24 , Carsten Dominik wrote:



On Jun 9, 2009, at 12:40 PM, Angus Gibson wrote:

I am a recent convert to org-mode, and the ability to export the  
agenda is very useful. Currently I have a script that runs every  
10 seconds or so that calls:


emacs -batch -l ~/.emacs -eval '(org-batch-agenda a org-agenda- 
ndays 1)' 2/dev/null


The following may or may not work, depending on what happens in non- 
interactive emacs sessions when a lock is encountered.  Maybe this  
would work?


emacs -batch -l ~/.emacs -eval '(progn (defun ask-user-about-lock  
(rest args) nil) (org-batch-agenda a org-agenda-ndays 1))' 2/ 
dev/null


Simple enough solution, thanks. I think it's a bit weird that it is  
encountering the lock,


Not really!  A batch session could potentially modify the file, and  
Emacs

cannot know in advance that it will not.

I guess a properly constructed batch command would load file contents  
into temporary buffers without actually visiting files, but I used the  
fast trach to such a command by simply calling the already implemented  
commands...


but I suppose getting rid of the confirmation is the easiest step  
for a completely non-interactive session.


I think so I might consider doing the even in the batch  
commands..  Not sure

though how dangerous this would be

- Carsten




Thanks,
Angus



or

emacs -batch -l ~/.emacs -eval '(progn (defun file-locked-p (rest  
args) nil) (org-batch-agenda a org-agenda-ndays 1))' 2/dev/null



These are bad hacks, but should be OK sice creating an agenda  
should not modify any file buffers...


- Carsten






In order to put the agenda items on my desktop. This works fine,  
until I start to edit the org file. From what I have gathered,  
this causes a lock to be placed, and org-batch-agenda has a  
collision with this lock, resulting in no output because it's  
trying to output the message about resolving the collision.  
Obviously this isn't very useful, so I was wondering why org-batch- 
agenda would have to modify the file, or possibly the easiest way  
to resolve this (I'm not amazing with Emacs).


Thanks,
Angus


___
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] argument to org-revert-all-org-buffers

2009-06-17 Thread Carsten Dominik


On Jun 16, 2009, at 9:48 AM, Chris Gray wrote:


Hello,

I think it would be nice if org-revert-all-org-buffers took an  
argument
so that it worked non-interactively when the argument is non-nil.   
This

would mirror the function save-some-buffers, so that one can do
something like:

emacsclient -e (save-some-buffers t)
git pull
emacsclient -e (org-revert-all-org-buffers t)


That sounds to me as a perfect way to shoot yourself in the foot.   
Every day again... :-)




from a script.

Cheers,
Chris



___
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] increase effort estimate on the fly.

2009-06-17 Thread Carsten Dominik

Hi Konstantin,

I have added this functionality, but without the global key binding.

Thanks!

- Carsten

On Jun 9, 2009, at 11:42 AM, Konstantin Antipin wrote:


Dear all,

Recently new feature was added - when you set an estimated effort for
a task, you can be notified when time is up.
(sound is controlled with org-clock-sound variable)
I found that pretty often  from the beginning I can not correctly
estimate what time task will take and I need to give myself an
additional time.

To address this issue I wrote couple of functions that helps me with  
that.

What do they do:
When you have clocked item and want to add time (increase effort
estimate), you call function org-clock-increase-effort-estimate, which
will ask you for a time period. It will update update currently
clocked item in a buffer as well as a mode line.

I hope this might be helpful to someone

Kostya

defun org-clock-increase-effort-estimate (add-effort)
 Add time to the effort estimate.
Update Effort property of currently clocked item.
Update mode line.
 (interactive sHow much to add? (hh:mm or mm)? )
 (if (and (org-clock-is-active) org-clock-effort)
 (let ((add-effort-minutes (org-string-to-minutes add-effort)))
(progn (setq org-clock-effort (org-minutes-to-hh:mm-string
   (+ add-effort-minutes
  (org-hh:mm-string-to-minutes 
org-clock-effort
   (org-clock-update-mode-line)
   (message about to increase effort.)
   (org-clock-set-effort-estimate-in-buffer org-clock-effort)
   )
))
 )

(defun org-clock-set-effort-estimate-in-buffer (effort-string)
 Increase effort estimate PROPERTY for the currently clocked item.
Jump to the correct buffer, increace the PROPERTY, jump back.
 (if (org-clock-is-active)
 (progn
(let ((back-mark (point-marker)))
  (org-clock-goto)
  (org-set-property Effort effort-string)
  (switch-to-buffer (marker-buffer back-mark))
  (goto-char back-mark)
  (message Effort was increased.)
  



(defun org-string-to-minutes (string)
 Recognizes two formats:
1:30 - converted to minutes
30   - interpreted as minutes.
 (case  (length (split-string string :))
   (2 (org-hh:mm-string-to-minutes string))
   (1 (string-to-int string))
   )
 )

(defun org-clock-is-active ()
 Return true if clock is currently running.
nil otherwise.
 (if (marker-buffer org-clock-marker)
 t)
 )


;; Suggested bindings
(org-defkey org-mode-map \C-c\C-x\C-e 'org-clock-increase-effort- 
estimate)

(global-set-key \C-c\C-x\C-e 'org-clock-increase-effort-estimate)


___
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] Org-Mode Demo

2009-06-17 Thread Bastien
sran...@gmail.com writes:

 Yeah, I was just being fussy about the |---+ sequence of characters in
 the table not being aligned...  no problem.

 I see what you mean now. The - and the + characters are not aligned
 in the font I used. I hadn't noticed that before.

As you can see, nothing *that* important. :)

-- 
 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] In response to: .emacs works on Mac but not on Ubuntu

2009-06-17 Thread Graham Smith
Thanks everyone

  picked up and not your latest version.  To check that, type
 
  dpkg --list | grep org
 
  and see if org mode was installed by the package manager.  If so, just do a
  normal remove and see if that doesn't take care of it.

 Jere may be right: I recall previous discussions on the list that
 indicated this kind of problem. You might want to check for the existence
 of /etc/emacsXXX/site-start.d/50org-mode.el.

Tries both these thngs and can't find any installed org-mode or that
50org-mode/.el file.

I will try a few more commentin outs and retyping things, but I still
find it strange that it wa working fine in Ubuntu 8.01 and not now.,
but I then find Linux a bit like that.

Should anyone have any othe suggestions, I would still appreciate them.

Many thanks,

Graham


___
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: Using org-mode and git to make a wiki

2009-06-17 Thread Matthew Lundin
Hi David,

Thanks for these reflections on using org-mode and git for collaborative
work/writing.

David Libert libert.da...@gmail.com writes:

 I found in the org-mode home page the  worg project,  which is smilar
 to this.  A git repository, and writers contribute to worg through
 git.  But
 worg publishes the org-mode as html  and in the end serves it up as a
 web page.

 I propose we never go to html.  Stay in emacs and org-mode the whole
 time.  So you know your readers have the full functionality of org-mode
 to be reading your writing.

You can read Worg online (in html), but you can also peruse the org
source by cloning the git repository. In fact, I mainly consult Worg
offline (via the org files).

Some nice instructions on how to clone Worg can be found here:

http://orgmode.org/worg/worg-git.php

So the good news is: You can already do everything you mention with
org-mode and git. Just clone a bare repository somewhere and allow
others to push and pull from it. 

One can certainly dream, but I imagine the difficult task would be to
convince co-workers to learn emacs and org-mode. ;) To be sure, version
control systems like git, svn, bzr, etc. are the best tools for
collaborative work I've ever found. But they are not exactly user
friendly for non-coders and they are designed to work with plain text.
And, alas, for the past three decades, software developers have worked
very hard to make modern life needlessly complicated by inventing all
sorts of incompatible binary file formats for storing text. Of course,
that was before Carsten Dominik came along to show us just how much is
possible in plain text!

All this is to say that those who do anything other than coding will
likely have to adapt to the web app, workflow, file format, or ticket
tracker that others use. And those who do code may have an even more
difficult time convincing vi users to try org-mode!

The fallback option, of course, is to clip everything you need into
org-mode and to let others wonder what is making you so efficient. :)

Regards,

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] In response to: .emacs works on Mac but not on Ubuntu

2009-06-17 Thread Ian Barton

I will try a few more commentin outs and retyping things, but I still
find it strange that it wa working fine in Ubuntu 8.01 and not now.,
but I then find Linux a bit like that.

Should anyone have any othe suggestions, I would still appreciate them.

Many thanks,



I am using Ubuntu Jaunty with a setup almost identical to yours and mine 
Just works. Are you certain that:



(setq load-path (cons ~/EmacsAddins/OrgMode/lisp load-path))
(setq load-path (cons ~/EmacsAddins/OrgMode/contrib/lisp load-path))


Points to the correct version of org? Some things to try:

Remove the compiled lisp files (*.elc).

Edit org-install.el and type in some garbage. If emacs is trying to load 
this library it should blow up with an error.


My default ubuntu emacs22 doesn't have any org packages loaded by 
default. Try doing an apt-cache purge org-mode, which should completely 
remove the Ubuntu version if it's installed.


Ian.


___
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] In response to: .emacs works on Mac but not on Ubuntu

2009-06-17 Thread Graham Smith
Ian

Thanks,  it just worked  with 8.01 which is why I am struggling now.

 I am using Ubuntu Jaunty with a setup almost identical to yours and mine
 Just works. Are you certain that:

 (setq load-path (cons ~/EmacsAddins/OrgMode/lisp load-path))
 (setq load-path (cons ~/EmacsAddins/OrgMode/contrib/lisp load-path))

 Points to the correct version of org? Some things to try:

It was the directory copied from the Mac, so it was 6.xx, but I have
just updated to latest version of web site.

 Remove the compiled lisp files (*.elc).

I have none to remove that I can find.


 Edit org-install.el and type in some garbage. If emacs is trying to load
 this library it should blow up with an error.
I haven't tried this, but the error message I get suggests an error
trying to load org.install, which I assume is because it can't find
it.

The error message is

Loading /home/graham/.recentf...done
Cleaning up the recentf list...done (0 removed)


An error has occurred while loading `/home/graham/.emacs':

File error: Cannot open load file, org-install



 My default ubuntu emacs22 doesn't have any org packages loaded by default.
 Try doing an apt-cache purge org-mode, which should completely remove the
 Ubuntu version if it's installed.

I have run this and get an error

gra...@t42-laptop:~$ sudo apt-cache purge org-mode
[sudo] password for graham:
E: Invalid operation purge

I have also tried this:

gra...@t42-laptop:~$ emacs --debug-init

but get

Loading /home/graham/.recentf...done
Cleaning up the recentf list...done (0 removed)
require: Cannot open load file: debug

Graham


___
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] In response to: .emacs works on Mac but not on Ubuntu

2009-06-17 Thread Ian Barton

I have run this and get an error

gra...@t42-laptop:~$ sudo apt-cache purge org-mode
[sudo] password for graham:
E: Invalid operation purge



Doh, finger/brain communication mismatch. It should be:

sudo apt-get purge org-mode

This will completely remove the Debian package and all it configuration 
files if it's installed.


Ian.



___
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] In response to: .emacs works on Mac but not on Ubuntu

2009-06-17 Thread Graham Smith
I really don't understand why, but I have written out the paths in
full and it seems to work now

(setq load-path (cons /home/graham/EmacsAddIns/OrgMode/lisp load-path))
(setq load-path (cons /home/graham/EmacsAddIns/OrgMode/contrib/lisp
load-path))

Can anyone see any obvious differences between what I posted earlier
and what I have now.

Below is what wouldn't work

(setq load-path (cons ~/EmacsAddins/OrgMode/lisp load-path))
(setq load-path (cons ~/EmacsAddins/OrgMode/contrib/lisp load-path))

Thanks for everyones help.

Graham


___
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] In response to: .emacs works on Mac but not on Ubuntu

2009-06-17 Thread Graham Smith
Ian,

 Doh, finger/brain communication mismatch.

I get that as well :-)

It should be:

 sudo apt-get purge org-mode

As you will have seen now, its  working, but I'm still puzzled as to why.

Graham


___
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] Patch to LaTeX Export verbatim

2009-06-17 Thread Ed Hirgelt
I use memoir with LaTeX and like the boxedverbatim environment. And I  
often

need to wrap that in a mini page to keep it all together.  So I put this
hack together to generalize the way that source is exported to LaTeX.

Hope you can incorporate it.  It is against the latest org-exp.el from  
git.


Thanks,
Ed Hirgelt


org-exp.patch
Description: Binary data


___
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] org-info.js: new navigation history

2009-06-17 Thread Sebastian Rose
Hi,


just cannot resist posting this here:

The navigation of org-info.js has been improved quite a bit.

  1.) Navigating a file through org-info.js, either using the mouse or
  using the keyboard, modifies the location. Thus, once you left
  the file by following a link somewhere else, your browser's `back'
  button will bring you back to the point you left the file.

  2.) org-info.js now navigates accross files. If those files both use
  org-info.js, you can navigate back and forth. Because of the new
  technique in 1.), both files nearly feel like beeing one and the
  same file. Thus following links in published files feels like
  following footnotes and returning to the context.

  Example:

  Once you reach the end of the internal history, repeatedly
  pressing `B' or `b' takes you forward and back in the browsers
  history.

  - open one of your published org files.
  - press `n' until a you reach a section, that has a link to another
file in your published tree.
  - follow the link by clicking on it.
  - in the other file, navigate using `n' and `p'...
  - go back in the navigation history using `b'
  - repeat this, until org-info.js brings you back to the file you
opened in step 1. Note, that you see the same section you saw
just before leaving the file by following the link.
  - Now press `B' until org-info.js brings you to the other file
again.

One flaw though: the internal history is lost when returning to a
file.



Regards


   Sebastian



--
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.r...@emma-stil.de, sebastian_r...@gmx.de
Http:  www.emma-stil.de


___
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: I just discovered the clone subtree command

2009-06-17 Thread Charles Cave
Nicolas Aggelidis n.aggelidis at gmail.com writes:

 Hi Charles!I have a training log that has the following headings

* Training Log 
  [2009-06-19 Fri]

Change the square brackets to angle brackets then you will
find the cloning works!





___
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-remember templates with dynamic target headline

2009-06-17 Thread Carsten Dominik


On Jun 17, 2009, at 8:20 AM, Nick Dokos wrote:


Daniel J. Sinder djsin...@gmail.com wrote:


I want a remember template that will have a target headline based on
the date on which I call org-remember.

For a simple example, the effect I'd like to achieve is shown by
putting the following in my .emacs:

(setq org-remember-templates
 `((Journal ?j * %u %?\n ~/org/wjournal.org
,(format-time-string %G: Week %V

I'm an elisp noob, but I realize the problem here is that
format-time-string is only evaluated once when my .emacs is read.   
So,

unless I restart emacs every week.  This doesn't work.

How can I cause format-time-string to be re-evaluated whenever
org-remember is called?



You cannot, unless you change the code. Keith Swartz had a similar
question recently and although I cannot find it in the Gmane archive
(second time today - maybe I'm doing something wrong), here is the  
last

part of the thread:



Hi Nick,

thank you for the reminder, I had wanted to do something about this.

I am indeed a bit hesitant to allow just a lisp form here, because  
erroneous

setup of the remember template structure might then lead
to hard-to-trace problems.

However, I am fine with allowing a *function* in this element, as
it is in fact already allowed for the target file name.

I have just pushed a fix that will accept a function in this place
and call it to get the true headline.

Daniel, Keith,

Hope that solves your issue.

- Carsten



,
| To: Robert Goldman rpgold...@sift.info
| cc: emacs-orgmode@gnu.org
| From: Nick Dokos nicholas.do...@hp.com
| Cc: nicholas.do...@hp.com
| Reply-to: nicholas.do...@hp.com
| Subject: Re: [Orgmode] Re: Emacs-orgmode Digest, Vol 39, Issue 122
| X-Mailer: MH-E 8.1; nmh 1.2; GNU Emacs 23.0.93
| Date: Sat, 30 May 2009 15:39:40 -0400
| Sender: n...@gamaville.dokosmarshall.org
|
| Robert Goldman rpgold...@sift.info wrote:
|
|   Date: Fri, 29 May 2009 23:24:58 -0700
|   From: Keith Swartz g...@oneroad.com
|   Subject: [Orgmode] Lazy evaluation when defining org-remember- 
template

|   To: [orgmode] emacs-orgmode@gnu.org
|   Message-ID: 4a20d13a.2000...@oneroad.com
|   Content-Type: text/plain; charset=ISO-8859-1; format=flowed
|  
|   ...
|  
|   Is there a way I can make that command evaluate at the time it  
is

|   invoked, rather than when it is defined? I vaguely recall doing
|   something like this, but that was five job roles, three  
houses, two

|   recessions, and two kids ago. :)
|  
| 
|  I can't swear that this will work, but note that the way you have
|  written this, it will all be evaluated at load time, as you  
say.  the

|  'list' function will evaluate its arguments to build the list.
| 
|  Now, if you don't want this to be evaluated when org-remember- 
templates

|  is set, you can quote the form:
| 
|  '(format-time-string %A)
| 
|  [note that you quoted the argument to format-time-string.  I don't
|  believe that's necessary, since strings evaluate to themselves,  
but I

|  have not tested this.]
| 
|  Actually, I think you would get something easier to read if you  
quoted

|  the whole list, instead of quoting each element.  Something like:
| 
|  (list '(Todo ?t * TODO %?%^{To do} %^g\n  :LOGBOOK:\n  -
|  Added: %U\n  :END: d:/tmp/_my.todo (format-time-string %A
| 
|
| That's correct.
|
|  The question then is, what happens when org-remember-templates is
|  retrieved?  What you want is for this function to be evaluated  
when the

|  templates are found and used.  That will be done by
|  org-remember-apply-template, which we can examine
| 
|  Unfortunately, I don't see in there anything which retrieves  
(nth 4
|  entry), which is the place where your format-time-string goes,  
so I'm
|  not sure what is handling this.  It's a little confusing reading  
that
|  function's code, since headline is ambiguous between whether  
it means
|  the headline of the remember note to be inserted or the headline  
under

|  which to insert the note...  I believe it's the former.
| 
|
| It's the latter.
|
| You can figure out things like this fairly quickly by inserting a
| (debug) at the appropriate place, and re-evaluating the defun.  
When the
| function gets called, it will jump into the debugger when it evals  
the

| (debug) form, and you can use the full power of lisp to examine
| state. For example, here I defined the template the way you  
suggested,

| placed a (debug) in org-remember-apply-template, just after the
| insertion of the template in the remember buffer, re-evaluated the  
defun
| (there is an eval-defun, but I prefer to do that by going to the  
end of

| the defun - which I can do quickly: repeat M-C-u until I'm at the
| beginning of the defun and M-C-f to move over the whole defun -  
and then

| C-x C-e to eval the last sexpression.)
|
| I then call org-remember and in the resulting debug buffer, say
|
|   e headlineRET
|
| which says
|
| (format-time-string %A)
|
|   e entryRET
|
| which says
|
| (* TODO %?%^{To do} %^g
|  

Re: [Orgmode] Alternate Table Row Colors

2009-06-17 Thread Carsten Dominik

Hi Xin,

I have pushed a change to this effect.  It introduces a new variable
org-export-table-row-tags which can be used for this purpose.

Please the the docstring of that variable.

HTH

- Carsten

On Jun 14, 2009, at 9:00 PM, Xin Shi wrote:


Hello Experts,

I use org-mode to produce a lot of big tables with numbers in them.  
When I present these tables by HTML, I found it's hard to keep track  
which row it is. I'm wondering if it's possible to implement  
additional class attribute to the tr, such as:


table class=sample
tr class=d0tdOne/tdtdFish/td/tr
tr class=d1tdTwo/tdtdFish/td/tr

tr class=d0tdRed/tdtdFish/td/tr
tr class=d1tdBlue/tdtdFish/td/tr
/table

So, that in the CSS file, it'll be easier to implement the color:


style type=text/css
table.sample {
border: 6px inset #8B8378;
-moz-border-radius: 6px;
}
table.sample td {
border: 1px solid black;
padding: 0.2em 2ex 0.2em 2ex;

color: black;
}
table.sample tr.d0 td {
background-color: #FCF6CF;
}
table.sample tr.d1 td {
background-color: #FEFEF2;
}
/style

I borrowed idea from this article:
http://www.somacon.com/p338.php


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