Re: [Orgmode] How to change CREATED property value to inactive in org-expiry

2009-12-27 Thread David Maus
Hi Manish,

At Sun, 27 Dec 2009 00:41:15 +0530,
Manish wrote:
 I have just spent an hour trying to figure out how to change the
 timestamp added as a result of org-expiry-insinuate to inactive with
 no success.  It seems to me that I need to change something in
 function org-expiry-insert-created but don't know what.  I also do not
 understand in which situations does an active timestamp for CREATED
 property make sense.

I recently started to patch org-expiry.el and enabling inactive
timestamps was the first thing I patched. The modified version is on
the expiry+ branch in a copy of org-mode @github.com:

http://github.com/dmj/org-mode/tree/expiry+

I hope I got the git-things rights this time so fetching and merging
it with a local branch of the original should work.

Next thing on my list is to toggle auto inserting of the creation date
for Todo headlines only.

Regards

 -- David

-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


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


Re: [Orgmode] How to change CREATED property value to inactive in org-expiry

2009-12-27 Thread David Maus
Ah, forgot: To enable inactive timestamps when using the expiry+
branch simply set the variable `org-expiry-inactive-timestamps' to t.

Regards

 -- David
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


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


Re: [Orgmode] How to change CREATED property value to inactive in org-expiry

2009-12-27 Thread Manish
Manish I have just spent an hour trying to figure out how to change
Manish the timestamp added as a result of org-expiry-insinuate to
Manish inactive with no success.  It seems to me that I need to
Manish change something in function org-expiry-insert-created but
Manish don't know what.  I also do not understand in which
Manish situations does an active timestamp for CREATED property make
Manish sense.

David I recently started to patch org-expiry.el and enabling inactive
David timestamps was the first thing I patched. The modified version
David is on the expiry+ branch in a copy of org-mode @github.com:
David
David http://github.com/dmj/org-mode/tree/expiry+
David
David I hope I got the git-things rights this time so fetching and
David merging it with a local branch of the original should work.
David
David Next thing on my list is to toggle auto inserting of the
David creation date for Todo headlines only.
David
David To enable inactive timestamps when using the expiry+ branch
David simply set the variable `org-expiry-inactive-timestamps' to t.

Works as advertised. :)  Hope the patch makes it to org-mode soon.

Thank you.
Best regards
-- 
Manish


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


[Orgmode] Need help exporting subtrees to html

2009-12-27 Thread Juan Reyero
Greetings,

I have written a function to export org-mode subtrees as jekyll posts,
http://juanreyero.com/open/org-jekyll/  The idea is that any entry in
an org-publish project that has a :blog: keyword and an :on: property
with a timestamp should be exported to a _posts directory with the
year-month-day-title.html that jekyll expects, with the properties as
front-matter.

I was very happy with it, until I realized that the levels of the
headers in the exported file (h2, h3, etc) depend on the indentation
of the subtree in the outline.  I wanted to be able to add a :blog:
subtree anywhere in my project's files, and get it always exported the
same, regardless of where in the outline it is.

Is there any reasonably simple way to overcome this problem?  I am using:

