Re: [Orgmode] Moon phases

2009-06-22 Thread Carsten Dominik


On Jun 22, 2009, at 5:44 AM, Alan E. Davis wrote:

I have enabled the inclusion of astronomical information in my  
agenda displays, using Diary.org, including the following:

#%%(diary-astro-day-number)
%%(diary-phases-of-moon)
#%%(diary-sunrise-sunset)

I commented out the first and last, as the clutter is unacceptable  
to me.  However, I realliy need to keep the phases of the moon.


Tomorrow is the new moon.  Due to time of day of the New Moon, it  
might actually be tonight.  And I'd like to be notified in advance,  
a day or two, and it would be interesting, for similar reasons to  
have notice in my agenda of New Moons and Full Moons a day or two  
passed.  In fact, I really need to know how many days past New Moon  
it is today, as I am watching out for spawning of corals.


Can anyone suggest how I can do this?


Press M in the agenda, this is your fast route.

If you really want early and late warnings in the agenda display
itself, you would have to hack the function `diary-lunar-phases',
which is not too hard, I think.

- Carsten



Alan

"...can the human soul be glimpsed through a microscope? Maybe, but  
you'd definitely need one of those very good ones with two eyepieces."


   -- Woody Allen, quoted by B. A. Palevitz
___
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] PIC embedding to XHTML

2009-06-22 Thread Carsten Dominik


On Jun 20, 2009, at 10:00 AM, s...@blarg.net wrote:


When Firefox knows that your exported HTML file is really XHTML
(thanks to you changing `org-export-html-extension' to "xhtml"), you
can embed SVG into it.  For example, here are PIC diagrams:

http://home.avvanta.com/~sand/org-mode/embedded-pic.xhtml

Those are the first two diagrams in "Making Pictures With GNU PIC"
(http://www.kohala.com/start/troff/gpic.raymond.ps).

It should be possible to do something similar for the "dot" exporter.


So ...  are you going to implement this, asking for an implementation,  
or what...?


:-)

- Carsten



Derek

--
Derek Upham
s...@blarg.net


___
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] Re: org-tags-column

2009-06-22 Thread Giovanni Ridolfi

--- Sab 20/6/09, Ross A. Laird  ha scritto:
> Well, turns out my heuristic method works:
> 
> (setq org-tags-column 100)
> 
> It required a restart of emacs 
? Really?

To me it required only:
+ going to the end of the "(setq " line 
+ C-x C-e 

then the next tag is inserted in column 100.
When I modify the older headings the 
tag shifted accordingly.

May I sugest you to read the Emacs tutorial
C-h t
or surf the Emacs guided tour
http://www.gnu.org/software/emacs/tour/

and to read the  Emacs Lisp Intro (it is an 
*introduction* to Emacs Lisp; it is not though 
for programmers, but for users
who want to customize Emacs... well isn't Emacs the 
"The extensible self-documenting text editor?" ;-)

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


[Orgmode] Re: Feature suggestion: context sensitive movement

2009-06-22 Thread Daniel Clemente

>>>
>>> We now have:
>>>
>>>
>>> C-c C-j   - traverse the tree using UP and DOWN
>>> C-c C-u   - privious
>>> C-c C-n   - next
>>> C-c C-b   - previous sibling
>>> C-c C-f   - next sibling
>>>
>>
>>   I miss one key to go back to the current entry's heading (that's 
>> outline-back-to-heading).
>
> C-c C-p
>
  Thanks, that was easy. I had always expected C-c C-u to do this (go to higher 
level heading), and therefore I didn't find it in C-c C-p.




___
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-tags-column

2009-06-22 Thread Manish
  On Sun, Jun 21, 2009 at 1:55 AM, Mikael Fornius wrote:
  [snip: customizing emacs variable (23 lines)]
  > Org mode has its own function to browse all settings:
  >
  > M-x org-customize RET

This is neat!  Never knew abouot this one.  Thanks!

-- 
Manish


___
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-tags-column

2009-06-22 Thread Carsten Dominik


On Jun 22, 2009, at 11:19 AM, Manish wrote:


 On Sun, Jun 21, 2009 at 1:55 AM, Mikael Fornius wrote:
 [snip: customizing emacs variable (23 lines)]

Org mode has its own function to browse all settings:

M-x org-customize RET


This is neat!  Never knew abouot this one.  Thanks!


See also

http://orgmode.org/worg/org-tutorials/org-customize.php

- 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] Re: tags-tree question

2009-06-22 Thread Pete Phillips
Hi Bernt

 Bernt> That works for todo list searches only (not tags).  There is a
 Bernt> new variable org-agenda-tags-todo-honor-ignore-options which you
 Bernt> can set which I think does what you are looking for.  I have
 Bernt> this set to t in my setup.

Thanks for that. 

As far as I can determine this stops any scheduled/deadlines appearing
*ever*.  I want them to appear in my lists 30 days (for example)  before
their scheduled/deadline date.

When you wrote:
> Bernt> This keeps all tasks with a schedules or deadline date out of
> Bernt> the list of tasks when searching for next tasks and by
> Bernt> default deadlines show up on the agenda 30 days before they
> Bernt> need to be done.

Did you mean a custom agenda, or only the main agenda ?

My requirement is to have them start appearing in my custom agendas
nearer the time.

Cheers
Pete


___
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] Clocking out and state change updates in agenda

2009-06-22 Thread Manish
Hello!

Clocking in to a task in agenda ("I") updates the state in the agenda
immediately whereas clocking out ("O") requires an explicit refresh
("g").  Can clocking out be made to behave like clocking in in agenda?

Regards
-- 
Manish


___
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-tags-column

2009-06-22 Thread Bastien
Carsten Dominik  writes:

> On Jun 22, 2009, at 11:19 AM, Manish wrote:
>
>>  On Sun, Jun 21, 2009 at 1:55 AM, Mikael Fornius wrote:
>>  [snip: customizing emacs variable (23 lines)]
>>> Org mode has its own function to browse all settings:
>>>
>>> M-x org-customize RET
>>
>> This is neat!  Never knew abouot this one.  Thanks!
>
> See also
>
> http://orgmode.org/worg/org-tutorials/org-customize.php

I've added a FAQ: "How can I quickly browse all Org options?"

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

2009-06-22 Thread Sebastian Rose
Bastien  writes:
> Hi David,
>
> Matthew Lundin  writes:
>
>> 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. 
>
> I second Matthew on this.  All the wiki-like features you mentioned can
> be "emulated" with Emacs + Org-mode + a distributed versioning system.


Hm - suppose your not at home, but abroad or working somewhere and you

a) have internet access to your files through a browser only,
b) use one of those cheep hosting packadges out there.

How about editing *.org pages like this:

  - http://www.yvoschaap.com/instantedit/
(click anywhere and edit the text inline)

  - http://jqueryui.com/demos/datepicker/

  - http://dojocampus.org/explorer/#Dijit_Inline Edit Box_Auto Save

  - ...

What you need then, is an engine, that displays *.org files as HTML on
the fly, creates locks as needed (concurrent edits), authorization and
storage. In adition, one could use emacs + git/mtn/whatever to edit the
wiki in her favourite editor (org-protocol://open-source://).

I'd love to have a simple run-everywhere solution at hand (my laptop has
died lately...).



   Sebastian


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

