[Orgmode] More wiki-like behaviour

2009-02-06 Thread Paul Sexton
Hi,
I am interested in using Org mode to create a personal wiki (along the
lines of Wikidpad: http://wikidpad.sourceforge.net/ ), treating top
level headings (one star) as wiki topics.
 
To do this, I have added 2 behaviours to Org-mode.
 
1. Always narrow to subtree after following an internal link (ideally I
would like to only narrow to the relevant one-star heading).
Added to .emacs:
 
(add-hook 'org-follow-link-hook (lambda () (org-narrow-to-subtree)))

2. More difficult: create a new wikiword if the internal link is not
found.
 
In .emacs, add a new function to create the new topic:
 
(defun org-create-new-wikiword (word)
  (interactive s)
  (widen)
  (end-of-buffer)
  (newline 2)
  (insert (format * %s word))  ; create as radio link
  (backward-char 4)
  (org-update-radio-target-regexp)
  (newline 2)
  (org-narrow-to-subtree))
 
 
 
Modification to the (VERY long) function org-open-at-point in org.el:
 
 
   ((string= type thisfile)
 (if in-emacs
 (switch-to-buffer-other-window
   (org-get-buffer-for-internal-link (current-buffer)))
   (org-mark-ring-push))
(let ((cmd `(org-link-search
   ,path
   ,(cond ((equal in-emacs '(4)) 'occur)
   ((equal in-emacs '(16)) 'org-occur)
   (t nil))
   ,pos)))
   (condition-case nil (eval cmd)
 (error (progn (widen)
 ;; BEGIN CHANGE
 (condition-case nil (eval cmd)
   (error
(when (yes-or-no-p
(format Topic '%s' not found; create?
 path))
  (org-create-new-wikiword path)
 ;; END CHANGE
 
I am not the greatest emacs-lisp orgrammer. Is there an easier way to do
this? If not, is it possible to create a 'link-not-found' hook so that I
don't need to modify org.el?
 
Thanks
 
Paul
 
 
___
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] worg accessibility

2009-02-06 Thread William Henney
Hi Samuel

On Thu, Feb 5, 2009 at 5:54 PM, Samuel Wales samolog...@gmail.com wrote:
 Thanks for trying it.

 Your screenshot looks good, but I don't get that using the preferences
 panel.  I am using Tiger.


Ah, that might explain it. Lots of little annoyances got fixed in
Leopard (a few other little annoyances got introduced, but that's
another story)

 I think it's something with worg, because most other sites do not run
 text together vertically.


Maybe it is the text-align: justify; setting. You could try nuking
that with a user style sheet - is that possible in Tiger?

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
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] minor option conflict

2009-02-06 Thread Samuel Wales
With org-log-done set to t or 'time and
org-cycle-separator-lines set to 0 or 1, on a node with no
body, org-done inserts a time log item with a blank line after
it.  This causes the blank line to show in the collapsed
outline.

Perhaps org-done could check for the presence of a body
before deciding to insert a blank line.

-- 
For personal and corporate gain, myalgic encephalomyelitis denialists
are knowingly causing massive suffering and 25-years-early death by
grossly corrupting science.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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


[Orgmode] Re: minor option conflict

2009-02-06 Thread Samuel Wales
Closely related: the CLOSED timestamp does not insert a blank line.
For consistency with the above, perhaps it can insert a blank line if
and only if there is a body.

I would also propose minor changes:

  - all such, including CLOSED

On Thu, Feb 5, 2009 at 22:44, Samuel Wales samolog...@gmail.com wrote:
 With org-log-done set to t or 'time and
 org-cycle-separator-lines set to 0 or 1, on a node with no
 body, org-done inserts a time log item with a blank line after
 it.  This causes the blank line to show in the collapsed
 outline.

 Perhaps org-done could check for the presence of a body
 before deciding to insert a blank line.

 --
 For personal and corporate gain, myalgic encephalomyelitis denialists
 are knowingly causing massive suffering and 25-years-early death by
 grossly corrupting science.
 http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm




-- 
For personal and corporate gain, myalgic encephalomyelitis denialists
are knowingly causing massive suffering and 25-years-early death by
grossly corrupting science.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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


[Orgmode] Re: minor option conflict

2009-02-06 Thread Samuel Wales
Incomplete message.

  - All such, including CLOSED, could possibly be   -  items for consistency.
  - Depending on settings, neither left flush nor aligned under the
heading, but indented by 2, to allow noting visually that they are
items, works best for me, as then they are in a consistent column.

FWIW.


___
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] Installing on windows

2009-02-06 Thread Saurabh Agrawal
 Can you mail the exact statement you used to add org-mode to .emacs
 please?

Sorry Manish, I was out.

I added following to my .emacs:

(add-to-list 'load-path D:/Software/office/emacs/org-6.21b/org-6.21b)
(require 'org-install)
;; The following lines are always needed.  Choose your own keys.
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
(add-hook 'org-mode-hook 'turn-on-font-lock)  ; Org buffers only
(transient-mark-mode 1)


I just changed the load path. I don't know if I had to change anything else.

Regards,
Saurabh.









 Though, I would like to know if there is a way to re-load .emacs
 without restarting Emacs.

 M-x load-file RET enter-path-to-.emacs RET

 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] Installing on windows

2009-02-06 Thread Manish
On Fri, Feb 6, 2009 at 12:45 PM, Saurabh Agrawal wrote:
 Can you mail the exact statement you used to add org-mode to .emacs
 please?

 Sorry Manish, I was out.

 I added following to my .emacs:

 (add-to-list 'load-path D:/Software/office/emacs/org-6.21b/org-6.21b)

Please replace the line above with the following one in your .emacs and
reboot Emacs.

--8---cut here---start-8---
(add-to-list 'load-path D:/Software/office/emacs/org-6.21b/org-6.21b/lisp)
--8---cut here---end---8---

Then check Org version again please.

HTH,
-- 
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] worg accessibility

2009-02-06 Thread Carsten Dominik

Hi Samuel,

I tried to reproduce this on my powerbook with 10.5 in
both Firefox and Safari and could not.

- Carsten

On Feb 5, 2009, at 9:06 PM, Samuel Wales wrote:


I have an issue with worg, which is that it is unreadable.
The R tutorial, Carsten's beginner's guide, and
http://orgmode.org/worg/index.php, for example, run lines
together vertically when it is displayed with size 24 fonts
(the only fonts that I can use since Safari has no larger
ones).  I can sort of make out what they are saying, but I
give up because it is too difficult.  Smaller fonts are not
an option.  Magnification is not an option for various
reasons.

Firefox is no better.  It lets you go to higher fonts,
except for minimum font size, which maxes out at 24.
Firefox simply will not go higher than this even if you set
the other fonts to 30.  It is as if it were a maximum font
size.  At first I thought that worg was forcing a font size,
but the problem is the same with allow pages to choose
their own fonts checked and unchecked.

At 24 ff does not run lines together, but ff's 24 is much
smaller than Safari's 24.  It is unreadable at that size.  So I have
to use Safari.
Furthermore, it is hard to switch browsers just for one
site.

So I wonder what is causing this.  Any ideas?

Thanks.

--
For personal and corporate gain, myalgic encephalomyelitis denialists
are knowingly causing massive suffering and 25-years-early death by
grossly corrupting science.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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




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


Re: [Orgmode] error when exporting org to html

2009-02-06 Thread Carsten Dominik

I cannot reproduce this.

- Carsten

On Feb 5, 2009, at 2:05 PM, Rainer Stengele wrote:

I have a problem exporting html and directly browsing the exported  
file.

I have my org file in a indirect buffer,

Pressing C-c C-e b results in:

Exporting... [2 times]
save-restriction: Args out of range: 0, 1

org version: 6.21b
GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2009-01-12 on  
LENNART-69DE564

(patched)

Can anybody give me a hint?


By the way, I always run into this task:
I have a very large org file and want to export a specific region to  
html.

The highest org-level of the region is for example 6 **.
Exporting results correctly in high HTML header levels and  
strange

formatting formatting.
I would like to automatically export to level 1.
What I now do is copy the region in a new org file. move the level  
to 1 = *

and export then. Bad workaround ...
Anybody has a suggestion?

Rainer



___
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: [help] A org agenda command

2009-02-06 Thread Carsten Dominik

Hi Leo,

I am afraid there is no good solution to this problem, you can
always look at this two ways.

Would you like to suggest a place where this behavior
could be documented?

- Carsten

On Feb 4, 2009, at 4:34 PM, Leo wrote:


On 2009-02-04 14:22 +, Carsten Dominik wrote:

On Feb 4, 2009, at 10:41 AM, Leo wrote:


On 2007-04-24 11:18 +0100, Carsten Dominik wrote:

LEVEL=2/-DONE means that the search for stuck projects should
consider
any level 2 entry (i.e. starting with **) as a project, but should
immediately exclude projects where the top headline is marked  
DONE.


I remember we had a discussion to make LEVEL=2 respect
`org-odd-levels-only' i.e. LEVEL=2 would mean headings starting  
with

three * when org-odd-levels-only is t.

However, after using this for such a long time I realise this is
counter
intuitive. Thus if possible please revert the change.

[...]

Hi Leo,


Hi Carsten, long time no 'see'.


this is possible, but will break what people use, I am afraid.


I re-read our discussion. Realising that org-odd-levels-only can be  
set

on a per file basis, now I think it is better to keep current
change. The remaining issue is to find a place to document the meaning
of LEVEL in org-stuck-projects.

Actually I have removed customisation of org-stuck-projects and use  
its
default value. With the flowing of so many new features into org, I  
find

less need to inspect stuck projects.


- Carsten


Best wishes,
--
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.




___
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] Funny export of code

2009-02-06 Thread Carsten Dominik

Hi Sebastian,

this is an unlucky combination of you having turned
on org-export-with-latex-fragments, \[ being a LaTeX math
delimiter, \\[ showing up in your example, and HTML export
not checking for protectedness in export while searching
for LaTeX fragments.

I have fixed the forth issue so that you do not have to
change the first and third, and so that the LaTeX people
do not have to modify their basic syntax :-)

Please test this as soon as possible.

- Carsten

On Feb 3, 2009, at 11:21 PM, Sebastian Rose wrote:


Hi,


found a funny little configuration problem, when exporting this here  
to

HTML.

It's strange - it _must_ be in my setup, since it does not occur with
`emacs -Q' and loading org then.

Mino-Modes: yasnippets, auto-fill



= ---8-8- 
8---


* Bilder inline darstellen

  Dieser Tip stammt wieder einmal von der org-mode Mailinglist:
  : ;;iimage
  : (require 'iimage)
  : (setq iimage-mode-image-search-path (expand-file-name ~/))
  : ;;Match org file: links
  : (add-to-list 'iimage-mode-image-regex-alist
  : (cons (concat \\[\\[file:\\(~? iimage-mode-image- 
filename-regex

  :   \\)\\])  1))
  : (define-key org-mode-map [(control c) ?i] 'iimage-mode)
  :
  : You can then toggle inline display of images in an org buffer  
using C-c i.

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

=  
---8-8-8---




The error occurs in the line `   (cond (concat \\[\\[file ...'
which is turned into this here:



= ---8-8- 
8---


  (cons (concat \
/pre

p
img src=ltxpng/xy_0002.png/
/p


)  1))
  : (define-key org-mode-map [(control c) ?i] 'iimage-mode)

=  
---8-8-8---




Did anyone have a similar problem before and remembers how to get  
rid of

it?


Thanks,

--
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
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




___
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] worg accessibility

2009-02-06 Thread Sebastian Rose
Yes, I'm currently looking through the CSS and I found, the line-height
was in pixels.
Should be `em' to adjust automatically.

Fixed that and pushed it to Worg. Please tell us if that helps.


Regards,

   Sebastian


Samuel Wales samolog...@gmail.com writes:
 Thanks for trying it.

 Your screenshot looks good, but I don't get that using the preferences
 panel.  I am using Tiger.

 I think it's something with worg, because most other sites do not run
 text together vertically.

 Zooming in further severeal times with command shift = does get
 something like what you show, but most of the time I can't use the
 keyboard at all, nor right click.  Just left click.  There is the View
 menu, but using it several times on every page won't work.

 I overstated the case for emacs-w3m.  Most of the time I can't use it,
 so if somebody posts a link on the org list to a worg page, I have to
 skip it.


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


-- 
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
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


Re: Re: [Orgmode] error when exporting org to html

2009-02-06 Thread Giovanni Ridolfi
--- Gio 5/2/09, Bernt Hansen be...@norang.ca ha scritto:
 Ah - you don't have transient mark mode set.
[...]

Uh! thanks Bernt you're right.
:-(

--- Ven 6/2/09, Carsten Dominik domi...@science.uva.nl ha scritto:
  On Feb 5, 2009, at 3:08 PM, Giovanni Ridolfi wrote:
 have you seen Bernt's message about
 transient-mark-mode?

Hi, Carsten, hy everyone,

I profoundly apologise for my mistake (both for 
not having enabled t-m-m, as written 
in the manual :-( 
and because I've been sarcastic in my 
previous messages.

  Tomorrow I will try to investigate further to provide
  him
  a pedantic (with transient-mark-mode ;-) 
  comprehensive bug report.

So here it is.

Org-mode version 6.21b
GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
Win XP
transient-mark-mode t

file:
---
-*- mode: org; -*-
#+OPTIONS:   H:3 skip:t toc:t
#+TITLE:  Carsten is an astronomer!
I'm before!! \o/
* First heading
http://somewhere/a.org
[[ ][http://somewhere/a.org]]
* [2009-02-03 mar] BUGs: Procedure for test 
I'm 1st line 1st heading
** 2nd level
Skip lines, please!
*** 3rd
 4rth
I'm the fourth
* 5th
** 6th
line before 7
*** 7th
lines after 7 
:PROPERTIES:
:EXPORT_FILE_NAME: another.htm
:EXPORT_TITLE: procedure 4 test 
:EXPORT_OPTIONS: toc:t skip:t
:END:
Hello, Bye!
 8th very complicated!
I'm in a deep meadow! -o_,
* 9th
birthdate
** 10th
Pelé's number!
-

1. OK
   Export region from the first heading
   C-c @ on the [2009...] heading
   C-c C-e h
   + exports the region OK


2. Wishlist
   Export region from *before* the 2nd heading
   I'm 1st line 1st heading
   Select region with C-SPC, M-w or with C-c @
   C-c C-e h
   + exports region
 title: as in #+TITLE
 first line:I'm 1st line 1st heading
   + levels:
 2nd level is h3, why not h2?
 3rd level is h4 

2.1. Export region from the 2nd heading
 C-c @ on the 2nd level heading
 C-c C-e h
 + exports the region OK
 + The 2nd heading  becames the title
 + However 
 - 3rd becomes a h4
   why not a h2?
 - from 4th to end are ul

William Henney pointed out this behaviour [2].
I would rather heading 3rd were h1 and
that all heading  levels be relative to the
root of the sub-tree.
[2] 
http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00729.html

  I suspect the exporter rests upon the level of the heading
  ( is forth even if you exports it as the root)
  and does not consider it as the root of the level.
  The exporter should check the level of the heading 
  and, in case, it should increase such value and the values of the 
  subheadings M- -
  until the first heading becomes 1.
  (I don't know if such implementation is possible)

3. BUG
   The lines before the first heading are exported
   
   Even if in the #+OPTIONS:  the 'skip lines' is true,
   the lines before the first heading are exported,
   if the file is exported with command
   C-c C-e h
   
   Reported also  from Scott Randby [1]
[1] http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00164.html
   He said that Org-6.09 worked fine.

4. OK
   The exporter exports a subheading with properties
   in compliance with values defined in properties.
   C-c @
   C-c C-e h

Hope this is complete enough.
cheers

Giovanni



  Passa a Yahoo! Mail.

La webmail che ti offre GRATIS spazio illimitato, 
antispam e messenger integrato.
http://it.mail.yahoo.com/  



___
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: Beginners guide to Org customization

2009-02-06 Thread Rustom Mody
The idea of helping to ease org customizations is good and will reduce
the barrier to entry to new persons.
But it seems that 40 is too large for the new user and too small for
the power user.
Instead if we split up org usage into some broad categories, the
relevant customizations for that would be less bulky and so more
accessible.

Here is a tentative list of categories with some example customizations

* Web publishing
   #+AUTHOR
   #+OPTIONS : toc:nil
* Latex publishing
* Brainstorming
  (setq org-odd-levels-only t)
  (setq org-hide-leading-stars t)

* My-own-private hyperlink system
  (define-key global-map \C-cr 'org-remember)
  (define-key global-map \C-cl 'org-store-link)

* Time/project mgmt
*** Agenda-ing
*** Time tracking
*** GTD-ing
*** Journalling
* Tables and spreadsheets


___
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] Installing on windows

2009-02-06 Thread Saurabh Agrawal
On Fri, Feb 6, 2009 at 1:35 PM, Manish mailtomanish.sha...@gmail.com wrote:
 On Fri, Feb 6, 2009 at 12:45 PM, Saurabh Agrawal wrote:
 Can you mail the exact statement you used to add org-mode to .emacs
 please?

 Sorry Manish, I was out.

 I added following to my .emacs:

 (add-to-list 'load-path D:/Software/office/emacs/org-6.21b/org-6.21b)

 Please replace the line above with the following one in your .emacs and
 reboot Emacs.

 --8---cut here---start-8---
 (add-to-list 'load-path D:/Software/office/emacs/org-6.21b/org-6.21b/lisp)
 --8---cut here---end---8---

 Then check Org version again please.

It is still 6.16... :(

But something has happened. I have lost all my colours in my gtd.org
buffer...though, folding etc is working.


sa






 HTH,
 --
 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] HTML Export Issue

2009-02-06 Thread Carsten Dominik


On Feb 6, 2009, at 8:47 AM, Carsten Dominik wrote:



On Feb 5, 2009, at 7:04 PM, sran...@gmail.com wrote:


Greetings:

This is a small issue. I've just installed Org-6.21b, upgrading  
from Org-6.09 (yes, I'm behind). At the top of an org file I export  
to html, I have the -*- mode: org; -*- line even though I really  
don't need it. When I exported to html using 6.09, this line was  
ignored. When I export to html using 6.21b, this line is exported  
as a paragraph which appears at the top of html page:


p-*- mode: org; -*-
/p

Being a minor annoyance, I could just delete the line in question,  
but I recall there is some reason for me to keep this line. Is  
there any way to fix this?



Hi Scot,

this may be due to the fact that the default value
of `org-export-skip-text-before-first-heading' changed
from t to nil at some point.



In fact, I was wrong, there was a bug, also persistently
reported by Giovanni, thanks for that!

Fixed now.

- Carsten


 It seems that I have not
documented this change in Changes.org... :-(

  Bernt, or any other git guru, how can I find
  out when I changed that default?  I am sure there
  is a clever way to do this?

So you could configure this back to to t.  However,
the better solution is to make the line you are
talking about a comment.

# -*- mode: org; -*-

This line is a way to enforce that Emacs will open the file
in Org-mode.
However, if you file has a .org extension and you have set up
auto-mode-alist to recognize .org files as explained in the manual
in the activation instructions, then this line is actually not
needed at all.

HTH

- 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] TIP: set up org-agenda-files automagically

2009-02-06 Thread Richard KLINDA
Here is a little code snippet for setting up the org-agenda-files
variable via elisp code, to only include files modified in the last X
days.

I use this, because I have ~500 org files and if I add all of them to
org-agenda-files then creating agenda buffers takes up just too much
time[1], and it is wasted effort anyway, because I only use a handful of
them on a day-to-day basis.

,
| (defun rk-filter-new-files (max-age files)
|   Returns only files that were modified MAX-AGE days ago.
|   (let ((current-day (time-to-days (current-time
| (loop for file in files
|   for age = (time-to-days (nth 5 (file-attributes file)))
|   if ( (- current-day age)
| max-age)
|   collect file)))
| 
| (setq org-agenda-files (rk-filter-new-files
| 380
| (append (directory-files ~/.xemacs/org/ t nil nil t)
| (directory-files ~/.Wiki/ t nil nil t
`


Footnotes: 
[1]  I don't want to add them manually 1-by-1 either.

-- 
Udv, Richard


___
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] Installing on windows

2009-02-06 Thread Saurabh Agrawal

 Then check Org version again please.

 It is still 6.16... :(

 Can you please mail me your complete .emacs, the location where you
 unzipped the org-mode package and what additional steps you took to
 install the package (like make etc.), if any?



Hi Manish, thanks for all the help. Here is my .emacs. Please don't
make fun of me... :)

I have just copied a lot of stuff from here and there and tried to
modify it for my needs.

-
(add-to-list 'load-path D:/Software/office/emacs/org-6.21b/org-6.21b/lisp)
(require 'org-install)
;; The following lines are always needed.  Choose your own keys.
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
(add-hook 'org-mode-hook 'turn-on-font-lock)  ; Org buffers only
(transient-mark-mode 1)
(defun gtd ()
   (interactive)
   (find-file D:/stuff/imp/plans/gtd.org)
 )


(eval-after-load org
  '(progn
 (define-prefix-command 'org-todo-state-map)

 (define-key org-mode-map \C-cx 'org-todo-state-map)

 (define-key org-todo-state-map x
   #'(lambda nil (interactive) (org-todo CANCELLED)))
 (define-key org-todo-state-map d
   #'(lambda nil (interactive) (org-todo DONE)))
 (define-key org-todo-state-map f
   #'(lambda nil (interactive) (org-todo DEFERRED)))
 (define-key org-todo-state-map l
   #'(lambda nil (interactive) (org-todo DELEGATED)))
 (define-key org-todo-state-map s
   #'(lambda nil (interactive) (org-todo STARTED)))
 (define-key org-todo-state-map w
   #'(lambda nil (interactive) (org-todo WAITING)


(require 'remember)

(add-hook 'remember-mode-hook 'org-remember-apply-template)

(define-key global-map [(control meta ?r)] 'remember)
(setq org-directory d:/stuff/imp/plans/)
(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(org-agenda-custom-commands (quote ((t Today!!! ((agenda 
((org-agenda-ndays
1)(org-agenda-skip-function'(org-agenda-skip-entry-if 'regexp
DONE (todo UNASSIGNED nil) (tags-todo CATEGORY=\School\
((org-agenda-skip-function'(org-agenda-skip-entry-if 'regexp 2
(tags-todo CATEGORY=\CRS\ nil) (tags-todo CATEGORY=\Study\
nil) (tags-todo CATEGORY=\Practice\ nil) (tags-todo
CATEGORY=\Reading\ nil) (tags-todo CATEGORY=\Other\ nil))
 '(org-agenda-files (quote (d:/Stuff/imp/dates.org
d:/Stuff/imp/plans/alamanac.org d:/stuff/imp/plans/gtd.org)))
 '(org-agenda-ndays 7)
 '(org-agenda-show-all-dates t)
 '(org-agenda-skip-deadline-if-done t)
 '(org-agenda-skip-scheduled-if-done t)
 '(org-agenda-start-on-weekday nil)
 '(org-agenda-time-grid (quote ((require-timed) 
(800 1000 1200 1400 1600 1800 2000
 '(org-agenda-todo-ignore-scheduled t)
 '(org-agenda-todo-ignore-with-date t)
 '(org-archive-location %s_archive::)
 '(org-deadline-warning-days 14)
 '(org-default-notes-file ~/notes.org)
 '(org-fast-tag-selection-single-key (quote expert))
 '(org-remember-store-without-prompt t)
 '(org-remember-templates (quote ((School 115 * TODO %? %^g
gtd.org [[file:d:/stuff/imp/plans/school.org][School]]) (CRS 99
* TODO %? %^g gtd.org CRS) (Study 116 * TODO %? %^g
gtd.org Study) (Practice 112 * TODO %? %^g gtd.org
Practice) (Reading 114 * TODO %? %^g gtd.org Reading)
(Other 111 * TODO %? %^g gtd.org Other
 '(org-reverse-note-order t)
 '(org-todo-keyword-faces (quote ((TODO :foreground red :weight bold
 '(org-use-fast-todo-selection f)
 '(remember-annotation-functions (quote (org-remember-annotation)))
 '(remember-handler-functions (quote (org-remember-handler

(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

--

I have unzipped the org-mode to the path described, which is:

D:\Software\office\emacs\org-6.21b\org-6.21b

And no, I have not taken any additional steps.


Saurabh.





 --
 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


[Orgmode] Re: Advice sought on managing decision alternatives.

2009-02-06 Thread Carsten Dominik

Hi Tom,

I am now looking at org-decision and start to integrate it.

There is one point I'd like to discuss.

My preferred way to do the integration is opening a new hacking door
which will not require changes to org.el for other people doing  
similar stuff.


So my idea would be to search for

^#\\+\\(\\([a-zA-Z]+\\)_\\)?TODO

when scanning the buffer, i.e. that any keyword could precede TODO in  
such a line.


I would then like to call the filter hook, using that keyword as  
interpretation.


WIth you patch, we have right now

CHOOSEas the prefix
choseness as the interpretation
org-decision as the name of the module.

My request would be to maybe use `choose' also as the
interpretation symbol, or, alternatively, CHOSENESS
as the prefix.

For customizing org-todo-keywords, instead of explicitly
offering `choseness', maybe we can use a symbol field
where people can type into.

That would turn your patch into a generally useful system
of hooks where other ideas could be implemented as well.

What do you think?

- Carsten

On Jan 31, 2009, at 5:21 AM, Tom Breton (Tehom) wrote:


Here is org-decisions.  All 68 tests ran successfully.  I hope it is
satisfactory.  If it's not, please let me know.

Please find attached:
* org-decisions.el
* diffs to org.el
* test-org-decisions.el.
* 6 example files in testing

A few notes:

** Test files

I included 6 example files that I used in testing, and my test file
test-org-decisions.el.

test-org-decisions.el uses my tester rtest, which is unfortunately in
flux at the moment.  Still, I felt it would be best to make it
publicly available.

** Use of cl

I used cl in org-decisions.el.  I hope that's not a problem, but if it
is I can rewrite the parts that use cl.

* pushnew
* position
* destructuring-bind
* defstruct

** Use of allout

org-decisions.el and test-org-decisions.el use allout for structuring.
I removed the mode: allout line so that they can be read without
allout present.

   Tom Breton (Tehom)
org-decisions.elorg.el.difftest-org- 
decisions.elsimple.orgw-1-chosen.orgw-2- 
types.orgnonautomatic.orgno-sibs.orgw-some-nils.org




___
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: error when exporting org to html

2009-02-06 Thread Rainer Stengele
Rainer Stengele schrieb:
 I have a problem exporting html and directly browsing the exported file.
 I have my org file in a indirect buffer,
 
 Pressing C-c C-e b results in:
 
 Exporting... [2 times]
 save-restriction: Args out of range: 0, 1
 
 org version: 6.21b
 GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2009-01-12 on LENNART-69DE564
 (patched)
 
 Can anybody give me a hint?
 
 
 By the way, I always run into this task:
 I have a very large org file and want to export a specific region to html.
 The highest org-level of the region is for example 6 **.
 Exporting results correctly in high HTML header levels and strange
 formatting formatting.
 I would like to automatically export to level 1.
 What I now do is copy the region in a new org file. move the level to 1 = 
 *
 and export then. Bad workaround ...
 Anybody has a suggestion?
 
 Rainer
 
 
 
 ___
 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
 

Hi again,

Carsten, I now cannot reproduce the save-restriction: Args out of range: 0, 1
error anymore. It is gone after restarting emacs.


I have another little thing:

having this PROPERTIES in my org file defined like this:

:PROPERTIES:
#+TITLE: dotNET Statusrunde
#+DATE:  2009-02-03 Dienstag
#+LANGUAGE:  de
#+OPTIONS:   H:7 num:t toc:t \n:t @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:nil
skip:nil d:nil tags:nil timestamp:nil creator:nil autor:nil
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
:END:

after the HTML Export the HTML file still has these two lines in it:


:PROPERTIES:br/
:END:br/


How can I disable this?


Rainer


___
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] auto-fill-mode bug?

2009-02-06 Thread John Rakestraw
On Fri, 6 Feb 2009 00:38:07 +0100
Christopher Kuettner ckuett...@gmail.com wrote:

 Using org together with auto-fill.  Whenever I hit (C-c c) to update
 my file-specific #+TAGS: settings, org exits auto-fill.  I than have
 to re-enter auto-fill.  Why?  Is this a bug?

hmm. doesn't happen here. I use org with auto-fill, and routinely
refresh settings with C-c C-c (not with C-c c, but I assume that was a
typo?). Auto-fill remains active.

(emacs 22.2.1; org updated via git just this moments ago)

-- 
John Rakestraw


___
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] auto-fill-mode bug?

2009-02-06 Thread Christopher Kuettner
Using org together with auto-fill.  Whenever I hit (C-c c) to update
my file-specific #+TAGS: settings, org exits auto-fill.  I than have
to re-enter auto-fill.  Why?  Is this a bug?

 - Christopher


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


Re: [Orgmode] Automatic Update of Org files

2009-02-06 Thread David Thole
Something I've been working on and am continuing to work on is kinda a
middleware script like what you're doing.  It's in python now - and have a
few who contacted me personally who are interested in this once I get the
refactor complete.

Basically what I've done is try to merge stuff in from our Redmine system
here (Redmine is another ticket tracking system).  The workflow I came up
with, at least for the script is:

1.  Query redmine, get all my assigned issues.
2.  Open the org file, read and parse through everything in there (currently
it goes for the dates that I have for scheduled, and I want to eventually
get it so that all the notes as well as time logging will be captured too.
3.  Merge the two sources together (I use two hashed arrays, basically it's
something like array[ISSUEID] = array, where the second array contain
inforamtion such as the title, project, due date, date scheduled, etc).  I
use rules such as that the deadlines are determined in the Redmine system,
so that takes priority over my due date - but the date scheduled would be
captured, and the state (TODO/DONE/ETC). The status is determined,
currently, within Redmine - I haven't figured out a good way yet on dealing
with that yet.

Kinda on my wishlist:

1. A postback to Redmine, say I update the status to complete, I wouldn't
mind if there was a good way to push that information to redmine, using my
comments in my ticket to add perhaps - or maybe allowing for a certain type
of tag.
2. To handle notes, the checked sub-items that can occur, etc.

It's still a work in progress, but part of my work is to try and allow a
more pluggable system so that other ticket management systems can be
represented.

Still working on the refactoring..let me know if this interests you at all.

-David

On Thu, Feb 5, 2009 at 5:13 PM, Mark Elston m.els...@advantest-ard.comwrote:

 Samuel,

 Thanks for the info.  I will have to digest this and see if it
 fits.

 One concern I have with this approach (and I may not have fully
 grasped what you intended) is that the original source files have
 the current information like deadlines, etc that I want used
 when creating my agenda for the week.  If I want more information
 about the agenda item I will navigate to it and hit Return which
 takes me to the generated Org file.  Once there, I would like to
 be able to add notes as necessary.

 Alternatively, I suppose I could navigate to the notes if there is
 a simple mechanism for this.  I don't really understand all you
 described below but I will try playing with it and see what comes
 out.

 Mark

 * Samuel Wales wrote (on 2/5/2009 2:40 PM):

  IIUC, source is not under your complete control.  You need it orgified
 but also annotated.  There are various annotation mechanisms.  My
 comments on the remember redesign might be relevant.

 You could consider going backward.  Have your org file contain links
 to the read-only stuff.  Put entry IDs in the read-only stuff.

 Dunno if this helps.

 Here is something I had lying around:

 Another feature is to have org-registry show on the mode
 line when a link points to the current buffer's object (w3m
 page, file, dired, etc.).  You click on it to go to the org
 file link.  See my remember suggestions in a previous thred
 for more re annotations, bookmarks, and registry.

 I proposed this before:

 === snip

 Extension #2 to the bookmark idea.

 My idea is to always have annotations available for
 emacs-w3m, dired, files, like org-annotate-file, just with
 more modes.

 You can see in the mode line that whatever buffer you are in
 has an annotation, and you can make an annotation.  You can
 also go to the annotation.

 The annotations are stored in an org file anywhere in the
 hierarchy.  Thus, if you want, annotations on a doctor's web
 site can be stored in the entry for that doctor that is in
 your org file.  If you visit that web site from any source,
 even Google, the mode line says that it is annotated.  Then
 you can pull up that entry with a command.

 Likewise with files or dired or whatever.  For example, you
 can comment org.el or /etc/passwd without having to modify
 them.

 Remember code seems a plausible place to arrange for
 choosing a location and putting a note into it.  Annotations
 are like bookmarks with text that also go the other
 direction.  It's natural to combine the idea of a bookmark
 and the idea of an annotation.

 You might want the mode line to say there is bookmark to
 this (web page, file, etc.) as one character and there is
 a text note about this as another character.  Thus, if you
 have annotated a file and the file is unmodified, you will
 see -u:--!! and if you have merely bookmarked the location
 without commenting on it, then you will see -u:--!-.
 === snip




 ___
 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 Issue

2009-02-06 Thread Bernt Hansen
Carsten Dominik domi...@science.uva.nl writes:

Bernt, or any other git guru, how can I find
out when I changed that default?  I am sure there
is a clever way to do this?

$ git log -S'string to find'

or

$ git gui blame FILE
 - find the line you are interested in
 - right click on it and 'blame parent commit'
   repeatedly to walk back through the commit history

-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] Column Properties

2009-02-06 Thread Carsten Dominik


On Feb 3, 2009, at 11:50 AM, Flávio wrote:


I am using COLUMN VIEW to see a summary of worked and estimated hours.
But I am
getting some strange results.

In one big org file I clocked all my work in different atomic tasks
(The file is mixed with English and Portuguese ).
For example:

* Apontamento de Horas Gerais
** Atendimentos / Serviços
*** Estudo Técnico (externo)
*** Suporte Técnico
   :CLOCK:
CLOCK: [2008-11-25 Tue 14:30]--[2008-11-25 Tue 19:30] =  5:00
CLOCK: [2008-11-24 Mon 13:58]--[2008-11-24 Mon 14:39] =  0:41
CLOCK: [2008-11-24 Mon 13:11]--[2008-11-24 Mon 13:48] =  0:37
CLOCK: [2008-11-24 Mon 07:00]--[2008-11-24 Mon 07:30] =  0:30
   :END:
  My Customer
* Motor and valves problem ( go down )
 :CLOCK:
  CLOCK: [2008-12-01 Mon 13:00]--[2008-12-01 Mon 15:24] =  2:23
  CLOCK: [2008-11-26 Wed 15:28]--[2008-11-26 Wed 15:40] =  0:12
 :END:
* 09.00698 - Technical Support
 CLOCK: [2009-02-02 Mon 15:15]--[2009-02-02 Mon 16:56] =  1:41

Then I decided to start with PROPERTIES for item 09.00698 -  
Technical Support,

and my file became:

* Apontamento de Horas Gerais
 :PROPERTIES:
 :COLUMNS:  %50ITEM  %10CLOCKSUM(Clocked) %5Effort(Estimate){:}
%5HourSold(Sold){:}
 :ID:   apontamento_horas
 :END:
** Atendimentos / Serviços
*** Estudo Técnico (externo)

*** Suporte Técnico
   :CLOCK:
   CLOCK: [2008-11-25 Tue 14:30]--[2008-11-25 Tue 19:30] =  5:00
   CLOCK: [2008-11-24 Mon 13:58]--[2008-11-24 Mon 14:39] =  0:41
   CLOCK: [2008-11-24 Mon 13:11]--[2008-11-24 Mon 13:48] =  0:37
   CLOCK: [2008-11-24 Mon 07:00]--[2008-11-24 Mon 07:30] =  0:30
   :END:
 My Customer
* Motor and valves problem ( go down )
 :CLOCK:
 CLOCK: [2008-12-01 Mon 13:00]--[2008-12-01 Mon 15:24] =  2:23
   CLOCK: [2008-11-26 Wed 15:28]--[2008-11-26 Wed 15:40] =  0:12
   :END:
* 09.00698 - Technical Support
   :PROPERTIES:
   :Effort:   20:00
   :HourSold: 21:00
   :END:
CLOCK: [2009-02-02 Mon 15:15]--[2009-02-02 Mon 16:56] =  1:41

Then I generate a table using the code:

#+BEGIN: columnview :hlines 2 :vlines t :id apontamento_horas
:skip-empty-rows t

#+END:

The code works fine and my table is ok, but I have some errors when:

1) If I want my CLOCKED column to be the last one and Estimate at  
first column,
all clocked values are filled in the first column anyway, although  
it is
Estimate. So the solution for this problem was to consider the  
CLOCKED always

as the first column.


I don't seem to be able to reproduce this behavior.




2) If I consider both Effort and HourSold Properties with the value  
of 20:00
under item 09.00698 - Technical Support, I get an empty column  
under Sold in
the summary table. So the solution for this problem was to consider  
the Effort

20:00 and Sold 21:00 then I get the correct summary.



Uhhh, very bad bug indeed.  Fixed, thanks for finding that 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] minor option conflict

2009-02-06 Thread Carsten Dominik

Hi Samuel,

I cannot reproduce this.

- Carsten

On Feb 6, 2009, at 6:44 AM, Samuel Wales wrote:


With org-log-done set to t or 'time and
org-cycle-separator-lines set to 0 or 1, on a node with no
body, org-done inserts a time log item with a blank line after
it.  This causes the blank line to show in the collapsed
outline.

Perhaps org-done could check for the presence of a body
before deciding to insert a blank line.

--
For personal and corporate gain, myalgic encephalomyelitis denialists
are knowingly causing massive suffering and 25-years-early death by
grossly corrupting science.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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




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


Re: [Orgmode] Sorting a column of inactive dates

2009-02-06 Thread Carsten Dominik


On Feb 3, 2009, at 1:06 AM, Hsiu-Khuern Tang wrote:


Hi all,

I have a table where one column consists of inactive dates, such as  
this:


  | Date | OK? |
  |--+-|
  | [2009-01-30 Fri] | x   |
  | [2009-01-27 Tue] | x   |
  | [2009-01-28 Wed] | x   |

I can't sort the table by that column.  If I change the dates to  
active, then

sorting (by time) works fine.  Is this behavior intentional?



Yes, intentional, because the same routine also does sorting of
entries and should prefer active time stamps.  However, I realize that
we can still look for an inactive time stamp when no active one can be
found.   I just pushed this change.

- 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] html heading levels when exporting sub-tree

2009-02-06 Thread William Henney
Hi Carsten

On Fri, Feb 6, 2009 at 1:38 AM, Carsten Dominik domi...@science.uva.nl wrote:
 I guess you are right that this should work differently,
 but it is not as easy to fix as I thought.  It is on my
 list, though.


OK, I understand. Thanks for looking into it. I really appreciate the
effort that you put into org mode development. How you manage to do
all this and be scientifically productive too never ceases to astound
me.

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
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: Advice sought on managing decision alternatives.

2009-02-06 Thread William Henney
On Fri, Feb 6, 2009 at 7:08 AM, Carsten Dominik domi...@science.uva.nl wrote:
 CHOOSEas the prefix
 choseness as the interpretation
 org-decision as the name of the module.

 My request would be to maybe use `choose' also as the
 interpretation symbol, or, alternatively, CHOSENESS
 as the prefix.


I believe the standard spelling is chosenness, although it is a very
rare word in English outside of Judaism :)

Cheers

Will



-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
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: Funny export of code

2009-02-06 Thread Sebastian Rose
Sebastian Rose sebastian_r...@gmx.de writes:

 The Problem does not occur in LaTeX export. That works fine.

 Hm.


This one is FIXED by Carsten already. Just to note that here.


Thank's Carsten,

-- 
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
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


Re: [Orgmode] Sorting a column of inactive dates

2009-02-06 Thread Hsiu-Khuern Tang
* On Fri 03:53PM +, 06 Feb 2009, Carsten Dominik (domi...@science.uva.nl) 
wrote:
 
 On Feb 3, 2009, at 1:06 AM, Hsiu-Khuern Tang wrote:
 
  Hi all,
 
  I have a table where one column consists of inactive dates, such as  
  this:
 
| Date | OK? |
|--+-|
| [2009-01-30 Fri] | x   |
| [2009-01-27 Tue] | x   |
| [2009-01-28 Wed] | x   |
 
  I can't sort the table by that column.  If I change the dates to  
  active, then
  sorting (by time) works fine.  Is this behavior intentional?
 
 
 Yes, intentional, because the same routine also does sorting of
 entries and should prefer active time stamps.  However, I realize that
 we can still look for an inactive time stamp when no active one can be
 found.   I just pushed this change.

Thank you for this change; it works great!

-- 
Best,
Hsiu-Khuern.


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


Re: [Orgmode] Automatic Update of Org files

2009-02-06 Thread Mark Elston

David,

This sound interesting and similar to what I am doing.  I didn't
want to have to parse the Org file but it may be that I have no
choice in the matter.

I may be able to make some of this easier on myself by putting all
(or most) generated information in a block of some kind that allows
me to keep it as text without having to really 'parse' it.  This would
make the 'merge' process simpler.

As for your wishlist items I am not so concerned with the 'postback'
as I am not just looking at my own issues but those in my group as
well.  I won't mark something as done until it has been completed
in TestTrack.

My biggest concern is keeping any notes I add to items I have extracted
from these various sources during an update process.

I tried the org-registry package mentioned by Samuel but it didn't
load and initialize.  I am not sure but I think it may be due to the
fact that my 'org-agenda-files' variable is set to a directory and not
a list of files.

You say you are using Python.  I have used Perl since I found a SOAP
package for Perl and I haven't seen one for Python and I need it for
accessing TestTrack.  I would prefer Python otherwise.

I would be interested in seeing what you have.  It may give me some
ideas.

Mark

* David Thole wrote (on 2/6/2009 7:19 AM):
Something I've been working on and am continuing to work on is kinda a 
middleware script like what you're doing.  It's in python now - and have 
a few who contacted me personally who are interested in this once I get 
the refactor complete.


Basically what I've done is try to merge stuff in from our Redmine 
system here (Redmine is another ticket tracking system).  The workflow I 
came up with, at least for the script is:


1.  Query redmine, get all my assigned issues.
2.  Open the org file, read and parse through everything in there 
(currently it goes for the dates that I have for scheduled, and I want 
to eventually get it so that all the notes as well as time logging will 
be captured too.
3.  Merge the two sources together (I use two hashed arrays, basically 
it's something like array[ISSUEID] = array, where the second array 
contain inforamtion such as the title, project, due date, date 
scheduled, etc).  I use rules such as that the deadlines are determined 
in the Redmine system, so that takes priority over my due date - but the 
date scheduled would be captured, and the state (TODO/DONE/ETC). The 
status is determined, currently, within Redmine - I haven't figured out 
a good way yet on dealing with that yet.


Kinda on my wishlist:

1. A postback to Redmine, say I update the status to complete, I 
wouldn't mind if there was a good way to push that information to 
redmine, using my comments in my ticket to add perhaps - or maybe 
allowing for a certain type of tag.

2. To handle notes, the checked sub-items that can occur, etc.

It's still a work in progress, but part of my work is to try and allow a 
more pluggable system so that other ticket management systems can be 
represented.


Still working on the refactoring..let me know if this interests you at all.

-David

On Thu, Feb 5, 2009 at 5:13 PM, Mark Elston m.els...@advantest-ard.com 
mailto:m.els...@advantest-ard.com wrote:


Samuel,

Thanks for the info.  I will have to digest this and see if it
fits.

One concern I have with this approach (and I may not have fully
grasped what you intended) is that the original source files have
the current information like deadlines, etc that I want used
when creating my agenda for the week.  If I want more information
about the agenda item I will navigate to it and hit Return which
takes me to the generated Org file.  Once there, I would like to
be able to add notes as necessary.

Alternatively, I suppose I could navigate to the notes if there is
a simple mechanism for this.  I don't really understand all you
described below but I will try playing with it and see what comes
out.

Mark

* Samuel Wales wrote (on 2/5/2009 2:40 PM):

IIUC, source is not under your complete control.  You need it
orgified
but also annotated.  There are various annotation mechanisms.  My
comments on the remember redesign might be relevant.

You could consider going backward.  Have your org file contain links
to the read-only stuff.  Put entry IDs in the read-only stuff.

Dunno if this helps.

Here is something I had lying around:

Another feature is to have org-registry show on the mode
line when a link points to the current buffer's object (w3m
page, file, dired, etc.).  You click on it to go to the org
file link.  See my remember suggestions in a previous thred
for more re annotations, bookmarks, and registry.

I proposed this before:

=== snip

Extension #2 to the bookmark idea.

My idea is to always have annotations available for
emacs-w3m, dired, 

Re: [Orgmode] Automatic Update of Org files

2009-02-06 Thread Manish
On Sat, Feb 7, 2009 at 12:24 AM, Mark Elston wrote:
[...]
 My biggest concern is keeping any notes I add to items I have
 extracted from these various sources during an update process.

 I tried the org-registry package mentioned by Samuel but it didn't
 load and initialize.

I haven't had a chance to use it but you could take a look at
contrib/lisp/org-annotate-file.el as well.  It seems to do something
similar.

-- 
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] Installing on windows

2009-02-06 Thread Manish
On Fri, Feb 6, 2009 at 6:37 PM, Saurabh Agrawal wrote:

 Then check Org version again please.

 It is still 6.16... :(

 Can you please mail me your complete .emacs, the location where you
 unzipped the org-mode package and what additional steps you took to
 install the package (like make etc.), if any?

 Hi Manish, thanks for all the help. Here is my .emacs.

We finally went interactive in a chat session to resolve this.

My understanding was that the following statement will add the path to
the front of the load path and Org from this location will be loaded by
(require 'org-install).

--8---cut here---start-8---
(add-to-list 'load-path D:/Software/office/emacs/org-6.21b/org-6.21b/lisp)
--8---cut here---end---8---

But it kept loading the version of Org bundled with EmacsW32.  Yes, we
did clean up the compiled org files from the location
(EmacsW32/emacs/lisp/org).  Also removing the complete org directory
started throwing an error about missing location and did not seem to
load .emacs at all.  While loading Emacs site-start.el seems to somehow
expect the org directory under EmacsW32/emacs/lisp directory.

We finally ended copying latest org files to EmacsW32/emacs/lisp/org
directory.

Obviously, I do not fully understand the initialization sequence for
EmacsW32.  Could someone using EmacsW32 throw some more light on a
better procedure/technique to install Org-mode on it?

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] Automatic Update of Org files

2009-02-06 Thread Mark Elston

Manish,

I actually have it printed out and am going through it.

One of the reasons I would prefer to keep notes *with* the
entries I generate is that I would like to eventually export
both the entries and notes to a file I can print out and take
with me to meetings.  Either LaTeX export or text export would
work.  In any case, I thought it would be simpler if everything
were in one place.

Both the org-registry and the org-annotate-file put notes separate
from the entries.  While this is OK for online work it is more
problematic when you want to create a set of notes to take to a
meeting.  At least it seems so to me.

Mark

* Manish wrote (on 2/6/2009 11:34 AM):

On Sat, Feb 7, 2009 at 12:24 AM, Mark Elston wrote:
[...]

My biggest concern is keeping any notes I add to items I have
extracted from these various sources during an update process.

I tried the org-registry package mentioned by Samuel but it didn't
load and initialize.


I haven't had a chance to use it but you could take a look at
contrib/lisp/org-annotate-file.el as well.  It seems to do something
similar.




___
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: Advice sought on managing decision alternatives.

2009-02-06 Thread Tom Breton (Tehom)
 Hi Tom,
 [...]

 WIth you patch, we have right now

 CHOOSEas the prefix
 choseness as the interpretation
 org-decision as the name of the module.

 My request would be to maybe use `choose' also as the
 interpretation symbol, or, alternatively, CHOSENESS
 as the prefix.

Yes.  I think choose is best; the ambiguity between chosenness and
choseness just invited difficulties.

Always feel free to suggest alternatives to my naming.  Sometimes my
initial ideas go in a funny direction.  Eg, my initial thinking, which I
now abandon, was:

 * org-DECISIONS.el because it supports decisions.
 * CHOSENNESS because it's the property the item has of being chosen or not.
   As William observed, it's grammatically correct but rare.
 * CHOOSE because I saw that CHOSENNESS has problems.

So choose it is.  I'd like to rename the file org-choose.el as well, now
that I think about the naming.

Do you want a patch for it?

 For customizing org-todo-keywords, instead of explicitly
 offering `choseness', maybe we can use a symbol field
 where people can type into.

It's more flexible but offers less support to the user.  Maybe we can have
the best of both worlds by restricting the choice to interpretations that
available modules support.  Ie, something like this:

 * Object: a variable that holds the names of the interpretation symbols,
or of the ones that aren't built in.
 * Behavior: interested modules add their interpretation symbol to the list
 * Behavior: When customizing org-todo-keywords, offer the symbols from
   that list as choices for interpretation symbols.

The primary difficulty would be getting widgets to understand that.


 That would turn your patch into a generally useful system
 of hooks where other ideas could be implemented as well.

 What do you think?

Sounds good to me.

Tom Breton (Tehom)






___
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] Installing on windows

2009-02-06 Thread Chris McMahan
You were adding to the end of the load path, and emacs was using the
first copy it came to (the one included in emacs).

You could try something like this instead...


(setq load-path-orig load-path)
(setq load-path
  (append
   (list
(D:/Software/office/emacs/org-6.21b/org-6.21b/lisp))
   load-path-orig


- Chris
(comments and other suggestion welcome!)


Manish writes:
On Fri, Feb 6, 2009 at 6:37 PM, Saurabh Agrawal wrote:

 Then check Org version again please.

 It is still 6.16... :(

 Can you please mail me your complete .emacs, the location where you
 unzipped the org-mode package and what additional steps you took to
 install the package (like make etc.), if any?

 Hi Manish, thanks for all the help. Here is my .emacs.

We finally went interactive in a chat session to resolve this.

My understanding was that the following statement will add the path to
the front of the load path and Org from this location will be loaded by
(require 'org-install).

--8---cut here---start-8---
(add-to-list 'load-path D:/Software/office/emacs/org-6.21b/org-6.21b/lisp)
--8---cut here---end---8---

But it kept loading the version of Org bundled with EmacsW32.  Yes, we
did clean up the compiled org files from the location
(EmacsW32/emacs/lisp/org).  Also removing the complete org directory
started throwing an error about missing location and did not seem to
load .emacs at all.  While loading Emacs site-start.el seems to somehow
expect the org directory under EmacsW32/emacs/lisp directory.

We finally ended copying latest org files to EmacsW32/emacs/lisp/org
directory.

Obviously, I do not fully understand the initialization sequence for
EmacsW32.  Could someone using EmacsW32 throw some more light on a
better procedure/technique to install Org-mode on it?

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

-- 

Chris McMahan | cmcma...@one.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


Re: [Orgmode] minor option conflict

2009-02-06 Thread Samuel Wales
On Fri, Feb 6, 2009 at 08:42, Carsten Dominik domi...@science.uva.nl wrote:
 I cannot reproduce this.

I assumed that it would be reproducible, apologies.

org-add-planning-info sees outline-regexp and inserts \n.  I do not
comprehend the code.


___
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: minor option conflict

2009-02-06 Thread Bernt Hansen
Samuel Wales samolog...@gmail.com writes:

 On Fri, Feb 6, 2009 at 08:42, Carsten Dominik domi...@science.uva.nl wrote:
 I cannot reproduce this.

 I assumed that it would be reproducible, apologies.

 org-add-planning-info sees outline-regexp and inserts \n.  I do not
 comprehend the code.

Have you maybe changed the value of outline-regexp from the default?

-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: minor option conflict

2009-02-06 Thread Samuel Wales
outline-regexp is a variable defined in `outline.el'.
Its value is \\*+ 
Local in buffer todo-new.org; global value is [*\f]+
Automatically becomes buffer-local when set in any fashion.
--


___
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: minor option conflict

2009-02-06 Thread Bernt Hansen
Samuel Wales samolog...@gmail.com writes:

 outline-regexp is a variable defined in `outline.el'.
 Its value is \\*+ 
 Local in buffer todo-new.org; global value is [*\f]+
 Automatically becomes buffer-local when set in any fashion.
 --

Okay - I guess that's not it.  Your value matches mine for org files.

-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: minor option conflict

2009-02-06 Thread Bernt Hansen
I can't reproduce this either.

-Bernt


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

 Hi Samuel,

 I cannot reproduce this.

 - Carsten

 On Feb 6, 2009, at 6:44 AM, Samuel Wales wrote:

 With org-log-done set to t or 'time and
 org-cycle-separator-lines set to 0 or 1, on a node with no
 body, org-done inserts a time log item with a blank line after
 it.  This causes the blank line to show in the collapsed
 outline.

 Perhaps org-done could check for the presence of a body
 before deciding to insert a blank line.

 -- 
 For personal and corporate gain, myalgic encephalomyelitis denialists
 are knowingly causing massive suffering and 25-years-early death by
 grossly corrupting science.
 http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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



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


___
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] Article (and Python script) for reformatting agenda view for paper planner

2009-02-06 Thread Charles Cave

I have written an article about a Python script I wrote
to reformat the agenda view into a compact format for printing
as my daily action plan.

http://members.optusnet.com.au/~charles57/GTD/agenda_reformatting.html

I am a Python novice, so I welcome feedback on the script.


Charles
in Sydney, Australia




___
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] Installing on windows

2009-02-06 Thread Tim O'Callaghan
  Obviously, I do not fully understand the initialization sequence for
  EmacsW32.  Could someone using EmacsW32 throw some more light on a
  better procedure/technique to install Org-mode on it?


Hi,

I run the same installation of org in Xemacs  Emacs on Windows+Cygwin
 Linux/Unix.

Currently i have these native versions installed:
* GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-06-30 on
LENNART-69DE564 (patched)
* XEmacs 21.4 (patch 21) Educational Television [Lucid]
(i586-pc-win32) of Sun Oct 07 2007 on VSHELTON-PC2

The basic technique is:
1) do not compile any source to EL files.
2) make sure the HOME environmental variable is set correctly.
3) use the (expand-filename) function, and relative filenames. It
makes everything work cross platform.

Here is an quick walk through my (X)Emacs setup.

My .emacs:
--8---cut here---start-8---
(defconst toc:zemacsen-dir ~/.zemacsen_d/
  Path to xemacsen root directory and the init.el file)
(defconst toc:zemacsen-site-lisp-dir (concat toc:zemacsen-dir site-lisp/)
  Path to (x)emacs lisp includes)

(load (expand-file-name (concat toc:zemacsen-dir init)))
--8---cut here---end---8---

Notice the ~/ unix style relative paths? expand-filename converts that
into the value of your HOME environmental variable. This must be set
for Cygwin, but is also useful for other unixlike tools.

so if  HOME=C:\home\, this code loads the file
C:\home\.zemacsen\init.el which is my real (x)emacs configuration
file.

I then have a function that does something like:
--8---cut here---start-8---
 (add-to-list 'load-path (expand-file-name (concat
toc:zemacsen-site-lisp-dir org-mode/lisp)))
 --8---cut here---end---8---

Which places c:/home/.zemacsen_d/site-lisp/org-mode  at the
beginning of the load-path list, trumping any other installation. You
can check with alt-x describe-variable load-path  to make sure it's
at the start of the load-path list.

Here is the function and its org usage:
--8---cut here---start-8---
(defun toc:add-to-load-path (dirlist)
  (dolist (dir dirlist load-path)
(setq dir (expand-file-name (concat toc:zemacsen-site-lisp-dir dir)))
(if (file-directory-p dir)
(add-to-list 'load-path dir

(toc:add-to-load-path '(org-mode/lisp/
org-mode/contrib/lisp/
org-mode/xemacs/
remember/))

;; Initialize org
(cond ((featurep 'xemacs)
   (require 'noutline)
   (require 'ps-print-invisible)))

(require 'org)
 --8---cut here---end---8---

I have a similar setup for exec-path, to make sure my preferred
windows binaries are found before the windows system ones.

--8---cut here---start-8---
(defun toc:add-to-exec-path (dirlist optional front)
  (dolist (dir dirlist exec-path)
(setq edir (expand-file-name dir))
(setq qdir (shell-quote-argument (expand-file-name dir)))
(message Testing PATH:= %s dir)
(cond ((file-directory-p dir)
   (add-to-list 'exec-path dir front)
   (message Searching PATH:= %s -- %s (regexp-quote dir)
(getenv PATH))
   (unless (string-match (regexp-quote dir) (getenv PATH))
 (message Adding PATH:= %s\n dir)
 (if front
 (setenv PATH (concat dir path-separator (getenv PATH)))
   (setenv PATH (concat (getenv PATH) path-separator dir
 --8---cut here---end---8---

I'm sure its not pretty (or optimised) but, what can i say but that so
far it works for me (almost) everywhere.

hope that helps.

Tim.


___
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] Installing on windows

2009-02-06 Thread Sebastian Rose
Chris McMahan cmcma...@one.net writes:
 You were adding to the end of the load path, and emacs was using the
 first copy it came to (the one included in emacs).

 You could try something like this instead...


 (setq load-path-orig load-path)
 (setq load-path
   (append
(list
 (D:/Software/office/emacs/org-6.21b/org-6.21b/lisp))
load-path-orig


that is:


(setq load-path (cons /usr/local/share/emacs/site-lisp/ load-path))


:)

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
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] Move point to next-line after clocking in

2009-02-06 Thread Daniel Clemente

Hi.
  Consider a file with 2 lines:

--
 heading
 
--

  Place the cursor at line 2 (where you can type). Then use C-c C-x C-i to 
start a clock.
  You have now 3 lines:

--
 heading
 CLOCK: [2009-02-07 sáb 01:06] 

--

  However, the cursor is still placed at line 2, like before. I think it would 
be more useful if it were moved to line 3 so that you can start writing right 
away, just as before.
  This saves you the C-n needed to move again to a blank line.

  I don't know if other actions would also benefit from this, for instanc 
clocking in for a second time (thus adding a properties block). It's probably 
not needed.


  Thanks,
Daniel with org 6.20g


___
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] Latex enumerate item problem

2009-02-06 Thread Flávio de Souza

I think I found a problem when exporting to Latex.

If my org file is like this:

* Blablablbalbala

1) Blablablbalbala 

2) Blablablbalbala 

#+BEGIN_EXAMPLE

sudo apt-get install openoffice.org-java-common

#+END_EXAMPLE

3) Blablablbalbala 

4) Blablablbalbala 

5) Blablablbalbala 

When I export to latex I got two enumerated lists instead of only one. See how 
the code will look:

\begin{enumerate}
\item Blablablbalbala 
\item Blablablbalbala 
\end{enumerate}

\begin{verbatim}

  sudo apt-get install openoffice.org-java-common

\end{verbatim}


\begin{enumerate}
\item Blablablbalbala 
\item Blablablbalbala 
\item Blablablbalbala 
\end{enumerate}

Then I need to fix it by deleting the \end and \begin that apperead in the 
wrong lines.

Regards,

-- 
Flávio de Souza
flavio...@gmail.com



___
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] Too much text is interpreted as a code fragment

2009-02-06 Thread Daniel Clemente

Hi, with this file:


* blabla
  CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =  0:33
c:if test=%= GroupPermission.contains(permissionChecker, group.getGroupId(), 
ActionKeys.MANAGE_LAYOUTS) %


  I see this fragment:

=  0:33
c:if test=

  highlighted in face „org-code“. I think the = should not be interpreted as 
code markers (=these ones=).

  Change the colours to see it better while testing:
(set-face-background 'org-code #141)
(set-face-foreground 'org-code #1f1)
(set-face-underline-p 'org-code nil)



-- Daniel with org 6.20g



___
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] Article (and Python script) for reformatting agenda view for paper planner

2009-02-06 Thread Matthew Lundin

Hi Charles,

Charles Cave charles_c...@optusnet.com.au writes:

 I have written an article about a Python script I wrote
 to reformat the agenda view into a compact format for printing
 as my daily action plan.

 http://members.optusnet.com.au/~charles57/GTD/agenda_reformatting.html

Thanks for sharing this script! I like how the script slices and dices
the normal agenda view to organize by context.

For anyone who's interested, you can also similar compact formatting
(with checkboxes) using custom agenda command settings, espcially the
variables org-agenda-prefix-format, org-agenda-block-separator, and
org-agenda-overriding-header.

There's a somewhat complex example in the custom agenda commands
tutorial on Worg.

http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php#sec-5.4

Best,
Matt


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


Re: [Orgmode] Latex enumerate item problem

2009-02-06 Thread Sebastian Rose
HI Flavio (?),


Lists are made from indentation in the first place, I think. Hence the 

#+BEGIN_EXAMPLE

breaks the list.


It would be OK to export it like that, since, funny enough, a `pre'
element is indeed allowed inside an `li' element in XHTML (it is _not_
allowed in a p element _and_ a ol element is _not_ allowed inside a
p).



To check the validity of XHTML fragments, goto

http://validator.w3.org/#validate_by_input+with_options

ensure that `Validate HTML fragment' is checked (under `Options') and
choose org's DOCTYPE (XHTML 1.0).

Finally put this into the textarea on top before you submit:

p
 ol
  liblabllabla
   pre
 function lowerThan(a,b){return (a lt; b); }
   /pre
  /li
 /ol
/p


As a second test remove the p element:


 ol
  liblabllabla
   pre
 function lowerThan(a,b){return (a lt; b); }
   /pre
  /li
 /ol




flavio...@gmail.com (Flávio de Souza) writes:
 I think I found a problem when exporting to Latex.

 If my org file is like this:

 * Blablablbalbala

 1) Blablablbalbala 

 2) Blablablbalbala 

 #+BEGIN_EXAMPLE

 sudo apt-get install openoffice.org-java-common

 #+END_EXAMPLE

 3) Blablablbalbala 

 4) Blablablbalbala 

 5) Blablablbalbala 

 When I export to latex I got two enumerated lists instead of only one. See 
 how the code will look:

 \begin{enumerate}
 \item Blablablbalbala 
 \item Blablablbalbala 
 \end{enumerate}

 \begin{verbatim}

   sudo apt-get install openoffice.org-java-common

 \end{verbatim}


 \begin{enumerate}
 \item Blablablbalbala 
 \item Blablablbalbala 
 \item Blablablbalbala 
 \end{enumerate}

 Then I need to fix it by deleting the \end and \begin that apperead in the 
 wrong lines.

 Regards,

-- 
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


Re: [Orgmode] Too much text is interpreted as a code fragment

2009-02-06 Thread Sebastian Rose
Hi Daniel,


I cannot reproduce this here.



Daniel Clemente n142...@gmail.com writes:
 Hi, with this file:

 
 * blabla
   CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =  0:33
 c:if test=%= GroupPermission.contains(permissionChecker, 
 group.getGroupId(), ActionKeys.MANAGE_LAYOUTS) %
 

   I see this fragment:
 
 =  0:33
 c:if test=
 


Is this the HTML source, or what you see in your browser, or both?



Here the export works as expected (formatting adjusted for readability):



div id=outline-container-1 class=outline-2
h2 id=sec-11 blabla /h2
div id=text-1

p
  span class=timestamp-kwdCLOCK: /span
  span class=timestamp2009-02-06 dv 09:39/spanndash;
  span class=timestamp2009-02-06 dv 10:12/span
  codegt;  0:33 lt;c:if test/codelt;%=
   GroupPermission.contains(permissionChecker, group.getGroupId(),
ActionKeys.MANAGEsubLAYOUTS/sub) %gt;gt;
/p
/div



Regards,


  Sebastian



   highlighted in face „org-code“. I think the = should not be interpreted as 
 code markers (=these ones=).

   Change the colours to see it better while testing:
 (set-face-background 'org-code #141)
 (set-face-foreground 'org-code #1f1)
 (set-face-underline-p 'org-code nil)



 -- Daniel with org 6.20g



 ___
 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


-- 
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] how to do this org-agenda command?

2009-02-06 Thread Richard KLINDA
Hi, I need an org-agenda-custom-commands section for the following: list
all TODO entries, that are either scheduled for that day OR have #A
priority.  Is it possible?  Thanks in advance!

-- 
Richard


___
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] Index page to my articles on org-mode, Remember mode, GTD and emacs

2009-02-06 Thread Charles Cave

I have published several articles on org-mode over the last
few years but until now I haven't had an index page to the
collection.

Today I created the index page and here it is ...

http://members.optusnet.com.au/~charles57/GTD/

Charles



___
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] Automatic Update of Org files

2009-02-06 Thread William Henney
Mark

On Fri, Feb 6, 2009 at 12:54 PM, Mark Elston m.els...@advantest-ard.com wrote:
 You say you are using Python.  I have used Perl since I found a SOAP
 package for Perl and I haven't seen one for Python and I need it for
 accessing TestTrack.  I would prefer Python otherwise.

http://www.diveintopython.org/soap_web_services/

HTH

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
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] Too much text is interpreted as a code fragment

2009-02-06 Thread Carsten Dominik

Hi Daniel,

stuff you do not want interpreted should be protected as
an example, or with :  at the beginning of the line.
If you do want this interpreted as HTML, put it into a BEGIN_HTML  
block or so.


- Carsten

On Feb 7, 2009, at 1:23 AM, Daniel Clemente wrote:



Hi, with this file:


* blabla
 CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =  0:33
c:if test=%= GroupPermission.contains(permissionChecker,  
group.getGroupId(), ActionKeys.MANAGE_LAYOUTS) %



 I see this fragment:

=  0:33
c:if test=

 highlighted in face „org-code“. I think the = should not be  
interpreted as code markers (=these ones=).


 Change the colours to see it better while testing:
(set-face-background 'org-code #141)
(set-face-foreground 'org-code #1f1)
(set-face-underline-p 'org-code nil)



-- Daniel with org 6.20g



___
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