(org-narrow-to-subtree)
(setq html (org-export-as-html nil nil nil 'string t nil))

to do the exporting (all the code is in github,
http://github.com/juanre/org-jekyll).  In summary, what I need is an
org-export-as-html that treats the least indented outline as a
0-indentation.

Best,

Juan
-- 
http://juanreyero.com/
http://unarueda.com


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


[Orgmode] Re: [babel] documentation released to Worg

2009-12-27 Thread andrea
Eric Schulte schulte.e...@gmail.com writes:

 Hello,

 Tom Dye, Dan Davison and I have significantly updated the Org-babel
 documentation.  All of the features of Org-babel should now be covered.

 http://orgmode.org/worg/org-contrib/babel/

 Best -- Eric

Great I'll have a look...
Little typo on home page: instillation



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


Re: [Orgmode] Need help exporting subtrees to html

2009-12-27 Thread Carsten Dominik


On Dec 27, 2009, at 5:34 PM, Juan Reyero wrote:


Greetings,

I have written a function to export org-mode subtrees as jekyll posts,
http://juanreyero.com/open/org-jekyll/  The idea is that any entry in
an org-publish project that has a :blog: keyword and an :on: property
with a timestamp should be exported to a _posts directory with the
year-month-day-title.html that jekyll expects, with the properties as
front-matter.

I was very happy with it, until I realized that the levels of the
headers in the exported file (h2, h3, etc) depend on the indentation
of the subtree in the outline.  I wanted to be able to add a :blog:
subtree anywhere in my project's files, and get it always exported the
same, regardless of where in the outline it is.

Is there any reasonably simple way to overcome this problem?  I am  
using:


(org-narrow-to-subtree)
(setq html (org-export-as-html nil nil nil 'string t nil))


Hi Juan,

Try this:

(outline-mark-subtree)
(setq html (org-export-as-html nil nil nil 'string t nil))

HTH

- Carsten



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


Re: [Orgmode] Need help exporting subtrees to html

2009-12-27 Thread Juan Reyero
Hi Carsten,

On Sun, Dec 27, 2009 at 7:35 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 On Dec 27, 2009, at 5:34 PM, Juan Reyero wrote:
 I have written a function to export org-mode subtrees as jekyll posts,
 http://juanreyero.com/open/org-jekyll/  The idea is that any entry in
 an org-publish project that has a :blog: keyword and an :on: property
 with a timestamp should be exported to a _posts directory with the
 year-month-day-title.html that jekyll expects, with the properties as
 front-matter.

 I was very happy with it, until I realized that the levels of the
 headers in the exported file (h2, h3, etc) depend on the indentation
 of the subtree in the outline.  I wanted to be able to add a :blog:
 subtree anywhere in my project's files, and get it always exported the
 same, regardless of where in the outline it is.

 Is there any reasonably simple way to overcome this problem?  I am using:

 (org-narrow-to-subtree)
 (setq html (org-export-as-html nil nil nil 'string t nil))

 Hi Juan,

 Try this:

 (outline-mark-subtree)
 (setq html (org-export-as-html nil nil nil 'string t nil))

Thanks for your answer.  I've tried it, but now it exports the whole
buffer, as if (outline-mark-subtree) didn't understand which subtree I
am looking at.  I am doing this from within an (org-map-entries).  If
I first narrow and then mark it doesn't work either: it complains of
Before first headline at position

I have updated the tests at http://github.com/juanre/org-jekyll to
reflect the problem.

Best,

Juan
-- 
http://juanreyero.com/
http://unarueda.com


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


[Orgmode] Agenda repeats diary entries

2009-12-27 Thread Nathan Neff
Hello,

I'm using org-agenda-diary-file.

When I run agenda-mode with the attached configuration,
I see the same diary entry under each day.

Here's what my agenda shows.  Notice that the entry
from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda.
Also, 2009 and 2009-12-December headers
repeated under each day.

Monday 14 December 2009 W51
  Diary:  2009
  Diary:  2009-12 December
  Diary:  * 2009-12-08 Tuesday
  Diary:  ** Something else.
  Diary:  2009-12-08 Tue
Tuesday15 December 2009
  Diary:  2009
  Diary:  2009-12 December
  Diary:  * 2009-12-08 Tuesday
  Diary:  ** Something else.
  Diary:  2009-12-08 Tue

Here's the contents of my diary file journal.org
* 2009
** 2009-12 December
*** 2009-12-08 Tuesday
 Something else.
  2009-12-08 Tue

I've tried to include the bare-minimum in my .emacs file,
and I can provide it if necessary.  I'm submitting this
using M-x org-submit-bug-report, so hopefully, all necessary
info is included.

Thanks for any suggestions,

--Nate




mode
Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
 of 2009-09-27 on crested, modified by Debian
Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-files '(~/tmp/temp-org-dir/temp.org)
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-agenda-diary-file ~/Documents/journal.org
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-directory ~/tmp/temp-org-dir
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 )
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] autoloading stuff

2009-12-27 Thread andrea

If I don't remember wrong in the guide everything was supposed to be
required.

Now is there a way to eliminate all the requires?  I have all those
requires, and the problems is that also babel loads the entire
programming mode even if I don't need it.

--8---cut here---start-8---
(require 'org)
(require 'reftex)
(require 'org-extension)
(require 'remember)
(require 'org-remember)
(require 'org-annotate-file)
(require 'org-babel-init)
(require 'org-babel-dot)   ;; dot
(require 'org-babel-gnuplot)   ;; gnuplot, and gnuplot-mode
(require 'org-babel-haskell)   ;; haskell, haskell-mode, inf-haskell
(require 'org-babel-ocaml) ;; ocaml, and tuareg-mode
(require 'org-babel-python);; python, and python-mode
(require 'org-babel-ditaa)
(require 'org-babel-ruby)  ;; ruby, irb, ruby-mode, and inf-ruby
(require 'org-babel-sql)   ;; none
(require 'org-babel-sh)
(require 'orgtbl-sqlinsert)
--8---cut here---end---8---



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


[Orgmode] Announcing org-ruby

2009-12-27 Thread Brian Dewey
I want to use org-mode files in one of the many Ruby static website
generation tools (Webby, Webgen, Jekyll, etc.). Thus, I needed a way to
extract simple HTML from an org-mode file *without* relying on emacs.

Thus, org-ruby was born. It's not nearly as full featured as the emacs-based
HTML export, but at the moment I am successfully using org-mode files as
content for Webby http://webby.rubyforge.org/static websites.

Full source is here: http://github.com/bdewey/org-ruby

Or you can just grab the gem and go:

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


[Orgmode] Re: [babel] documentation released to Worg

2009-12-27 Thread Bernt Hansen
andrea andrea.crott...@gmail.com writes:

 Little typo on home page: instillation

Fixed.

-Bernt


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


Re: [Orgmode] autoloading stuff

2009-12-27 Thread Thomas S. Dye

Hi Andrea,

I'm not certain I understand your question, but it brings to mind the  
Getting Started section of


http://orgmode.org/worg/org-contrib/babel/intro.php,

which indicates that you can activate whatever subset of supported  
languages you wish.


The typo you pointed out in an earlier message has been fixed and  
should appear next time the documentation has been updated on Worg.


All the best,
Tom

On Dec 27, 2009, at 10:50 AM, andrea wrote:



If I don't remember wrong in the guide everything was supposed to be
required.

Now is there a way to eliminate all the requires?  I have all those
requires, and the problems is that also babel loads the entire
programming mode even if I don't need it.

--8---cut here---start-8---
(require 'org)
(require 'reftex)
(require 'org-extension)
(require 'remember)
(require 'org-remember)
(require 'org-annotate-file)
(require 'org-babel-init)
(require 'org-babel-dot)   ;; dot
(require 'org-babel-gnuplot)   ;; gnuplot, and gnuplot-mode
(require 'org-babel-haskell)   ;; haskell, haskell-mode, inf-haskell
(require 'org-babel-ocaml) ;; ocaml, and tuareg-mode
(require 'org-babel-python);; python, and python-mode
(require 'org-babel-ditaa)
(require 'org-babel-ruby)  ;; ruby, irb, ruby-mode, and inf-ruby
(require 'org-babel-sql)   ;; none
(require 'org-babel-sh)
(require 'orgtbl-sqlinsert)
--8---cut here---end---8---



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


[Orgmode] Re: autoloading stuff

2009-12-27 Thread andrea
Thomas S. Dye t...@tsdye.com writes:
 Hi Andrea,
 I'm not certain I understand your question, but it brings to mind the
 Getting Started section of
 http://orgmode.org/worg/org-contrib/babel/intro.php,
 which indicates that you can activate whatever subset of supported
 languages you wish.

Well the problems is that I would like to load all those possible modes
only the first time that I actually open an org-file that contains code
for that language.

--8---cut here---start-8---
;;; Code:
(require 'org-babel)
(require 'tuareg)
--8---cut here---end---8---

For example I find that org-babel/ocaml it loads tuareg, even if I'm not
using it at all...

I would like in general to require the least things as possible, and use
*eval-after-load* and hooks for everything.
Thomas S. Dye t...@tsdye.com writes:



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


Re: [Orgmode] Re: autoloading stuff

2009-12-27 Thread Thomas S. Dye

Hi Andrea,

On Dec 27, 2009, at 12:53 PM, andrea wrote:


Thomas S. Dye t...@tsdye.com writes:

Hi Andrea,
I'm not certain I understand your question, but it brings to mind the
Getting Started section of
http://orgmode.org/worg/org-contrib/babel/intro.php,
which indicates that you can activate whatever subset of supported
languages you wish.


Well the problems is that I would like to load all those possible  
modes
only the first time that I actually open an org-file that contains  
code

for that language.

--8---cut here---start-8---
;;; Code:
(require 'org-babel)
(require 'tuareg)
--8---cut here---end---8---

For example I find that org-babel/ocaml it loads tuareg, even if I'm  
not

using it at all...

I would like in general to require the least things as possible, and  
use

*eval-after-load* and hooks for everything.


I don't believe this is addressed in the documentation.  Perhaps Eric  
or Dan can give you an answer when they are back on-line.


All the best,
Tom


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