2009-06-22 Thread Sebastian Rose
Xin Shi  writes:
> Hi Sebastian,
>
> I have an idea of testing whether it works or not.
>
> In the orgmode page:
>
> http://orgmode.org/Changes.html#sec-2.1.1
>
> It's talking about the custom ID. Could you try to add an example after
> line:
>
> Links written like [[#my-target-name] ] can be used to target a custom ID.
>
> For example:  [[#v6.24][Version 6.24]] should go to the section Version
> 6.24.
>
> If this link can be used, that means the  problem is solved.


The links work there. I Adjusted my local test file and found, that both
of these work:

  [[#v6.24][Version 6.24]]

and

  [[v6.24][Version 6.24]]

(without the hash sign)


  Sebastian


___
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] Clocking out and state change updates in agenda

2009-06-22 Thread Carsten Dominik


On Jun 22, 2009, at 11:54 AM, Manish wrote:


Hello!

Clocking in to a task in agenda ("I") updates the state in the agenda
immediately whereas clocking out ("O") requires an explicit refresh
("g").  Can clocking out be made to behave like clocking in in agenda?


Fixed, thanks.

- 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] Clocking out and state change updates in agenda

2009-06-22 Thread Manish
  On Mon, Jun 22, 2009 at 5:16 PM, Carsten Dominik wrote:
  >
  > On Jun 22, 2009, at 11:54 AM, Manish wrote:
  >
  >> Hello!
  >>
  >> Clocking in to a task in agenda ("I") updates the state in the agenda
  >> immediately whereas clocking out ("O") requires an explicit refresh
  >> ("g"). Can clocking out be made to behave like clocking in in agenda?
  >
  > Fixed, thanks.

Your speed is breathtaking.  Bedankt. :)

-- 
Manish
PS: Hope I got the translation right.


___
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: tags-tree question

2009-06-22 Thread Carsten Dominik


On Jun 22, 2009, at 11:53 AM, Pete Phillips wrote:


Hi Bernt

Bernt> That works for todo list searches only (not tags).  There is a
Bernt> new variable org-agenda-tags-todo-honor-ignore-options which  
you

Bernt> can set which I think does what you are looking for.  I have
Bernt> this set to t in my setup.

Thanks for that.

As far as I can determine this stops any scheduled/deadlines appearing
*ever*.  I want them to appear in my lists 30 days (for example)   
before

their scheduled/deadline date.

When you wrote:
   Bernt> This keeps all tasks with a schedules or deadline date  
out of

   Bernt> the list of tasks when searching for next tasks and by
   Bernt> default deadlines show up on the agenda 30 days before they
   Bernt> need to be done.


Did you mean a custom agenda, or only the main agenda ?

My requirement is to have them start appearing in my custom agendas
nearer the time.


Pete, what exactly do you meam by "custom agenda" here.
It is a tags/property/todo search?  In that case you
could try something like


  TODO="TODO"+DEADLINE<"<+1m>"

as a search string

HTH

- Carsten

P.S. Nice to know you are still around, still using Org ... :-)






Cheers
Pete




___
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] Macros broken

2009-06-22 Thread Ulf Stegemann
Hi,

with today's version of Org mode and CVS Emacs (23.1.50.1) macro
expansion seems to be broken. An org file like

--8<--snip-->8---
#+MACRO: foo BAR

* baz

{{{foo}}}
--8<--snap-->8---

exported to HTML produces

--8<--snip-->8---
[...]


1 baz 




ACR


[...]
--8<--snap-->8---

The `ACR' origins from the first line of the file, i.e. different first
lines result in different expansions.

I'm not aware of any settings I have that should influence macro
handling, so I guess this is reproduce-able.

Ulf



___
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] problems with org-mode remember and VM

2009-06-22 Thread Eric S Fraga
Hi!

If I use org-remember from within a VM (emacs viewmail), I get an
error (debug output attached) due to vm-folder-directory being nil.
The variable is defined in org-vm.el but not initialised.  The problem
has existed for a long time; I've just forgotten to report it...

I can avoid the problem by setting this variable but I guess this
should work "out of the box"?  

cheers,
eric


___
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: tags-tree question

2009-06-22 Thread Bernt Hansen
Pete Phillips  writes:

> Hi Bernt
>
>  Bernt> That works for todo list searches only (not tags).  There is a
>  Bernt> new variable org-agenda-tags-todo-honor-ignore-options which you
>  Bernt> can set which I think does what you are looking for.  I have
>  Bernt> this set to t in my setup.
>
> Thanks for that. 
>
> As far as I can determine this stops any scheduled/deadlines appearing
> *ever*.  I want them to appear in my lists 30 days (for example)  before
> their scheduled/deadline date.

Hi Pete

This keeps them off the global todo lists and tags searches.  They still
show up on the agenda when you look at daily and weekly views
org-deadline-warning-days before the deadline.  You can also set custom
warning dates individually on tasks as in

   DEADLINE: <2009-07-01 Wed +1m -3d> 

>
> When you wrote:
>> Bernt> This keeps all tasks with a schedules or deadline date out of
>> Bernt> the list of tasks when searching for next tasks and by
>> Bernt> default deadlines show up on the agenda 30 days before they
>> Bernt> need to be done.
>
> Did you mean a custom agenda, or only the main agenda ?
>
> My requirement is to have them start appearing in my custom agendas
> nearer the time.
>

I meant the global todo list and the results of tags searches (C-c a t,
C-c a m)  The tasks show up on your dated agenda with C-c a a.

The _only_ place I see tasks with dates is in the C-c a a view.

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


Re: [Orgmode] problems with org-mode remember and VM

2009-06-22 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jun 22, 2009, at 2:37 PM, Eric S Fraga wrote:


Hi!

If I use org-remember from within a VM (emacs viewmail), I get an
error (debug output attached) due to vm-folder-directory being nil.
The variable is defined in org-vm.el but not initialised.  The problem
has existed for a long time; I've just forgotten to report it...

I can avoid the problem by setting this variable but I guess this
should work "out of the box"?

cheers,
eric


___
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] ooops... file attached this time around

2009-06-22 Thread Eric S Fraga
Apologies but (as is too often the case) I forgot to attach the debug
output I promised in my last email on problems with VM and remember.
Here it is.
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  regexp-quote(nil)
  (concat "^" (regexp-quote vm-folder-directory))
  (string-match (concat "^" (regexp-quote vm-folder-directory)) folder)
  (if (string-match (concat "^" ...) folder) (setq folder (replace-match "" t t 
folder)))
  (let* ((message ...) (folder buffer-file-name) (subject ...) (to ...) (from 
...) (message-id ...) desc link) (org-store-link-props :type "vm" :from from 
:to to :subject subject :message-id message-id) (setq message-id 
(org-remove-angle-brackets message-id)) (setq folder (abbreviate-file-name 
folder)) (if (string-match ... folder) (setq folder ...)) (setq desc 
(org-email-link-description)) (setq link (org-make-link "vm:" folder "#" 
message-id)) (org-add-link-props :link link :description desc) link)
  (save-excursion (vm-select-folder-buffer) (let* (... ... ... ... ... ... desc 
link) (org-store-link-props :type "vm" :from from :to to :subject subject 
:message-id message-id) (setq message-id ...) (setq folder ...) (if ... ...) 
(setq desc ...) (setq link ...) (org-add-link-props :link link :description 
desc) link))
  (progn (and (eq major-mode ...) (vm-summarize)) (vm-follow-summary-cursor) 
(save-excursion (vm-select-folder-buffer) (let* ... ... ... ... ... ... ... ... 
link)))
  (if (or (eq major-mode ...) (eq major-mode ...)) (progn (and ... ...) 
(vm-follow-summary-cursor) (save-excursion ... ...)))
  (when (or (eq major-mode ...) (eq major-mode ...)) (and (eq major-mode ...) 
(vm-summarize)) (vm-follow-summary-cursor) (save-excursion 
(vm-select-folder-buffer) (let* ... ... ... ... ... ... ... ... link)))
  org-vm-store-link()
  run-hook-with-args-until-success(org-vm-store-link)
  (cond ((run-hook-with-args-until-success ...) (setq link ... desc ...)) 
((equal ... "*Org Edit Src Example*") (let ... ... ... ... ... ... ... ...)) 
((eq major-mode ...) (let ... ... ...)) ((eq major-mode ...) (setq cpltxt ... 
link ...) (org-store-link-props :type "w3" :url ...)) ((eq major-mode ...) 
(setq cpltxt ... link ...) (org-store-link-props :type "w3m" :url ...)) ((setq 
search ...) (setq link ...) (setq cpltxt ...)) ((eq major-mode ...) (setq 
cpltxt ... link ...) (org-store-link-props :type "image" :file 
buffer-file-name)) ((eq major-mode ...) (setq cpltxt ... link ...)) ((and 
buffer-file-name ...) (setq custom-id ...) (cond ... ... ...)) 
((buffer-file-name ...) (setq cpltxt ...) (when ... ... ...) (setq link ...)) 
((interactive-p) (error "Cannot link to a buffer which is not visiting a 
file")) (t (setq link nil)))
  (let (link cpltxt desc description search txt custom-id) (cond (... ...) (... 
...) (... ...) (... ... ...) (... ... ...) (... ... ...) (... ... ...) (... 
...) (... ... ...) (... ... ... ...) (... ...) (t ...)) (if (consp link) (setq 
cpltxt ... link ...)) (setq link (or link cpltxt) desc (or desc cpltxt)) (if 
(equal desc "NONE") (setq desc nil)) (if (and ... link) (progn ... ... ...) 
(and link ...)))
  org-store-link(nil)
  org-remember-annotation()
  run-hook-with-args-until-success(org-remember-annotation)
  remember(nil)
  org-do-remember()
  (if (org-region-active-p) (org-do-remember (buffer-substring ... ...)) 
(org-do-remember))
  (if org-remember-mode (progn (when ... ...) (erase-buffer) (let ... ...) 
(message "Press C-c C-c to remember data")) (if (org-region-active-p) 
(org-do-remember ...) (org-do-remember)))
  (cond ((equal goto ...) (org-go-to-remember-target)) ((equal goto ...) 
(org-remember-goto-last-stored)) (t (setq org-select-template-temp-major-mode 
major-mode) (setq org-select-template-original-buffer ...) (if 
org-remember-mode ... ...)))
  org-remember(nil)
  call-interactively(org-remember nil nil)
___
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] Macros broken

2009-06-22 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jun 22, 2009, at 2:02 PM, Ulf Stegemann wrote:


Hi,

with today's version of Org mode and CVS Emacs (23.1.50.1) macro
expansion seems to be broken. An org file like

--8<--snip-->8---
#+MACRO: foo BAR

* baz

{{{foo}}}
--8<--snap-->8---

exported to HTML produces

--8<--snip-->8---
[...]


1 baz 




ACR


[...]
--8<--snap-->8---

The `ACR' origins from the first line of the file, i.e. different  
first

lines result in different expansions.

I'm not aware of any settings I have that should influence macro
handling, so I guess this is reproduce-able.

Ulf



___
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: Macros broken

2009-06-22 Thread Ulf Stegemann
Hi Carsten,

Carsten Dominik  wrote:

> Fixed, thanks.

great! Thank you. But you know that with your quick responses you feed
the rumours about multiple Carstens being out there :)

