Re: [O] Copy/Search Outline

2011-07-26 Thread Christian Moe

On 7/22/11 10:20 PM, Florian Beck wrote:

Hi all,

when working with outlines (tabbing until CONTENTS), there are two
things I cannot figure out:

Firstly, I want to copy the *visible* text (minus the …, but never mind
that);


C-c C-e v [SPACE]
C-x h M-w
C-x k

In other words: Begin exporting only the visible part with `C-c C-e 
v', then press space at the prompt for output formats. This leaves you 
in a second buffer with a copy of the visible part (and yes, you do 
get rid of the ellipses). Then select all with `C-c h' (alternately, 
select the region of your choice) and copy. Kill the copy buffer when 
you're done with it.


You may want to record a keyboard macro if you need this often.


secondly, I want to be able to search only the visible text.


You can do that, albeit only in a copy of your document in a separate 
buffer, with the approach above. But why would you want to? Perhaps if 
you state a use case, someone can point out a different approach.



More generally (and less org specific), how do I restrict commands to
the visible parts of the buffer?


I don't know.

Yours,
Christian



Re: [O] Copy/Search Outline

2011-07-26 Thread Christian Moe

On 7/26/11 8:35 AM, Christian Moe wrote:

Then select all with `C-c h' (alternately,


Typo, sorry. I meant `C-x h'.

cm



Re: [O] [bug] org block not correctly exported to LaTeX

2011-07-26 Thread Thomas Holst
Hi Eric,

thanks for looking into this.

· Eric Schulte schulte.e...@gmail.com wrote:
 Thomas Holst thomas.ho...@de.bosch.com writes:
 Hi Bastien,

 thanks for your answer. 

 when the follwing org-file is exported to LaTeX, #+BEGIN_ORG
 and #+END_ORG is inserted in the tex-file.

 You surely want
 #+begin_src org
 #+end_src org
 #+begin_org doesn't exist.

 #+BEGIN_ORG 
 #+END_ORG

 gets inserted by org-babel.

 Yes, Babel uses the #+begin/end_org as markers, so that it can identify
 the beginning and end of raw Org-mode results when those results need to
 be deleted or replaced with new results.

 Since these are just used as markers and are functionally equivalent to
 comment lines (e.g., no special treatment of the portion between the
 begin_org and end_org lines) we didn't really coordinate this with the
 results of Org-mode.

 It seems however that since comments must start on the first character
 of a line, these don't work when indented.

 Would it be difficult to recognize these two lines as comments when they
 are indented?  Note we also have #+begin/end_result lines which may
 likely have similar issues.

This exactly is the issue. If I remove the indentation from the result
block export works fine. As you mentioned #+begin/#+end_org markers are
treated as comments and do not appear in the LaTeX output.

I tried to find a solution to this but my lisp is not (yet) good enough.

-- 
Mit freundlichen Grüßen / Best regards 

Thomas Holst 
DGS-EC/ESE4

Tel.   +49 (711) 811-40681
PC-Fax +49 (711) 811-5182208



Re: [O] [bug] org block not correctly exported to LaTeX

2011-07-26 Thread Thomas Holst
Hi Bernt,

· Bernt Hansen be...@norang.ca wrote:
 Thomas Holst thomas.ho...@de.bosch.com writes:

 Hi Bastien,

 thanks for your answer. 

 when the follwing org-file is exported to LaTeX, #+BEGIN_ORG
 and #+END_ORG is inserted in the tex-file.

 You surely want
 #+begin_src org
 #+end_src org
 #+begin_org doesn't exist.

 #+BEGIN_ORG 
 #+END_ORG

 Here is an example which shows the issue.

 #+begin_src org
 * Testing org-babel perl
   
   #+srcname: TestingPerl
   #+begin_src perl :exports results :results output org
 print(#+CAPTION: A caption\n);
 print(#+LABEL: tbl:dvi\n);
 print(#+ATTR_LaTeX: placement[H]\n);
 print(| *bold/T* |\n);
 print(||\n);
 print(| normal |\n);
   #+end_src
   #+results: TestingPerl
   #+BEGIN_ORG
   #+CAPTION: A caption
   #+LABEL: tbl:dvi
   #+ATTR_LaTeX: placement[H]
   | *bold/T* |
   ||
   | normal |
   #+END_ORG
 #+end_src org

 You have nested #+begin_src / #+end_src in this example.  I'm not sure
 that is supported.

I used #+begin_src / #+end_src org only to show the org file in my
email. The part between #+begin / #+end_src org is the content of my
test org file.

As Eric said the problem is #+begin_org / #+end_org which is inserted by
babel. If #+begin_org / #+end_org does not start at column 0 it appears in
the exported LaTeX file.

-- 
Mit freundlichen Grüßen / Best regards 

Thomas Holst 
DGS-EC/ESE4

Tel.   +49 (711) 811-40681
PC-Fax +49 (711) 811-5182208



[O] agenda bulk command schedule does not schedule items to today although indicating Today

2011-07-26 Thread Rainer Stengele
Hi all!

trying to bulk reschedule entries from yesterday to today I do mark
them with m, the start the bulk command with B s.
Minibuffer shows = 2011-07-26 Di which today is today.
Pressing Enter reschedules every item to its old schedule date.

Is this intended?

I know I can simply enter . for today - that works -  I just wonder if
the default behavior is misleading ..

- Rainer




[O] [tables, babel] evaluate code block in table with arguments

2011-07-26 Thread Dirk Scharff
Hi all,

I want to use a code-block in a table and can't get it to work. Consider the 
following example: 


#+Source: the_test
#+begin_src python :var x=3 :results output
print x
#+end_src

| argument | argument | result |
|1 |1 | #ERROR |
|2 |2 ||
#+TBLFM: $2=$::$3=call_the_test(x=$)


How can I address the the argument on the left hand side of the table while 
calling a code block? If I do it like shown in the example (column 2) I get the 
following error:
reference '$' not found in this buffer.

Isn't this possible in org-mode or am I doing something wrong?

Regards,
Dirk.


Re: [O] Copy/Search Outline

2011-07-26 Thread Florian Beck
Christian Moe m...@christianmoe.com writes:

 Firstly, I want to copy the *visible* text (minus the …, but never mind
 that);

 In other words: Begin exporting only the visible part with `C-c C-e 
 v', then press space at the prompt for output formats. This leaves you
 in a second buffer with a copy of the visible part (and yes, you do
 get rid of the ellipses). Then select all with `C-c h' (alternately,
 select the region of your choice) and copy. Kill the copy buffer when
 you're done with it.

Thanks. Seems like `org-export-visible' does exactly what I want.

I also wrote a function to copy the visible part of the region. For
those curious:

(defun copy-visible (beg end)
  (interactive r)
  (let ((text ) s)
(save-excursion
  (save-restriction
(narrow-to-region beg end)
(setq s (goto-char (point-min)))
(while (not (= (point) (point-max)))
  (goto-char (org-find-invisible))
  (setq text (concat text (buffer-substring s (point
  (setq s (goto-char (org-find-visible))
(kill-new text)))



 secondly, I want to be able to search only the visible text.

 You can do that, albeit only in a copy of your document in a separate
 buffer, with the approach above. But why would you want to? Perhaps if
 you state a use case, someone can point out a different approach.

Actually (as I just found out) you can do it very easily by setting the
variable `search-invisible' no nil (found in isearch.el).


 More generally (and less org specific), how do I restrict commands to
 the visible parts of the buffer?

 I don't know.

I guess it's not possible because commands work on the buffer and
usually do not know about viviblity. Maybe something like
`with-visible-buffer' could be proposed – but now with searching and
copying working, I do not really have a use case.

Thanks again.


-- 
Florian Beck



Re: [O] Question about org-search-view and org-occur-in-agenda-files

2011-07-26 Thread suvayu ali
Hi Matt,

On Tue, Jul 26, 2011 at 5:09 AM, Matt Lundin m...@imapmail.org wrote:
 Custom agenda commands do not support prompting for search phrases.

 The following custom agenda command offers a prompt:

 --8---cut here---start-8---
 (org-add-agenda-custom-command
  '(x Search special files search 
   ((org-agenda-files '(~/special/)
 --8---cut here---end---8---


Yes, that was one of my misconceptions from my reading of the
org-agenda-custom-commands docs. The docs say:

[...]

matchWhat to search for:
  - a single keyword for TODO keyword searches
  - a tags match expression for tags searches
  - a word search expression for text searches.
  - a regular expression for occur searches
  For all other commands, this should be the empty string.

And the following example is given,

   (search match settings files)

I erroneously assumed the string cannot be an empty string until I read
the article on Worg. I also realised I can use let to set any variable
to whatever I need and wrap around any of the search functions. I can
then have prompts for any kind of search with these. Thanks everyone for
pointing me in the right direction. :)

 Best,
 Matt

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Copy/Search Outline

2011-07-26 Thread Carsten Dominik

On Jul 26, 2011, at 11:30 AM, Florian Beck wrote:

 Christian Moe m...@christianmoe.com writes:
 
 Firstly, I want to copy the *visible* text (minus the …, but never mind
 that);
 
 In other words: Begin exporting only the visible part with `C-c C-e 
 v', then press space at the prompt for output formats. This leaves you
 in a second buffer with a copy of the visible part (and yes, you do
 get rid of the ellipses). Then select all with `C-c h' (alternately,
 select the region of your choice) and copy. Kill the copy buffer when
 you're done with it.
 
 Thanks. Seems like `org-export-visible' does exactly what I want.
 
 I also wrote a function to copy the visible part of the region. For
 those curious:
 
 (defun copy-visible (beg end)
  (interactive r)
  (let ((text ) s)
(save-excursion
  (save-restriction
   (narrow-to-region beg end)
   (setq s (goto-char (point-min)))
   (while (not (= (point) (point-max)))
 (goto-char (org-find-invisible))
 (setq text (concat text (buffer-substring s (point
 (setq s (goto-char (org-find-visible))
(kill-new text)))

This is a very useful function, thanks!  I have added it
to org-mode as `org-copy-visible', currently without a key
binding.

To speed it up a bit, you made it collect the snippets into
a list and then do the concat in one sweep - this might make a
difference for large buffers.

Cheers

- Carsten


Re: [O] Any work on Java ME?

2011-07-26 Thread Bastien
XeCycle xecy...@gmail.com writes:

 Java ME seems more widely supported, has anyone worked on that?

 Also, it's painful to input text on iOS devices, and text is all of Org
 mode.

I don't understand.  Can you be more explicit?

Thanks,

-- 
 Bastien



Re: [O] Copy/Search Outline

2011-07-26 Thread Carsten Dominik

On Jul 26, 2011, at 11:54 AM, Carsten Dominik wrote:

 
 On Jul 26, 2011, at 11:30 AM, Florian Beck wrote:
 
 Christian Moe m...@christianmoe.com writes:
 
 Firstly, I want to copy the *visible* text (minus the …, but never mind
 that);
 
 In other words: Begin exporting only the visible part with `C-c C-e 
 v', then press space at the prompt for output formats. This leaves you
 in a second buffer with a copy of the visible part (and yes, you do
 get rid of the ellipses). Then select all with `C-c h' (alternately,
 select the region of your choice) and copy. Kill the copy buffer when
 you're done with it.
 
 Thanks. Seems like `org-export-visible' does exactly what I want.
 
 I also wrote a function to copy the visible part of the region. For
 those curious:
 
 (defun copy-visible (beg end)
 (interactive r)
 (let ((text ) s)
   (save-excursion
 (save-restriction
  (narrow-to-region beg end)
  (setq s (goto-char (point-min)))
  (while (not (= (point) (point-max)))
(goto-char (org-find-invisible))
(setq text (concat text (buffer-substring s (point
(setq s (goto-char (org-find-visible))
   (kill-new text)))
 
 This is a very useful function, thanks!  I have added it
 to org-mode as `org-copy-visible', currently without a key
 binding.

Ando now there is a key (C-c C-x v) and a menu entry,
and documentation in manual and refcard for it.

Thanks again.

- Carsten


 
 To speed it up a bit, you made it collect the snippets into
 a list and then do the concat in one sweep - this might make a
 difference for large buffers.
 
 Cheers
 
 - Carsten

- Carsten






Re: [O] References in Latex

2011-07-26 Thread Aditya Mandayam
ok. after reading dye's page and the linked article for xetex:
http://emacs-fu.blogspot.com/2011/04/nice-looking-pdfs-with-org-mode-and.html

i seem to have rubber working.

however, do take a look at the resulting pdf: http://i.imgur.com/YvUKo.png

as you can see, none of the citations after the first citation show up
as sidenotes (i am using the tufte-handout document class).

further, in the section titled references, only the first citation shows up.

the following is in my .emacs:

(require 'org-latex)
(unless (boundp 'org-export-latex-classes)
(setq org-export-latex-classes nil))
(add-to-list 'org-export-latex-classes
 `(handout

\% rubber: set program xelatex
\\documentclass{tufte-handout}
\\usepackage{amsmath}
\\usepackage{graphicx}
\\usepackage{booktabs}
\\usepackage{units}
\\usepackage{multicol}
\\usepackage{fontspec,xltxtra,xunicode}
\\defaultfontfeatures{Mapping=tex-text}
\\setromanfont[Mapping=tex-text]{Bauer Bodoni Std 1 Roman}


(\\section{%s} . \\section*{%s})
(\\subsection{%s} . \\subsection*{%s})

))

and

(defun org-mode-reftex-setup ()
(load-library reftex)
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(reftex-parse-all))
(define-key org-mode-map (kbd C-c c) 'reftex-citation)
)
(add-hook 'org-mode-hook 'org-mode-reftex-setup)

(setq org-latex-to-pdf-process
  '(rubber -sd %b)
)

any thoughts?
On Mon, Jul 25, 2011 at 10:58 PM, Nick Dokos nicholas.do...@hp.com wrote:
 Aditya Mandayam adity...@gmail.com wrote:


 So when exporting from .org to LaTeX-PDF, I would like the references
 to show up at the bottom. This does not happen currently. Why is it
 so?

 PS: Gleaned from
 http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/

 PPS: I am using the tufte-handout document class. On changing this to
 the default article class, the references still do not show up.


 The first thing to do is to read Tom Dye's excellent LaTeX export
 tutorial:

        http://orgmode.org/worg/org-tutorials/org-latex-export.html

 If you still have problems after that, the second thing to do is
 to post here an example of what you are trying to do: a small org
 file, what happens to it on latex export and what you would like
 to happen.

 Nick




Re: [O] Copy/Search Outline

2011-07-26 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes:

 This is a very useful function, thanks!  I have added it
 to org-mode as `org-copy-visible', currently without a key
 binding.

 Ando now there is a key (C-c C-x v) and a menu entry,
 and documentation in manual and refcard for it.

Great, thanks to both of you!

-- 
 Bastien



Re: [O] Any work on Java ME?

2011-07-26 Thread Tassilo Horn
Bastien b...@altern.org writes:

 Java ME seems more widely supported, has anyone worked on that?

 Also, it's painful to input text on iOS devices, and text is all of
 Org mode.

 I don't understand.  Can you be more explicit?

That was my first question, too. :-)

And quoting Wikipedia:

,[ http://en.wikipedia.org/wiki/Java_Platform,_Micro_Edition ]
| There are more than 2.1 billion Java ME enabled mobile phones and
| PDAs, but it is becoming old technology as it is not used on any of
| today's newest mobile platforms (e.g. iPhone, Android, Windows Phone
| 7, MeeGo, BlackBerry's new QNX).
`

Bye,
Tassilo




Re: [O] breaking URLs

2011-07-26 Thread Bastien
Henri-Paul Indiogine hindiog...@gmail.com writes:

 Hi Bastien!

 2011/7/18 Bastien b...@altern.org:
 the URL in  \url{my url}  it is exported as

 \url{[[my url]] [[my url]]}   however the URL is nicely split to the
 next line in the pdf.

 I would welcome ideas/code to have more flexibility wrt the way urls
 are handled by the LaTeX exporter.

 If there would be a way of having the URL in orgmode be exported to
 LaTeX as \url{my url} without the square brackets and the repetition
 that would be all that is necessary for me.  I have no idea why the
 LaTeX exporter add the brackets and duplicates the link.

You want to customize `org-export-latex-href-format'.

This variable used to make two %s mandatory, to insert both the link
and its path.  You can now use only one %s if you want, since latest
git commit.

  (setq org-export-latex-href-format \url{%s}) 

will do what you want.

Thanks for bringing this up!

-- 
 Bastien



Re: [O] problems with org-edit-special and python

2011-07-26 Thread Bastien
Hi Dirk,

Dirk Scharff dirk.scha...@googlemail.com writes:

 I played around with this issue again today and found out, that it
 doesn't happen if i comment out the initialization of the python
 setup i mentioned in my .emacs . So I guess its some incompatibility
 introduced in this package. I think I'll abandon the package and
 create my own setup when I find the time to do it. 

 I guess this issue doesn't have anything to do with org-mode after
 all, I'm sorry for any inconvenience I may have caused.

No problem -- thanks for letting us know!

-- 
 Bastien



Re: [O] References in Latex

2011-07-26 Thread suvayu ali
Hi Aditya,

On Tue, Jul 26, 2011 at 12:51 PM, Aditya Mandayam adity...@gmail.com wrote:
 as you can see, none of the citations after the first citation show up
 as sidenotes (i am using the tufte-handout document class).


Without looking at the original org file or the exported tex file it
is difficult for us to know what you are expecting. As Nick mentioned
earlier, if things don't work please provide us with a _minimal_
example org file which others can use to test on a minimal org setup.
Help us help you is the guiding phrase here. :)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [PATCH] New org-depend trigger for finding next highest priority/effort item

2011-07-26 Thread Bastien
Hi Max,

Max Mikhanosha m...@openchat.com writes:

 org-depend TRIGGER chain-siblings(NEXT) property is hardly usable for
 me, because it requires too much effort to keep items nicely sorted.

 For example if next headline is already in DONE state, chain-siblings
 would still change it. I prefer to sort my items by setting their
 priorities and/or effort estimate, leaving DONE items in place for
 some time.

 Attached patch implements new TRIGGER chain-find-next(NEXT[,options])
 trigger, which allows to flexibly select which of the siblings will be
 changed to NEXT.

Thanks for this!

 Example: chain-find-next(NEXT,from-current,priority-up,todo-only)


From 10ac42d25793eedc595641555186321219818cec Mon Sep 17 00:00:00 2001
 From: Max Mikhanosha m...@openchat.com
 Date: Sun, 24 Jul 2011 14:44:44 -0400
 Subject: [PATCH 11/11] Add chain-find-next trigger option.

 ---
  contrib/lisp/org-depend.el |  142 
 +++-
  1 files changed, 140 insertions(+), 2 deletions(-)

 diff --git a/contrib/lisp/org-depend.el b/contrib/lisp/org-depend.el
 index 089a6a0..aa8e728 100644
 --- a/contrib/lisp/org-depend.el
 +++ b/contrib/lisp/org-depend.el
 @@ -55,7 +55,43 @@
  ;;- The sibling also gets the same TRIGGER property
  ;;  chain-siblings-scheduled, so the chain can continue.
  ;;
 -;; 3) If the TRIGGER property contains any other words like
 +;; 3) If the TRIGGER property contains the string
 +;;chain-find-next(KEYWORD[,OPTIONS]), then switching that entry
 +;;to DONE do the following:
 +;;- All siblings are of the entry are collected into a temporary
 +;;  list and then filtered and sorted according to OPTIONS
 +;;- The first sibling on the list is changed into KEYWORD state
 +;;- The sibling also gets the same TRIGGER property
 +;;  chain-siblings-scheduled, so the chain can continue.


This should rather be chain-find-next here, right?

 +;;OPTIONS should be a comma separated string without spaces, and
 +;;can contain following options:
 +;;
 +;;- from-top  the candidate list is all of the siblings in
 +;;the current subtree
 +;;
 +;;- from-bottom   candidate list are all siblings from bottom up
 +;;
 +;;- from-current  candidate list are all siblings from current item
 +;;until end of subtree, then wrapped around from
 +;;first sibling
 +;;
 +;;- no-wrap   candidate list are siblings from current one down

I'm not sure to understand the difference between from-top and
from-current, and between from-top and no-wrap. 

Can you give an example?

 +;;
 +;;- include-done  include siblings with TODO in `org-done-keywords',
 +;;they are excluded by default

The phrasing is a bit confusing to me -- perhaps removing they are
excluded by default is enough.

 +;;- todo-only Only consider siblings that have TODO only, by default
 +;;siblings without TODO keyword are considered too

I suggest this:

  Only consider siblings that have a TODO keyword.

I suppose todo-only and include-done are compatible, right?

What about using exclusive options like todo-only and
todo-and-done-only?  So that you would need to use only one.

 +;;- priority-up   sort by highest priority
 +;;- priority-down sort by lowest priority
 +;;- effort-up sort by highest effort
 +;;- effort-down   sort by lowest effort
 +;;
 +;;Default OPTIONS are from-top 
 +;;
 +;;
 +;; 4) If the TRIGGER property contains any other words like
  ;;XYZ(KEYWORD), these are treated as entry id's with keywords.  That
  ;;means Org-mode will search for an entry with the ID property XYZ
  ;;and switch that entry to KEYWORD as well.
 @@ -121,6 +157,7 @@
  ;;
  
  (require 'org)
 +(require 'cl)

This (eval-when-compile (require 'cl)) -- Emacs has a policy of
preventing (require 'cl) only...

Thanks for further feedback on this!  If you can provide a small
Org file where I can test the new functionalities that will help
a lot.

Best,

-- 
 Bastien



Re: [O] New version which is compatible with emacs 24: New function to view your notes in chronological order

2011-07-26 Thread Bastien
Hi Marc-Oliver,

Marc-Oliver Ihm marc-oliver@online.de writes:

 Unfortunately, org-find-timestamps as posted before was not compatible
 with emacs 24. (More precise, it hat problems with the read-only
 property, that emacs 24 applies to text within the occur-buffer)

 The version below is now compatible with both emacs 23 and 24.

Thanks for updating this function, it works okay here (Emacs 24).

One possible improvement: consider other timestamps than just 
inactive timestamps?  

As I said, part of this function can be integrated into
`org-sparse-tree' by allowing the user to be prompted for 
a range of dates, but the display of ordered timestamps
in the occur is still useful.

Thanks,

-- 
 Bastien



[O] [PATCH] org-mac-ical: Update for MacOSX Lion

2011-07-26 Thread Don Roberts


0001-org-mac-ical-Update-for-MacOSX-Lion.patch
Description: Binary data


Re: [O] [tables, babel] evaluate code block in table with arguments

2011-07-26 Thread Sebastien Vauban
Hi Dirk,

Dirk Scharff wrote:
 I want to use a code-block in a table and can't get it to work. [...]
 Isn't this possible in org-mode or am I doing something wrong?

Use `sbe' to make calls inside tables; see
http://osdir.com/ml/emacs-orgmode-gnu/2011-07/msg00540.html

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Org-Mode Homepage error

2011-07-26 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
 thanks for signaling this problem -- I fixed it on the server.

 This commit creates problems when exporting using org-info.js: 

   
 http://orgmode.org/w/?p=org-mode.git;a=commit;h=2f1fbc58be1dc48621217d666da7bc46c3c5d84e

 This is no real surprise, as the commit changes the underlying
 div structure of an HTML page produced by Org...

 Sebastian, what would be need to make org-info.js compatible
 with both the old HTML structure and the new one, which is:

 body
   div id=preamble 
   /div

   div id=content
   /div

   div id=postamble
   /div
 /body

 (With the preamble/content/postamble strings being defined
 in the variable `org-export-html-divs'.)

 If that's too complicate, perhaps we can enforce another structure
 for divs.

I fear this is above my current capability. I tried to understand that code
for a while, but never succeeded (in a reasonable time) to, and never could
simplify it as I wanted (to use it for my own). Of course, this is mainly due
because of my inexperience in good tools to test and debug JS, and to my lack
of knowledge of that language.

But, what did you do to fix the problem?  The current structure of the HTML
page looks good, and follows the above skeleton (except there is no preamble).
So, everything looks right to me?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Any work on Java ME?

2011-07-26 Thread XeCycle
Bastien b...@altern.org writes:

 XeCycle xecy...@gmail.com writes:

 Java ME seems more widely supported, has anyone worked on that?

 Also, it's painful to input text on iOS devices, and text is all of Org
 mode.

 I don't understand.  Can you be more explicit?

Sorry.  I mean to port Org mobile to Java ME platform --- has anyone
worked on that?  Now Org mobile is on iOS platform, and we need Apple
devices to run it.  I don't have one, but my phone supports Java ME.
Also Android supports Java ME.

 Thanks,

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591


pgplQTLTCIrw2.pgp
Description: PGP signature


Re: [O] org unavailable in ELPA package manager

2011-07-26 Thread Jambunathan K

 - The ELPA instructions are for Emacs 22, not 23 (but like I said, I
 believe I had it working before)

http://orgmode.org/worg/org-faq.html#installing-elpa

If you are using package.el from tromey.com then you need to delete it
from load-path.

Previous success story is here:
http://lists.gnu.org/archive/html/emacs-orgmode/2011-06/msg00374.html

Jambunathan K.



Re: [O] [PATCH] New org-depend trigger for finding next highest priority/effort item

2011-07-26 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
 +(require 'cl)

 This (eval-when-compile (require 'cl)) -- Emacs has a policy of
 preventing (require 'cl) only...

Shouldn't we do that (require cl only) in our custom .emacs files neither?

I do have such for accessing functions like `push'...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Using org-mode for Research and Notetaking

2011-07-26 Thread Bastien
Hi Tom,

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

 Aloha all,

 Perhaps they are [[tag:boxed][already]] here with org-add-link-type?  It
 seems to me that all that's missing is a way to specify a function to
 determine on screen display.  But, I might be missing something.

just as a quick follow-up: I understand the need.  I will hack
org-link-protocols so that they can hold a custom face for each
link type.  But this won't happen for 7.7, only around mid-sept
if that's okay.

Thanks again for insisting on this, this will be quite a useful
addition!

Best,

-- 
 Bastien



Re: [O] org unavailable in ELPA package manager

2011-07-26 Thread Max Roberts-Zirker
Bastien and Jambunathan,

- I am running Emacs 23.2.1
- launching Emacs from the terminal with ~$ emacs -Q made no difference (was
that just to open up the Lisp interpreter?)
- I just successfully upgraded to Org-Mode version 7.6 using the How do I
install Org-mode from a ELPA-compatible tarball? section from
http://orgmode.org/worg/org-faq.html#installing-elpa

However, I'm not sure why this should have worked, since

- M-x list-packages RET displays [No match] in the bottom bar.
- I also seem to have lost the ability to evaluate (C-x e returns a no kdb
macro has been defined message).

I'm not sure what to do with
http://repo.or.cz/w/emacs.git/blob_plain/1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.elbut
I assume since I'm now running Org-Mode 7.6 it is no longer necessary.

Max...


On Mon, Jul 25, 2011 at 8:47 PM, Bastien b...@altern.org wrote:

 Hi Max,

 Max Roberts-Zirker mmma...@gmail.com writes:

  Thanks for the quick follow up. I'm encouraged to know that there is
  an active community here.

 There is :)

 Can we start again with the problem at hand?

 Here is how I read it:

 - you use Emacs 23.2
 - you do M-x list-packages RET
 - you don't see org as a proposed ELPA package.

 Is that right?  If so, does it happen when launching Emacs
 with ~$ emacs -Q ?

 Thanks for further details,

 --
  Bastien



[O] Generating autoloads for libraries in contrib

2011-07-26 Thread suvayu ali
Hi,

Does anyone know how to generate autoloads for libraries in the
contrib directory? I was hoping generating autoloads would let me
remove some of the (require 'library) from my setup.

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



[O] Agenda view filter

2011-07-26 Thread Renger van Nieuwkoop
Hi
I try to define a view that should show me my agenda for today with all 
NEXT/TODO items with priority A.
I found some code for the priority but did not manage to get it running with 
filtering for NEXT/TODO  (I tried adding (todo NEXT|TODO) but that did not 
work).

(setq org-agenda-custom-commands
'((p Prio A and scheduled agenda 
((org-agenda-entry-types '(:scheduled))
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp \\[#A\\]
)

Could anybode help me out?

Thanks

Renger





Re: [O] org unavailable in ELPA package manager

2011-07-26 Thread Jambunathan K

 - I just successfully upgraded to Org-Mode version 7.6 using the How
 do I install Org-mode from a ELPA-compatible tarball? section from 
 http://orgmode.org/worg/org-faq.html#installing-elpa

Good. But downloading by hand is kind of a pain.

 However, I'm not sure why this should have worked, since

 - M-x list-packages RET displays [No match] in the bottom bar.

What does C-h v package-archives report?

 I'm not sure what to do with http://repo.or.cz/w/emacs.git/blob_plain
 /1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el
 but I assume since I'm now running Org-Mode 7.6 it is no longer
 necessary.

If you want to use package manager with emacs-23 this step is
necessary. Copy it to ~/elisp and follow step 2.

Jambunathan K.



Re: [O] CLOCKTABLE multiply time expended by hourly rate?

2011-07-26 Thread Daniel E . Doherty

Bastien,

At Tue, 26 Jul 2011 02:41:51 +0200,
bzg wrote:
 
 Hi Daniel,
 
 Daniel E.Doherty ded-...@ddoherty.net writes:
 
  Bastien, I did not use the T specifier at all.  
 
 Why?  
 
 'T' is needed for duration computation -- unless you use the 
 specific calc format for time and date manipulation.
 
I am trying to take a duration output by CLOCKTABLE and multiply it by
dollars-per-hour (or dollars-per-second, either way) and get an answer
in units of dollars.

Can you suggest a way this can be done?  I've tried several variations
as set out im my prior posts with no luck.  The manual uses the example
of using T to add two durations to get a duration.  A function like
seconds() to convert the duration to an integer would do the trick.
Perhaps I'm missing something obvious.

Thanks for following this thread.

Regards,

Dan



Re: [O] org unavailable in ELPA package manager

2011-07-26 Thread Max Roberts-Zirker
Thanks for sticking with me Jambunathan,

C-h v package-archives RET reports no match also, though there do appear to
be commands: package-archive-base, package-archive-upload-base,
package-archive-version, and package-archive-contents.

Also, when I run M-x package-list-packages, it connects me to the
tromey.comsite and provides a list of available packages (INCLUDING
ORG in red, which
I assume means it is already installed.)

Max...

P.S. The ~/elisp file was successfully copied, and I'm no longer getting a
load-path error when I start emacs, so I think that solved something.
Thanks.



On Tue, Jul 26, 2011 at 9:27 AM, Jambunathan K kjambunat...@gmail.comwrote:


  - I just successfully upgraded to Org-Mode version 7.6 using the How
  do I install Org-mode from a ELPA-compatible tarball? section from
  http://orgmode.org/worg/org-faq.html#installing-elpa

 Good. But downloading by hand is kind of a pain.

  However, I'm not sure why this should have worked, since
 
  - M-x list-packages RET displays [No match] in the bottom bar.

 What does C-h v package-archives report?

  I'm not sure what to do with http://repo.or.cz/w/emacs.git/blob_plain
  /1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el
  but I assume since I'm now running Org-Mode 7.6 it is no longer
  necessary.

 If you want to use package manager with emacs-23 this step is
 necessary. Copy it to ~/elisp and follow step 2.

 Jambunathan K.



Re: [O] [tables, babel] evaluate code block in table with arguments

2011-07-26 Thread Dirk Scharff
Hi Sebastien,

thanks for pointing me to that macro. $3='(sbe the_test( x $ )) does
exactly what I wanted.

best regards,

Dirk


On Tue, Jul 26, 2011 at 2:12 PM, Sebastien Vauban 
wxhgmqzgw...@spammotel.com wrote:

 Hi Dirk,

 Dirk Scharff wrote:
  I want to use a code-block in a table and can't get it to work. [...]
  Isn't this possible in org-mode or am I doing something wrong?

 Use `sbe' to make calls inside tables; see
 http://osdir.com/ml/emacs-orgmode-gnu/2011-07/msg00540.html

 Best regards,
  Seb

 --
 Sebastien Vauban





Re: [O] org unavailable in ELPA package manager

2011-07-26 Thread Jambunathan K
Max Roberts-Zirker mmma...@gmail.com writes:

 Thanks for sticking with me Jambunathan,

 C-h v package-archives RET reports no match also, though there do
 appear to be commands: package-archive-base,
 package-archive-upload-base, package-archive-version, and
 package-archive-contents.

C-h v package-archives MUST report something like as below.

((gnu . http://elpa.gnu.org/packages/;))



 Also, when I run M-x package-list-packages, it connects me to the 
 tromey.com site and provides a list of available packages (INCLUDING
 ORG in red, which I assume means it is already installed.)

You aren't following the instructions correctly.

,
| If you are using package.el from tromey.com then you need to delete it
| from load-path.
`

Use M-x locate-library RET package RET

and delete those package.el and package.elc files before installing the
package.el file that the FAQ points to.

Jambunathan K.



 Max...

 P.S. The ~/elisp file was successfully copied, and I'm no longer
 getting a load-path error when I start emacs, so I think that solved
 something.  Thanks.



 On Tue, Jul 26, 2011 at 9:27 AM, Jambunathan K 
 kjambunat...@gmail.com wrote:


  - I just successfully upgraded to Org-Mode version 7.6 using
 the How
  do I install Org-mode from a ELPA-compatible tarball? section
 from
  http://orgmode.org/worg/org-faq.html#installing-elpa

 Good. But downloading by hand is kind of a pain.

  However, I'm not sure why this should have worked, since
 
  - M-x list-packages RET displays [No match] in the bottom
 bar.

 What does C-h v package-archives report?

  I'm not sure what to do with http://repo.or.cz/w/emacs.git/
 blob_plain
  /1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/
 package.el
  but I assume since I'm now running Org-Mode 7.6 it is no longer
  necessary.

 If you want to use package manager with emacs-23 this step is
 necessary. Copy it to ~/elisp and follow step 2.

 Jambunathan K.



Re: [O] Using org-mode for Research and Notetaking

2011-07-26 Thread Florian Beck
Bastien b...@altern.org writes:

 Hi Tom,

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

 Aloha all,

 Perhaps they are [[tag:boxed][already]] here with org-add-link-type?  It
 seems to me that all that's missing is a way to specify a function to
 determine on screen display.  But, I might be missing something.

 just as a quick follow-up: I understand the need.  I will hack
 org-link-protocols so that they can hold a custom face for each
 link type.  But this won't happen for 7.7, only around mid-sept
 if that's okay.

IIUC, entries would be of the form (TYPE FOLLOW EXPORT FACE).

What if instead of FACE you could (alternativly) specify a function that
supplied additional text properties? Possibly a face, of course, but
also interesting are `display' and `help-echo'.

I'm not a programmer, but I got this working with quite small changes
(rather untested, I admit):

diff -c /home/flo/elisp/org-mode/lisp/org.el /home/flo/tmp/org.el
*** /home/flo/elisp/org-mode/lisp/org.el2011-07-26 15:52:16.160581036 
+0200
--- /home/flo/tmp/org.el2011-07-26 16:16:00.022669409 +0200
***
*** 5315,5331 
  (defun org-activate-bracket-links (limit)
Run through the buffer and add overlays to bracketed links.
(if (re-search-forward org-bracket-link-regexp limit t)
!   (let* ((help (concat LINK: 
!  (org-match-string-no-properties 1)))
 ;; FIXME: above we should remove the escapes.
 ;; but that requires another match, protecting match data,
 ;; a lot of overhead for font-lock.
 (ip (org-maybe-intangible
  (list 'invisible 'org-link
'keymap org-mouse-map 'mouse-face 'highlight
'font-lock-multiline t 'help-echo help)))
!(vp (list 'keymap org-mouse-map 'mouse-face 'highlight
!  'font-lock-multiline t 'help-echo help)))
;; We need to remove the invisible property here.  Table narrowing
;; may have made some of this invisible.
(org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0))
--- 5315,5348 
  (defun org-activate-bracket-links (limit)
Run through the buffer and add overlays to bracketed links.
(if (re-search-forward org-bracket-link-regexp limit t)
!   (let* ((path (org-match-string-no-properties 1))
!(help (concat LINK:  path))
!(type (save-match-data
!(if (string-match
! ^\\(.*?\\):
! path)
!(org-match-string-no-properties 1 path
 ;; FIXME: above we should remove the escapes.
 ;; but that requires another match, protecting match data,
 ;; a lot of overhead for font-lock.
+(custom-attr-1 (nth 3 (assoc type org-link-protocols)))
+;; Check if `org-link-protocols' is a face or a function
+;; that returns text properties.
+(custom-attr
+  (if (and custom-attr-1
+   (facep custom-attr-1))
+  `(face ,custom-attr-1)
+(funcall (or custom-attr-1 'ignore) path)))
 (ip (org-maybe-intangible
  (list 'invisible 'org-link
'keymap org-mouse-map 'mouse-face 'highlight
'font-lock-multiline t 'help-echo help)))
!(vp (append
! (list 'keymap org-mouse-map 'mouse-face 'highlight
!   'face 'org-link
!   'font-lock-multiline t 'help-echo help)
! ;; Let custom settings override the default.
! custom-attr)))
;; We need to remove the invisible property here.  Table narrowing
;; may have made some of this invisible.
(org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0))
***
*** 5602,5608 
   (if (memq 'tag lk) '(org-activate-tags (1 'org-tag prepend)))
   (if (memq 'angle lk) '(org-activate-angle-links (0 'org-link t)))
   (if (memq 'plain lk) '(org-activate-plain-links))
!  (if (memq 'bracket lk) '(org-activate-bracket-links (0 'org-link t)))
   (if (memq 'radio lk) '(org-activate-target-links (0 'org-link t)))
   (if (memq 'date lk) '(org-activate-dates (0 'org-date t)))
   (if (memq 'footnote lk) '(org-activate-footnote-links))
--- 5619,5625 
   (if (memq 'tag lk) '(org-activate-tags (1 'org-tag prepend)))
   (if (memq 'angle lk) '(org-activate-angle-links (0 'org-link t)))
   (if (memq 'plain lk) '(org-activate-plain-links))
!  (if (memq 'bracket lk) 'org-activate-bracket-links)
   (if (memq 'radio lk) '(org-activate-target-links (0 'org-link t)))
   (if (memq 'date lk) '(org-activate-dates (0 'org-date t)))
   (if (memq 'footnote lk) '(org-activate-footnote-links))
***
*** 8437,8444 

Re: [O] Any work on Java ME?

2011-07-26 Thread Tassilo Horn
XeCycle xecy...@gmail.com writes:

Hi!

 Java ME seems more widely supported, has anyone worked on that?

 Also, it's painful to input text on iOS devices, and text is all of
 Org mode.

 I don't understand.  Can you be more explicit?

 Sorry.  I mean to port Org mobile to Java ME platform --- has anyone
 worked on that?  Now Org mobile is on iOS platform, and we need Apple
 devices to run it.  I don't have one, but my phone supports Java ME.
 Also Android supports Java ME.

To my best knowledge, Andoid does not support Java ME.  It uses a
flavour of Java, but not ME.  From wikipedia:

  Android
  ===

  The Android open-source software stack consists of Java applications
  running on a Java-based, object-oriented application framework on top
  of Java core libraries running on a Dalvik virtual machine featuring
  JIT compilation.

  Java Platform, Micro Edition
  

  There are more than 2.1 billion Java ME enabled mobile phones and
  PDAs,[2] but it is becoming old technology as it is not used on any of
  today's newest mobile platforms (e.g. iPhone, Android, Windows Phone
  7, MeeGo, BlackBerry's new QNX).

And there is already MobileOrg for Android:

  https://github.com/matburt/mobileorg-android/wiki/

Bye,
Tassilo




Re: [O] org unavailable in ELPA package manager

2011-07-26 Thread Max Roberts-Zirker
Not sure what to say Jambunathan:

- I type C-h v and a blue input field (Minibuffer I assume?) appears:
Describe variable: I type package-archives and hit RET, and it says [no
match]. It doesn't report anything.

- Where would I delete tromey.com from load-path?  It isn't in my ~/.emacs
file or ~/elisp

- M-x locate-library RET package RET returns No library package in search
path. I'll guess that that doesn't make sense to you either. Where would
M-x package-list-packages be getting the list from?

Max...


On Tue, Jul 26, 2011 at 9:56 AM, Jambunathan K kjambunat...@gmail.comwrote:

 Max Roberts-Zirker mmma...@gmail.com writes:

  Thanks for sticking with me Jambunathan,
 
  C-h v package-archives RET reports no match also, though there do
  appear to be commands: package-archive-base,
  package-archive-upload-base, package-archive-version, and
  package-archive-contents.

 C-h v package-archives MUST report something like as below.

 ((gnu . http://elpa.gnu.org/packages/;))


 
  Also, when I run M-x package-list-packages, it connects me to the
  tromey.com site and provides a list of available packages (INCLUDING
  ORG in red, which I assume means it is already installed.)

 You aren't following the instructions correctly.

 ,
 | If you are using package.el from tromey.com then you need to delete it
 | from load-path.
 `

 Use M-x locate-library RET package RET

 and delete those package.el and package.elc files before installing the
 package.el file that the FAQ points to.

 Jambunathan K.


 
  Max...
 
  P.S. The ~/elisp file was successfully copied, and I'm no longer
  getting a load-path error when I start emacs, so I think that solved
  something.  Thanks.
 
 
 
  On Tue, Jul 26, 2011 at 9:27 AM, Jambunathan K 
  kjambunat...@gmail.com wrote:
 
 
   - I just successfully upgraded to Org-Mode version 7.6 using
  the How
   do I install Org-mode from a ELPA-compatible tarball? section
  from
   http://orgmode.org/worg/org-faq.html#installing-elpa
 
  Good. But downloading by hand is kind of a pain.
 
   However, I'm not sure why this should have worked, since
  
   - M-x list-packages RET displays [No match] in the bottom
  bar.
 
  What does C-h v package-archives report?
 
   I'm not sure what to do with http://repo.or.cz/w/emacs.git/
  blob_plain
   /1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/
  package.el
   but I assume since I'm now running Org-Mode 7.6 it is no longer
   necessary.
 
  If you want to use package manager with emacs-23 this step is
  necessary. Copy it to ~/elisp and follow step 2.
 
  Jambunathan K.



Re: [O] entering a date through C-c ! or C-c . in edit mode of column view does not work

2011-07-26 Thread Bastien
Hi Jean,

Jean Wallemacq jean.wallem...@skynet.be writes:

 I get the message: C-c ! is undefined

With a column like this one:

  #+COLUMNS:%30ITEM %TODO %PRIORITY %9SCHEDULED

you can do `C-c C-x C-c' to enter column mode and type `e' 
in the scheduled column to enter a date through the calendar.

This `e' command does not work for columns TIMESTAMP and 
TIMESTAMP_IA because the (inactive) timestamps don't have
a definite place to be put on -- they can be anywhere in
the headline or in the subtree. 

I suggest you use a SCHEDULED or a DEADLINE column, depending
on your need.

HTH,

-- 
 Bastien



Re: [O] [PATCH] New org-depend trigger for finding next highest priority/effort item

2011-07-26 Thread Bastien
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Shouldn't we do that (require cl only) in our custom .emacs files
 neither?

~/.emacs.el is precisely the place where you do what you want :)

-- 
 Bastien



Re: [O] Org-Mode Homepage error

2011-07-26 Thread Bastien
Hi Sébastien,

Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 I fear this is above my current capability. I tried to understand that code
 for a while, but never succeeded (in a reasonable time) to, and never could
 simplify it as I wanted (to use it for my own). Of course, this is mainly due
 because of my inexperience in good tools to test and debug JS, and to my lack
 of knowledge of that language.

 But, what did you do to fix the problem?  

Well, I re-published Worg using an older version of org.

 The current structure of the HTML page looks good, and follows the
 above skeleton (except there is no preamble).  So, everything looks
 right to me?

No.  The current HTML structure breaks compatibility with Sebastian's
tool.  As this is a severe bug, any help on finding a way to fix this
is more than welcome...

mode lazybum
Can you sum up how the div structure changes?

What was the structure before and what is it now?

I fail to understand why an additional div id=preamble 
should break Sebastian's tool.
/mode lazybum

Thanks :)

-- 
 Bastien



Re: [O] [PATCH] org-mac-ical: Update for MacOSX Lion

2011-07-26 Thread Bastien
Applied, thanks.

(Please try to add more comments in the patch itself, even for tiny fix
like this.  It helps maintainers understand why this should be applied,
especially when it's about a system they might not use...)

-- 
 Bastien



Re: [O] Using org-mode for Research and Notetaking

2011-07-26 Thread Thomas S. Dye
Bastien b...@altern.org writes:

 Hi Tom,

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

 Aloha all,

 Perhaps they are [[tag:boxed][already]] here with org-add-link-type?  It
 seems to me that all that's missing is a way to specify a function to
 determine on screen display.  But, I might be missing something.

 just as a quick follow-up: I understand the need.  I will hack
 org-link-protocols so that they can hold a custom face for each
 link type.  But this won't happen for 7.7, only around mid-sept
 if that's okay.

 Thanks again for insisting on this, this will be quite a useful
 addition!

 Best,
Aloha Bastien,

That's great news.  Links are incredibly handy.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] Org-Mode Homepage error

2011-07-26 Thread Achim Gratz
Bastien b...@altern.org writes:
 I fail to understand why an additional div id=preamble 
 should break Sebastian's tool.
 /mode lazybum

For starters, the title now resides in the preamble, but the script
looks for it in content.  This error is easily fixed, but I don't know
if it has further repercussions.

--8---cut here---start-8---
diff --git a/code/org-info-js/org-info-src.js b/code/org-info-js/org-info-src.js
index 2e49e9c..33faaac 100644
--- a/code/org-info-js/org-info-src.js
+++ b/code/org-info-js/org-info-src.js
@@ -522,6 +522,14 @@ var org_html_manager = {
   } else { // be backward compatible
 t.BODY = document.getElementsByTagName(body)[0];
   }}
+t.PREA = document.getElementById(preamble);
+t.POST = document.getElementById(postamble);
+if(null == t.PREA) {
+   t.PREA = t.BODY;
+}
+if(null == t.POST) {
+   t.POST = t.BODY;
+}
 if(! t.WINDOW) {
   t.WINDOW = document.createElement(div);
   t.WINDOW.style.marginBottom = 40px;
@@ -738,7 +746,7 @@ var org_html_manager = {
 
 // Move the title into the first visible section.
 // TODO: show title above everything if FIXED_TOC !!!
-t.TITLE = t.BODY.getElementsByTagName(h1)[0];
+  t.TITLE = t.PREA.getElementsByTagName(h1)[0];
 if(t.INNER_TITLE  !t.FIXED_TOC  t.VIEW != t.SLIDE_VIEW) {
   t.INNER_TITLE = t.TITLE.cloneNode(true);
   /* TODO: this is still based on wrong behaviour of browsers (same id for 
two elements)
--8---cut here---end---8---



Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves




Re: [O] breaking URLs

2011-07-26 Thread Bastien
Bastien b...@altern.org writes:

   (setq org-export-latex-href-format \url{%s}) 

Of course this should be:

(setq org-export-latex-href-format \\url{%s}) 

Best,

-- 
 Bastien



Re: [O] org unavailable in ELPA package manager

2011-07-26 Thread Jambunathan K

Max

It looks like you are totally new to Emacs. Sorry if I sounded harsh. I
will help you out privately with this. Let us take our discussions off
the list.

Jambunathan K.



Re: [O] Using org-mode for Research and Notetaking

2011-07-26 Thread Christian Moe

+1.

No hurry.

Yours,
Christian

On 7/26/11 5:15 PM, Thomas S. Dye wrote:

Bastienb...@altern.org  writes:


Hi Tom,

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


Aloha all,

Perhaps they are [[tag:boxed][already]] here with org-add-link-type?  It
seems to me that all that's missing is a way to specify a function to
determine on screen display.  But, I might be missing something.


just as a quick follow-up: I understand the need.  I will hack
org-link-protocols so that they can hold a custom face for each
link type.  But this won't happen for 7.7, only around mid-sept
if that's okay.

Thanks again for insisting on this, this will be quite a useful
addition!

Best,

Aloha Bastien,

That's great news.  Links are incredibly handy.

All the best,
Tom






Re: [O] Using org-mode for recipes (i.e. cooking)

2011-07-26 Thread Eric Abrahamsen
On Tue, Mar 29 2011, Erik Hetzner wrote:

 At Thu, 24 Mar 2011 19:47:46 +0800,
 Le Wang wrote:
 
 Hi all,
 
 I'm fairly new to org-mode, and I only use it as an outliner / note
 taking tool.  It seems recipes, being a list of ingredients and a
 series of steps is a perfect match for org-mode.

[...]

 Hi,

 This is only tangentially related, but I will bring it up anyhow.

 First, I use org-mode to keep my recipes. Here is the format I use:

[...]

 and so on. I have some methods to convert units back  forth from
 metric  narrow a recipe to ingredients only, though I think this is
 probably not really useful. I would be happy to provide this if you
 like.

Sorry this is a little old, but if you're still willing to provide some
functions, I'd like to see them! I'm using org mode to keep track of
baking recipes, which are traditionally recorded as ratios of ingredient
weights, which are then used to calculate an actual recipe based on how
much dough you want. Any food for thought regarding programmatic
manipulation of properties would be very welcome…

Eric



Re: [O] Generating autoloads for libraries in contrib

2011-07-26 Thread Jambunathan K
suvayu ali fatkasuvayu+li...@gmail.com writes:

 Hi,

 Does anyone know how to generate autoloads for libraries in the
 contrib directory? I was hoping generating autoloads would let me
 remove some of the (require 'library) from my setup.

(To satisfy my own curiosity)

IIRC, Achim has added support for the above. I am unable to find the
link right now.

The below snippet is stolen from Makefile and adopted for interactive
use. If you call the below command from the rootdir of installation, it
would create an autoload file in
contrib/lisp/org-contrib-install.el. 

Note: Finding out the right paths is left as an exercise to the reader.

--8---cut here---start-8---
(defun my-org-contrib-autoloads ()
  (interactive)

  (unless (featurep 'autoload)
(require 'autoload))

  (let ((file contrib/lisp/org-contrib-install.el))
(with-current-buffer (find-file-noselect file)
  (when (equal (point-min) (point-max))
(save-excursion (insert \n(provide 'org-contrib-install)\n)))
  (goto-char (point-min))
  (call-interactively 'generate-file-autoloads)  
  (save-buffer)
  (kill-buffer
--8---cut here---end---8---

or 

If you look at the above org-contrib-install.el file it simply calls

(autoload ...) 

for the autoloaded things.

So if you often invoke a certain library through just a single command
then you can simply add the (autoload ...) for just that command to
.emacs.


 Thanks,

-- 



Re: [O] Generating autoloads for libraries in contrib

2011-07-26 Thread Achim Gratz
Jambunathan K kjambunat...@gmail.com writes:
 suvayu ali fatkasuvayu+li...@gmail.com writes:
 Does anyone know how to generate autoloads for libraries in the
 contrib directory? I was hoping generating autoloads would let me
 remove some of the (require 'library) from my setup.

 (To satisfy my own curiosity)

 IIRC, Achim has added support for the above. I am unable to find the
 link right now.

Indeed, it's http://permalink.gmane.org/gmane.emacs.orgmode/44567

If you copy (or link) additional lisp source files from contrib/ into
lisp/, they will be both byte-compiled and used when the autoloads are
generated, so that

(require 'org-install)

should be all you need.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] References in Latex

2011-07-26 Thread Aditya Mandayam
indeed. here are the files:

the .org file: http://pastebin.com/xjLFncFW

the relevant parts of my .emacs: http://pastebin.com/c4cPM6fQ

do let me know,

thank you

-a

On Tue, Jul 26, 2011 at 7:44 AM, suvayu ali fatkasuvayu+li...@gmail.com wrote:
 Hi Aditya,

 On Tue, Jul 26, 2011 at 12:51 PM, Aditya Mandayam adity...@gmail.com wrote:
 as you can see, none of the citations after the first citation show up
 as sidenotes (i am using the tufte-handout document class).


 Without looking at the original org file or the exported tex file it
 is difficult for us to know what you are expecting. As Nick mentioned
 earlier, if things don't work please provide us with a _minimal_
 example org file which others can use to test on a minimal org setup.
 Help us help you is the guiding phrase here. :)

 --
 Suvayu

 Open source is the future. It sets us free.




[O] using links/org-capture programmatically

2011-07-26 Thread Eric Abrahamsen
I've got a little sequence I use so often I'd like to automate it, but
am not sure how. Basically it goes:

1. In Gnus, store a link to an email message
2. Call org-capture
3. Choose a template with a REPLY keyword, that gets stored in a certain subtree
4. Pull the last-stored link, to the email message, into the REPLY heading
5. Complete and restore what I had before

If I want to write a single keystroke that does this, how do I insert
the last stored link into the text of the capture template in an elisp
function? Or should I not be using org-capture in a function to begin
with?

Any advice appreciated!

Eric




Re: [O] Ctrl-Tab behaviour

2011-07-26 Thread Aditya Mandayam
upon mr reynold's recommendation, i tried out:

(global-unset-key \C-tab)

in my .emacs between where i instantiate org and swbuff.

however, ctrl-tab still does not work when i visit a .org buffer.

help?

-a
On Mon, Jul 25, 2011 at 7:07 PM, A. Ryan Reynolds
a.ryan.reyno...@gmail.com wrote:

 On Jul 25, 2011, at 5:57 PM, Aditya Mandayam wrote:

 Hello,

 I use swbuff with Ctrl-Tab and Ctrl-Shift-Tab bound to cycle between
 active buffers. I additionally use some regex to skip all internal
 buffers.

 Now this behaviour breaks when I visit a buffer with a .org file. How
 can I fix this?


 By default I believe the conflicting binding is set, in Org, to 
 org-force-cycle-archived. If you unset that binding, it should not conflict, 
 and hopefully swbuff will work correctly (I do not use swbuff so I cannot say 
 for certain).
 --
 A. Ryan Reynolds








Re: [O] Ctrl-Tab behaviour

2011-07-26 Thread suvayu ali
On Tue, Jul 26, 2011 at 8:28 PM, Aditya Mandayam adity...@gmail.com wrote:
 (global-unset-key \C-tab)


I believe you have to unset the local key. Try:

M-: (local-unset-key \C-tab)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] References in Latex

2011-07-26 Thread Jambunathan K

[OT]

Aditya

,
| I encourage you to post auxiliary files for reproducing the bug right
| within the mail. The advantage is that the message would remain archived
| in it's entirety forever and the whole context is available for future
| references. 
| 
| Posting all the relevant files inline or as attachment has the following
| other advantages:
| 
| 1. less taxing on the owner of the bug
| 2. quicker response or even a resolution
| 
| ps: I don't mean to hijack this thread. Posting this as a
| lurker/moderator on this list
| 
`

Jambunathan K.




Re: [O] Ctrl-Tab behaviour

2011-07-26 Thread Michael Markert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 26 Jul 2011, Aditya Mandayam wrote:

 upon mr reynold's recommendation, i tried out:

 (global-unset-key \C-tab)

 in my .emacs between where i instantiate org and swbuff.

 however, ctrl-tab still does not work when i visit a .org buffer.

Well you disabled the global-binding you set before. You have to unset
_org's binding_. So it's either (disable on orgmode hook)

(add-hook 'org-mode-hook (lambda () (local-unset-key (kbd C-tab

or (delete from org's keymap)

(eval-after-load org
  '(define-key org-mode-map (kbd C-tab) nil))

Michael
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJOLwrcAAoJEHHMVUK0UjKVUsEQAKs64LU84lycrUAHxMV+Sqht
rg7qa0SKUoxG3NgUNzIU9Q9Wg3ZENAuJ2gWtkt1KCWBS5agLe/7AR02QANHQZnIi
L/Ih5+jvIW82anPd7Ha9+iZLRSLKxsha406xHZURrVxE+l6+f0vyxDEiHyiGd4Op
VUSVBvq5ToOdyzv4hr1fE/k3Tut+3H3H/Zkbyj1u9inU9yf1nVPIXf0hlSSGu8kp
cp2NT7cqTbICa9LnkWtwGgq8MKsi7EDGsHp97HpC1+00P2sUHblYKm3lACItOOEa
jF5O6pGfKYzE0FM/us49zV2R6yBylHniL7cScjf/FciojBl+IVLpt6GSMEPNYWhl
jpJVApy3PL1UQNziWrCeOuBgsZx50Zd8HLfkTOBMVCWkTVXdppYUv6HTm/b33X/2
6ktRupFMOQfKkU/skij5UjV48xoNE1RTHqIoR/TNwvCFCsZ/HKICgRkqCjb2GqPI
N7foPs8rVbEBr8dPovpnICD+SetyBrs7z1hnkWBhXYl0mPh6JBHIOzT5OHA5DclI
aBkIakI7KyqTXyLyDYlMtGZO2+ERaiDI5wefXUf6mPPI8+PEhb9qTesdt3Pmfc7h
q5uZzlgaWHV8yQ50C+hJwVHivSboCbrzRgPM2FaMKpMzERnAfoyQmMGx5Beq4hFm
ebqKYxwRWVWvEGKnI6B4
=Lr24
-END PGP SIGNATURE-



Re: [O] Copy/Search Outline

2011-07-26 Thread Christian Moe
I post a howto over my morning coffee at 8:38am. By 11:30am, Florian 
has encapsulated it into a neat function with added goodies. Within 40 
minutes, Carsten reports



there is a key (C-c C-x v) and a menu entry,
and documentation in manual and refcard for it.


Gotta love this community.

Yours,
Christian




Re: [O] Ctrl-Tab behaviour

2011-07-26 Thread Aditya Mandayam
mr markert's first suggestion:

(add-hook 'org-mode-hook (lambda () (local-unset-key (kbd C-tab

works fine, thank you sir.

On Tue, Jul 26, 2011 at 2:43 PM, Michael Markert
markert.mich...@googlemail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 On 26 Jul 2011, Aditya Mandayam wrote:

 upon mr reynold's recommendation, i tried out:

 (global-unset-key \C-tab)

 in my .emacs between where i instantiate org and swbuff.

 however, ctrl-tab still does not work when i visit a .org buffer.

 Well you disabled the global-binding you set before. You have to unset
 _org's binding_. So it's either (disable on orgmode hook)

 (add-hook 'org-mode-hook (lambda () (local-unset-key (kbd C-tab

 or (delete from org's keymap)

 (eval-after-load org
  '(define-key org-mode-map (kbd C-tab) nil))

 Michael
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)

 iQIcBAEBCAAGBQJOLwrcAAoJEHHMVUK0UjKVUsEQAKs64LU84lycrUAHxMV+Sqht
 rg7qa0SKUoxG3NgUNzIU9Q9Wg3ZENAuJ2gWtkt1KCWBS5agLe/7AR02QANHQZnIi
 L/Ih5+jvIW82anPd7Ha9+iZLRSLKxsha406xHZURrVxE+l6+f0vyxDEiHyiGd4Op
 VUSVBvq5ToOdyzv4hr1fE/k3Tut+3H3H/Zkbyj1u9inU9yf1nVPIXf0hlSSGu8kp
 cp2NT7cqTbICa9LnkWtwGgq8MKsi7EDGsHp97HpC1+00P2sUHblYKm3lACItOOEa
 jF5O6pGfKYzE0FM/us49zV2R6yBylHniL7cScjf/FciojBl+IVLpt6GSMEPNYWhl
 jpJVApy3PL1UQNziWrCeOuBgsZx50Zd8HLfkTOBMVCWkTVXdppYUv6HTm/b33X/2
 6ktRupFMOQfKkU/skij5UjV48xoNE1RTHqIoR/TNwvCFCsZ/HKICgRkqCjb2GqPI
 N7foPs8rVbEBr8dPovpnICD+SetyBrs7z1hnkWBhXYl0mPh6JBHIOzT5OHA5DclI
 aBkIakI7KyqTXyLyDYlMtGZO2+ERaiDI5wefXUf6mPPI8+PEhb9qTesdt3Pmfc7h
 q5uZzlgaWHV8yQ50C+hJwVHivSboCbrzRgPM2FaMKpMzERnAfoyQmMGx5Beq4hFm
 ebqKYxwRWVWvEGKnI6B4
 =Lr24
 -END PGP SIGNATURE-




Re: [O] References in Latex

2011-07-26 Thread Aditya Mandayam
i see. apologies.

;;
here is my .org file in question:

The Shrewdness of Apes
#+AUTHOR: Aditya Zalewski-Mandayam
#+LaTeX_CLASS: handout
#+OPTIONS: toc:nil timestamp:nil num:f

* Introduction
The photographic act consists of three principal parts. They are varied.

** The Technique

** The Apparatus

** The Spectrum
   Here the term spectrum is as first used by Barthes\cite{barthes1994camera}.

   Photography is a brutal act. The vocabulary surrounding a
photograph is violent. There are shutters  filters  bellows;
aberrations  distortions; solarizers, polarizers, sensitizers;
developers, fixers, stoppers; these, in conjunction with those other
progeny of the industrial revolution, are used to shoot subjects, to
capture them.

A dark-room is simply that: a camera oscura. It is at once terrifying
 purposeful in its intent. Film  paper, once exposed to the tyranny
of that lies without, may not lie naked again until they have been
rehabilitated, until they have recovered to a state where they are
deemed meaningful\cite{tagg2009disciplinary}. This process of
selection is exquisite in its sadism; we now have machines that make
light of these macabre methods.

The earliest kind of photograph is the blink. A blink is a
preventative mechanism. One blinks to see better. One blinks to
lubricate. A blink is also a pause. It is when Man first noticed the
images formed on the inside of his eyelids, at once black  orange,
shape-shifting  electric, that the seeds of photography were sown.

The sneeze came next. Now we had a sound to emulate: the
shutter\cite{tagg1988burden}.

The Eye is King. The Mind is his Queen. They have no children.

We now live within that panoply of apparati the mechanical Eye has
birthed: chortles, sniffles, chuckles, giggles; cracks, queefs, farts,
wheezes; yawns\cite{barthes1978image}, moans, grimaces, frissons;
burps  belches, whispers  snores.

\bibliography{apes}
\bibliographystyle{plainnat}

;;
here are the relevant lines from my .emacs:

(require 'org-install)
(require 'org-latex)
(unless (boundp 'org-export-latex-classes)
(setq org-export-latex-classes nil))
(add-to-list 'org-export-latex-classes
 `(handout

\% rubber: set program xelatex
\\documentclass{tufte-handout}
\\usepackage{amsmath}
\\usepackage{graphicx}
\\usepackage{booktabs}
\\usepackage{units}
\\usepackage{multicol}
\\usepackage{fontspec,xltxtra,xunicode}
\\defaultfontfeatures{Mapping=tex-text}
\\setromanfont[Mapping=tex-text]{Bauer Bodoni Std 1 Roman}


(\\section{%s} . \\section*{%s})
(\\subsection{%s} . \\subsection*{%s})

))

(defun org-mode-reftex-setup ()
(load-library reftex)
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(reftex-parse-all))
(define-key org-mode-map (kbd C-c c) 'reftex-citation)
)
(add-hook 'org-mode-hook 'org-mode-reftex-setup)

(setq org-latex-to-pdf-process
  '(rubber -sd %b)
)

;;

thank you,

adi

On Tue, Jul 26, 2011 at 2:42 PM, Jambunathan K kjambunat...@gmail.com wrote:

 [OT]

 Aditya

 ,
 | I encourage you to post auxiliary files for reproducing the bug right
 | within the mail. The advantage is that the message would remain archived
 | in it's entirety forever and the whole context is available for future
 | references.
 |
 | Posting all the relevant files inline or as attachment has the following
 | other advantages:
 |
 | 1. less taxing on the owner of the bug
 | 2. quicker response or even a resolution
 |
 | ps: I don't mean to hijack this thread. Posting this as a
 | lurker/moderator on this list
 |
 `

 Jambunathan K.





Re: [O] using links/org-capture programmatically

2011-07-26 Thread Christian Moe

On 7/26/11 8:20 PM, Eric Abrahamsen wrote:

I've got a little sequence I use so often I'd like to automate it, but
am not sure how. Basically it goes:

1. In Gnus, store a link to an email message
2. Call org-capture
3. Choose a template with a REPLY keyword, that gets stored in a certain subtree
4. Pull the last-stored link, to the email message, into the REPLY heading
5. Complete and restore what I had before

If I want to write a single keystroke that does this, how do I insert
the last stored link into the text of the capture template in an elisp
function? Or should I not be using org-capture in a function to begin
with?


Can't you just call org-capture from the message and have a link added 
automatically with %a in the template? See 
[[info:org#Template%20expansion]]. (Caveat: Not tested, I'm not on Gnus.)


Yours,
Christian




Re: [O] Using org-mode for recipes (i.e. cooking)

2011-07-26 Thread Eric Schulte
 First, I use org-mode to keep my recipes. Here is the format I use:

 [...]

 and so on. I have some methods to convert units back  forth from
 metric  narrow a recipe to ingredients only, though I think this is
 probably not really useful. I would be happy to provide this if you
 like.

 Sorry this is a little old, but if you're still willing to provide some
 functions, I'd like to see them! I'm using org mode to keep track of
 baking recipes, which are traditionally recorded as ratios of ingredient
 weights, which are then used to calculate an actual recipe based on how
 much dough you want. Any food for thought regarding programmatic
 manipulation of properties would be very welcome…


+1

I also use Org-mode to hold recipes.  Currently I just hold the
ingredients in a standard list with informally specified amounts, but I
would be interested to see other approaches and any functions for
automatic recipe manipulation.

Incidentally I also do some baking, and while I don't currently measure
my ingredients by weight I would be interested to see (or help
brainstorm) a mechanism for reifying percentages into actual weights.

Cheers -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] References in Latex

2011-07-26 Thread Christian Moe

Add space before \cite?

Yours,
Christian

On 7/26/11 8:56 PM, Aditya Mandayam wrote:

i see. apologies.

;;
here is my .org file in question:

The Shrewdness of Apes
#+AUTHOR: Aditya Zalewski-Mandayam
#+LaTeX_CLASS: handout
#+OPTIONS: toc:nil timestamp:nil num:f

* Introduction
The photographic act consists of three principal parts. They are varied.

** The Technique

** The Apparatus

** The Spectrum
Here the term spectrum is as first used by Barthes\cite{barthes1994camera}.

Photography is a brutal act. The vocabulary surrounding a
photograph is violent. There are shutters  filters  bellows;
aberrations  distortions; solarizers, polarizers, sensitizers;
developers, fixers, stoppers; these, in conjunction with those other
progeny of the industrial revolution, are used to shoot subjects, to
capture them.

A dark-room is simply that: a camera oscura. It is at once terrifying
  purposeful in its intent. Film  paper, once exposed to the tyranny
of that lies without, may not lie naked again until they have been
rehabilitated, until they have recovered to a state where they are
deemed meaningful\cite{tagg2009disciplinary}. This process of
selection is exquisite in its sadism; we now have machines that make
light of these macabre methods.

The earliest kind of photograph is the blink. A blink is a
preventative mechanism. One blinks to see better. One blinks to
lubricate. A blink is also a pause. It is when Man first noticed the
images formed on the inside of his eyelids, at once black  orange,
shape-shifting  electric, that the seeds of photography were sown.

The sneeze came next. Now we had a sound to emulate: the
shutter\cite{tagg1988burden}.

The Eye is King. The Mind is his Queen. They have no children.

We now live within that panoply of apparati the mechanical Eye has
birthed: chortles, sniffles, chuckles, giggles; cracks, queefs, farts,
wheezes; yawns\cite{barthes1978image}, moans, grimaces, frissons;
burps  belches, whispers  snores.

\bibliography{apes}
\bibliographystyle{plainnat}

;;
here are the relevant lines from my .emacs:

(require 'org-install)
(require 'org-latex)
(unless (boundp 'org-export-latex-classes)
(setq org-export-latex-classes nil))
(add-to-list 'org-export-latex-classes
  `(handout

\% rubber: set program xelatex
\\documentclass{tufte-handout}
\\usepackage{amsmath}
\\usepackage{graphicx}
\\usepackage{booktabs}
\\usepackage{units}
\\usepackage{multicol}
\\usepackage{fontspec,xltxtra,xunicode}
\\defaultfontfeatures{Mapping=tex-text}
\\setromanfont[Mapping=tex-text]{Bauer Bodoni Std 1 Roman}


(\\section{%s} . \\section*{%s})
(\\subsection{%s} . \\subsection*{%s})

))

(defun org-mode-reftex-setup ()
(load-library reftex)
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(reftex-parse-all))
(define-key org-mode-map (kbd C-c c) 'reftex-citation)
)
(add-hook 'org-mode-hook 'org-mode-reftex-setup)

(setq org-latex-to-pdf-process
   '(rubber -sd %b)
)

;;

thank you,

adi

On Tue, Jul 26, 2011 at 2:42 PM, Jambunathan Kkjambunat...@gmail.com  wrote:


[OT]

Aditya

,
| I encourage you to post auxiliary files for reproducing the bug right
| within the mail. The advantage is that the message would remain archived
| in it's entirety forever and the whole context is available for future
| references.
|
| Posting all the relevant files inline or as attachment has the following
| other advantages:
|
| 1. less taxing on the owner of the bug
| 2. quicker response or even a resolution
|
| ps: I don't mean to hijack this thread. Posting this as a
| lurker/moderator on this list
|
`

Jambunathan K.










Re: [O] New version which is compatible with emacs 24: New function to view your notes in chronological order

2011-07-26 Thread Marc-Oliver Ihm

Am 26.07.2011 13:55, schrieb Bastien:

Hi Marc-Oliver,

Marc-Oliver Ihmmarc-oliver@online.de  writes:


Unfortunately, org-find-timestamps as posted before was not compatible
with emacs 24. (More precise, it hat problems with the read-only
property, that emacs 24 applies to text within the occur-buffer)

The version below is now compatible with both emacs 23 and 24.


Thanks for updating this function, it works okay here (Emacs 24).

One possible improvement: consider other timestamps than just
inactive timestamps?

As I said, part of this function can be integrated into
`org-sparse-tree' by allowing the user to be prompted for
a range of dates, but the display of ordered timestamps
in the occur is still useful.

Thanks,



Hello Bastien,

Thanx for testing again !

I will try to figure out, how to patch `org-sparse-tree'.

And I will add active timestamps. Which was a think, that I have thought of 
before, but postponed until
someone would suggest/request this feature :-)

Cheers !

with kind regards, Marc-Oliver Ihm





Re: [O] bulk relative time shift (in org file)?

2011-07-26 Thread Memnon Anon
Hi Bastien,

Bastien b...@altern.org writes:

 On an item, `C-c C-s' and `C-c C-d' now allows you to use
 +2d to say schedule in 2 days from today or ++2d to 
 say schedule in 2 days from existing timestamp.

 In agenda, `B s' and `B d' will also understand this and
 let you reschedule/redeadline items relatively.

 Let me know if this works okay for you -- and thanks for
 bringing this up again!

++ looks very useful!

I pinged Michael who started this thread, I hope we'll get an update
on his perspective. 

Thanks alot!

Memnon





Re: [O] References in Latex

2011-07-26 Thread Aditya Mandayam
nope, doesn't work.

On Tue, Jul 26, 2011 at 3:11 PM, Christian Moe m...@christianmoe.com wrote:
 Add space before \cite?

 Yours,
 Christian

 On 7/26/11 8:56 PM, Aditya Mandayam wrote:

 i see. apologies.


 ;;
 here is my .org file in question:

 The Shrewdness of Apes
 #+AUTHOR: Aditya Zalewski-Mandayam
 #+LaTeX_CLASS: handout
 #+OPTIONS: toc:nil timestamp:nil num:f

 * Introduction
 The photographic act consists of three principal parts. They are varied.

 ** The Technique

 ** The Apparatus

 ** The Spectrum
    Here the term spectrum is as first used by
 Barthes\cite{barthes1994camera}.

    Photography is a brutal act. The vocabulary surrounding a
 photograph is violent. There are shutters  filters  bellows;
 aberrations  distortions; solarizers, polarizers, sensitizers;
 developers, fixers, stoppers; these, in conjunction with those other
 progeny of the industrial revolution, are used to shoot subjects, to
 capture them.

 A dark-room is simply that: a camera oscura. It is at once terrifying
   purposeful in its intent. Film  paper, once exposed to the tyranny
 of that lies without, may not lie naked again until they have been
 rehabilitated, until they have recovered to a state where they are
 deemed meaningful\cite{tagg2009disciplinary}. This process of
 selection is exquisite in its sadism; we now have machines that make
 light of these macabre methods.

 The earliest kind of photograph is the blink. A blink is a
 preventative mechanism. One blinks to see better. One blinks to
 lubricate. A blink is also a pause. It is when Man first noticed the
 images formed on the inside of his eyelids, at once black  orange,
 shape-shifting  electric, that the seeds of photography were sown.

 The sneeze came next. Now we had a sound to emulate: the
 shutter\cite{tagg1988burden}.

 The Eye is King. The Mind is his Queen. They have no children.

 We now live within that panoply of apparati the mechanical Eye has
 birthed: chortles, sniffles, chuckles, giggles; cracks, queefs, farts,
 wheezes; yawns\cite{barthes1978image}, moans, grimaces, frissons;
 burps  belches, whispers  snores.

 \bibliography{apes}
 \bibliographystyle{plainnat}


 ;;
 here are the relevant lines from my .emacs:

 (require 'org-install)
 (require 'org-latex)
 (unless (boundp 'org-export-latex-classes)
 (setq org-export-latex-classes nil))
 (add-to-list 'org-export-latex-classes
              `(handout

 \% rubber: set program xelatex
 \\documentclass{tufte-handout}
 \\usepackage{amsmath}
 \\usepackage{graphicx}
 \\usepackage{booktabs}
 \\usepackage{units}
 \\usepackage{multicol}
 \\usepackage{fontspec,xltxtra,xunicode}
 \\defaultfontfeatures{Mapping=tex-text}
 \\setromanfont[Mapping=tex-text]{Bauer Bodoni Std 1 Roman}
 

 (\\section{%s} . \\section*{%s})
 (\\subsection{%s} . \\subsection*{%s})

 ))

 (defun org-mode-reftex-setup ()
 (load-library reftex)
 (and (buffer-file-name)
 (file-exists-p (buffer-file-name))
 (reftex-parse-all))
 (define-key org-mode-map (kbd C-c c) 'reftex-citation)
 )
 (add-hook 'org-mode-hook 'org-mode-reftex-setup)

 (setq org-latex-to-pdf-process
   '(rubber -sd %b)
 )


 ;;

 thank you,

 adi

 On Tue, Jul 26, 2011 at 2:42 PM, Jambunathan Kkjambunat...@gmail.com
  wrote:

 [OT]

 Aditya

 ,
 | I encourage you to post auxiliary files for reproducing the bug right
 | within the mail. The advantage is that the message would remain
 archived
 | in it's entirety forever and the whole context is available for future
 | references.
 |
 | Posting all the relevant files inline or as attachment has the
 following
 | other advantages:
 |
 | 1. less taxing on the owner of the bug
 | 2. quicker response or even a resolution
 |
 | ps: I don't mean to hijack this thread. Posting this as a
 | lurker/moderator on this list
 |
 `

 Jambunathan K.









Re: [O] Using org-mode for recipes (i.e. cooking)

2011-07-26 Thread John Hendy
On Tue, Jul 26, 2011 at 2:03 PM, Eric Schulte schulte.e...@gmail.com wrote:
 First, I use org-mode to keep my recipes. Here is the format I use:

 [...]

 and so on. I have some methods to convert units back  forth from
 metric  narrow a recipe to ingredients only, though I think this is
 probably not really useful. I would be happy to provide this if you
 like.

 Sorry this is a little old, but if you're still willing to provide some
 functions, I'd like to see them! I'm using org mode to keep track of
 baking recipes, which are traditionally recorded as ratios of ingredient
 weights, which are then used to calculate an actual recipe based on how
 much dough you want. Any food for thought regarding programmatic
 manipulation of properties would be very welcome…


 +1

 I also use Org-mode to hold recipes.  Currently I just hold the
 ingredients in a standard list with informally specified amounts, but I
 would be interested to see other approaches and any functions for
 automatic recipe manipulation.

 Incidentally I also do some baking, and while I don't currently measure
 my ingredients by weight I would be interested to see (or help
 brainstorm) a mechanism for reifying percentages into actual weights.


I wouldn't mind seeing this, either. I've looked for a while at trying
to input my wife's recipes into something for her that would be
printable/exportable into perhaps a small binder or card box or
something. I've played around with gourmet with varying success but
not been entirely happy. It's been buggy for me when it comes to
printing.[1] At the very least, someone can try it out for it's
converting/unit suggestions, as they are fantastic.

Most here may work directly from org, but if recipes *are*
implemented, an exporter or two for half-page or index card sizes
would be *phenomenal.*


John

---

[1] http://grecipe-manager.sourceforge.net/

 Cheers -- Eric

 --
 Eric Schulte
 http://cs.unm.edu/~eschulte/





Re: [O] References in Latex

2011-07-26 Thread suvayu ali
On Tue, Jul 26, 2011 at 8:15 PM, Aditya Mandayam adity...@gmail.com wrote:
 indeed. here are the files:


I think you forgot the .bib file?

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] References in Latex

2011-07-26 Thread Aditya Mandayam
here you go:

@book{barthes1994camera,
  title={Camera lucida: Reflections on photography},
  author={Barthes, R.},
  year={1994},
  publisher={Hill and Wang}
}

@book{barthes1978image,
  title={Image, music, text},
  author={Barthes, R. and Heath, S.},
  year={1978},
  publisher={Hill \ Wang}
}

@book{tagg1988burden,
  title={The burden of representation: Essays on photographies and histories},
  author={Tagg, J.},
  year={1988},
  publisher={Univ Of Minnesota Press}
}

@book{tagg2009disciplinary,
  title={The disciplinary frame: photographic truths and the capture
of meaning},
  author={Tagg, J.},
  year={2009},
  publisher={Univ Of Minnesota Press}
}

@article{giannino2006gerrit,
  title={Gerrit Dou: Seventeenth-Century Artistic Identity and Modes
of Self-Referentiality in Self-Portraiture and Scenes of Everyday
Life},
  author={Giannino, D.},
  year={2006}
}

@article{alphen2011portrait,
  title={The portrait's dispersal: concepts of representation and
subjectivity in contemporary portraiture},
  author={Alphen, E.J.},
  year={2011},
  publisher={La Fabrica}
}

@article{manningfunction,
  title={The Function of Mirrors and Reflection in Seventeenth-Century
Painting},
  author={Manning, D.}
}

@article{walker2005mirrors,
  title={Mirrors and shadows: The digital Aestheticisation of Oneself},
  author={Walker, J.},
  year={2005},
  publisher={IT University, Copenhagen}
}

@article{steiner1987postmodernist,
  title={Postmodernist Portraits},
  author={Steiner, W.},
  journal={Art Journal},
  volume={46},
  number={3},
  pages={173--177},
  year={1987},
  publisher={JSTOR}
}

@article{latto1996turning,
  title={Turning the other cheek: Profile direction in self-portraiture},
  author={Latto, R.},
  journal={Empirical Studies of the Arts},
  volume={14},
  number={1},
  pages={89--98},
  year={1996},
  publisher={BAYWOOD PUBLISHING COMPANY, INC.}
}

@article{robb2008self,
  title={The Self as Subject and Sculpture},
  author={Robb, C.},
  year={2008},
  publisher={Monash University}
}

@article{schapper2003cubism,
  title={CUBISM AND ORGANIZATIONAL ANALYSIS: REVISITING REPRESENTATION
IN THE AGE OF THE KNOWLEDGE ECONOMY},
  author={Schapper, J. and Cox, J.W. and de Cieri, H.},
  year={2003}
}

@article{loewenberg1999reflections,
  title={Reflections on Self-Portraiture in Photography},
  author={Loewenberg, I.},
  journal={Feminist Studies},
  volume={25},
  number={2},
  pages={399--408},
  year={1999},
  publisher={JSTOR}
}

@article{mrazself,
  title={SELF-PORTRAITURE BY WOMEN PHOTOGRAPHERS: AREFLECTION OF THE
ARTIST, SOCIETY \THE FEMINIST MOVEMENT},
  author={Mraz, J. and Costa, K.N.}
}

@article{fei2007ballad,
  title={THE BALLAD OF NAN GOLDIN: SUBVERSION OF GENDER AND PHOTOGRAPHY},
  author={Fei, J.J.},
  journal={History},
  year={2007}
}

@article{tudorgive,
  title={‘Give me that glass, and therein will I read’: Women, Mirrors
and Authenticity in Renaissance Portraiture},
  author={Tudor, F.}
}

@article{flusser1986photograph,
  title={The Photograph as Post-Industrial Object: An Essay on the
Ontological Standing of Photographs},
  author={Flusser, V.},
  journal={Leonardo},
  pages={329--332},
  year={1986},
  publisher={JSTOR}
}

@article{metz1985photography,
  title={Photography and fetish},
  author={Metz, C.},
  journal={October},
  volume={34},
  pages={81--90},
  year={1985},
  publisher={JSTOR}
}

@article{metz1974impression,
  title={On the Impression of Reality in the Cinema},
  author={Metz, C.},
  journal={Film Language: A Semiotics of the Cinema},
  year={1974}
}

@article{metz40problems,
  title={Problems of Denotation in the Fiction Film},
  author={Metz, C.},
  journal={Narrative, Apparatus, Ideology: A Film Theory Reader},
  volume={40}
}

@book{flusser2000towards,
  title={Towards a philosophy of photography},
  author={Flusser, V.},
  year={2000},
  publisher={Reaktion Books}
}

@book{sontag1976imagination,
  title={The imagination of disaster},
  author={Sontag, S. and Rose, M.},
  year={1976},
  publisher={Prentice Hall}
}

@book{sontag1977photography,
  title={On photography},
  author={Sontag, S.},
  year={1977},
  publisher={Picador}
}

@article{benjamin1972short,
  title={A short history of photography},
  author={Benjamin, W.},
  journal={Screen},
  volume={13},
  number={1},
  pages={5},
  year={1972},
  publisher={John Logie Baird Centre}
}

@article{benjamin1969paris,
  title={Paris: capital of the nineteenth century},
  author={Benjamin, W.},
  journal={Perspecta},
  pages={165--172},
  year={1969},
  publisher={JSTOR}
}

@article{berger1972ways,
  title={Ways of seeing},
  author={Berger, J. and others},
  journal={London and Harmondsworth},
  year={1972}
}

@article{clark1994gross,
  title={Gross David with the Swoln Cheek: An Essay on Self-Portraiture},
  author={Clark, TJ},
  journal={Rediscovering History: Culture, Politics, and the Psyche,
ed. Michael S. Roth (Stanford, Calif., 1994)},
  pages={243--307}
}

@book{bourdieu1996photography,
  title={Photography: A 

Re: [O] using links/org-capture programmatically

2011-07-26 Thread Sebastien Vauban
Hi Eric,

Eric Abrahamsen wrote:
 I've got a little sequence I use so often I'd like to automate it, but
 am not sure how. Basically it goes:

 1. In Gnus, store a link to an email message
 2. Call org-capture
 3. Choose a template with a REPLY keyword, that gets stored in a certain 
 subtree
 4. Pull the last-stored link, to the email message, into the REPLY heading
 5. Complete and restore what I had before

 If I want to write a single keystroke that does this, how do I insert
 the last stored link into the text of the capture template in an elisp
 function? Or should I not be using org-capture in a function to begin
 with?

 Any advice appreciated!

#+begin_src emacs-lisp
  (setq org-capture-templates
`((m Mail entry
   (file+headline ,org-default-notes-file Tasks)
   * TODO %:subject%? (from %:fromname) :mail:
   SCHEDULED: %t
   %:date-timestamp-inactive

#+begin_verse
%i
#+end_verse

From %a
   :empty-lines 1 :immediate-finish)))
#+end_src

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Org-Mode Homepage error

2011-07-26 Thread Sebastien Vauban
Hi Achim and Bastien,

Achim Gratz wrote:
 Bastien b...@altern.org writes:
 I fail to understand why an additional div id=preamble
 should break Sebastian's tool.
 /mode lazybum

 For starters, the title now resides in the preamble, but the script
 looks for it in content.

Good catch!

FYI, the title has always been in the preamble. See lines 354--381 in
org-html.el:

#+begin_src emacs-lisp
(defcustom org-export-html-preamble t
  Non-nil means insert a preamble in HTML export.

When `t', insert a string as defined by one of the formatting
strings in `org-export-html-preamble-format'.  When set to a
string, this string overrides `org-export-html-preamble-format'.
When set to a function, apply this function and insert the
returned string.  The function takes the property list of export
options as its only argument.

Setting :html-preamble in publishing projects will take
precedence over this variable.
  :group 'org-export-html
  :type '(choice (const :tag No preamble nil)
 (const :tag Default preamble t)
 (string :tag Custom formatting string)
 (function :tag Function (must return a string

(defcustom org-export-html-preamble-format
  '((en h1 class=\title\%t/h1))
  The format for the HTML preamble.

%t stands for the title.

If you need to use a \%\ character, you need to escape it
like that: \%%\.
  :group 'org-export-html
  :type 'string)
#+end_src

The difference I introduced is that -- when present -- the preamble (whatever
its contents) is wrapped inside a preamble DIV.

I did not change the fact that the title was part of the preamble.

Though, we can wonder if it makes sense to put the title as part of the
preamble. But I guess there is a good reason for it(TM).

Best regards,
  Seb

-- 
Sebastien Vauban




[O] Habits not showing in agenda and no progress graph

2011-07-26 Thread John Hendy
I'm attempting to implement habits for a couple of routine things I
should do at work on a regular basis. I've been following the manual
to set this up:

,-
| 1. You have enabled the habits module by customizing the variable
org-modules. CHECK
| 2. The habit is a TODO item, with a TODO keyword representing an
open state. CHECK
| 3. The property STYLE is set to the value habit. CHECK
| 4. The TODO has a scheduled date, usually with a .+ style repeat
interval... CHECK
| 5. The TODO may also have minimum and maximum ranges specified by
using the syntax ‘.+2d/3d’... CHECK
| 6. You must also have state logging for the DONE state enabled... THINK SO
`-

I have mid-year and yearly reviews and *always* kick myself for not
recording things I've done regularly, such that I end up scouring the
earth for details about what I did in emails, calendar items, and org
files. I'd like to do this monthly to save me 2x/year headaches. So...
enter my first attempt at implementing habits:

-
** todo note down month's accomplishments/contributions
SCHEDULED: 2011-08-20 Sat .+25d/35d
   :LOGBOOK:
   - State done   from todo   [2011-07-26 Tue 16:02]
   - State done   from todo   [2011-07-26 Tue 16:02]
   :END:
   :PROPERTIES:
   :STYLE:habit
   :LAST_REPEAT: [2011-07-26 Tue 16:02]
   :END:
-

Note that above for #6, I said I thought so. I'm saying that as the
todo - done state appears to be tracked above in my cycling.
Typically, I just get a completed inactive time stamp and it gets
marked done. The fact that it stays open I'm guessing means the habit
is working.

But... I have a couple of questions:

#1: the habits aren't showing up in agenda. I did =C-c a a=, then =v
y= and accepted that I really wanted to see the year. I get no monthly
views of the above habit, despite seeing the minibuffer mode as
Org-agenda Year Dds Grid Habit If I press =K=, it tells me that
habits have been turned off, so I know they were on.

#2: I just don't understand this at all (from the manual):

,-
| What's really useful about habits is that they are displayed along
with a consistency graph,
| to show how consistent you've been at getting that task done in the
past. This graph shows
| every day that the task was done over the past three weeks, with
colors for each day.
|
| Followed by overview of what the colors mean...
`-

Where is this graph? I don't see any colors. The worg tutorial doesn't
mention the word graph anywhere, and only shows making a table
manually to document progress. It also doesn't mention the word color.

Thanks for any suggestions. It's my first time, so it's probably that
I've missed something silly in my setup or have a typo.


Thanks!
John



[O] [PATCH] org-odt: Include mimetype in the exported odt file

2011-07-26 Thread Jambunathan K
From 3530d2b3bd5b903e9b568a6412573faa79862d36 Mon Sep 17 00:00:00 2001
From: Jambunathan K kjambunat...@gmail.com
Date: Wed, 27 Jul 2011 02:50:48 +0530
Subject: [PATCH] org-odt: Include mimetype in the exported odt file

* contrib/lisp/org-odt.el (org-export-odt-save-list): Add the
file mimetype.
(org-odt-init-outfile): Write contents of mimetype.
(org-odt-save-as-outfile): Include mimetype file in the
exported file.
(org-export-odt-mimetype-lines): Removed.

This change knocks of an error while validating against
http://tools.services.openoffice.org/odfvalidator/.
---
 contrib/lisp/org-odt.el |   32 
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el
index b7e5a70..bab7590 100644
--- a/contrib/lisp/org-odt.el
+++ b/contrib/lisp/org-odt.el
@@ -1091,7 +1091,7 @@ MAY-INLINE-P allows inlining it as an image.
 
 ;; xml files generated on-the-fly
 (defconst org-export-odt-save-list
-  '(META-INF/manifest.xml content.xml meta.xml styles.xml))
+  '(mimetype META-INF/manifest.xml content.xml meta.xml styles.xml))
 
 ;; xml files that are copied
 (defconst org-export-odt-nosave-list '())
@@ -1262,6 +1262,10 @@ MAY-INLINE-P allows inlining it as an image.
   (save-excursion
(insert (mapconcat 'identity (cdr org-export-odt-meta-lines) \n
 
+;; mimetype
+(with-current-buffer (find-file-noselect mimetype-file t)
+  (insert application/vnd.oasis.opendocument.text))
+
 ;; styles file
 ;; (copy-file org-export-odt-styles-file styles-file t)
 
@@ -1273,9 +1277,6 @@ MAY-INLINE-P allows inlining it as an image.
  (append org-export-odt-save-list org-export-odt-nosave-list)))
 content-file))
 
-(defconst org-export-odt-mimetype-lines
-  '(application/vnd.oasis.opendocument.text))
-
 (defconst org-odt-manifest-file-entry-tag
   manifest:file-entry manifest:media-type=\%s\ 
manifest:full-path=\%s\/)
 
@@ -1319,23 +1320,22 @@ MAY-INLINE-P allows inlining it as an image.
 
 (let* ((target-name (file-name-nondirectory target))
   (target-dir (file-name-directory target))
-  (cmd (format zip -rmTq %s %s target-name .)))
+  (cmds `((zip -mX0 ,target-name mimetype)
+  (zip -rmTq ,target-name .
   (when (file-exists-p target)
;; FIXME: If the file is locked this throws a cryptic error
(delete-file target))
 
   (let ((coding-system-for-write 'no-conversion) exitcode)
-   (message Creating odt file using \%s\ cmd)
-   (setq exitcode
- (apply 'call-process
-zip
-nil
-nil
-nil
-(append (list -rmTq) (list target-name .
-
-   (or (zerop exitcode)
-   (error Unable to create odt file (%S) exitcode)))
+   (message Creating odt file...)
+   (mapc
+(lambda (cmd)
+  (message Running %s (mapconcat 'identity cmd  ))
+  (setq exitcode
+(apply 'call-process (car cmd) nil nil nil (cdr cmd)))
+  (or (zerop exitcode)
+  (error Unable to create odt file (%S) exitcode)))
+cmds))
 
   ;; move the file from outdir to target-dir
   (rename-file target-name target-dir)
-- 
1.7.2.3



-- 


Re: [O] References in Latex

2011-07-26 Thread suvayu ali
Hello Aditya,

I had some start-up problems as I don't use xelatex or fool around with
fonts[1] much. But after I got around those, I think the problem is with
rubber. It doesn't run bibtex at all (or at least not properly). I could
successfully build a pdf by calling xelatex and bibex explicitly. From
what you described in the earlier emails, I think the pdf looks just
like you expected (attached). I would encourage you to find out how to
properly ask rubber to run bibtex to get this to work.

This is what worked for me:

(setq org-latex-to-pdf-process
  '(xelatex -interaction nonstopmode %b
/usr/bin/bibtex %b
xelatex -interaction nonstopmode %b
xelatex -interaction nonstopmode %b)
  )

Hope this helps.

PS: Nice class, I might use it sometime in the future. ;)

Footnotes:

[1] I had to comment out this line \setromanfont[Mapping=tex-text]
{Bauer Bodoni Std 1 Roman}

-- 
Suvayu

Open source is the future. It sets us free.


bibtest.pdf
Description: Adobe PDF document


[O] howto paste html table in org-mode

2011-07-26 Thread OSiUX
How to paste (and convert automatically) html table in org-table?

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org



Re: [O] howto paste html table in org-mode

2011-07-26 Thread Puneeth Chaganti
On Wed, Jul 27, 2011 at 3:20 AM, OSiUX xu...@osiux.com.ar wrote:
 How to paste (and convert automatically) html table in org-table?

There was a discussion [1], very recently, on converting a html doc to
an org file. It should help.

HTH,
Puneeth

[1] - http://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg01226.html



Re: [O] [PATCH] New org-depend trigger for finding next highest priority/effort item

2011-07-26 Thread Max Mikhanosha
At Tue, 26 Jul 2011 13:48:30 +0200,
Bastien wrote:
 
  +;;  list and then filtered and sorted according to OPTIONS
  +;;- The first sibling on the list is changed into KEYWORD state
  +;;- The sibling also gets the same TRIGGER property
  +;;  chain-siblings-scheduled, so the chain can continue.
 
 This should rather be chain-find-next here, right?

Yes thats a typo, I was trying to select a more appropriate name for it.

  +;;OPTIONS should be a comma separated string without spaces, and
  +;;can contain following options:
  +;;
  +;;- from-top  the candidate list is all of the siblings in
  +;;the current subtree
  +;;
  +;;- from-bottom   candidate list are all siblings from bottom up
  +;;
  +;;- from-current  candidate list are all siblings from current item
  +;;until end of subtree, then wrapped around from
  +;;first sibling
  +;;
  +;;- no-wrap   candidate list are siblings from current one down
 
 I'm not sure to understand the difference between from-top and
 from-current, and between from-top and no-wrap. 
 
 Can you give an example?

* Parent
** TODO Item 1
** TODO Item 2
** TODO Item 3
** TODO Item 4
** NEXT Item 5 Current  (the one with TRIGGER property)
** TODO Item 6
** Item 7
** TODO Item 8
** DONE Item 9

Below are example list of candidates depending on option

from-top  = 1,2,3,4,6,7,8
from-bottom   = 8,7,6,4,3,2,1
from-current  = 6,7,8,1,2,3,4
from-current,no-wrap  = 6,7,8

Adding todo-only will eliminate item 7 from all of above, adding
include-done will include item 9.

After inital candidate list is established as above, its sorted by priority
or effort, then 1st item is made NEXT.

  +;;
  +;;- include-done  include siblings with TODO in `org-done-keywords',
  +;;they are excluded by default
 
 The phrasing is a bit confusing to me -- perhaps removing they are
 excluded by default is enough.

Agree, maybe whole option can be eliminated, I had an opposite option
initially (skip-done), to have default compatible with original
trigger, but decided that skipping done may be a better default.

  +;;- todo-only Only consider siblings that have TODO only, by 
  default
  +;;siblings without TODO keyword are considered too
 
 I suggest this:
 
   Only consider siblings that have a TODO keyword.
 
 I suppose todo-only and include-done are compatible, right?

todo-only excludes items without any todo keyword, ie plain
headlines. See example above on if item 7 is included or not.

include-done forces items with a DONE/CANCELLEd keyword to be considered

 
 What about using exclusive options like todo-only and
 todo-and-done-only?  So that you would need to use only one.

I'm fine with that, will change.
   
   (require 'org)
  +(require 'cl)
 
 this (eval-when-compile (require 'cl)) -- emacs has a policy of
 preventing (require 'cl) only...

I grepped *.el and saw other file using it without eval-when-compile
(it was htmlize.el i think), so I thought it was ok in contrib. My
worry was that using functions as opposite to macros needs it loaded,
since I use (remove-if) and (position)

But I just tested it on clean file and emacs -Q, and
(eval-when-compile (require 'cl)) and then using 'cl-seq functions
like remove-if seems to works fine.

I'll submit updated patch later today taken above comments inte
consideration. Attached is an org file where you can test various
options

 Thanks for further feedback on this!  If you can provide a small
 Org file where I can test the new functionalities that will help
 a lot.

Attached is a test file you can use for all the situation that you
asked clarification for. After testing this file I'm thinking maybe
from-current should be a default instead of from-top. Basically I'm
open to suggestion as to the most sensible default options. I myself
use a hook that auto-inserts TRIGGER line i want when entry becomes
next, maybe such hook should be included into org-depend also? At
least as example?




org-depend-chain-find-next-test.org
Description: Binary data





[O] Problems with org-agenda-sort-strategy and todo-state

2011-07-26 Thread John Hendy
I'm setting up an agenda block view via help from norang.ca, the
manual, and worg on the matters and have come up with something like
so:

--
(setq org-agenda-custom-commands
'((w Agenda
((agenda  ((org-agenda-ndays 7)))

 (todo next
((org-agenda-overriding-header Next Actions)))

 (tags-todo proj-name-1
((org-agenda-overriding-header Project Name 1))
 (org-agenda-sorting-strategy
 '(todo-state-down)))

 (tags-todo proj-name-2
((org-agenda-overriding-header Project Name 2))
 (org-agenda-sorting-strategy
 '(todo-state-down)))

--

I have actionable todo states set as todo and proj. I get
something like this in the block view:

--
Proj-Name-1
  proj-name-1:  proj Something 1
  proj-name-1:  todo [2/4] Something 2
  proj-name-1:  proj Something 3
  proj-name-1:  todo Something 4
--

I thought setting the todo-state-down sort strategy would group proj
together and todo together... is that not the case?

I note that the help for the variable org-agenda-sort-strategy says
that done goes last/first depending on up or down... does that mean it
*only* differentiates between open todos (regardless of custom types)
and done? If there are suggestions of how to get the proj at the top
and todos at the bottom, that would be great.


Thanks,
John



[O] Odd behavior with first org file opened

2011-07-26 Thread Rafael

Hi!

My Emacs version is 

GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.21.6) of 2010-09-01
on rhenium, modified by Debian

(from Ubuntu 11.04)

and my org-version is recent:

Org-mode version 7.6 (release_7.6.146.g6b389.dirty)

If I run:

emacs -Q -L ~/Dropbox/emacs/site-lisp/org-mode/lisp/ 

(that's where I put org-mode),
and then open any org file (I have tried with a very simple one, with
only one heading), such file is not syntactically colored. However, if I
open any second org file, then it is colored without problem. Or if I
say M-x revert-file with the first.

If I test the same with emacs -Q, using the org-mode coming with Emacs,
then everything works fine.

Hopefully you can help me solve this! 

Best regards,
Rafael



Re: [O] [PATCH] New org-depend trigger for finding next highest priority/effort item

2011-07-26 Thread Max Mikhanosha
Amended patch attached, changes:

- use (eval-when-compile) with require 'cl
- changed include-done to todo-and-done-only
- Added defcustom org-depend-find-next-options for default options
  which are now: from-current,todo-only,priority-up
- cleaned up documentation  

Also attached is updated test file, added #+TODO line since NEXT is
not in default list of keywords.

Content-Disposition: attachment; 
filename=0011-Add-chain-find-next-trigger-option.patch][8bit]]
From 6140261b2fe0e15ac36d8222c38790680cd3f9d4 Mon Sep 17 00:00:00 2001
From: Max Mikhanosha m...@openchat.com
Date: Sun, 24 Jul 2011 14:44:44 -0400
Subject: [PATCH 11/11] Add chain-find-next trigger option.

---
 contrib/lisp/org-depend.el |  145 +++-
 1 files changed, 143 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/org-depend.el b/contrib/lisp/org-depend.el
index 089a6a0..77a7c68 100644
--- a/contrib/lisp/org-depend.el
+++ b/contrib/lisp/org-depend.el
@@ -55,7 +55,43 @@
 ;;- The sibling also gets the same TRIGGER property
 ;;  chain-siblings-scheduled, so the chain can continue.
 ;;
-;; 3) If the TRIGGER property contains any other words like
+;; 3) If the TRIGGER property contains the string
+;;chain-find-next(KEYWORD[,OPTIONS]), then switching that entry
+;;to DONE do the following:
+;;- All siblings are of the entry are collected into a temporary
+;;  list and then filtered and sorted according to OPTIONS
+;;- The first sibling on the list is changed into KEYWORD state
+;;- The sibling also gets the same TRIGGER property
+;;  chain-find-next, so the chain can continue.
+;;  
+;;OPTIONS should be a comma separated string without spaces, and
+;;can contain following options:
+;;
+;;- from-top  the candidate list is all of the siblings in
+;;the current subtree
+;;
+;;- from-bottom   candidate list are all siblings from bottom up
+;;
+;;- from-current  candidate list are all siblings from current item
+;;until end of subtree, then wrapped around from
+;;first sibling
+;;
+;;- no-wrap   candidate list are siblings from current one down
+;;
+;;- todo-only Only consider siblings that have a todo keyword
+;;- 
+;;- todo-and-done-only
+;;Same as above but also include done items.
+;;
+;;- priority-up   sort by highest priority
+;;- priority-down sort by lowest priority
+;;- effort-up sort by highest effort
+;;- effort-down   sort by lowest effort
+;;
+;;Default OPTIONS are from-top 
+;;
+;;
+;; 4) If the TRIGGER property contains any other words like
 ;;XYZ(KEYWORD), these are treated as entry id's with keywords.  That
 ;;means Org-mode will search for an entry with the ID property XYZ
 ;;and switch that entry to KEYWORD as well.
@@ -121,12 +157,20 @@
 ;;
 
 (require 'org)
+(eval-when-compile
+  (require 'cl))
 
 (defcustom org-depend-tag-blocked t
   Whether to indicate blocked TODO items by a special tag.
   :group 'org
   :type 'boolean)
 
+(defcustom org-depend-find-next-options
+  from-current,todo-only,priority-up
+  Default options for chain-find-next trigger
+  :group 'org
+  :type 'string)
+
 (defmacro org-depend-act-on-sibling (trigger-val rest rest)
   Perform a set of actions on the next sibling, if it exists,
 copying the sibling spec TRIGGER-VAL to the next sibling.
@@ -143,6 +187,8 @@ copying the sibling spec TRIGGER-VAL to the next sibling.
(org-entry-add-to-multivalued-property
 nil TRIGGER ,trigger-val
 
+(defvar org-depend-doing-chain-find-next nil)
+
 (defun org-depend-trigger-todo (change-plist)
   Trigger new TODO entries after the current is switched to DONE.
 This does two different kinds of triggers:
@@ -184,12 +230,107 @@ This does two different kinds of triggers:
   ;; Go through all the triggers
   (while (setq tr (pop triggers))
(cond
+((and (not org-depend-doing-chain-find-next)
+  (string-match \\`chain-find-next(\\b\\(.+?\\)\\b\\(.*\\))\\' 
tr))
+ ;; smarter sibling selection
+ (let* ((org-depend-doing-chain-find-next t)
+(kwd (match-string 1 tr))
+(options (match-string 2 tr))
+(options (if (or (null options)
+ (equal options ))
+ org-depend-find-next-options
+   options))
+(todo-only (string-match todo-only options))
+(todo-and-done-only (string-match todo-and-done-only
+  options))
+(from-top (string-match from-top options))
+(from-bottom (string-match from-bottom options))
+(from-current (string-match from-current options))
+(no-wrap (string-match no-wrap options))
+   

[O] How to make a tag-todo search within a time range

2011-07-26 Thread etimecowboy

Hi everyone,

Need some help with the searching in the Agenda View.

For example, I want to search the scheduled TODO items with the work 
tag in the past 3 days. I thought the searching string was:


+work+SCHEDULED\today\+SCHEDULED=\today-3d\,

but failed to get the right output. Anyone could help?

Alan



Re: [O] Any work on Java ME?

2011-07-26 Thread XeCycle
Tassilo Horn tass...@member.fsf.org writes:


[...]

 To my best knowledge, Andoid does not support Java ME.  It uses a
 flavour of Java, but not ME.

Sorry for this...

 From wikipedia:

   Android
   ===

   The Android open-source software stack consists of Java applications
   running on a Java-based, object-oriented application framework on top
   of Java core libraries running on a Dalvik virtual machine featuring
   JIT compilation.

   Java Platform, Micro Edition
   

   There are more than 2.1 billion Java ME enabled mobile phones and
   PDAs,[2] but it is becoming old technology as it is not used on any of
   today's newest mobile platforms (e.g. iPhone, Android, Windows Phone
   7, MeeGo, BlackBerry's new QNX).

Today's newest mobile platform does not necessarily mean today's newest
phones --- still there are some less expensive phones supporting Java
ME.

 And there is already MobileOrg for Android:

   https://github.com/matburt/mobileorg-android/wiki/

Well, that's fine.

 Bye,
 Tassilo




-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591


pgpk178HSgzYb.pgp
Description: PGP signature


[O] Too liberal stripping of commas in export? commit 20044297 strip protective commas from literal code blocks

2011-07-26 Thread Hsiu-Khuern Tang
Hi,

Eric Schulte's commit 20044297 introduced a change whereby the code
block in this Org file

=
* test

  #+begin_src r
a - c(1
   , 2
   , 3)
  #+end_src
=

is exported into this LaTeX fragment:

=
\begin{minted}[]{r}
a - c(1
2
3)
\end{minted}
=

The leading commas are removed!  I think these commas shouldn't be
treated as protective (and hence shouldn't be removed), since they are
not in the leftmost column inside the block.  org-edit-special does
the right thing for me in this example.

Thanks,
Hsiu-Khuern.



Re: [O] using links/org-capture programmatically

2011-07-26 Thread Eric Abrahamsen
On Tue, Jul 26 2011, Christian Moe wrote:

 On 7/26/11 8:20 PM, Eric Abrahamsen wrote:
 I've got a little sequence I use so often I'd like to automate it, but
 am not sure how. Basically it goes:

 1. In Gnus, store a link to an email message
 2. Call org-capture
 3. Choose a template with a REPLY keyword, that gets stored in a certain 
 subtree
 4. Pull the last-stored link, to the email message, into the REPLY heading
 5. Complete and restore what I had before

 If I want to write a single keystroke that does this, how do I insert
 the last stored link into the text of the capture template in an elisp
 function? Or should I not be using org-capture in a function to begin
 with?

 Can't you just call org-capture from the message and have a link added
 automatically with %a in the template? See
 [[info:org#Template%20expansion]]. (Caveat: Not tested, I'm not on
 Gnus.)

Oh, ha! Don't know how I missed that, but you're quite right. It's still
several keypresses, but not so many that it breaks the zone. If I need
something more complex, I'll try Seb's solution.

Thanks to you both!

Eric




Re: [O] Using org-mode for recipes (i.e. cooking)

2011-07-26 Thread Eric Abrahamsen
On Tue, Jul 26 2011, Eric Schulte wrote:

 First, I use org-mode to keep my recipes. Here is the format I use:

 [...]

 and so on. I have some methods to convert units back  forth from
 metric  narrow a recipe to ingredients only, though I think this is
 probably not really useful. I would be happy to provide this if you
 like.

 Sorry this is a little old, but if you're still willing to provide some
 functions, I'd like to see them! I'm using org mode to keep track of
 baking recipes, which are traditionally recorded as ratios of ingredient
 weights, which are then used to calculate an actual recipe based on how
 much dough you want. Any food for thought regarding programmatic
 manipulation of properties would be very welcome…


 +1

 I also use Org-mode to hold recipes.  Currently I just hold the
 ingredients in a standard list with informally specified amounts, but I
 would be interested to see other approaches and any functions for
 automatic recipe manipulation.

 Incidentally I also do some baking, and while I don't currently measure
 my ingredients by weight I would be interested to see (or help
 brainstorm) a mechanism for reifying percentages into actual weights.

Baking by weights is definitely the way to go! Much more accurate. And
since ounces don't lend themselves to arithmetic, I generally go with
grams.

The bakers' percentage[1] says that flour is 100%, and everything else
is a relative percentage of that, so the total dough comes out something
like 130%. So you have a recipe like this:

** Basic Sourdough
   :PROPERTIES:
   :starter: 0.494
   :flour: 1
   :salt: 0.025
   :water: 0.642
   :END:

Then I suppose it wouldn't be too much work to write a function that you
call on that headline, it asks you for a total dough weight, and then
calculates specific gram weights for each ingredient. I'll look into
doing something like this in the next few days.

In the meantime, here's the guts of what I've been using to do a similar
calculation, though it wants you to know weights of pure flour and
starter (and hydration of the two) ahead of time, and has salt hardcoded
at 2%.

#+begin_src emacs-lisp
(defun my-c-s-inner (flour starter hydration starter-hydration)
  (let* ((starter-flour (* starter (/ starter-hydration 2)))
 (full-flour (+ flour (starter-flour)))
 (water (- (* full-flour hydration) (- starter starter-flour)))
 (salt (* full-flour 0.02)))
(values water salt)))
#+end_src

I don't know enough about custom exporting to make a 3x5 card out of
these things, though I suppose LaTeX could do it fairly well…

Eric

Footnotes:

[1] http://en.wikipedia.org/wiki/Baker_percentage




[O] Correction for org-archive-location documentation?

2011-07-26 Thread John Hendy
Setting up archive for the first time. The guiding text in =M-x
customize variable org-archive-location= says:

,-
|~/org/archive.org::From %s
|   Archive in file ~/org/archive.org (absolute path), under headlines
|   From FILENAME where file name is the current file name.
`-

I may just be reading this wrong, but I thought that if I were to set
this option like so in a file:

,-
| #+archive: ~/org/archive.org::From %s
`-

I would do =C-c C-x C-s= and then see the following in ~/org/archive.org:

,-
| * From filename.org
| ** done name of archived todo...
`-

Instead, I saw:

,-
| Archived entries from file /home/jwhendy/org/rigor.org
| * done name of archived todo...
`-

When I changed the option to (note the leading *):

,-
| #+archive: ~/org/archive.org::* From %s
`-

I got the anticipated result:

,-
| * From filename.org
| ** done name of archived todo...
`-

Did I just read the documentation incorrectly, or was my guess
intuitive and perhaps an update/correction would be helpful for
others?


Thanks,
John



Re: [O] Using org-mode for recipes (i.e. cooking)

2011-07-26 Thread Erik Hetzner
At Tue, 26 Jul 2011 14:57:31 -0500,
John Hendy wrote:
 
 On Tue, Jul 26, 2011 at 2:03 PM, Eric Schulte schulte.e...@gmail.com wrote:

 […]
 
 I wouldn't mind seeing this, either. I've looked for a while at trying
 to input my wife's recipes into something for her that would be
 printable/exportable into perhaps a small binder or card box or
 something. I've played around with gourmet with varying success but
 not been entirely happy. It's been buggy for me when it comes to
 printing.[1] At the very least, someone can try it out for it's
 converting/unit suggestions, as they are fantastic.
 
 Most here may work directly from org, but if recipes *are*
 implemented, an exporter or two for half-page or index card sizes
 would be *phenomenal.*

Hi,

I can’t help with printing (which would be nice). But I have put my
code on gitorious:

  https://gitorious.org/org-cook/org-cook

It currently does metric/english conversion, and a few other
tricks. Basically I just use calc’s units code. I think scaling
recipes, or turning percentages into weights would be pretty easy.

There is also, for those interested:

  https://gitorious.org/org-brew/org-brew

for brewing beer. This is again, mostly just calc functions, including
hydrometer correction, abv calculation, priming sugar for a given CO_2
volume, etc. More integration with org-mode should be possible: for
instance it would be nice to be able to use a lookup table (of
ingredients) to calculate target original gravity, IBUs, etc.

Any thoughts or pull requests on either are appreciated!

(Please do continue to CC me, as I read the list via gmane and may
miss messages.)

best, Erik
Sent from my free software system http://fsf.org/.


Re: [O] Habits not showing in agenda and no progress graph

2011-07-26 Thread Michael Brand
Hi John

- State logging is working ok as seen from the LOGBOOK.
- A habit task is simply not shown before the SCHEDULED date. Try this
  task state to get an impression of the graph (change TODO and DONE
  keywords to reflect your setup):
  #+begin_src org
,* TODO note down month's accomplishments/contributions
,  SCHEDULED: 2011-07-25 Mon .+5d/10d
,  :LOGBOOK:
,  - State DONE   from TODO   [2011-07-20 Wed 12:00]
,  - State DONE   from TODO   [2011-07-15 Fri 12:00]
,  :END:
,  :PROPERTIES:
,  :STYLE:habit
,  :LAST_REPEAT: [2011-07-20 Wed 12:00]
,  :END:
  #+end_src
- Side note: It seems that like when experimenting you have set the
  task twice to DONE at the same time which is not useful but does not
  hurt to get started with habits.

On Tue, Jul 26, 2011 at 23:22, John Hendy jw.he...@gmail.com wrote:
 I'm attempting to implement habits for a couple of routine things I
 should do at work on a regular basis. I've been following the manual
 to set this up:

 ,-
 | 1. You have enabled the habits module by customizing the variable
 org-modules. CHECK
 | 2. The habit is a TODO item, with a TODO keyword representing an
 open state. CHECK
 | 3. The property STYLE is set to the value habit. CHECK
 | 4. The TODO has a scheduled date, usually with a .+ style repeat
 interval... CHECK
 | 5. The TODO may also have minimum and maximum ranges specified by
 using the syntax ‘.+2d/3d’... CHECK
 | 6. You must also have state logging for the DONE state enabled... THINK SO
 `-

 I have mid-year and yearly reviews and *always* kick myself for not
 recording things I've done regularly, such that I end up scouring the
 earth for details about what I did in emails, calendar items, and org
 files. I'd like to do this monthly to save me 2x/year headaches. So...
 enter my first attempt at implementing habits:

 -
 ** todo note down month's accomplishments/contributions
    SCHEDULED: 2011-08-20 Sat .+25d/35d
   :LOGBOOK:
   - State done       from todo       [2011-07-26 Tue 16:02]
   - State done       from todo       [2011-07-26 Tue 16:02]
   :END:
   :PROPERTIES:
   :STYLE:    habit
   :LAST_REPEAT: [2011-07-26 Tue 16:02]
   :END:
 -

 Note that above for #6, I said I thought so. I'm saying that as the
 todo - done state appears to be tracked above in my cycling.
 Typically, I just get a completed inactive time stamp and it gets
 marked done. The fact that it stays open I'm guessing means the habit
 is working.

 But... I have a couple of questions:

 #1: the habits aren't showing up in agenda. I did =C-c a a=, then =v
 y= and accepted that I really wanted to see the year. I get no monthly
 views of the above habit, despite seeing the minibuffer mode as
 Org-agenda Year Dds Grid Habit If I press =K=, it tells me that
 habits have been turned off, so I know they were on.

 #2: I just don't understand this at all (from the manual):

 ,-
 | What's really useful about habits is that they are displayed along
 with a consistency graph,
 | to show how consistent you've been at getting that task done in the
 past. This graph shows
 | every day that the task was done over the past three weeks, with
 colors for each day.
 |
 | Followed by overview of what the colors mean...
 `-

 Where is this graph? I don't see any colors. The worg tutorial doesn't
 mention the word graph anywhere, and only shows making a table
 manually to document progress. It also doesn't mention the word color.

 Thanks for any suggestions. It's my first time, so it's probably that
 I've missed something silly in my setup or have a typo.


 Thanks!
 John