Ulf



___
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: Custom docbook stylesheets.

2009-06-22 Thread Dale Smith
Baoqiu Cui  writes:

>>> The current org-export-docbook-xslt-proc-command is a format string,
>>> with a fixed order of arguments (the fo filename and then the input
>>> docbook filname).  Thats probably good enough for most (all?) xslt
>>> processors, but things may be more limited when it comes to also
>>> specifying the stylesheet.  Do we need to have some kind of special
>>> markers in the format string for where the different options go?
>>> Something like $i $o and $s (for in, out, and stysheet)?
>
> I thought about doing something similar to make the commands easier to
> set, but stopped pursuing that after seeing the format string style
> worked fine.  I am not sure if any other Emacs modes/packages have done
> something like this, i.e. using (semi)named arguments.

Well, it took me a while, but it found it.  It's the format-spec
function. (Actually, http://edward.oconnor.cx/2009/06/format-spec
clued me in.)

I'll have a go at it today and see if I can send in a patch.

-Dale

-- 
Dale P. Smith
da...@vtiinstruments.com
216-447-4059 x2018
216-447-8951 FAX

(Company mandated disclaimer follows...)

The information in this e-mail and any attachments is intended solely
for use by the recipient(s) to whom this e-mail is addressed and may
contain confidential and/or privileged information which is exempt
from disclosure.  If you are not an intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that you have received this e-mail
and any attachments in error and that dissemination, distribution,
review or copying of this e-mail and its attachments is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete all electronic and paper copies of
this e-mail as well as any attachments.
Thank you.

http://www.vtiinstruments.com/images/vtiemaillogo.gif


___
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: BUG: refile leaves END line of inline tasks

2009-06-22 Thread Peter Westlake


On Sun, 21 Jun 2009 08:31 +0200, "Carsten Dominik"
 wrote:
> 
> On Jun 19, 2009, at 4:44 PM, Matthew Lundin wrote:
> 
> > "Peter Westlake"  writes:
> >
> >> If you have a multi-line inline task, with an END line, then  
> >> refiling it
> >> leaves the END line behind. Since it isn't needed at the  
> >> destination, it
> >> should just be deleted.
> >>
> >>   *** TODO example of refile bug
> >>   C-c C-w takes these lines,
> >>   but leaves the END line.
> >>   *** END
> 
> 
> Hmm, refiling inline tasks?  Isn't this a contradiction in itself?

Well, I certainly understand what you mean, but the fact that I tried
to do it shows that it's sometimes needed! The use case is a small
TODO, noted in passing, being absorbed into a larger piece of work when
it becomes clear that there is a general problem to be solved.

These inline tasks mostly appear in the middle of my work log file,
which is the digital equivalent of a lab book or diary. Everything
I do at work gets written down as it happens, and that sometimes
includes TODO items.

> P.S. Of course we can change the behavior also in the first two points,
> but I would like to discuss first if this makes sense.

Fair enough! It's also worth considering the point that the function
does actually work; it just leaves a spare END line.

Regards,

Peter.




___
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: Orgmodegit push to Worg error. Help?

2009-06-22 Thread Wes Hardaker
> On Mon, 22 Jun 2009 09:17:35 -0700, Wes Hardaker  
> said:

WH> Anyone seen an error like this from git or know what to do about it?

Whoops.  I bet it's because I missed step 3 "Drop an email to Bastien".
-- 
\ Wes Hardaker   http://pontifications.hardakers.net /
 \_ "In the bathtub of history the truth is harder to hold than /
   \___ the soap, and much more difficult to find." ___/
   \_ -- 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


[Orgmode] git push to Worg error. Help?

2009-06-22 Thread Wes Hardaker

Anyone seen an error like this from git or know what to do about it?

  # git push
  Counting objects: 19, done.
  Compressing objects: 100% (15/15), done.
  Writing objects: 100% (15/15), 2.56 KiB, done.
  Total 15 (delta 10), reused 0 (delta 0)
  error: unpack failed: unpacker exited with error code
  To git+ssh://repo.or.cz/srv/git/Worg.git
   ! [remote rejected] master -> master (n/a (unpacker error))
  error: unable to create temporary sha1 filename ./objects/5f: File exists

  fatal: failed to write object
  error: failed to push some refs to 'git+ssh://repo.or.cz/srv/git/Worg.git'

I set up my account, etc, but have yet to successfully push something to
the public server.
-- 
\ Wes Hardaker   http://pontifications.hardakers.net /
 \_ "In the bathtub of history the truth is harder to hold than /
   \___ the soap, and much more difficult to find." ___/
   \_ -- 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] Re: org-tags-column

2009-06-22 Thread Ross A. Laird
Giovanni Ridolfi  writes:

> --- Sab 20/6/09, Ross A. Laird  ha scritto:
>> Well, turns out my heuristic method works:
>> 
>> (setq org-tags-column 100)
>> 
>> It required a restart of emacs 
> ? Really?
>
> To me it required only:
> + going to the end of the "(setq " line 
> + C-x C-e 
>
> then the next tag is inserted in column 100.
> When I modify the older headings the 
> tag shifted accordingly.
>
> May I sugest you to read the Emacs tutorial
> C-h t
> or surf the Emacs guided tour
> http://www.gnu.org/software/emacs/tour/
>
> and to read the  Emacs Lisp Intro (it is an 
> *introduction* to Emacs Lisp; it is not though 
> for programmers, but for users
> who want to customize Emacs... well isn't Emacs the 
> "The extensible self-documenting text editor?" ;-)
>

The older settings remained at the old column setting until I restarted.
Since I have more than 100 headings in some org files, I wanted to
adjust them all (not just the new ones). I have sometimes used C-x C-e,
but I find that often I just restart. But yes, I agree: I would
certainly know more if I read more. I occasionally do look through the
manual, and I have even spent time with the Lisp intro; but unless one
uses these functions one a regular basis, it can be tough to remember
the details.

Cheers.

Ross

-- 
Ross A. Laird, PhD
Chair, Department of Creative Writing
Faculty, Interdisciplinary Expressive Arts
Kwantlen Polytechnic University
www.rosslaird.info


___
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] Agenda display of tasks

2009-06-22 Thread Bernt Hansen
Hi Carsten,

I recently noticed that using SPACE or TAB in the agenda displays the
task in the other window but all of the drawers are exposed.  If you
fold the org file with S-TAB to Overview or Contents display and then
switch to the agenda and SPACE or TAB on a folded task it unfolds the
entire thing including the drawers.

Expanding the file to SHOW ALL and then using follow mode from the
agenda shows me the view I'm really looking for so that's what I'm doing
as a workaround right now.

While doing my weekly review of tasks I use follow mode to view task
detail and the expanded :LOGBOOK: and :PROPERTIES: drawers hide detail
scrolled off the bottom of the window.  My :LOGBOOK: drawer for repeated
tasks tends to be l-o-n-g and shoves detail way down the file (such as
my weekly review checklist :) ).

Is it possible to control expansion of the drawers when displaying a
task from the agenda?  The view I'm looking for is the same as SHOW ALL
from S-TAB.  It seems that if the task is expanded from the agenda it
expands everything including the drawers.

Thanks,
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: Orgmodegit push to Worg error. Help?

2009-06-22 Thread Bastien
Wes Hardaker  writes:

> Whoops.  I bet it's because I missed step 3 "Drop an email to
> Bastien".

Fixed :)

-- 
 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] Moon phases

2009-06-22 Thread Jonathan Arkell
Actually, one of the features I missed from Planner mode is that planner would 
give you a couple of days notice when an entry was coming up in your diary.

I found that this could easily be emulated, (and it looks better and works 
nicer too) with a custom agenda command:

(setq org-agenda-custom-commands
  '(("f" "foo agenda"
  (agenda ""
  ((org-agenda-overriding-header "Diary Next Week")
   (org-agenda-ndays 7)  ; A weeks worth of lead time
   (org-agenda-include-diary t)  ; I put all of my diary 
related stuff like Anniversaries in my diary \
   (org-agenda-files nil); you would need to change 
these if you use a file like Eiary.org
   (org-agenda-show-all-dates nil) ; don't show days that have 
nothing
   (org-agenda-use-time-grid nil))) ; don't show the timegrid 
for compactness.
 ...



-Original Message-
From: emacs-orgmode-bounces+jonathana=criticalmass@gnu.org 
[mailto:emacs-orgmode-bounces+jonathana=criticalmass@gnu.org] On Behalf Of 
Carsten Dominik
Sent: June 22, 2009 12:18 AM
To: Alan E. Davis
Cc: org-mode
Subject: Re: [Orgmode] Moon phases


On Jun 22, 2009, at 5:44 AM, Alan E. Davis wrote:

> I have enabled the inclusion of astronomical information in my
> agenda displays, using Diary.org, including the following:
> #%%(diary-astro-day-number)
> %%(diary-phases-of-moon)
> #%%(diary-sunrise-sunset)
>
> I commented out the first and last, as the clutter is unacceptable
> to me.  However, I realliy need to keep the phases of the moon.
>
> Tomorrow is the new moon.  Due to time of day of the New Moon, it
> might actually be tonight.  And I'd like to be notified in advance,
> a day or two, and it would be interesting, for similar reasons to
> have notice in my agenda of New Moons and Full Moons a day or two
> passed.  In fact, I really need to know how many days past New Moon
> it is today, as I am watching out for spawning of corals.
>
> Can anyone suggest how I can do this?

Press M in the agenda, this is your fast route.

If you really want early and late warnings in the agenda display
itself, you would have to hack the function `diary-lunar-phases',
which is not too hard, I think.

- Carsten

>
> Alan
>
> "...can the human soul be glimpsed through a microscope? Maybe, but
> you'd definitely need one of those very good ones with two eyepieces."
>
>-- Woody Allen, quoted by B. A. Palevitz
> ___
> 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

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: Inline images in latex

2009-06-22 Thread Arne
Arne  cox.net> writes:
> 
> I am not able to get the inline images including in the exported latex 
> output. 
> The raw latex contains an \href{}{} instead of \includegraphics.  I have
> verified that pdflatex is the latex to pdf process 
> and the the appropriate image
> file extensions are in the org-export-latex-inline-image-extensions.  

Carsten,
I've tracked it down to an underscore in the filename.  Almost all my filenames
have an underscore in them, a habit I should probably break.   The first 
command works where as the second line results in an "href".

  [[./data/linacE.jpg]]  # works, results in \includegraphics

  [[./data/linac_energy.jpg]]   # does not work, results in \href

The jpg files are identical.

If this is easy to fix, that'd be great, otherwise I move to bumpy names.

Thanks for a great tool!
Arne




___
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-shifmetadown/up are slow

2009-06-22 Thread Samuel Wales
On Sun, Jun 21, 2009 at 22:41, Carsten Dominik wrote:
> could you please re-run these tests, and instrument for elp not
> only org, but also the entire outline package?  Seems to me that
> much of this time is spent in a non-org function.

Function Name Call
Count  Elapsed Time  Average Time

==    
org-move-subtree-down 97
   213.6198742.2022667422
org-compact-display-after-subtree-move96
   203.12814400  2.1159181666
outline-end-of-subtree392
   156.43101299  0.3990587066
outline-next-heading  1925977
   139.79470300  7.258...e-05
outline-flag-subtree  104
   114.38383400  1.0998445576
org-shiftmetadown 51
   109.8186612.1533070784
org-shiftmetaup   46
   103.8374252.2573353260
org-move-subtree-up   46
   103.8218312.2569963260
outline-map-region191
   40.191857999  0.2104285759
org-outline-level 1905188
   25.819659000  1.355...e-05
org-cycle-hide-drawers183
   11.270871000  0.0615894590
org-flag-drawer   29066
   5.470356  0.0001882046
outline-next-visible-heading  386
   4.221285  0.0109359740
outline-get-last-sibling  46
   2.634253  0.0572663695
outline-previous-visible-heading  335
   2.611866  0.0077966179
org-shiftmetaright8
   2.308401  0.2885501250
org-up-heading-safe   192
   2.15  0.0111979166
org-end-of-subtree234
   1.946635  0.0083189572
outline-get-next-sibling  51
   1.620701  0.0317784705
outline-flag-region   30978
   1.493255  4.820...e-05
org-show-empty-lines-in-parent96
   1.132384  0.011795
outline-up-heading8
   0.335284  0.0419105
outline-previous-heading  6570
   0.222915  3.392...e-05
outline-show-heading  1241
   0.092440  7.448...e-05
outline-back-to-heading   1624
   0.066418  4.089...e-05
org-mouse-down-mouse  1
   0.063905  0.063905
outline-end-of-heading1634
   0.063265  3.871...e-05
outline-on-heading-p  1903
   0.059133  3.107...e-05
org-back-over-empty-lines 341
   0.057222  0.0001678064
org-save-markers-in-region96
   0.042984  0.0004477604
org-cycle-show-empty-lines192
   0.041974  0.0002186197
org-back-to-heading   642
   0.035574  5.541...e-05
org-agenda-save-markers-for-cut-and-paste 96
   0.035326  0.0003679791
org-do-emphasis-faces 197
   0.034992  0.0001776294
org-first-sibling-p   96
   0.034133  0.000320
org-map-tree  16
   0.029704  0.0018565624
org-show-entry87
   0.028294  0.0003252298
org-at-table-p113
   0.023057  0.0002040530
org-activate-tags 310
   0.021770  7.022...e-05
org-shiftmetaleft 8
   0.020002  0.0025003749
org-activate-footnote-links   196
   0.018426  9.401...e-05
org-set-tags  16
   0.017575  0.0010984999
org-demote-subtree8
   0.017286  0.00216075
org-promote-subtree   8
   0.015923  0.001990375
org-on-heading-p  129
   0.015623  0.0001211162
org-activate-plain-links  311
   0.015291  4.917...e-05
org-demote8
   0.013538  0.0016923749
org-promote   8
   

Re: [Orgmode] Re: Custom docbook stylesheets.

2009-06-22 Thread Dale Smith
Dale Smith  writes:

 The current org-export-docbook-xslt-proc-command is a format string,
 with a fixed order of arguments (the fo filename and then the input
 docbook filname).  Thats probably good enough for most (all?) xslt
 processors, but things may be more limited when it comes to also
 specifying the stylesheet.  Do we need to have some kind of special
 markers in the format string for where the different options go?
 Something like $i $o and $s (for in, out, and stysheet)?
>>
>> I thought about doing something similar to make the commands easier to
>> set, but stopped pursuing that after seeing the format string style
>> worked fine.  I am not sure if any other Emacs modes/packages have done
>> something like this, i.e. using (semi)named arguments.
>
> Well, it took me a while, but it found it.  It's the format-spec
> function. (Actually, http://edward.oconnor.cx/2009/06/format-spec
> clued me in.)
>
> I'll have a go at it today and see if I can send in a patch.

Ok.  This works for me.  Docs are not updated.  That would push me
over the 10 line limit. ;^)

Now we can easily add other options, like %s for stylesheets or
whatever.  Maybe something like %p to set parameters. (As in the
--stringparam option to xsltproc).

What would be cool is a way to allow the user to *add* custom spec
chars to the default set. (hint hint)

-Dale

diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el
index 8a89675..37851da 100644
--- a/lisp/org-docbook.el
+++ b/lisp/org-docbook.el
@@ -77,6 +77,7 @@
 (require 'org)
 (require 'org-exp)
 (require 'org-html)
+(require 'format-spec)
 
 ;;; Variables:
 
@@ -330,10 +331,10 @@ in a window.  A non-interactive call will only return the buffer."
   "Export as DocBook XML file, and generate PDF file."
   (interactive "P")
   (if (or (not org-export-docbook-xslt-proc-command)
-	  (not (string-match "%s.+%s" org-export-docbook-xslt-proc-command)))
+	  (not (string-match "%[io].+%[io]" org-export-docbook-xslt-proc-command)))
   (error "XSLT processor command is not set correctly"))
   (if (or (not org-export-docbook-xsl-fo-proc-command)
-	  (not (string-match "%s.+%s" org-export-docbook-xsl-fo-proc-command)))
+	  (not (string-match "%[io].+%[io]" org-export-docbook-xsl-fo-proc-command)))
   (error "XSL-FO processor command is not set correctly"))
   (message "Exporting to PDF...")
   (let* ((wconfig (current-window-configuration))
@@ -345,10 +346,10 @@ in a window.  A non-interactive call will only return the buffer."
 	 (pdffile (concat base ".pdf")))
 (and (file-exists-p pdffile) (delete-file pdffile))
 (message "Processing DocBook XML file...")
-(shell-command (format org-export-docbook-xslt-proc-command
-			   fofile (shell-quote-argument filename)))
-(shell-command (format org-export-docbook-xsl-fo-proc-command
-			   fofile pdffile))
+(shell-command (format-spec org-export-docbook-xslt-proc-command
+(format-spec-make ?o fofile ?i (shell-quote-argument filename
+(shell-command (format-spec org-export-docbook-xsl-fo-proc-command
+(format-spec-make ?i fofile ?o pdffile)))
 (message "Processing DocBook file...done")
 (if (not (file-exists-p pdffile))
 	(error "PDF file was not produced")


-- 
Dale P. Smith
da...@vtiinstruments.com
216-447-4059 x2018
216-447-8951 FAX

(Company mandated disclaimer follows...)

The information in this e-mail and any attachments is intended solely
for use by the recipient(s) to whom this e-mail is addressed and may
contain confidential and/or privileged information which is exempt
from disclosure.  If you are not an intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that you have received this e-mail
and any attachments in error and that dissemination, distribution,
review or copying of this e-mail and its attachments is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete all electronic and paper copies of
this e-mail as well as any attachments.
Thank you.

http://www.vtiinstruments.com/images/vtiemaillogo.gif
___
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] pretty icons in org buffers

2009-06-22 Thread Jonathan Arkell
Count me in as a Yes.  I think it would not only reduce the visual noise, but 
it would look slick, and make Org even more fun to work with.

The biggest thing for me though, is that they should degrade gracefully.

--
From: emacs-orgmode-bounces+jonathana=criticalmass@gnu.org 
[mailto:emacs-orgmode-bounces+jonathana=criticalmass@gnu.org] On Behalf Of 
David O'Toole
Sent: June 21, 2009 5:18 AM
To: emacs-orgmode@gnu.org
Subject: [Orgmode] pretty icons in org buffers

I've been re-entering my life data into Orgmode after about a year of just 
using a palm pilot. So I would like to contribute something to the org 
community again. A while back I wrote some elisp code for displaying bitmap 
icons as overlays in org buffers (screenshots at 
http://dto.github.com/notebook/linkd.html )
As you can see I also drew a bunch of .xpm icons for emacs to display in the 
buffers. I would be happy to contribute these icons and rework that 30 or 40 
lines of overlay code back into a nice little org extension.
After a discussion on the #org-mode IRC channel, it seems like there might be a 
demand for this. We have at least 2 people who want it. :)

What do people think of icons in org buffers? This could actually reduce visual 
noise and increase comprehension. Think of priorities being colored circles 
instead of [#A] [#B] [#C]. Or TODO and DONE and CANCELED being represented by 
different checkboxy icons.

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: Agenda display of tasks

2009-06-22 Thread Bernt Hansen
[replying to my own post]

Bernt Hansen  writes:

> Hi Carsten,
>
> I recently noticed that using SPACE or TAB in the agenda displays the
> task in the other window but all of the drawers are exposed.  If you
> fold the org file with S-TAB to Overview or Contents display and then
> switch to the agenda and SPACE or TAB on a folded task it unfolds the
> entire thing including the drawers.
>
> Expanding the file to SHOW ALL and then using follow mode from the
> agenda shows me the view I'm really looking for so that's what I'm doing
> as a workaround right now.
>
> While doing my weekly review of tasks I use follow mode to view task
> detail and the expanded :LOGBOOK: and :PROPERTIES: drawers hide detail
> scrolled off the bottom of the window.  My :LOGBOOK: drawer for repeated
> tasks tends to be l-o-n-g and shoves detail way down the file (such as
> my weekly review checklist :) ).
>
> Is it possible to control expansion of the drawers when displaying a
> task from the agenda?  The view I'm looking for is the same as SHOW ALL
> from S-TAB.  It seems that if the task is expanded from the agenda it
> expands everything including the drawers.
>
> Thanks,
> Bernt

This seems to have been a confused Emacs session on my part.  After
restarting it no longer behaves as described above (it doesn't expand
tasks past the headline by default -- which is the old behaviour I
remember)

My Emacs was definitely behaving weird - C-x o would cycle from the
agenda, to the org file, to the message window, then back to the agenda
with 2 windows open (and the message buffer).  After restarting emacs it
just cycles between the agenda and the org file (as expected).

Sorry for the noise,

-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] Lisp Link type for Org mode

2009-06-22 Thread Jonathan Arkell
Hey everyone

I've added a very simple link type to Org.  This is descendent from Sacha 
Chua's lisp link plugin for planner, and works the same way.

This is a great way to make active buttons inside of your org mode files.  I am 
not sure how well it would export however.  I'm okay with it going into the org 
contrib directory, or being added to one or both of the contributed lisp eval 
files.

Enjoy!

Jonathan Arkell
Sr. Web 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.


org-lisp-link.el
Description: org-lisp-link.el
___
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: Agenda display of tasks

2009-06-22 Thread Nick Dokos
Bernt Hansen  wrote:

> [replying to my own post]
> 
> ...
> 
> This seems to have been a confused Emacs session on my part.  After
> restarting it no longer behaves as described above (it doesn't expand
> tasks past the headline by default -- which is the old behaviour I
> remember)
> 
> My Emacs was definitely behaving weird - C-x o would cycle from the
> agenda, to the org file, to the message window, then back to the agenda
> with 2 windows open (and the message buffer).  After restarting emacs it
> just cycles between the agenda and the org file (as expected).
> 

That often happens to me when I have a half-finished command in the
minibuffer and I switch to another window and start on something else
(at least, I *think* that's what happens - it's not intentional on my
part, so it's hard to tell exactly what the heck I was doing. And
speaking about that, I just remembered that there is a help command,
``C-h l'', that shows the last few hundred keystrokes, so it might be
possible to use that to figure out what I was doing.)

The cure usually involves

  M-x top-level

which exits from all recursive editing levels and all active
minibuffers.

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] MACRO with multiple arguments?

2009-06-22 Thread Stefan Vollmar

Hello,

I need to occasionally export a simple table with two images (so they  
are nicely aligned in one row). My approach was to use a MACRO:


#+MACRO: my-simple-2table #+HTML: 


But

{{{my-simple-2table(image1, image2)}}}

does not work (MACROs with just one argument work fine in 6.27trans of  
some minutes ago; MACRO support was broken some hours ago):


$1 -> "image1, image2"
$2 -> ""

I am not sure if this example is supposed to even work at all (there  
is no such claim in the 6.27 release notes), however, it would be nice  
if it did! Many thanks in advance!


I am sorry if this topic has been discussed before.

Warm regards,
 Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.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] HTML export of verbatim org-file

2009-06-22 Thread Stefan Vollmar

Hello,

I have an org-file with a "colophon" and I want to explain (a bit) why  
and how I used org-mode for a particular piece of documentation  
(exported as HTML). I want interested readers to take a look at the  
org-"source"-file and the CSS-file, too.


However, when I link to my org-file "somefile.org" as
[[file:somefile.org][My org source-file]]
and then export to HTML, the link in the HTML code now points to  
"somefile.html", which is, of course, not desirable in this case.


How can I fix this? Many thanks in advance.
Warm regards,
 Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.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: Lisp Link type for Org mode

2009-06-22 Thread Benjamin Andresen
Hey Jonathan,

Jonathan Arkell  writes:

> Hey everyone
>
> I've added a very simple link type to Org. This is descendent from
> Sacha Chua's lisp link plugin for planner, and works the same way.
>
> This is a great way to make active buttons inside of your org mode
> files.  I am not sure how well it would export however.  I'm okay with
> it going into the org contrib directory, or being added to one or both
> of the contributed lisp eval files.

I think there is already something in org that does it. 
Check (info "(org)External links") the linktype is called "elisp".

br,
benny


___
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: Agenda display of tasks

2009-06-22 Thread Bernt Hansen
Nick Dokos  writes:

> Bernt Hansen  wrote:
>
>> [replying to my own post]
>> 
>> ...
>> 
>> This seems to have been a confused Emacs session on my part.  After
>> restarting it no longer behaves as described above (it doesn't expand
>> tasks past the headline by default -- which is the old behaviour I
>> remember)
>> 
>> My Emacs was definitely behaving weird - C-x o would cycle from the
>> agenda, to the org file, to the message window, then back to the agenda
>> with 2 windows open (and the message buffer).  After restarting emacs it
>> just cycles between the agenda and the org file (as expected).
>> 
>
> That often happens to me when I have a half-finished command in the
> minibuffer and I switch to another window and start on something else
> (at least, I *think* that's what happens - it's not intentional on my
> part, so it's hard to tell exactly what the heck I was doing. And
> speaking about that, I just remembered that there is a help command,
> ``C-h l'', that shows the last few hundred keystrokes, so it might be
> possible to use that to figure out what I was doing.)
>
> The cure usually involves
>
>   M-x top-level
>
> which exits from all recursive editing levels and all active
> minibuffers.

Thanks Nick!

If it happens again I'll try this out.

-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: tags-tree question

2009-06-22 Thread Pete Phillips
Evening to you all 

> "Carsten" == Carsten Dominik  writes:

Carsten> Pete, what exactly do you meam by "custom agenda" here.  

I mean it's one of my org-agenda-custom-commands. This is my (probably
overly) complex setup to list any of the things I do at home, which have
a TODO="NEXT" action associated with them. 

  ("h" "Home Stuff (Next)"
   ((tags-todo "Home//NEXT" nil)
(tags-todo "DIY//NEXT" nil)
(tags-todo "Karen//NEXT" nil)
(tags-todo "PhoneH//NEXT" nil)
(tags-todo "LaptopH//NEXT" nil)
(tags-todo "WaitingH//NEXT" nil)
(tags-todo "SometimeH//NEXT" nil))
   nil)

Some of these actions will have SCHEDULED or DEADLINE dates associated
with them and I only want to see those actions 30 days (or perhaps 60
days) before the date. Anything without a DEADLine or SCHEDULED date I
want to see in the list.

Carsten> It is a tags/property/todo search?  In that case you could
Carsten> try something like
Carsten>   TODO="TODO"+DEADLINE<"<+1m>"
Carsten> as a search string

OK - promising - this looks like it may do what I want:

 ("h" "Home Stuff (Next)"
 (
  (tags-todo "TODO=\"NEXT\"+Home+DEADLINE<\"<+1m>\"" nil)
  (tags-todo "TODO=\"NEXT\"+Home+DEADLINE=\"\"" nil)
  (tags-todo "TODO=\"NEXT\"+Home+SCHEDULED<\"<+1m>\"" nil)
  (tags-todo "TODO=\"NEXT\"+Home+SCHEDULED=\"\"" nil)

etc

I.e., find me NEXT items with the tag of Home, with a deadline within
the next month, AND find me NEXT items with the Home tag, where there is
no DEADLINE, AND 

But that does seem very complex. (it also feels slow).

Carsten> HTH

It does. At least i know there is a way to do it.  The question now is -
is there an easier way ?

Carsten> - Carsten

Carsten> P.S. Nice to know you are still around, still using Org
Carsten> ... :-)

:-) 

I haven't stopped using org-mode - it is the lubricant which oils the
wheels of my life.  I have just reduced the time I can spend reading and
responding to mailing list emails. :-( Still grazing on the list though.

Cheers
Pete





___
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: HTML export of verbatim org-file

2009-06-22 Thread Bernt Hansen
Stefan Vollmar  writes:

> However, when I link to my org-file "somefile.org" as
> [[file:somefile.org][My org source-file]]
> and then export to HTML, the link in the HTML code now points to
> "somefile.html", which is, of course, not desirable in this case.
>
> How can I fix this? Many thanks in advance.

I just use raw links like

[[http://your.domain.org/somefile.org][plain text org file]]

or

[[http://your.domain.org/somefile.org.html][colorized HTML]]

I used that here: http://doc.norang.ca/org-mode.html#sec-1

I don't know how to do that with relative links.

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


Re: [Orgmode] HTML export of verbatim org-file

2009-06-22 Thread Sebastian Rose
Stefan Vollmar  writes:
> Hello,
>
> I have an org-file with a "colophon" and I want to explain (a bit) why and 
> how I
> used org-mode for a particular piece of documentation  (exported as HTML). I
> want interested readers to take a look at the  org-"source"-file and the
> CSS-file, too.


How about this:

#+begin_src org

,#+OPTIONS: startup:folded

#+end_src

??



Sebastian


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

2009-06-22 Thread Xin Shi
Hi Sebastian,

Hmm... I may need to wait for another release of the org-mode and the js
file.

By the way, it looks the contents table in the left-bar of that page behaves
strange:

  http://orgmode.org/Changes.html#sec-2.1.1

Xin


On Mon, Jun 22, 2009 at 7:46 AM, Sebastian Rose wrote:

> Xin Shi  writes:
> > Hi Sebastian,
> >
> > I have an idea of testing whether it works or not.
> >
> > In the orgmode page:
> >
> > http://orgmode.org/Changes.html#sec-2.1.1
> >
> > It's talking about the custom ID. Could you try to add an example after
> > line:
> >
> > Links written like [[#my-target-name] ] can be used to target a custom
> ID.
> >
> > For example:  [[#v6.24][Version 6.24]] should go to the section Version
> > 6.24.
> >
> > If this link can be used, that means the  problem is solved.
>
>
> The links work there. I Adjusted my local test file and found, that both
> of these work:
>
>  [[#v6.24][Version 6.24]]
>
> and
>
>  [[v6.24][Version 6.24]]
>
> (without the hash sign)
>
>
>  Sebastian
>
___
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: Lisp Link type for Org mode

2009-06-22 Thread Jonathan Arkell
Aww Crap.  How did I miss that.  Whups. :/

-Original Message-
From: Benjamin Andresen [mailto:be...@in-ulm.de]
Sent: June 22, 2009 4:36 PM
To: Jonathan Arkell
Cc: emacs-orgmode@gnu.org
Subject: Re: Lisp Link type for Org mode

Hey Jonathan,

Jonathan Arkell  writes:

> Hey everyone
>
> I've added a very simple link type to Org. This is descendent from
> Sacha Chua's lisp link plugin for planner, and works the same way.
>
> This is a great way to make active buttons inside of your org mode
> files.  I am not sure how well it would export however.  I'm okay with
> it going into the org contrib directory, or being added to one or both
> of the contributed lisp eval files.

I think there is already something in org that does it.
Check (info "(org)External links") the linktype is called "elisp".

br,
benny

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


Re: [Orgmode] PIC embedding to XHTML

2009-06-22 Thread sand
Carsten Dominik writes:
> > When Firefox knows that your exported HTML file is really XHTML
> > (thanks to you changing `org-export-html-extension' to "xhtml"), you
> > can embed SVG into it.  For example, here are PIC diagrams:
> >
> > http://home.avvanta.com/~sand/org-mode/embedded-pic.xhtml
> >
> > Those are the first two diagrams in "Making Pictures With GNU PIC"
> > (http://www.kohala.com/start/troff/gpic.raymond.ps).
> >
> > It should be possible to do something similar for the "dot" exporter.
> 
> So ...  are you going to implement this, asking for an implementation,  
> or what...?

Still experimenting.  I got Dot working last night.  The problem is
we're missing some layers of abstraction:

  * If I submit code that lets "pic" blocks generate SVG for HTML,
then things won't work properly for people without SVG-capable
browsers.  We need some way for a user to say "When exporting
HTML, render PIC using SVG".

  * The current "dot" and "ditaa" control mechanisms work by exposing
command-line arguments, which get sent to the underlying program.
Bernt Hansen's document example uses

#+begin_dot gv01.png -Kdot -Tpng

The "-Tpng" directive and the ".png" suffix should be implied by
an "I want PNG" configuration, and the "-Kdot" should be implicit
in the directive name.  There's definitely a need to allow
command-line args on a block-by-block basis, but they need to be
qualified by the rendering mechanism at least.

  * There are other arguments that you want to send to Emacs to do
post-processing on the external program's output.  I use those to
shrink the PIC SVG output down to something more manageable.
In my examples, they are the "7in 1in" arguments; they are only
meaningful for PIC-in-SVG, as the "pic2graph" tool always uses an
8in x 8in canvas.

Taking all of this into account, we might come up with something like
the following:

#+begin_export pic html:svg latex:eps docbook:svg ascii:nroff
#+render_args eps :filename "figure_3_1.ps"
#+render_args svg :width "7in" :height "1in" :command "-F Times"
ellipse "document";
arrow;
box "\fIgpic\fP(1)";
arrow;
box width 1.2 "\fIgtbl\fP(1) or \fIgeqn\fP(1)" "(optional)" dashed;
arrow;
box "\fIgtroff\fP(1)";
arrow;
ellipse "PostScript"
#+end_export

The new directive is "#+begin_export".  First argument "pic" defines
how to interpret the contents.  The remaining arguments are supported
publishing types and what renderer to use.  Those are all optional;
users can set up their own defaults.

The "#+render_args" directive indicates a renderer, with a
property-list following.  My inclination is to have something that
Emacs can suck into a plist.  By convention, the ":command" tag
contains the arguments to pass down to the child process.

Comments?

Derek



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

2009-06-22 Thread Sebastian Rose
Xin Shi  writes:
> Hi Sebastian,
>
> Hmm... I may need to wait for another release of the org-mode and the js
> file.


Which version of Org-mode do you use?  `M-x org-version RET'


> By the way, it looks the contents table in the left-bar of that page behaves
> strange:
>
>   http://orgmode.org/Changes.html#sec-2.1.1


Yes. It the navigation jumps up again.

I saw, that the page in info mode jumps up to the headline inside the
window. It does so, because the browser moves to the section if I change
the location.
The only workaround I found so far, is to hide the body, change the
location, show the body again and do a `window.scrollTo(0,0)' which
turns out to be sub-optimal.
You can see the effect, if you press `m' to switch to plain view
mode. The TOC then stays where it was before the click.

Hm - now as I write this... maybe it helps to just hide hide the
info-view widget... I'll figure...



  Sebastian


___
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: Macros broken

2009-06-22 Thread Carsten Dominik


On Jun 22, 2009, at 4:46 PM, Ulf Stegemann wrote:


Hi Carsten,

Carsten Dominik  wrote:


Fixed, thanks.


great! Thank you. But you know that with your quick responses you feed
the rumours about multiple Carstens being out there :)


Are you talking to me?  Or to the other one???

:-)

- 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] Re: Inline images in latex

2009-06-22 Thread Carsten Dominik


On Jun 22, 2009, at 8:38 PM, Arne wrote:


Arne  cox.net> writes:


I am not able to get the inline images including in the exported  
latex output.
The raw latex contains an \href{}{} instead of \includegraphics.  I  
have

verified that pdflatex is the latex to pdf process
and the the appropriate image
file extensions are in the org-export-latex-inline-image-extensions.


Carsten,
I've tracked it down to an underscore in the filename.  Almost all  
my filenames
have an underscore in them, a habit I should probably break.   The  
first

command works where as the second line results in an "href".

 [[./data/linacE.jpg]]  # works, results in \includegraphics

 [[./data/linac_energy.jpg]]   # does not work, results in \href

The jpg files are identical.

If this is easy to fix, that'd be great, otherwise I move to bumpy  
names.


This was a bug, fixed now.  Thanks!

- Carsten



Thanks for a great tool!
Arne




___
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] BEGIN_SRC breaks rendering of org source

2009-06-22 Thread Stefan Vollmar

Hello,

taking up a nice suggestion from Sebastian Rose, I want to present  
some org source with proper syntax highlighting. However, there is a  
problem when using "BEGIN_SRC" blocks it seems.


If one puts this org contents into a file "test.org":

* One Headline
Some Text
#+BEGIN_SRC python
print "some output"
#+END_SRC
* Another headline
More text

and renders it from another org-file with:

#+INCLUDE: "./test.org" src org

everything will be fine (beautiful, infact) up to and including the  
print-line - the rest of the org file is not rendered as source but  
interpreted.


I use
(require 'htmlize)
and maybe here is the problem?

Warm regards,
 Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.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: Custom docbook stylesheets.

2009-06-22 Thread Baoqiu Cui
Hi Dale,

Dale Smith  writes:

> Dale Smith  writes:
>
> The current org-export-docbook-xslt-proc-command is a format string,
> with a fixed order of arguments (the fo filename and then the input
> docbook filname).  Thats probably good enough for most (all?) xslt
> processors, but things may be more limited when it comes to also
> specifying the stylesheet.  Do we need to have some kind of special
> markers in the format string for where the different options go?
> Something like $i $o and $s (for in, out, and stysheet)?
>>>
>>> I thought about doing something similar to make the commands easier to
>>> set, but stopped pursuing that after seeing the format string style
>>> worked fine.  I am not sure if any other Emacs modes/packages have done
>>> something like this, i.e. using (semi)named arguments.
>>
>> Well, it took me a while, but it found it.  It's the format-spec
>> function. (Actually, http://edward.oconnor.cx/2009/06/format-spec
>> clued me in.)
>>
>> I'll have a go at it today and see if I can send in a patch.
>
> Ok.  This works for me.  Docs are not updated.  That would push me
> over the 10 line limit. ;^)

Thanks for working on this patch, which looks very good to me!  Yes, I
think format-spec is the right way to go, and it does make the command
format more flexible.

> Now we can easily add other options, like %s for stylesheets or
> whatever.  Maybe something like %p to set parameters. (As in the
> --stringparam option to xsltproc).

I like %s (for stylesheets).  For %p, I guess we can use it to format a
*set* of parameters.

> What would be cool is a way to allow the user to *add* custom spec
> chars to the default set. (hint hint)

Will we make it *too* flexible by doing this? ;-)

Thanks again!
Baoqiu



___
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: Macros broken

2009-06-22 Thread Ulf Stegemann
Carsten Dominik  wrote:

> On Jun 22, 2009, at 4:46 PM, Ulf Stegemann wrote:
>
>> Hi Carsten,
>>
>> Carsten Dominik  wrote:
>>
>>> Fixed, thanks.
>>
>> great! Thank you. But you know that with your quick responses you feed
>> the rumours about multiple Carstens being out there :)
>
> Are you talking to me?  Or to the other one???

The other *one*? You mean there are only two of you???

Ulf



___
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