[O] Hrules and Column/Page breaks

2012-02-01 Thread Jambunathan K

Is it possible to extend horizontal ruler to also stand for page *and*
column breaks (say) by attaching a header to it. For it to be useful,
the page break can have a style attached to it that specifies what
manner of pages that this break introduces. 

(For example, start emitting Frontmatter pages from here on. Start
emitting Regular pages from here on.)

Would you be interested in formalizing this arrangement? WDYT.

Org file below:

--8---cut here---start-8---
* Headline

There is horizontal line below.

#+header: some qualifiers
--

There is a horizontal ruler above.
--8---cut here---end---8---


gets transformed to this:

#+begin_src emacs-lisp
(headline
   (:raw-value Headline :title
   (Headline)
   :begin 403 :end 531 :pre-blank 1 :hiddenp nil 
:contents-begin 415 :contents-end 530 :level 1 :priority nil :tags nil 
:todo-keyword nil :todo-type nil :scheduled nil :deadline nil :timestamp nil 
:clock nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil 
:quotedp nil :category nil)
   (section
(:begin 415 :end 530 :contents-begin 415 :contents-end 530 
:post-blank 0)
(paragraph
 (:begin 415 :end 449 :contents-begin 415 :contents-end 447 
:post-blank 1)
 There is horizontal ruler below.)
(horizontal-rule
 (:begin 449 :end 495 :post-blank 1 :header
 (some qualifiers)))
(paragraph
 (:begin 495 :end 530 :contents-begin 495 :contents-end 529 
:post-blank 0)
 There is a horizontal ruler above.)))
#+end_src
-- 



Re: [O] How do teachers use org-mode

2012-02-01 Thread Alan Schmitt

On 1 Feb 2012, at 5:10, Venkatesh Choppella wrote:


I am interested to  hear from others who have used org-mode as part of
their teaching activities.


I've only very recently started using org-mode, including for teaching 
an OCaml class (OCaml is a programming language). I'm re-using some old 
beamer slides but for the new ones I'm exporting an org-mode file to 
beamer, and I found it works great. I want to use org-mode for the other 
tasks, including porting the old slides, but first I need to figure out 
how to make minted work (the worg tutorial does not work with current 
org-mode version). My goal is to have code examples generate their 
output, and for labs to tangle solutions to exercises from the same file 
as the assignment.


Alan



Re: [O] [ANN] ASCII back-end for new export engine

2012-02-01 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes:

 No. Headlines, along with items, keywords and sections, can't have
 affiliated keywords. Though, they have properties. It may be done with:

   :PROPERTIES:
   :NUMBERING: nil
   :END:

 But it's still new syntax. It could also be narrowed
 to :LATEX_NUMBERING: nil, but I think that this feature, if implemented,
 should be available for every major back-end, much like num:1.

This is how headlines are formatted in ODF.

#+begin_src nxml
  text:h text:style-name=Heading_20_1 text:outline-level=1
  ...
  /text:h
#+end_src

The style name says the paragraph properties of the heading. The outline
level (indirectly) specifies the numbering properties.

By bumping outline-level to a very high-value it should be possible to
have a particular headline to be rendered unnumbered and not enter TOC.

As a side note, it looks like we are talking various means of headline
behaviour vis a vis numbering

1. numbered and listed
2. unnumbered and listed
3. unnumbered and not listed
4. listified

Hope we are able to choose a property name that reflects it's
functionality vis-a-vis it's listing behaviour.
-- 



Re: [O] how do scientists use org mode?

2012-02-01 Thread Sven Bretfeld
Hi Christoph

For my scientific work (I'm an Indologist) I use orgmode in three ways:

1. _Project planning and calendar management_

   That's just the normal thing. I use the GTD approach, extended by
   some specialties like the tags :BIGROCK: (most important project to
   work on this week) and :MIT: (most important thing of the day).

2. _Writing papers_

   To me this is one of the most important powers of orgmode: work on
   papers and have Todos inserted into the text directly. So, if you
   have referenced a book but you don't have it at hand at the moment,
   you can do:

   This is a paraphrase you need a reference for (Smith 2009: ??).
   TODO Check the page in Smith's book   :LIBRARY:

   I always add files with draft papers to org-agenda-files. Next time
   I'm at the library and have MobileOrg with me, the Todo shows up and
   I can check the book. I know of no other wordprocessor or editor
   which can do this.

3. _Collecting reference material_

   Whenever I read a book (since some months I usually read ebooks or
   pdfs on my tablet), I find passages I need for present or future
   papers. With the ezReader app (Android) you can mark these passages
   and send them to MobileOrg. When I come home, the new material has
   already synced and waits to be tagged and refiled. I use org-files
   for each paper I'm working on as databases for references. The header
   is a short description of the content of each reference. Keywords and
   bibliographic data are put into drawers that can be queried. I have
   an Emacs macro that automatically transforms the raw entry into the
   right markup.

Welcome to org

Sven

GMX Christoph 13 christoph...@gmx.net writes:

 Hi
 this is my first post here and although I am evaluating org mode with great 
 interest, I am also asking myself in which way other scientists are making 
 use of org mode. It will take a while to get my head around how to accomplish 
 certain things in org mode but for the moment I am intrigued by *why* one 
 would want to approach the problem of organizing one's research with org mode 
 and in which way. 
 Are you putting exclusively your todos in, well, your todo file and perhaps 
 keep project-related things, such as data and progress, notes, ideas etc. 
 somewhere else? Or do you embed your notes and todos within their original 
 context, i.e. is org mode your one-stop solution for data management? Do you 
 maintain a separate file for every major project you are responsible for or 
 involved in or throw everything into one or few humungous  files and 
 differentiate using hierarchies and tags? 
 In the past I have hit some road blocks not so much with other softwares but 
 rather concepts such as GTD, which I think is tailored to the needs of people 
 outside science, so I would deeply appreciate your views and experience.

 If this list is geared towards the proximate aspects of development and less 
 towards philosophy of usage, I apologize

 Christoph



Re: [O] New iCalendar import script

2012-02-01 Thread Sven Bretfeld
Dear Simon

Thank you very much for publishing this script. I have no time to test
it right now, but I will do so in a few days.

Sven

Simon Thum simon.t...@gmx.de writes:

 Hi all,

 I've written an iCalendar import script in ruby (I know, not emacs
 lisp, but at the least I should let you be aware).

 I think it's an improvement over the awk script, so you may consider
 mentioning it in the appropriate places. See

 https://github.com/simonthum/ical2org

 It has more complete iCalendar support, in particular repeating dates
 and Todos. Likely it is easier to adapt to individual requirements.
 Also, it works under windows and linux - my win32 awk was missing key
 functionality for the script (mktimestamp, IIRC).

 I'm not particularly attached to CC-BY or github, so if you think a
 more appropriate long-term place would be orgmode.org then we'll
 probably find a way.

 It's in its early stages, for example I'm quite unsure about the
 timezone support, so feedback is more than welcome!

 Cheers,

 Simon



Re: [O] Variable settings in .emacs VS cross device portability.

2012-02-01 Thread Yu
2012/1/31 Eric S Fraga e.fr...@ucl.ac.uk:
 Eric Schulte eric.schu...@gmx.com writes:

 [...]

 File Local Variables [1] make it possible to explicitly specify the
 values of variables from within the text of a .org file.  This can be
 placed in a single line at the top of a file for small changes or in a
 larger section at the end of the file.

 Eric,

 this doesn't always seem to work, at least not for me.  BIND always
 works but certain org variables seem to be ignored when set using local
 file variables.

 The variables I refer to are often, maybe always (?), related to export
 functions.  My gut feeling is that this has something to do with a copy
 of the file being made for the export and maybe emacs not getting a
 chance to set local variables for that copy?  Grasping at straws here,
 mind you ;-)

For #+BIND the org manual is probably not quite clear.

The Concept Index page says:
: * #+BIND:Export options.  (line  19)

12.2 Export options says:
:  #+BIND:lisp-var lisp-val, e.g.:
org-export-latex-low-levels itemize
: You need to confirm using these, or configure
`org-export-allow-BIND'

So basically, #+BIND only applies to export, though the manual maybe
slightly underemphasizes that fact.

Did you try the general emacs syntax for file variables, Eric Schulte
mentioned? [1] For me that worked (except that non-safe variables
require confirmation in order to avoid text files executing harmful
code). The emacs-documentation doesn't mention it, but apparently this
works also in shebang'ed files, by moving the single line form (`-*-
... -*-') to the second line. [2]

[1] http://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html
[2] http://www.lugaru.com/man/File.Variables.html



Re: [O] How do teachers use org-mode

2012-02-01 Thread Brian van den Broek
On 1 February 2012 06:10, Venkatesh Choppella
venkatesh.choppe...@iiit.ac.in wrote:
 Dear Org-mode users:

 I am using  org-mode this semester  to host my course notes.   For me
 org-mode was a god-send, since I had been struggling to organize
 course notes in plain html  before that.

snip

 I am interested to  hear from others who have used org-mode as part of
 their teaching activities.

 Sincerely,

 Venkatesh Choppella
 IIIT Hyderabad
 Gachibowli, Hyderabad 500 032
 India


Hi Venkatesh,

I'm a philosopher, so, unlike in your case, there's little chance of
my making orgmode itself part of the course material :-)

Depending on the course, I make a lot of use of beamer presentations.
(Lots in Introduction to Logic course, little or none in seminars.)
However, I developed my work-flow before orgmode grew the rich tools
it now has for supporting beamer; so orgmode plays no role, here. Were
I starting again, I'd likely make my workflow more orgmode focused.

The most significant use I make of orgmode that seems peculiar to
teaching is to use org-clone-subtree-with-time-shift to create a
headline for each class session.

Each has a subheading where I jot whatever reminders I need of what to
say in class that won't be triggered for me by the beamer presentation
(if I am employing one for that class). I keep this visible on a
netbook beside the podium with the computer driving the digital
projector.

Each class's heading also has a subheading where, in the minutes
immediately after class, I record a post-mortem of the class. This
includes things such as what actually did get covered (as distinct
from what I had planned to cover), any things about the manner of
presenting that class's material that didn't work so well, any student
questions that were especially interesting or surprising, and any
follow-up tasks. The what got covered has been invaluable for
planning the next time I offer the same class and has also proved very
helpful when I've had more than one section of a single class.
(Despite the use of beamer, I try to let the class develop as the
students want as much as I do, so there is always some substantial
differences between two sections of the same class to keep track of.)

Hope that  helps,

Brian vdB



[O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I would like to use the export to taskjuggler, but somehow I don't get
it working - might be me or the fact that I have taskjuggler 3.1.0.

I am trying the example on

http://orgmode.org/worg/org-tutorials/org-taskjuggler.html

but I somehow don't get it to work.

My questions are:

1) does the taskjuggler export work with tj3 (version 3.1.0) (John
Hendy says it doesn't (taskjuggler (tj3) export issues and
proposals), but there are patches which should have made it work
(e.g. Christian Egli, small edits to org-taskjuggler.el for tj3).
So: what is the actual status?

2) does the example (url above) work for tj3?

3) if no, could somebody provide a simple example org file which works
with tj3?

Thanks a lot,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8pAV4ACgkQoYgNqgF2egp0mQCcC6iKvpfYJAxNwKbKadHxfcBN
0SAAoIWxde0BPy2HdSflFQtHOFXYddFw
=7GDo
-END PGP SIGNATURE-



[O] comments and attributes

2012-02-01 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Jambunathan K kjambunat...@gmail.com writes:

 Does the existing behaviour as captured in [[Side-by-Side images laid
 out by hand]] be preserved with new export driver?

 I'm not sure to get the syntax right, but in the new exporter, you can
 see what is the next or previous element, along with its
 properties. Thus, you can detect when two paragraphs are back to back,
 if they have appropriate :attr_latex properties and if they are enclosed
 in a parent center-block element.

 The check could be done at the paragraph level, and, if positive,
 org-odt-paragraph could return the draw:fram
 draw:style.../draw:frame string.

 Am I missing something?

On a related note,

--8---cut here---start-8---
* Example

This 
is 
a
single
# some comment
paragraph.


This 
is 
another
#+attr_odt: t
paragraph.
--8---cut here---end---8---

if I parse the above buffer, I get

#+begin_src emacs-lisp
  (paragraph
   (:begin 412 :end 431 :contents-begin 412 :contents-end 430 :post-blank 0)
   This \nis \na\nsingle)
  (comment
   (:begin 431 :end 446 :value # some comment\n :post-blank 0))
  (paragraph
   (:begin 446 :end 459 :contents-begin 446 :contents-end 456 :post-blank 2)
   paragraph.)
  (paragraph
   (:begin 459 :end 477 :contents-begin 459 :contents-end 476 :post-blank 0)
   This \nis \nanother)
  (paragraph
   (:begin 477 :end 502 :contents-begin 491 :contents-end 501 :post-blank 0 
:attr_odt
  (t))
   paragraph.)
#+end_src

I see that the new export engine treats comment and control lines as par
breakers. The backends that are in production treats the first paragraph
as but a single paragraph.

There is already a way by which parbreaks can be introduced. Do you
think there could be some useful behaviour achieved - side by side
export of images came up in this thread - by not having commented
elements introduce parbreaks.

I am only brainstorming here. I hope the examples and use-case taken up
here help steer our discussion in a meaningful manner.

 Regards,



Re: [O] How do teachers use org-mode

2012-02-01 Thread Jambunathan K

Have students turn in their assignments in Org mode format. 

From
http://www.ocf.berkeley.edu/~rwl/lib/attachments/teaching/100/paper-guidelines.pdf

See sec-2.3

,
| I’m going to try an experiment in this course. I would like you to
| submit your papers to me as plain text, not in a document format like MS
| Word (.doc, .docx), OpenDocument Text (.odt), RTF, or HTML. You are
| welcome to useWord, OpenOffice, or another document editor to write your
| papers, but please export your paper from these programs as plain text,
| formatted according to the guidelines below.1
|
| There are several reasons for this. One, I don’t want to require you to
| use any particular software to write your papers; you can edit plain
| text using a wide variety of programs on any platform. Two, I actually
| find the papers in the usual 12 point Times New Roman double-spaced
| format pretty difficult to read and work with. By submitting your papers
| in plain text, you’re making it easier for me to compile them into a
| format that prefer to work with, which means I’ll have more time to
| dedicate to giving you helpful feedback.
|
| In case you’re wondering: these guidelines are a subset of the
| formatting rules of Org mode for GNU Emacs (http://orgmode.org). I’m
| going to use Org mode to compile your papers using the LATEX
| typesetting system. If you want, you can use any formatting compatible
| with Org mode, but you’re not required to learn it.
`



[O] toodledo and org mode

2012-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I would like to sync org-mode and with toodledo. I found at least
three implementations:

https://github.com/sachac/org-toodledo/blob/master/org-toodledo.el
https://github.com/christopherjwhite/org-toodledo
https://github.com/stophlong/repos

Does anybody has any experiences with any of these (or other) sync
add-ons for toodledo?

I would prefer some input initially, before I try one (and possibly
mess up my task list on toodledo...)

Thanks,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8pCpUACgkQoYgNqgF2egpbSACeJsAuzTYrHmSYvIsEmXl7ObA7
j2gAnR4fwSzU9qmw6ZLALZvMZqM4EeWv
=t8T+
-END PGP SIGNATURE-



Re: [O] Sort TODOs in agenda day

2012-02-01 Thread Jacek Generowicz
At Tue, 31 Jan 2012 12:39:48 -0500,
Bernt Hansen wrote:
 
 Jacek Generowicz jacek.generow...@cern.ch writes:

  Yes, but how do I instruct it to apply one strategy (time-up) to those
  items which appear in the time-grid portion of the day's display (the
  appointments), and a different one to the other entries (scheduled
  TODOs, deadlines)? Specifically, by adding a command to
 
  org-agenda-custom-commands
 
  which contains something like
 
  ((agenda 
((org-agenda-sorting-strategy '(effort-up)
 
  messes up the time ordering of appointments for that command.
 
 I have a fairly complicated sorting function which gets the order of
 items exactly how I want to see them on the agenda.
 
 The gory details are here:
 
 http://doc.norang.ca/org-mode.html#AgendaViewTweaks

I see. Should I infer that org-mode doesn't provide any features for
applying different strategies to different portions of single day's
display in the agenda?

In other words there are no hooks into the standard agenda sorting
strategy, and if you want to modify its behaviour you essentially have
to roll your own from scratch, duplicating much of the original
effort?

 HTH,

Yup.

Thanks.



Re: [O] How do teachers use org-mode

2012-02-01 Thread Richard Riley
Jambunathan K kjambunat...@gmail.com writes:

 Have students turn in their assignments in Org mode format. 

 From
 http://www.ocf.berkeley.edu/~rwl/lib/attachments/teaching/100/paper-guidelines.pdf

 See sec-2.3

 ,
 | I’m going to try an experiment in this course. I would like you to
 | submit your papers to me as plain text, not in a document format like MS
 | Word (.doc, .docx), OpenDocument Text (.odt), RTF, or HTML. You are
 | welcome to useWord, OpenOffice, or another document editor to write your
 | papers, but please export your paper from these programs as plain text,
 | formatted according to the guidelines below.1
 |
 | There are several reasons for this. One, I don’t want to require you to
 | use any particular software to write your papers; you can edit plain
 | text using a wide variety of programs on any platform. Two, I actually
 | find the papers in the usual 12 point Times New Roman double-spaced
 | format pretty difficult to read and work with. By submitting your papers
 | in plain text, you’re making it easier for me to compile them into a
 | format that prefer to work with, which means I’ll have more time to
 | dedicate to giving you helpful feedback.
 |
 | In case you’re wondering: these guidelines are a subset of the
 | formatting rules of Org mode for GNU Emacs (http://orgmode.org). I’m
 | going to use Org mode to compile your papers using the LATEX
 | typesetting system. If you want, you can use any formatting compatible
 | with Org mode, but you’re not required to learn it.
 `



Wow. That's a pretty cool stamp of approval !




Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread d . tchin
Hello,

Rainer M Krug r.m.krug at gmail.com writes:

 
 
 Hi
 
 I would like to use the export to taskjuggler, but somehow I don't get
 it working - might be me or the fact that I have taskjuggler 3.1.0.
 
 I am trying the example on
 
 http://orgmode.org/worg/org-tutorials/org-taskjuggler.html
 
 but I somehow don't get it to work.
 

I tried to make this example work with tj3 some time ago but I didn't manage 
to make it work with the current taskjuggler export procedure. It seems that 
the instruction change a lot beetween tj2 and tj3 and as far I understand the 
export function was written for tj2.

 My questions are:
 
 1) does the taskjuggler export work with tj3 (version 3.1.0) (John
 Hendy says it doesn't (taskjuggler (tj3) export issues and
 proposals), but there are patches which should have made it work
 (e.g. Christian Egli, small edits to org-taskjuggler.el for tj3).
 So: what is the actual status?
 

I put here the link where you can see the change. 
Indeed it works with the change proposed by this patch.
http://thread.gmane.org/gmane.emacs.orgmode/40550

This change is apparently not implemented in the current org-taskjuggler.el 
file.






Re: [O] New tutorial on using Emacs lisp for Org spreadsheet formulas

2012-02-01 Thread Nicolas Goaziou
Hello,

Achim Gratz strom...@nexgo.de writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:
 I don't see what is clumsy with affiliated keywords.

 Well, you write the arguments before starting the source block, getting
 everything wardbacks (and I don't think that's easier to parse, but you
 would know better(*)).

I think you're mixing src blocks and Babel. A src block contains,
fontifies and allows to edit source code. Babel arguments (or caption,
or name) are meta-data that applies to the whole src block element, not
to its contents.

 Last but not least I can never remember if any of the #+ stuff is
 supposed to end with a :

Affiliated keywords all do. If one doesn't, it's a bug.

 and whether it wants another : in front of the arguments or not.

That's another topic, and I agree that, at one point or another, we'll
have to unify the way parameters are written. IMO, Babel usage is a good
standard.

 (*) Reminds me I'll have to try what happens if I write header
 arguments that are detached from the source block.  Devious, I know,
 but the manual does not really specify anything.

But Org elements does. Affiliated keywords must be attached to their
relative element.

 If you look carefully, that source block above does not contain a
 drawer.  It has a (hypothetical) associated multiline header argument
 that happens to look and feel like a drawer.

Then it's a duck.

 Though, drawers can contain src-blocks.

 Is there any specification that they must fully contain them?

You may want to read comments in org-element.el. I also posted some
explanations when I announced the library.

 Anyway, that was just an idea and if nobody likes it, that's fine with
 me, too.

I just wanted to let you know that the idea of putting quasi-drawers
within a src-block is against the model described by the current parser.


Regards,

-- 
Nicolas Goaziou



Re: [O] Sort TODOs in agenda day

2012-02-01 Thread Bernt Hansen
Jacek Generowicz jacek.generow...@cern.ch writes:

 At Tue, 31 Jan 2012 12:39:48 -0500,
 Bernt Hansen wrote:
 
 Jacek Generowicz jacek.generow...@cern.ch writes:

  Yes, but how do I instruct it to apply one strategy (time-up) to those
  items which appear in the time-grid portion of the day's display (the
  appointments), and a different one to the other entries (scheduled
  TODOs, deadlines)? Specifically, by adding a command to
 
  org-agenda-custom-commands
 
  which contains something like
 
  ((agenda 
((org-agenda-sorting-strategy '(effort-up)
 
  messes up the time ordering of appointments for that command.
 
 I have a fairly complicated sorting function which gets the order of
 items exactly how I want to see them on the agenda.
 
 The gory details are here:
 
 http://doc.norang.ca/org-mode.html#AgendaViewTweaks

 I see. Should I infer that org-mode doesn't provide any features for
 applying different strategies to different portions of single day's
 display in the agenda?

 In other words there are no hooks into the standard agenda sorting
 strategy, and if you want to modify its behaviour you essentially have
 to roll your own from scratch, duplicating much of the original
 effort?

Not necessarily, if the standard sorting mechanism with an appropriate
setting for org-agenda-sorting-strategy does what you need then there is
no reason to create a user-defined sorting function (which is what I
did).

You can add BOTH time-up and effort-up to the sorting strategy for the
agenda and time will prevail - for items with a time, and effort will be
the next sorting criteria.

Have you tried this?

;; Sorting order for tasks on the agenda
(setq org-agenda-sorting-strategy
  (quote ((agenda time-up effort-up

When I was first experimented with the sorting strategy I used the
customize interface to set it for the current session only and looked at
the result of my agenda with the new setting.

The reason I define and use a user-defined-up sorting function is I want
complete control over where each type of item goes in my agenda.

My setting for the agenda is below:

(setq org-agenda-sorting-strategy
  (quote ((agenda habit-down time-up user-defined-up priority-down 
effort-up category-keep)
  (todo category-up priority-down effort-up)
  (tags category-up priority-down effort-up)
  (search category-up

so for the agenda daily view habits are at the bottom, and timed items
are at the top, then my user-defined sorting function sorts what is left
for the middle section of the list in the following order:

  - items with no schedule/deadline and timestamped for today
  - deadlines for today
  - late deadlines
  - scheduled items for today
  - late scheduled items
  - and pending deadlines last

Regards,
Bernt


 HTH,

 Yup.

 Thanks.



Re: [O] Hrules and Column/Page breaks

2012-02-01 Thread Nicolas Goaziou
Hello,

Jambunathan K kjambunat...@gmail.com writes:

 Is it possible to extend horizontal ruler to also stand for page *and*
 column breaks (say) by attaching a header to it. 

This is already possible.

For example, in e-ascii back-end, the following will create a 10
characters long hline instead of full text-width (I should also probably
center it, but it's not the case actually):

--8---cut here---start-8---
#+attr_ascii: :width 8
-
--8---cut here---end---8---

In your case, just put anything in #+attr_odt affiliated
keyword. Example:

--8---cut here---start-8---
#+attr_odt: some qualifiers
-
--8---cut here---end---8---

Then, (org-element-get-property :attr_odt HRULE) will return:

 '(some qualifiers).

Note that #+header in only Babel related at the moment. Also this really
back-end specific (hence the special keywords) since some back-ends have
no clue about a page or a column.


Regards,

-- 
Nicolas Goaziou



Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/02/12 13:25, d.tchin wrote:
 Hello,
 
 Rainer M Krug r.m.krug at gmail.com writes:
 
 
 
 Hi
 
 I would like to use the export to taskjuggler, but somehow I
 don't get it working - might be me or the fact that I have
 taskjuggler 3.1.0.
 
 I am trying the example on
 
 http://orgmode.org/worg/org-tutorials/org-taskjuggler.html
 
 but I somehow don't get it to work.
 
 
 I tried to make this example work with tj3 some time ago but I
 didn't manage to make it work with the current taskjuggler export
 procedure. It seems that the instruction change a lot beetween tj2
 and tj3 and as far I understand the export function was written for
 tj2.

Yes - that is my understanding and experience so far as well.

 
 My questions are:
 
 1) does the taskjuggler export work with tj3 (version 3.1.0)
 (John Hendy says it doesn't (taskjuggler (tj3) export issues
 and proposals), but there are patches which should have made it
 work (e.g. Christian Egli, small edits to org-taskjuggler.el for
 tj3). So: what is the actual status?
 
 
 I put here the link where you can see the change. Indeed it works
 with the change proposed by this patch. 
 http://thread.gmane.org/gmane.emacs.orgmode/40550
 
 This change is apparently not implemented in the current
 org-taskjuggler.el file.

Oversight? Is somebody looking at enabling export for tj3? Or is there
a way that I can install tj2 on Ubuntu Oneiric?

Cheers,

Rainer

 
 
 
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8pNmcACgkQoYgNqgF2egoNwACfTZiTCBFiwsseIyOTQkKo5V4q
vCcAn0rynuwgaWaWG4qTbqRIiKfdykVS
=gFJ9
-END PGP SIGNATURE-



Re: [O] comments and attributes

2012-02-01 Thread Nicolas Goaziou
Hello,

Jambunathan K kjambunat...@gmail.com writes:

 On a related note,

 * Example

 This 
 is 
 a
 single
 # some comment
 paragraph.


 This 
 is 
 another
 #+attr_odt: t
 paragraph.

 if I parse the above buffer, I get

 #+begin_src emacs-lisp
   (paragraph
(:begin 412 :end 431 :contents-begin 412 :contents-end 430 :post-blank 0)
This \nis \na\nsingle)
   (comment
(:begin 431 :end 446 :value # some comment\n :post-blank 0))
   (paragraph
(:begin 446 :end 459 :contents-begin 446 :contents-end 456 :post-blank 2)
paragraph.)
   (paragraph
(:begin 459 :end 477 :contents-begin 459 :contents-end 476 :post-blank 0)
This \nis \nanother)
   (paragraph
(:begin 477 :end 502 :contents-begin 491 :contents-end 501 :post-blank 0 
 :attr_odt
   (t))
paragraph.)
 #+end_src

 I see that the new export engine treats comment and control lines as par
 breakers. The backends that are in production treats the first paragraph
 as but a single paragraph.

Not the export engine, but the parser. Comment is an element type, as is
Paragraph. Beginning an element ends the previous one.

This has always been true in Org. For example, you may look at
`paragraph-start' and `paragraph-separate' values in an Org buffer:
comments (and many other things) are clearly separating and ending
paragraphs.

Also, it is consistent with other elements. Indeed, consider the
following example:

--8---cut here---start-8---
: fixed-width line 1
# Commented line
: fixed-width line 2
--8---cut here---end---8---

If you use C-c ' on the first fixed-width line, you won't be offered to
edit also the second one.

Though, you're right, current exporter indeed ignores that Org feature.

 There is already a way by which parbreaks can be introduced. Do you
 think there could be some useful behaviour achieved - side by side
 export of images came up in this thread - by not having commented
 elements introduce parbreaks.

I think that it's a mistake to rely on comments to define semantics.

Anyway, I suggested something already about the problem of side by side
paragraphs. What was wrong with it? If it wasn't clear, I'll try to
provide an example. If it was flawed, we may try to improve it.


Regards,

-- 
Nicolas Goaziou



Re: [O] Frontmatter / Text before first headline

2012-02-01 Thread Nicolas Goaziou
Hello,

Jambunathan K kjambunat...@gmail.com writes:

 I have trouble understanding what the real purpose of the text before
 the first headline is. It looks to me more like a placeholder for
 capturing the Frontmatter [1].

If you're talking about the first section in the parse tree, the e-ascii
back-end makes use of it: even if that part of the document, links may
have to be collected and displayed before the first headline.

Also, Frontmatter probably only makes sense for large
documents. I sometimes write documents that doesn't even have an
headline. Should they be considered as one big frontmatter? Where would
be the matter, then?

 I have also trouble understanding what the rightful position for it is:

 Should it be like:
 (a) Title, Initial Text, TOC, Chapters
   Or like
 (b) Title, TOC, Initial Text, Chapters

 Currently org-latex does a (b). 

 But if I look at an organization of a typical document, I am inclined to
 think that it should be (a). It is also my contention that Table Of
 Contents is relocatable only as a means to achieve (b).

Honestly, (b) is easier to achieve than (a), since TOC can be stuffed in
preamble (that is before reading the parse tree). Also, as it's
configurable, I don't think we should bother too much here.

 I am wondering if you would be interested in formalizing frontmatter in
 Org documents. Backends will then be obligated to render the front
 matter headings as centered text.

What about using special blocks?

--8---cut here---start-8---
#+begin_abstract
This is the document abstract.
#+end_abstract
--8---cut here---end---8---

You can even use a drawer and define its export behaviour in
`org-export-format-drawer-function' (current exporter) or an equivalent.

Anyway, if it happens that tools to build complex documents are
missing[1], I agree that we should provide them, as long as they aren't
imposed to the user.


Regards,

[1] But, first, let's make sure that it's impossible, or at least very
difficult, with current ones.

-- 
Nicolas Goaziou



Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread John Hendy
On Wed, Feb 1, 2012 at 6:25 AM, d.tchin d.tc...@voila.fr wrote:
 Hello,

 Rainer M Krug r.m.krug at gmail.com writes:

[...]


 1) does the taskjuggler export work with tj3 (version 3.1.0) (John
 Hendy says it doesn't (taskjuggler (tj3) export issues and
 proposals), but there are patches which should have made it work
 (e.g. Christian Egli, small edits to org-taskjuggler.el for tj3).
 So: what is the actual status?


 I put here the link where you can see the change.
 Indeed it works with the change proposed by this patch.
 http://thread.gmane.org/gmane.emacs.orgmode/40550


I just tried to apply that patch and get:
---
$ patch -p1  ../tj3.patch
patching file org-taskjuggler.el
patch:  malformed patch at line 9: completed, chart
---

Not sure what's wrong.

Even so, see my most recent thread
(http://www.mail-archive.com/emacs-orgmode@gnu.org/msg51502.html).
Even if that patch works, it's not a viable solution. It sets a
default value, but this is really *the* value as in there's no way
to override it from the file. If you want a different export format,
you have to edit your emacs config. The variable should be called
'org-taskjuggler-export-report'. I think the ability to include a .tji
file is the way to go. Write your report definition, add =include
reports.tji= to the exporter and you're all set.

John

 This change is apparently not implemented in the current org-taskjuggler.el
 file.




Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread John Hendy
On Wed, Feb 1, 2012 at 6:56 AM, Rainer M Krug r.m.k...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 01/02/12 13:25, d.tchin wrote:
 Hello,

 Rainer M Krug r.m.krug at gmail.com writes:

[...]


 Oversight? Is somebody looking at enabling export for tj3? Or is there
 a way that I can install tj2 on Ubuntu Oneiric?


If you can bear an extra step, set
'org-export-taskjuggler-default-reports' to nothing (or just comment
out the defaults with a preceding # for safekeeping). Add your
report definitions into a file called reports.tji (yes, it seems to
have to be reports.tji and nothing-else.tji). Then export from the
org file, open up the generated .tjp and add =include reports.tji=
as the last line. Should work like a charm.

Try the tutorial report from the taskjuggler documentation perhaps as
a test? It worked for me.


John



Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/02/12 14:50, John Hendy wrote:
 On Wed, Feb 1, 2012 at 6:56 AM, Rainer M Krug r.m.k...@gmail.com
 wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 On 01/02/12 13:25, d.tchin wrote:
 Hello,
 
 Rainer M Krug r.m.krug at gmail.com writes:
 
 [...]
 
 
 Oversight? Is somebody looking at enabling export for tj3? Or is
 there a way that I can install tj2 on Ubuntu Oneiric?
 
 
 If you can bear an extra step, set 
 'org-export-taskjuggler-default-reports' to nothing (or just
 comment out the defaults with a preceding # for safekeeping). Add
 your report definitions into a file called reports.tji (yes, it
 seems to have to be reports.tji and nothing-else.tji). Then
 export from the org file, open up the generated .tjp and add
 =include reports.tji= as the last line. Should work like a
 charm.

Sounds like an option, but definitely not one I would prefer.
I'll wait and see what happens.

I'll come back to your suggestion if 'll use it anyway.

 
 Try the tutorial report from the taskjuggler documentation perhaps
 as a test? It worked for me.

I'll do.

Thanks a lot,

Rainer

 
 
 John


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8pREkACgkQoYgNqgF2egoncgCaA1bIq98jlbS1nTVvyA5fcm8V
c+cAnjfMTc6ikQIEbJW5g/dk5pTzvFAC
=Hs7b
-END PGP SIGNATURE-



Re: [O] Org without X on Debian

2012-02-01 Thread Eduardo Ochs
On Tue, Jan 31, 2012 at 6:55 PM, Jay Belanger jay.p.belan...@gmail.com wrote:
  I want to use a small netbook exclusively for Org-mode.
  That's why I think I do not need X.
 
  You may not need it, but a lightweight window manager like WindowMaker
  fvwm or maybe a tiling WM like awesome may be worth a second look.  Have
  a look here:

 If the netbook will only be used for org-mode, and so perhaps only
 running Emacs, a WM might not even be necessary.  If only one Emacs
 frame is used, it could probably be run on bare X.

This works for me:

cat  /tmp/em.sh '%%%'
#!/bin/sh
/usr/bin/emacs
%%%

chmod 755 /tmp/em.sh

XINITRC=/tmp/em.sh xinit -- :2.0 

  Cheers,
Eduardo Ochs
eduardoo...@gmail.com
http://angg.twu.net/



Re: [O] taskjuggler (tj3) export issues and proposals

2012-02-01 Thread Christian Egli
Hi John

John Hendy jw.he...@gmail.com writes:

 Leading my first project and decided to dig into taskjuggler again. It
 just seems so natural to have everything in org if possible, so I took
 another look at the exporter, manual, and worg tutorial. [1][2]

Cool.

 As is, as far as I can tell, the exporter does not work out of the box
 with tj3. I /think/ I could get it to work if I added in a massive
 report definition (which now seems mandatory for tj3) under
 =org-export-taskjuggler-default-reports=, but that just feels clumsy.

First off let me say that I'm using the taskjuggler exporter with tj3,
so it should work.

As far as I know setting the org-export-taskjuggler-default-reports
should work. As I agree that this is a bit clumsy and sets the reports
for all projects. I'm setting the variable in a file variable like so
(the compile-command is optional but you need to adapt it to match the
location of your tj3 binary and your file name):

# Local Variables:
# org-export-taskjuggler-target-version: 3.0
# org-export-taskjuggler-default-reports: (include \reports.tji\)
# compile-command: ~/.gem/ruby/1.9.1/bin/tj3 yourfilename.tjp
# End:

Then I define the reports in a separate file which is included similar
to the solution you outline below.

I guess I should have some default report definitions for tj3 in the
exporter itself. The tj3 reports are quite massive and it is hard to
come by some which could be included in the Emacs source (you need
copyright assignments). Maybe the ones I have in my reports.tji could
qualify.

 For one, not every project will have the same report. Secondly, it
 seems odd to tweak report definitions through my .emacs file? 

Yes I agree, see above.

 Based on my fiddling tonight, here are some suggestions/inquiries:

 1) Could there be something equivalent to #+latex/#+begin_latex that
 would let me export some literal taskjuggler syntax into a file?
 Perhaps throw everything between a #+begin/end_taskjuggler just before
 the closing } for the task?

I can see a use case for this with regards to reports. But what is the
use case if you'd place this inside tasks? The problem with literal
sections of taskjuggler is where to place them. Something might me
related to the project header, other stuff to the reports, etc.

 2) Could a different naming convention be used? It seems the currently
 it's either what is defined by the property :task_id: or defaults to
 the first word of the headline. If the default were more likely to be
 unique, it would spare having to define a ton of =task_id= properties;
 instead one could define dependencies based on headline names because
 the syntax for naming was known and not likely to clash with another
 headline's ID.
 --- First word of the parent headline + _ + first word of actual headline?
 --- Bump it to the first two words of each headline?

The exporter just makes the task_id locally unique. That's what tj
expects. From your usage I guess that you have a lot of tasks with the
same name (probably within different hierarchies). Both methods you
outline could be implemented. Which one is more general?

 3) As a piggyback on #1, I am successful with the following process:
 -- create reports.tji with my report definitions
 -- org-export-taskjuggler-default-reports set to nothing
 -- export from orgmode
 -- edit exported-file.tjp and add: include reports.tji to the end
 -- run =tj3 filename.tjp=

Could you not set org-export-taskjuggler-default-reports to include
\reports.tji\? Otherwise you can use file variables as I outlined
above.

 Simply allowing the addition of =include reports.tji= or even
 mandating that it exists would allow the use of tj3 with the current
 exporter.

 I don't know lisp and feel a bit guilty making potentially code-heavy
 suggestions about this... That said, I'm happy to pitch in with the
 manual/worg since they're a but outdated anyway. 

I'm happy to take you up on this offer. The worg page is a lot of work,
as it has all these screen shots. I'd be happy if you could update it
once you get all of this working.

 I don't see an obvious place where one can even download tj 2.x.x
 anymore. 

I have it installed on an old machine.

 The tj team seems to have left that version behind; perhaps
 the org exporter should to? 

I still prefer the old reports. But I guess yes, the exporter should
move on and support tj3 out of the box. The two main problems are

1. default reports with copyright assignments. As I include this in the
   Emacs source we need to have assignments. I can't just take the ones
   from the tj3 manual (I'd have to ask the author first).

2. A way to invoke the view (as seamless as before). For tj 2.4 I was
   able to just invoke the taskjuggler gui with the exported tjp file.
   For tj3 the exporter needs to somehow find out which reports are
   generated (HTML, text, csv) and then invoke the appropriate viewer.
   This might be simplified I take some assumptions, but I haven't come
   up with a 

Re: [O] [PATCH] narrowing in agenda file

2012-02-01 Thread Bernt Hansen
Bernt Hansen be...@norang.ca writes:

 Litvinov Sergey slitvi...@gmail.com writes:

 Narrowing in the agenda file does not survive agenda redo. Please
 see an example in the first patch. I think the second patch fixes this
 problem.

 Hi Sergey,

 I haven't had a chance to try your patch yet but I recently tried to fix
 this behaviour as well but there are other issues that crop up when you
 keep the narrowed region.

 Please make sure that at least the following work as expected with your
 patch:

   - org agenda clock reports are correct
   - You don't have the LOGBOOK drawer aligned with tags when clocking in
 from the agenda (this was with emacs -q (no org-indent-mode)
   - Column view in the agenda shows correct clocking amounts for each
 task
   - Visiting a task with RET or SPC goes to the task when outside the
 narrowed region
   - Remote editing of a task outside the narrowed region changes the
 target task and not something in your narrowed region instead

 I'm hoping your patch works since I also want this desired behaviour but
 so far my attempts to achieve this failed miserably :(

 Regards,
 Bernt


Hi Litvinov,

I tried this patch today and clock reports in the agenda no longer
display for me.  Could you take a look at it please?

Thanks,
Bernt



Re: [O] taskjuggler (tj3) export issues and proposals

2012-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/02/12 15:09, Christian Egli wrote:
 Hi John
 
 John Hendy jw.he...@gmail.com writes:
 
 Leading my first project and decided to dig into taskjuggler
 again. It just seems so natural to have everything in org if
 possible, so I took another look at the exporter, manual, and
 worg tutorial. [1][2]
 
 Cool.
 
 As is, as far as I can tell, the exporter does not work out of
 the box with tj3. I /think/ I could get it to work if I added in
 a massive report definition (which now seems mandatory for tj3)
 under =org-export-taskjuggler-default-reports=, but that just
 feels clumsy.
 
 First off let me say that I'm using the taskjuggler exporter with
 tj3, so it should work.

This is good news. As I am planning of using it only for basic stuff,
it should work for me as well.

But I am not clear about

1) how your .org file looks
2) your reports.tji looks
3) what I have to set in emacs / org variables to use tj3.

Would it be possible to post a small basic example so that one has
something to start working with? I still feel lost.

Thanks,

Rainer

 
 As far as I know setting the
 org-export-taskjuggler-default-reports should work. As I agree that
 this is a bit clumsy and sets the reports for all projects. I'm
 setting the variable in a file variable like so (the
 compile-command is optional but you need to adapt it to match the 
 location of your tj3 binary and your file name):
 
 # Local Variables: # org-export-taskjuggler-target-version: 3.0 #
 org-export-taskjuggler-default-reports: (include
 \reports.tji\) # compile-command: ~/.gem/ruby/1.9.1/bin/tj3
 yourfilename.tjp # End:
 
 Then I define the reports in a separate file which is included
 similar to the solution you outline below.
 
 I guess I should have some default report definitions for tj3 in
 the exporter itself. The tj3 reports are quite massive and it is
 hard to come by some which could be included in the Emacs source
 (you need copyright assignments). Maybe the ones I have in my
 reports.tji could qualify.
 
 For one, not every project will have the same report. Secondly,
 it seems odd to tweak report definitions through my .emacs file?
 
 
 Yes I agree, see above.
 
 Based on my fiddling tonight, here are some
 suggestions/inquiries:
 
 1) Could there be something equivalent to #+latex/#+begin_latex
 that would let me export some literal taskjuggler syntax into a
 file? Perhaps throw everything between a #+begin/end_taskjuggler
 just before the closing } for the task?
 
 I can see a use case for this with regards to reports. But what is
 the use case if you'd place this inside tasks? The problem with
 literal sections of taskjuggler is where to place them. Something
 might me related to the project header, other stuff to the reports,
 etc.
 
 2) Could a different naming convention be used? It seems the
 currently it's either what is defined by the property :task_id:
 or defaults to the first word of the headline. If the default
 were more likely to be unique, it would spare having to define a
 ton of =task_id= properties; instead one could define
 dependencies based on headline names because the syntax for
 naming was known and not likely to clash with another headline's
 ID. --- First word of the parent headline + _ + first word of
 actual headline? --- Bump it to the first two words of each
 headline?
 
 The exporter just makes the task_id locally unique. That's what tj 
 expects. From your usage I guess that you have a lot of tasks with
 the same name (probably within different hierarchies). Both methods
 you outline could be implemented. Which one is more general?
 
 3) As a piggyback on #1, I am successful with the following
 process: -- create reports.tji with my report definitions --
 org-export-taskjuggler-default-reports set to nothing -- export
 from orgmode -- edit exported-file.tjp and add: include
 reports.tji to the end -- run =tj3 filename.tjp=
 
 Could you not set org-export-taskjuggler-default-reports to
 include \reports.tji\? Otherwise you can use file variables as
 I outlined above.
 
 Simply allowing the addition of =include reports.tji= or even 
 mandating that it exists would allow the use of tj3 with the
 current exporter.
 
 I don't know lisp and feel a bit guilty making potentially
 code-heavy suggestions about this... That said, I'm happy to
 pitch in with the manual/worg since they're a but outdated
 anyway.
 
 I'm happy to take you up on this offer. The worg page is a lot of
 work, as it has all these screen shots. I'd be happy if you could
 update it once you get all of this working.
 
 I don't see an obvious place where one can even download tj
 2.x.x anymore.
 
 I have it installed on an old machine.
 
 The tj team seems to have left that version behind; perhaps the
 org exporter should to?
 
 I still prefer the old reports. But I guess yes, the exporter
 should move on and support tj3 out of the box. The two main
 problems are
 
 1. default reports with 

Re: [O] Org without X on Debian

2012-02-01 Thread Jason F. McBrayer

On Tue, 31 Jan 2012 13:42:27 + (UTC), Karl wrote:


Does anybody use Org in a non-graphical environment?
Is it possible to make the (all) keys work?


Look at section 15.9 in the Org manual, Using Org on a tty. There
are alternative keys for all the keys that don't work on a terminal
(on GNU/Linux, there is effectively no difference between a virtual
console and a terminal).

One other thing you might consider would be to run a minimalistic
graphical environment. Instead of using a desktop environment like
Gnome or KDE, use a simple window manager like openbox, or a tiling
window manager like dwm, awesome, or stumpwm (my favorite). If the
only application you're going to be running under X will be emacs,
there's no reason not to use dwm for your window manager, actually.

--
+---+
| Jason F. McBrayer jmcb...@carcosa.net |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |




Re: [O] taskjuggler (tj3) export issues and proposals

2012-02-01 Thread John Hendy
On Wed, Feb 1, 2012 at 8:09 AM, Christian Egli christian.e...@sbs.ch wrote:
 Hi John

 John Hendy jw.he...@gmail.com writes:

 Leading my first project and decided to dig into taskjuggler again. It
 just seems so natural to have everything in org if possible, so I took
 another look at the exporter, manual, and worg tutorial. [1][2]

 Cool.


First off, thanks for the input!

 As is, as far as I can tell, the exporter does not work out of the box
 with tj3. I /think/ I could get it to work if I added in a massive
 report definition (which now seems mandatory for tj3) under
 =org-export-taskjuggler-default-reports=, but that just feels clumsy.

 First off let me say that I'm using the taskjuggler exporter with tj3,
 so it should work.


This statement seems to indicate that org may work out of the box with tj3.

 As far as I know setting the org-export-taskjuggler-default-reports
 should work. As I agree that this is a bit clumsy and sets the reports
 for all projects. I'm setting the variable in a file variable like so
 (the compile-command is optional but you need to adapt it to match the
 location of your tj3 binary and your file name):

 # Local Variables:
 # org-export-taskjuggler-target-version: 3.0
 # org-export-taskjuggler-default-reports: (include \reports.tji\)
 # compile-command: ~/.gem/ruby/1.9.1/bin/tj3 yourfilename.tjp
 # End:


This seems to indicate that org does *not* work out of the box with
tj3, but only if you use this tweak for the reports definitions.
That's fine, I just want to be clear with whether org does or not work
out of the box by just setting =org-export-taskjuggler-target-version:
3.x= I'm thinking it does not and you'll get a failed build with no
output.

And... sigh. I had never thought to define reports /as/ =include
reports.tji=. How simple.

 Then I define the reports in a separate file which is included similar
 to the solution you outline below.

 I guess I should have some default report definitions for tj3 in the
 exporter itself. The tj3 reports are quite massive and it is hard to
 come by some which could be included in the Emacs source (you need
 copyright assignments). Maybe the ones I have in my reports.tji could
 qualify.

Since these can vary, I actually think it would be fine to specify in
the manual that you need a separate definition. But maybe a brand new
tj user wouldn't like that?


 For one, not every project will have the same report. Secondly, it
 seems odd to tweak report definitions through my .emacs file?

 Yes I agree, see above.

 Based on my fiddling tonight, here are some suggestions/inquiries:

 1) Could there be something equivalent to #+latex/#+begin_latex that
 would let me export some literal taskjuggler syntax into a file?
 Perhaps throw everything between a #+begin/end_taskjuggler just before
 the closing } for the task?

 I can see a use case for this with regards to reports. But what is the
 use case if you'd place this inside tasks? The problem with literal
 sections of taskjuggler is where to place them. Something might me
 related to the project header, other stuff to the reports, etc.


Maybe that wasn't well thought out. I was thinking it could be useful,
but I guess the primary use was for include reports.tji.

 2) Could a different naming convention be used? It seems the currently
 it's either what is defined by the property :task_id: or defaults to
 the first word of the headline. If the default were more likely to be
 unique, it would spare having to define a ton of =task_id= properties;
 instead one could define dependencies based on headline names because
 the syntax for naming was known and not likely to clash with another
 headline's ID.
 --- First word of the parent headline + _ + first word of actual headline?
 --- Bump it to the first two words of each headline?

 The exporter just makes the task_id locally unique. That's what tj
 expects. From your usage I guess that you have a lot of tasks with the
 same name (probably within different hierarchies). Both methods you
 outline could be implemented. Which one is more general?


Maybe parent_headline_task_headline? But that gets tricking for:

* Task Container
** Send product samples to X
** Send product samples to Y
** Send product samples to Z

Append a number? My files are not [too] complex; perhaps the exporter
should be done while thinking of how org might have worked for the
Fedora tj example
(http://www.taskjuggler.org/tj3/examples/Fedora-20/f-20.tjp).

 3) As a piggyback on #1, I am successful with the following process:
 -- create reports.tji with my report definitions
 -- org-export-taskjuggler-default-reports set to nothing
 -- export from orgmode
 -- edit exported-file.tjp and add: include reports.tji to the end
 -- run =tj3 filename.tjp=

 Could you not set org-export-taskjuggler-default-reports to include
 \reports.tji\? Otherwise you can use file variables as I outlined
 above.

Again. Yes. So simple. So overlooked by me...


 Simply allowing the addition 

Re: [O] [PATCH] narrowing in agenda file

2012-02-01 Thread Litvinov Sergey
Bernt Hansen be...@norang.ca writes:
   - org agenda clock reports are correct
   - You don't have the LOGBOOK drawer aligned with tags when clocking in
 from the agenda (this was with emacs -q (no org-indent-mode)
   - Column view in the agenda shows correct clocking amounts for each
 task
   - Visiting a task with RET or SPC goes to the task when outside the
 narrowed region
   - Remote editing of a task outside the narrowed region changes the
 target task and not something in your narrowed region instead

 I tried this patch today and clock reports in the agenda no longer
 display for me.  Could you take a look at it please?

Hi Bernt, 

thank you for the recommendations and for testing the patch. I am working
on ERT tests for the items you listed above. Also I found that
=org-agenda-add-note= does not work with narrowed agenda file.

Meanwhile I can share another patch to fix the problem with clock
reports (please see the second code block in
testing/examples/org-agenda-test.org )

From 8824692191990c7ec4294b20c0c966bfc3e89de6 Mon Sep 17 00:00:00 2001
From: Litvinov Sergey slitvi...@gmail.com
Date: Wed, 1 Feb 2012 16:04:12 +0100
Subject: [PATCH 3/3] Fix clock reports in the agenda, add a test example for agenda

---
 lisp/org.el  |4 +++-
 testing/examples/org-agenda-test.org |   19 +++
 2 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 9e23c18..e1abbda 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16498,6 +16498,8 @@ When a buffer is unmodified, it is just killed.  When modified, it is saved
 	(inhibit-read-only t)
 	(rea (concat : org-archive-tag :))
 	 bmp file re)
+(save-excursion
+  (save-restriction
 	(while (setq file (pop files))
 	  (catch 'nextfile
 	(if (bufferp file)
@@ -16532,7 +16534,7 @@ When a buffer is unmodified, it is just killed.  When modified, it is saved
 		  (while (re-search-forward re nil t)
 		(add-text-properties
 		 (match-beginning 0) (org-end-of-subtree t) pc)))
-		(set-buffer-modified-p bmp)
+		(set-buffer-modified-p bmp)))
 	(setq org-todo-keywords-for-agenda
 	  (org-uniquify org-todo-keywords-for-agenda))
 	(setq org-todo-keyword-alist-for-agenda
diff --git a/testing/examples/org-agenda-test.org b/testing/examples/org-agenda-test.org
index ecd00e5..b16badb 100644
--- a/testing/examples/org-agenda-test.org
+++ b/testing/examples/org-agenda-test.org
@@ -1,10 +1,21 @@
 #+Title: a collection of examples for org-agenda tests
 * TODO should be visible
+  CLOCK: [2010-01-01 Fri 10:00]--[2010-01-01 Fri 10:05] =  0:05
 ob-agenda-test.org buffer should be narrowed after execution of this block
 #+BEGIN_SRC elisp :results silent
-  (let ((org-agenda-files (list buffer-file-name)))
-(narrow-to-region 1 (- (buffer-size) 23))
-(org-agenda nil t)
-(org-agenda-redo))
+(let ((org-agenda-files (list buffer-file-name)))
+  (org-narrow-to-subtree)
+  (org-agenda nil t)
+  (org-agenda-redo))
+#+END_SRC
+
+#+BEGIN_SRC elisp :results silent
+(let ((org-agenda-files (list buffer-file-name)))
+  (org-agenda nil a)
+  (org-agenda-clockreport-mode 1)
+  (org-agenda-change-time-span 'year 2010)
+  (org-agenda-day-view 1)
+)
 #+END_SRC
 * TODO should be hidden
+  CLOCK: [2010-02-01 Mon 10:00]--[2010-02-01 Mon 10:05] =  0:05
-- 
1.7.3.4



Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread Christian Egli
Hi Rainer

Rainer M Krug r.m.k...@gmail.com writes:

 I would like to use the export to taskjuggler, but somehow I don't get
 it working - might be me or the fact that I have taskjuggler 3.1.0.

 I am trying the example on

 http://orgmode.org/worg/org-tutorials/org-taskjuggler.html

 but I somehow don't get it to work.

Export to a file which can be consumed by tj3 should work. Opening the
exported file with tj2 silently fails if you do not have tj2 installed.
What exactly isn't working?

 My questions are:

 1) does the taskjuggler export work with tj3 (version 3.1.0) (John
 Hendy says it doesn't (taskjuggler (tj3) export issues and
 proposals), but there are patches which should have made it work
 (e.g. Christian Egli, small edits to org-taskjuggler.el for tj3).
 So: what is the actual status?

As I said, export to tj3 should work. See also my resonse to John Hendy.

 2) does the example (url above) work for tj3?

The example file should work. Set org-export-taskjuggler-target-version
to 3 and set the org-export-taskjuggler-default-reports to something
that tj3 understands. Export to tj3 should be done using C-c C-e j 
(org-export-taskjuggler), as C-c C-e J silently fails if you don't have
TaskJugglerUI (aka tj2.4) installed. On the resulting tjp file run tj3
and open the result in a browser.

 3) if no, could somebody provide a simple example org file which works
 with tj3?

The example file works if I follow the steps above. Let me know if you
have any problems. 

Thanks
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




Re: [O] Feature request for noweb mode that strips references on export

2012-02-01 Thread Eric Schulte
Avdi Grimm gro...@inbox.avdi.org writes:

 P.S. It's been a while since I've been on this ML, so if there's a
 right way to do a feature request please let me know and I'll do it
 :-)


You initial post in this thread was perfect, succinct and complete.

Cheers,


 On Tue, Jan 31, 2012 at 12:38 PM, Avdi Grimm gro...@inbox.avdi.org wrote:
 On Tue, Jan 31, 2012 at 2:56 AM, Sebastien Vauban
 wxhgmqzgw...@spammotel.com wrote:
 Just for the sake of completeness, there is already a fourth option:

 Ah! Looks like I had an older version. Thanks for prompting me to update!

 I guess what I'm looking for would be called :noweb export-strip or
 something like that.

 --
 Avdi Grimm
 http://avdi.org

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



Re: [O] Feature request for noweb mode that strips references on export

2012-02-01 Thread Eric Schulte
Avdi Grimm gro...@inbox.avdi.org writes:

 Presently there are three noweb modes: yes, no, and tangle. I would
 like a fourth, which would behave as follows:

 On tangle: normal noweb expansion is performed.
 On evaluation: normal noweb expansion is performed.
 On export: noweb references are STRIPPED. Not just ignored, but the
 lines containing the references are removed before export.

 The use case is this: I find myself writing articles where I have a
 series of code examples like this:

 #+begin_src ruby
   boilerplate
   2 + 2 # =
 #+end_src

 The boilerplate is required to make the sample work, but I don't want
 to have the boilerplate code show up in the finished article, because
 it would be repeated for every example. I also don't want the noweb
 reference to show up in the finished article, because it will confuse
 readers and syntax highlighters.

 Is this possible now, and/or a feature that could be easily added?


I've just added tested and documented such a strip-export argument to
:noweb.  Please let me know if it doesn't work as you expected.

Best,


 Thanks,

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



Re: [O] refile and link

2012-02-01 Thread John Hendy
On Tue, Jan 31, 2012 at 12:49 PM, Skip Collins skip.coll...@gmail.com wrote:
 I would like to have a quick way to refile subtrees in another file
 while creating a link to the new location. In my use case, I keep a
 comprehensive list of projects in Projects.org. Each top level
 headline is the title of a project. Some projects details (TODOs,
 notes, etc.) may be included under the headline. A project may grow to
 the point that I want to manage it within a separate org file. In this
 case it would be fantastic to have a quick refile command that leaves
 behind the original headline and a link to the new location. Does this
 make sense? Maybe I should be using agendas to accomplish what I want.
 But keeping a canonical list of projects in a single file seems like
 the right thing to do.


Makes sense and seems really neat. This could even be used to fulfill
a suggested organization structure from the orgmode FAQ:

,- 
(http://orgmode.org/worg/org-faq.html#how-to-organize-org-mode-files):-
| Should I use one big org file or multiple files?
| [...]
| Here are a few ideas for organizing org-mode files:
| [...]
| - A wiki of hyperlinked files that grows and adapts to meet your needs.
`-

I hope you get a solution!


John


 --
 skip collins




Re: [O] noweb-ref: Limiting scope of definitions?

2012-02-01 Thread Eric Schulte
Yu yu_...@gmx.at writes:

 Hello!

 Scenario
 -

   * Maintain a potentially long org file as an appendix.
   * In this appendix, many independent scripting tasks will be documented.
   * Each such scripting task has similiar partial tasks, e.g. imports,
 settings, ...

 In such a case, many independent scripts may contain a block
 imports or something or something to the same effect, i.e. an
 overlap of definitions could be avoided only by some sort of scoping:
   (a) manually, e.g. by prefixing the names with a script-specific
 string (e.g. task1-imports. While this is flexible (i.e.
 allows reuse of code from other script), it also reduces the
 readability of the NOWEB code).
   (b) providing some sort of scoping, e.g. declaring definitions 
 section-local.


 Implementation Idea
 --

 A simple implementation, maintaining the flexibility of the manual
 solution, would be to create a header argument like :noweb-prefix,
 that effectively just adds a prefix to the noweb reference names (both
 in declaring the block (#+name, :noweb-ref) and in using it
 (name)), unless such a prefix is explicitly specified. This could
 then be set as needed, for specific blocks or subtrees (as property)
 or any mixture of such.

 A prefix would then be recognized by a delimiter string to be specified.

 This solution would also be downward compatible with existing files,
 as the syntax for recognizing a prefix would be relevant only when
 deciding whether to apply an explicitly introduced :noweb-prefix.


This does seem like a good idea and a header argument such as
:noweb-prefix is certainly the way to implement such functionality.

I'll add this to my long term stack.

Best,

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



Re: [O] Org without X on Debian

2012-02-01 Thread Greg Troxel

I often use org in emacs inside an xterm (because the emacs is running
on a machine far away and remote x emacs is piggy about bandwidth).

Several observations:

  keys like shift-up sometimes work I think local xterm is somehow
  making a keycode and sending it over ssh.  So it seems like in
  environments where there's a notion of 7-bit ASCII character sets and
  the 8th bit being available for meta, emacs tries to cope with that.

  I use no locale settings.  But on machines with LC_ALL=en_US.utf-8 or
  some such, I find that the meta key doesn't work in emacs any more (at
  least on remote logins)

  You can avoid all those keys and do things in org other ways.  I tend
  to c-c c-s and type a new date, rather than use arrows anyway.

  There is (setq org-use-speed-commands t) and then 'l' and 'r' on
  headings will demote/promote.  I like this because I don't have to
  remember if I'm in an environment where shift-arrow works.


(IMHO it's a bug in org that anything mainstream uses keystrokes that
are not available in a regular terminal.  Back when I was young, we
didn't have X, and had to carry our own VT52s to school. :-)


pgp9WvPitVkFF.pgp
Description: PGP signature


Re: [O] tags in clock table

2012-02-01 Thread Bernt Hansen


Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 Bernt Hansen wrote:
 is there possibility to see tags in the clock table?

 The agenda clock report used to limit to the filtered tags with C-u R
 but that no longer seems to work either :/  I haven't looked into which
 commit broke that functionality yet.

 As Bernt tells, you must ask for the clock report thru C-u R (and
 not just R) if you want the table to be filtered accordingly.

 Bernt, this still works for me. Used it yesterday for my January
 sheet...

Yes this works for me too - must have been pilot error on my windows
system at work.

Thanks,
Bernt




Re: [O] refile and link

2012-02-01 Thread Skip Collins
On Wed, Feb 1, 2012 at 10:25 AM, John Hendy jw.he...@gmail.com wrote:
 | - A wiki of hyperlinked files that grows and adapts to meet your needs.

After I sent my request, it occurred to me that the envisioned refile
command could create two links, one in the original file pointing to
the destination, the other in the destination file pointing to the
original.



Re: [O] taskjuggler (tj3) export issues and proposals

2012-02-01 Thread Christian Egli
Rainer M Krug r.m.k...@gmail.com writes:

 But I am not clear about

 1) how your .org file looks
 2) your reports.tji looks
 3) what I have to set in emacs / org variables to use tj3.

 Would it be possible to post a small basic example so that one has
 something to start working with? I still feel lost.

I attached a sample org file (basically the one from the worg page) that
also sets (as file variables) the two variables that you need to set.
Also I attached the reports.tji that I'm using. This should answer your
question 1 and 2. As for question 3: If you take the attached org files
all the relevant variables are set for you. If you do it manually you'll
have to set org-export-taskjuggler-target-version and
org-export-taskjuggler-default-reports.

Let me know if the attached files work for you out of the box. I have
some small local changes to the taskjuggler exporter but AFAIK they
should not influence this.

Thanks
Christian

#+PROPERTY: Effort_ALL 2d 5d 10d 20d 30d 35d 50d 
#+PROPERTY: allocate_ALL dev doc test
#+COLUMNS: %30ITEM(Task) %Effort %allocate %BLOCKER %ORDERED

* Accounting Software
:taskjuggler_project:

** Specification
   :PROPERTIES:
   :Effort:   20d
   :BLOCKER:  start
   :allocate: dev
   :END:

** Software Development
   :PROPERTIES:
   :ORDERED:  t
   :BLOCKER:  previous-sibling
   :priority: 1000
   :allocate: dev
   :END:

*** Database coupling
:PROPERTIES:
:Effort:   20d
:END:

*** Back-End Functions
:PROPERTIES:
:Effort:   30d
:task_id:  back_end
:END:

*** Graphical User Interface
:PROPERTIES:
:Effort:   35d
:allocate: paul, seb
:END:

** Software testing
   :PROPERTIES:
   :ORDERED:  t
   :BLOCKER:  previous-sibling
   :allocate: test
   :END:
*** Alpha Test
:PROPERTIES:
:Effort:   5d
:task_id:  alpha
:END:

*** Beta Test
:PROPERTIES:
:Effort:   20d
:task_id:  beta
:allocate: test, paul
:END:

** Manual
   :PROPERTIES:
   :Effort:   50d
   :task_id:  manual
   :BLOCKER:  start
   :allocate: doc
   :END:

** Milestones
*** Project start
:PROPERTIES:
:task_id:  start
:END:

*** Technology Preview
:PROPERTIES:
:BLOCKER:  back_end
:END:

*** Beta version
:PROPERTIES:
:BLOCKER:  alpha
:END:

*** Ship Product to Customer
:PROPERTIES:
:BLOCKER:  beta manual
:END:


* Resources :taskjuggler_resource:
** Developers
   :PROPERTIES:
   :resource_id: dev
   :END:
*** Paul Smith
:PROPERTIES:
:resource_id: paul
:END:
*** Sébastien Bono
:PROPERTIES:
:resource_id: seb
:END:
*** Klaus Müller

** Others
*** Peter Murphy
:PROPERTIES:
:resource_id: doc
:limits:   { dailymax 6.4h }
:END:
*** Dim Sung
:PROPERTIES:
:resource_id: test
:END:


* File Variables

# Local Variables:
# org-export-taskjuggler-target-version: 3.0
# org-export-taskjuggler-default-reports: (include \reports.tji\)
# compile-command: ~/.gem/ruby/1.9.1/bin/tj3 foo.tjp
# End:
textreport report Plan {
  formats html
  header '== -query attribute=name- =='

  center -8-
[#Plan Plan] | [#Status Status] | [#Resource_Allocation Resource Allocation]

=== Plan ===
[report id=plan]

=== Status ===
[report id=status.completed]

[report id=status.ongoing]

[report id=status.future]

=== Resource Allocation ===
[report id=resourceGraph]
  -8-
}

# A traditional Gantt chart with a project overview.
taskreport plan  {
  headline Project Plan
  columns bsi, name, start, end, effort, chart
  loadunit shortauto
  hideresource 1
}

taskreport status  {
  columns bsi, name { width 150 }, start { width 100 }, end { width 100 },
  effort { width 75 }, status { width 75 }, gauge {width 150 }
  loadunit shortauto

  taskreport completed  {
headline Completed tasks
hidetask plan.complete  100.0
sorttasks plan.start.up
  }
  taskreport ongoing  {
headline Ongoing tasks
hidetask ~(isleaf()  (plan.start = ${now})  (plan.complete  100.0))
  }
  taskreport future  {
headline Future tasks
hidetask ~(plan.start  ${now}  (plan.complete  100.0))
  }
}

# A graph showing resource allocation. It identifies whether each
# resource is under- or over-allocated for.
resourcereport resourceGraph  {
  headline Resource Allocation Graph
  columns no, name, effort, weekly 
  loadunit shortauto
  hidetask ~(isleaf()  isleaf_())
  sorttasks plan.start.up
}

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland


-
Neu bei der SBS: 9000 Buecher kaufen oder schenken. Mehr dazu finden Sie unter 
http://www.sbs.ch/verkauf


Re: [O] How do teachers use org-mode

2012-02-01 Thread BernardH
Venkatesh Choppella venkatesh.choppella at iiit.ac.in writes:

 
 Dear Org-mode users:
 
 I am using  org-mode this semester  to host my course notes.   For me
 org-mode was a god-send, since I had been struggling to organize
 course notes in plain html  before that.
…
 
 I am interested to  hear from others who have used org-mode as part of
 their teaching activities.
 
 Sincerely,

Thanks for sharing your experience.
I recently discovered orgmode, and I'm currently using it :
 - for presentations with export-as-s5 from https://github.com/eschulte/org-S5
 - to check various points for students works (cloning trees of checkboxes)

I put some files on github:
 https://github.com/scientific-coder/Teaching-Materials

I'd like to use it for project planning with taskjuggler, but I'm currently
unable to do it (with taskjuggler v 3.1.0) (tried
https://github.com/alander/org-taskjuggler3.git to no avail,
http://orgmode.org/tmp/worg/org-issues.html has DONE for TaskJuggler 3,
revisited but I could not figure why).

Best Regards,

Bernard




Re: [O] New tutorial on using Emacs lisp for Org spreadsheet formulas

2012-02-01 Thread Achim Gratz
Bastien b...@altern.org writes:
 #+begin_tblfm
 ...
 ...
 #+end_tblfm

That has other problems I think.  The idea is that the formulas are out
of sight until you need them and so that block would need to be special
w.r.t. visibility.  Although if the #+TBLFM: content can be hidden by
default, as Carsten hinted at, then everything else could easily stay as
it is.  Maybe even jump directly to the formula edit buffer with TAB if
the user wants this to happen.


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] How do teachers use org-mode

2012-02-01 Thread John Hendy
On Wed, Feb 1, 2012 at 4:35 AM, BernardH uncompte.pour.tes...@gmail.com wrote:
 Venkatesh Choppella venkatesh.choppella at iiit.ac.in writes:


 Dear Org-mode users:

[...]


 I'd like to use it for project planning with taskjuggler, but I'm currently
 unable to do it (with taskjuggler v 3.1.0) (tried
 https://github.com/alander/org-taskjuggler3.git to no avail,
 http://orgmode.org/tmp/worg/org-issues.html has DONE for TaskJuggler 3,
 revisited but I could not figure why).


See the recent threads on this:
---http://www.mail-archive.com/emacs-orgmode@gnu.org/msg51502.html
--- http://www.mail-archive.com/emacs-orgmode@gnu.org/msg51522.html

 It does work with a change to the variable
=org-export-taskjuggler-target-version= and
=org-export-taskjuggler-default-reports= set to =include
\reports.tji\= along with a report definition in that file (and in
the same directory). Then just export, run tj3 file.tjp from the
terminal and open in a browser.

John


 Best Regards,

 Bernard





Re: [O] Variable settings in .emacs VS cross device portability.

2012-02-01 Thread Sebastien Vauban
Hi Eric,

Eric S Fraga wrote:
 herewith is a minimal example that illustrates the problem I have with
 exporting and file local variables.  The attached file re-defines
 org-export-latex-tag-markup to use a box instead of bold for tags.  When
 I visit the file, Emacs does indeed set the variable to what I
 want. However, this setting is ignored on export.

 Actually, in this case, the BIND is also ignored on export even though
 the variable does change to the specified value after export!

 I am very confused, to say the least.  *How* can I get file local
 behaviour when exporting with org?  Am I doing something silly
 somewhere?  (highly likely given my past track record ;-)  Do others see
 different behaviour?

 I'm up to date (as of this morning) with org and latest emacs as of last
 week.

 Thanks,
 eric


 # -*- org-export-latex-tag-markup: locally set: \\fbox{%s}; -*-
 #+TITLE: examplebug.org
 #+AUTHOR:Eric S Fraga
 #+EMAIL: e.fr...@ucl.ac.uk
 #+DATE:  2012-01-09 Mon

 #+bind: org-export-latex-tag-markup  bound: \\fbox{%s}

 * Formatting tags   :example:
   When exporting, the default is to put tags in bold.  I want a box around 
 them.

I almost never play(ed) with local variables and bind variables, but I wanted
to confirm what you see:

the local variable is the one set by your bind; but it has no impact on the
exported LaTeX file...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] taskjuggler (tj3) export issues and proposals

2012-02-01 Thread John Hendy
2012/2/1 Christian Egli christian.e...@sbs.ch:
 Rainer M Krug r.m.k...@gmail.com writes:

 But I am not clear about

 1) how your .org file looks
 2) your reports.tji looks
 3) what I have to set in emacs / org variables to use tj3.

 Would it be possible to post a small basic example so that one has
 something to start working with? I still feel lost.

 I attached a sample org file (basically the one from the worg page) that
 also sets (as file variables) the two variables that you need to set.
 Also I attached the reports.tji that I'm using. This should answer your
 question 1 and 2. As for question 3: If you take the attached org files
 all the relevant variables are set for you. If you do it manually you'll
 have to set org-export-taskjuggler-target-version and
 org-export-taskjuggler-default-reports.

Exports fine, but I get this error:
--
$ tj3 foo.tjp
TaskJuggler III v3.0.0 - A Project Management Software

Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011
  by Chris Schlaeger ch...@linux.com

This program is free software; you can redistribute it and/or modify it under
the terms of version 2 of the GNU General Public License as published by the
Free Software Foundation.

./reports.tji:33: Error: Unexpected token 'gauge' found. Expecting one
of 'alert', 'alertmessages', 'alertsummaries', 'alerttrend', 'chart',
'complete', 'completed', 'criticalness', 'cost', 'daily',
'directreports', 'duration', 'duties', 'efficiency', 'effort',
'effortdone', 'effortleft', 'email', 'end', 'flags', 'followers',
'freetime', 'freework', 'fte', 'headcount', 'hierarchindex', 'hourly',
'id', 'index', 'inputs', 'journal', 'journal_sub', 'journalmessages',
'journalsummaries', 'line', 'managers', 'maxend', 'maxstart',
'minend', 'minstart', 'monthly', 'no', 'name', 'note',
'pathcriticalness', 'precursors', 'priority', 'quarterly', 'rate',
'reports', 'resources', 'responsible', 'revenue', 'scenario', 'seqno',
'start', 'status', 'targets', 'wbs', 'bsi', 'weekly', 'yearly'
  effort { width 75 }, status { width 75 }, gauge
--

Commenting out your report.tji like so works:
--
taskreport status  {
  columns bsi, name { width 150 }, start { width 100 }, end { width 100 },
  effort { width 75 }, status { width 75 } # commented out ,
gauge {width 150 }
[...]
--


 Let me know if the attached files work for you out of the box. I have
 some small local changes to the taskjuggler exporter but AFAIK they
 should not influence this.

Is gauge in your tweaks or is this a tj 2.x.x specific syntax?

By the way, nice report! I'm still trying to learn the syntax and how
to hide/show different things. Yours is great.


Thanks,
John


 Thanks
 Christian



 --
 Christian Egli
 Swiss Library for the Blind, Visually Impaired and Print Disabled
 Grubenstrasse 12, CH-8045 Zürich, Switzerland


 -
 Neu bei der SBS: 9000 Buecher kaufen oder schenken. Mehr dazu finden Sie 
 unter http://www.sbs.ch/verkauf




Re: [O] [bug] Problem when tangling into LaTeX

2012-02-01 Thread Sebastien Vauban
Hi Eric,

Eric S Fraga wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
 If it does not take you too much time, can you enlighten me on the diffs
 between the chunks?  Why was it well working for the second one?

 I think you'll find that the asymmetry is due to the placement of your
 comment strings which have the  characters, misinterpreted in this
 case to indicate the start of a noweb reference...

That must be it. Due to the correct highlighting as comments, it did not occur
to me that the `%' I inserted looked like noweb refs...

And Eric's fix does solve this.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [bug] Problem when tangling into LaTeX

2012-02-01 Thread Sebastien Vauban
Hi Eric,

Sebastien Vauban wrote:
 Though, there is an annoying diff in the tangled LaTeX: the first block gets
 an extra blank line (I don't understand why it differs from the others) which
 will cause layout problem when compiling the document -- not this one, it's
 just an not-so-valid ECM, but real ones...

 #+begin_src latex
   \documentclass{article}
   \usepackage[utf8x]{inputenc}
   \usepackage[T1]{fontenc}

   \begin{document}

   \begin{textblock}{85}(98,35)
   \titlebox{9.4cm}{Foo}{% HERE  
   ToMe

   }
   \end{textblock}

   \begin{textblock}{110}(25,195)
   Some sentence
   BeforeDate
\hfill{}% HERE  
   Rest
EUR% HERE  
   \end{textblock}

   \end{document}
 #+end_src

This isn't priority anymore: currently, I'm not hit by that bug/feature in the
real file I'm working on.

Thanks for the fix you've readily made available...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] refile and link

2012-02-01 Thread John Hendy
On Wed, Feb 1, 2012 at 9:54 AM, Skip Collins skip.coll...@gmail.com wrote:
 On Wed, Feb 1, 2012 at 10:25 AM, John Hendy jw.he...@gmail.com wrote:
 | - A wiki of hyperlinked files that grows and adapts to meet your needs.

 After I sent my request, it occurred to me that the envisioned refile
 command could create two links, one in the original file pointing to
 the destination, the other in the destination file pointing to the
 original.

Indeed -- that would be slick. I wish my elisp-fu was strong, or even existent.



Re: [O] taskjuggler (tj3) export issues and proposals

2012-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/02/12 16:54, Christian Egli wrote:
 Rainer M Krug r.m.k...@gmail.com writes:
 
 But I am not clear about
 
 1) how your .org file looks 2) your reports.tji looks 3) what I
 have to set in emacs / org variables to use tj3.
 
 Would it be possible to post a small basic example so that one
 has something to start working with? I still feel lost.
 
 I attached a sample org file (basically the one from the worg page)
 that also sets (as file variables) the two variables that you need
 to set. Also I attached the reports.tji that I'm using. This should
 answer your question 1 and 2. As for question 3: If you take the
 attached org files all the relevant variables are set for you. If
 you do it manually you'll have to set
 org-export-taskjuggler-target-version and 
 org-export-taskjuggler-default-reports.
 
 Let me know if the attached files work for you out of the box. I
 have some small local changes to the taskjuggler exporter but AFAIK
 they should not influence this.

Works like a charm. Now I have to figure out why my org file is not
working - but I'll look at that tomorrow.

Thanks a lot,

Rainer

 
 Thanks Christian
 
 
 
 
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8phhYACgkQoYgNqgF2egrA/ACfXvMPY4NQZxN0NTmOn/3r9NZl
udMAn3fiA+FvaIAn0upH1RhEryqD6Leu
=1MMj
-END PGP SIGNATURE-



Re: [O] Frontmatter / Text before first headline

2012-02-01 Thread Achim Gratz
Jambunathan K kjambunat...@gmail.com writes:
 I have trouble understanding what the real purpose of the text before
 the first headline is.

When I use a word, it means just what I choose it to mean -- neither
more nor less.

-- Humpty Dumpty, Through the Looking Glass and what Alice found there

 It looks to me more like a placeholder for
 capturing the Frontmatter [1]. 

 I have also trouble understanding what the rightful position for it is:

 Should it be like:
 (a) Title, Initial Text, TOC, Chapters
   Or like
 (b) Title, TOC, Initial Text, Chapters

 Currently org-latex does a (b). 

 But if I look at an organization of a typical document, I am inclined to
 think that it should be (a). It is also my contention that Table Of
 Contents is relocatable only as a means to achieve (b).

That would depend a lot on the type of document and the publishing
culture it's intended for.  If we're talking books, then things are even
more complicated, as traditionally you'd have a bastard title(*) before
the actual title page.  The back of the actual title page (which would
be page 3 if it were numbered) almost always has some text, most often
the bibliographic entry.

(*) The bastard title is a relict from those times when you bought your
books as folded signatures as they were coming from the printer and you
had to cut and bind the book yourself if you were going to the trouble
and expense.  The title page(s) and front matter would be printed after
the rest of the book had already been off the press on their own
signature (you wouldn't know the page numbers for the TOC otherwise).

 I am wondering if you would be interested in formalizing frontmatter in
 Org documents. Backends will then be obligated to render the front
 matter headings as centered text.

I'm not sure why you'd insist on centered.

 - Title Page
 , Frontmatter
 | - Copyright notice
 | - Abstract
 | - Preface
 | - Acknowledgements
 | - Dedication
 | - Table Of Contents
 | - List of Tables, Figures and Illustrations etc

The title page is considered part of the front matter in traditional
printing as it is printed on the same sheet as the rest of the front
matter.


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

Waldorf MIDI Implementation  additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs




Re: [O] Org without X on Debian

2012-02-01 Thread Memnon Anon
Karl ignora...@gmx.de writes:

 Does anybody use Org in a non-graphical environment? 
 Is it possible to make the (all) keys work?

Mhh, surprised no one mentioned it:

,[ (info (org)TTY keys) ]
| Because Org contains a large number of commands, by default many of
| Org's core commands are bound to keys that are generally not accessible
| on a tty, such as the cursor keys (left, right, up, down),
| TAB and RET, in particular when used together with modifiers like
| Meta and/or Shift.  To access these commands on a tty when special
| keys are unavailable, the following alternative bindings can be used.
`[...]

hth
Memnon




Re: [O] Variable settings in .emacs VS cross device portability.

2012-02-01 Thread Eric S Fraga
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

[...]

 I almost never play(ed) with local variables and bind variables, but I wanted
 to confirm what you see:

 the local variable is the one set by your bind; but it has no impact on the
 exported LaTeX file...

 Best regards,
   Seb

Thanks for the confirmation.  At least I am not going completely crazy
;-)

Does the local variable setting defined in the file take effect before
you export?

Thanks again,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1
: using Org-mode version 7.8.03 (release_7.8.03.288.ga3e5f)




Re: [O] Google Tasks Integration

2012-02-01 Thread Simon Thum

On 01/31/2012 08:10 PM, Eric S Fraga wrote:

Simon Thumsimon.t...@gmx.de  writes:


On 01/31/2012 02:12 PM, Eric S Fraga wrote:

I would be very interested in this.  I have links to and from google
calendar for appointments but could not figure out how to do either
direction for TODO items.

You might want to give my script a try:

https://github.com/simonthum/ical2org

I'm using it against SoGo but I reckon any iCalendar thing would work,
which TTBOMK includes google calendar.

Cheers,

Simon


Thanks.  I already have an equivalent (described here a long time ago
and also on Worg, albeit out of date -- sorry).  The problem is that
Google doesn't export the TODO list when you ask for an ics file for a
particular calendar.  At least, I've not figured out how to get the list
exported.

I see. Is your script published?

I might explore CalDAV a bit more, but from what I saw the spec, which 
limits one collection to one item type, may be the root cause. Although 
an ics can contain multiple collections, I wouldn't wonder seeing one 
file per item type setups.


But that's just a wild guess.

Cheers,

Simon



Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread d . tchin
John Hendy jw.hendy at gmail.com writes:

 
 On Wed, Feb 1, 2012 at 6:25 AM, d.tchin d.tchin at voila.fr wrote:
  Hello,
 
  Rainer M Krug r.m.krug at gmail.com writes:
 
 
 Even so, see my most recent thread
 (http://www.mail-archive.com/emacs-orgmode at gnu.org/msg51502.html).
 Even if that patch works, it's not a viable solution. It sets a
 default value, but this is really *the* value as in there's no way
 to override it from the file. If you want a different export format,
 you have to edit your emacs config. The variable should be called
 'org-taskjuggler-export-report'. I think the ability to include a .tji
 file is the way to go. Write your report definition, add =include
 reports.tji= to the exporter and you're all set.

Thank you for the suggestion and for the link to thread. After several trials 
and make it work. As far I understand the tj2 is not maintained anymore and if 
users want to use the taskjuggler they will obtain tj3 version. Maybe this 
configuration should be described in the info file or perhaps in the tutorial.

 
 John
 
  This change is apparently not implemented in the current org-taskjuggler.el
  file.
 
 
 


Thanks for the help and I would to thank people who invest their time and 
skill to develop orgmode and all these extensions. 

Regards





Re: [O] TaskJuggler 3.1 export (tj3)

2012-02-01 Thread John Hendy
On Wed, Feb 1, 2012 at 1:48 PM, d.tchin d.tc...@voila.fr wrote:
 John Hendy jw.hendy at gmail.com writes:


 On Wed, Feb 1, 2012 at 6:25 AM, d.tchin d.tchin at voila.fr wrote:
  Hello,
 
  Rainer M Krug r.m.krug at gmail.com writes:


 Even so, see my most recent thread
 (http://www.mail-archive.com/emacs-orgmode at gnu.org/msg51502.html).
 Even if that patch works, it's not a viable solution. It sets a
 default value, but this is really *the* value as in there's no way
 to override it from the file. If you want a different export format,
 you have to edit your emacs config. The variable should be called
 'org-taskjuggler-export-report'. I think the ability to include a .tji
 file is the way to go. Write your report definition, add =include
 reports.tji= to the exporter and you're all set.

 Thank you for the suggestion and for the link to thread. After several trials
 and make it work. As far I understand the tj2 is not maintained anymore and if
 users want to use the taskjuggler they will obtain tj3 version. Maybe this
 configuration should be described in the info file or perhaps in the tutorial.


Glad you got it working. I'm planning to look into updating the
manual/worg (hopefully in return for someone with lisp knowledge to
tweak some things just a smidge) :)

John


 John

  This change is apparently not implemented in the current org-taskjuggler.el
  file.
 




 Thanks for the help and I would to thank people who invest their time and
 skill to develop orgmode and all these extensions.

 Regards






Re: [O] Variable settings in .emacs VS cross device portability.

2012-02-01 Thread Sebastien Vauban
Hi Eric,

Eric S Fraga wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 I almost never play(ed) with local variables and bind variables, but I
 wanted to confirm what you see:

 the local variable is the one set by your bind; but it has no impact on the
 exported LaTeX file...

 Thanks for the confirmation.  At least I am not going completely crazy
 ;-)

 Does the local variable setting defined in the file take effect before
 you export?

After saving your file to disk, and opening it:

┏
┃ org-export-latex-tag-markup is a variable defined in `org-latex.el'.
┃ Its value is locally set: \\fbox{%s}
┃ Original value was \\textbf{%s}
┃ Local in buffer examplebug.org; global value is 
┃ what is in my Emacs config file
┃ 
┃   This variable is a file local variable.
┗

After exporting it to LaTeX, answering yes to the question about allowing to
BIND variables:

┏
┃ org-export-latex-tag-markup is a variable defined in `org-latex.el'.
┃ Its value is bound: \\fbox{%s}
┃ Original value was \\textbf{%s}
┃ Local in buffer examplebug.org; global value is 
┃ what is in my Emacs config file
┗

So, yes to your above question...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Variable settings in .emacs VS cross device portability.

2012-02-01 Thread Nick Dokos
Eric S Fraga e.fr...@ucl.ac.uk wrote:

 Hello all,
 
 herewith is a minimal example that illustrates the problem I have with
 exporting and file local variables.  The attached file re-defines
 org-export-latex-tag-markup to use a box instead of bold for tags.  When
 I visit the file, Emacs does indeed set the variable to what I
 want. However, this setting is ignored on export.
 
 Actually, in this case, the BIND is also ignored on export even though
 the variable does change to the specified value after export!
 
 I am very confused, to say the least.  *How* can I get file local
 behaviour when exporting with org?  Am I doing something silly
 somewhere?  (highly likely given my past track record ;-)  Do others see
 different behaviour?
 

Good question (I mean the *How* question): I believe this is a bug and
it has to do with the problem that Dan Davison identified and (as it
turns out) partially fixed a year ago (see
http://thread.gmane.org/gmane.emacs.orgmode/35439/focus=36878 for those
details).

In a nutshell, the problem is that many export operations happen in
temporary buffers.  These buffers do not automatically inherit local
variables, so the global setting is in force. Dan introduced a clone
local variables function and arranged for it to be called in
org-export-preprocess-string. However, the latter function operates on a
temp buffer, so when it returns (it returns the contents of the temp
buffer as as a string), the buffer is gone - and so are the local
variables.

The latex exporter then continues mucking around with the returned
string. The org-export-latex-markup variable is used in the function
org-export-latex-keywords-maybe.  At the relevant moment, the call stack
looks like this:


,
|   org-export-latex-keywords-maybe()
|   org-export-latex-fontify-headline(#( Formatting tags :example: 1 16 ...))
|   org-export-latex-subcontent(...)
|   org-export-latex-sub(...)
|   org-export-latex-global(...)
|   (let* (...) (set-buffer buffer) (erase-buffer) (org-install-letbind) ... 
(org-export-latex-global (with-temp-buffer (insert string-for-export)) ...) ...)
|   org-export-as-latex(nil nil nil *Org LaTeX Export*)
|   org-export-as-latex-to-buffer(nil)
|   call-interactively(org-export-as-latex-to-buffer)
`

Note that org-export-latex-global is called with a temp buffer and
neither it nor any of its successors clones local variables. So you end
up in org-export-latex-keywords-maybe with the global settings in force.

The quick-and-dirty hack would be to call Dan's cloning function in the
call to with-temp-buffer, but that's not enough:
org-export-latex-fontify-headline does the temp-buffer thingie as well
and needs the same treatment. That seems to make *this* case work but I'm
almost 100% sure that that won't be enough in the general case either:
there are probably other places where temp buffers are created to do
some processing like this. They will also be subject to this problem.

Nick

 I'm up to date (as of this morning) with org and latest emacs as of last
 week.
 
 Thanks,
 eric
 
 
 
 -- 
 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1
 : using Org-mode version 7.8.03 (release_7.8.03.285.g646b3)



Re: [O] How do teachers use org-mode

2012-02-01 Thread Alan E. Davis
I recently retired from teaching (perhaps temporarily).  I was a high
school science teacher, for the most part.   I was the odd man out in my
school district, perhaps the only one who used GNU/Linux, and on the island
where I was working/living the only computer course in the public schools
was comptuer literacy---a term which meant able to use M$ Office.   [I
did present an install fest workshop, where about 15 teachers were able to
install Ubuntu GNU/Linux on their laptops, and a few may still use it, four
years or so later, for personal issues.

Given this environment, I used Free Software tools to do everything,
bucking the trend, and eventually org mode became a central tool, though
mainly in the support of teaching.   Here are a few things I have done:

  - used org-mode to collect notes and readings to output using latex
export, for handouts.
  - kept daily notes as the days went on, on student progress or issues.  I
had developed capture templates to enable the rapid capture of notes on the
fly.  Tagging made it possible for those notes to be recovered by period or
subject.   I could print a report for a meeting with a parent in about two
minutes.
  -  to capture outlines of the day to day work.   This function could have
benefited by better organization.  I could clone a date tree to write
lesson plans or outlines.
  - twice I used org-mode spread sheets to keep grade records and calculate
grades.  It worked fine.   Graphs could be generated.
  - Carsten's relative timer has been useful in developing notes about
videos to facilitate instruction / discussion.  It was possible to sit in
class as the videos were playing, and make notes indexed to the elapsed
time of the video.   Then, since I had often had copies of DVDs on my
computer, or showed them using a computer, I could rapidly / randomly
access any sequence by referring to my outline and time marks.  I also used
these to edit chopped up versions of a video for class review at a later
time, for which I found the tool avidemux2 a perfect one.   (I took a
course in Fellini many years ago.   The professor had a whole print, and a
chopped up one.  This is an extremely useful tool, and one for which the
relative timer is uniquely helpful.)
   - Write tests and output using latex export.  This wasn't as useful to
me as examdesign.sty formated tests in straight LaTeX.  I was not able to
put together a work flow for doing this using org-mode latex export, though
I imagine it is possible.   I could, however, make up short quizzes,
sometimes projected as beamer presentation, and the various org-mode tools
allow one to keep notes on student progress.  Again, capture templates are
the key, and tags help to search and find.  Probably the most useful here
was the ability to write questions (capture again), but I had to tweak them
by hand during export.
  - use latex export to make up rapid handouts with illustrations.
Org-mode makes this extremely easy and fast.   Too bad others in the school
district didn't seem to have time for the learning curve.
  - Rapidly prepare decently presented readings from Project Gutenberg text
of chapters of books for student reading, and, when desireable, make them
available for students as a PDF.
   - In fact, rapidly format anything textual for LaTeX output, including
outline notes for lecture.
- Rapidly produce tables of student generated data for immediate output
and feedback.  For example, we counted as a class the chirp rate of a
cricket that happened to be in the room and correclated the temperatures,
on the board.  In three minutes I could produce output for students on a
laser printer, for further discussion, and for a response assignment.
   - todo lists with capture templates to make notes on student questions
or needs for addressing later.
   - One thing that was not directly related to instruction was the ability
to take notes on student conduct and progress using a capture template.
Although this was not my favorite activity, I was required to do so, and
using org-mode I could print out a report for the school administration in
three minutes.  This was not my favorite activity.
- I developed a template to generate a memo in one minute, or less,
that wrapped selected text in a memo header, and generated a PDF.


  This doesn't seem much related to pedagogy, I'm afraid.   Mostly it
reflects my teaching style, and is pretty much focused on efficiency,  not
including the more sophisticated usages of org-mode that you will want to
incorporate into your IT courses.  I came to org-mode through my need for
an outliner.   This is by far the greatest outliner I have ever seen.


Alan Davis


[O] [Feature Request] Show properties in agenda

2012-02-01 Thread Philipp Haselwarter
Hi Org,

Would it be possible to display entry properties in the agenda? Much
like `org-agenda-entry-text-mode', but with a filter variable.

Then you could for example set `org-agenda-entry-properties' to
LOCATION or \\`\\(?:LOCATION\\|SOURCE\\)\\' and have those
properties displayed in the agenda buffer.

Idk what facilities to extract properties org provides, so maybe
iterating over a list of properties for the currently visible entries
would be easier than regexp-matching, but you get the idea.

I'd love to see this functionality in org-mode!

Regards,

-- 
Philipp Haselwarter




[O] {Feature Request] Have org-capture-refile treat the buffer from which org-capture was called as current buffer

2012-02-01 Thread Brian van den Broek
Hi all,

My org-refile-targets definition includes

((nil :maxlevel . 5)
 (org-agenda-files :maxlevel . 10)
 ;; snip irrelevant details
 )

The list starting with nil works fine to allow me to refile items from
within an org file being visited to that same file irrespective of
whether that file appears elsewhere in the org-refile-targets
definition and that is indeed useful.

However, most of the time I am wanting to refile to an occasional use
(thus, not in org-refile-targets) org file, the desire arises when I
am working in that file and want to use org-capture to get an item
with one of my capture templates' boilerplate materials included. From
within the org-capture buffer, org-capture-refile doesn't offer the
buffer from which org-capture was invoked as a target (unless, of
course, it is visiting a file otherwise specified in
org-refile-targets).

That behaviour is completely in keeping with org-refile-targets'
docstring: Nil means consider headings in the current buffer. After
all, once org-capture has been invoked, the capture-buffer is the
current buffer.

What I would like is for nil in org-refile-targets to mean is
consider headings in the current buffer unless that buffer is a
capture buffer, in which case consider headings in the buffer from
which org-capture was invoked. (Actually, what I would really like is
for someone to point out that this is already possible and to forgive
my failure to find out how on my own ;-)

Thanks and best,

Brian vdB



Re: [O] [Feature Request] Show properties in agenda

2012-02-01 Thread Bernt Hansen
Philipp Haselwarter philipp.haselwar...@gmx.de writes:

 Hi Org,

 Would it be possible to display entry properties in the agenda? Much
 like `org-agenda-entry-text-mode', but with a filter variable.

 Then you could for example set `org-agenda-entry-properties' to
 LOCATION or \\`\\(?:LOCATION\\|SOURCE\\)\\' and have those
 properties displayed in the agenda buffer.

 Idk what facilities to extract properties org provides, so maybe
 iterating over a list of properties for the currently visible entries
 would be easier than regexp-matching, but you get the idea.

 I'd love to see this functionality in org-mode!

 Regards,

Have you looked at column view?  I think it can display properties...

Regards,
Bernt



Re: [O] [PATCH] narrowing in agenda file

2012-02-01 Thread Bernt Hansen
Litvinov Sergey slitvi...@gmail.com writes:

 Bernt Hansen be...@norang.ca writes:
   - org agenda clock reports are correct
   - You don't have the LOGBOOK drawer aligned with tags when clocking in
 from the agenda (this was with emacs -q (no org-indent-mode)
   - Column view in the agenda shows correct clocking amounts for each
 task
   - Visiting a task with RET or SPC goes to the task when outside the
 narrowed region
   - Remote editing of a task outside the narrowed region changes the
 target task and not something in your narrowed region instead

 I tried this patch today and clock reports in the agenda no longer
 display for me.  Could you take a look at it please?

 Hi Bernt, 

 thank you for the recommendations and for testing the patch. I am working
 on ERT tests for the items you listed above. Also I found that
 =org-agenda-add-note= does not work with narrowed agenda file.

 Meanwhile I can share another patch to fix the problem with clock
 reports (please see the second code block in
 testing/examples/org-agenda-test.org )

Hi,

I can't get this patch to apply.  Can you resend something I can apply
to origin/master so I can help with the testing?

Thanks,
Bernt



Re: [O] [Feature Request] Show properties in agenda

2012-02-01 Thread Tomas Grigera
Hi Philipp,

On Wed, Feb 1, 2012 at 21:59, Bernt Hansen be...@norang.ca wrote:
 Philipp Haselwarter philipp.haselwar...@gmx.de writes:

 Hi Org,

 Would it be possible to display entry properties in the agenda? Much
 like `org-agenda-entry-text-mode', but with a filter variable.

 Then you could for example set `org-agenda-entry-properties' to
 LOCATION or \\`\\(?:LOCATION\\|SOURCE\\)\\' and have those
 properties displayed in the agenda buffer.


I wrote a custom agenda command that puts a property of my choice in
place of :CATEGORY:. I'm far from an elisp hacker so I expect it is
rather clumsy, and it would need tweaking to do exactly what you want,
but I can share if you're interested.

Column view, as Bernt suggests, can also display any property you
what, but it does so as an overlay.

Tomas



Re: [O] how do scientists use org mode?

2012-02-01 Thread Christopher W. Ryan
Thanks everyone for the advice and ideas. I see lots of potential, and 
also lots to learn.


I made my first attempt at an R code block in an Org file. I'm running 
Ubuntu 10.04 LTS. Synaptic tells me that I have emacs 23.1+1-4ubuntu7.2, 
and Org 6.34c-1.


I added this to my .emacs:

;; active Babel languages
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   ))

Here is the source block:

#+begin_src R
getwd()
dd - read.csv(cars.csv, sep=,, header=TRUE)
head(dd)
str(dd)
dd$date - as.Date(as.character(dd$Date), format=%d-%b-%y)
names(dd)[4] - city
table(is.na(dd$date))
min(dd$date, na.rm=TRUE); max(dd$date, na.rm=TRUE)
#+end_src

emacs seems to do the syntax highlighting properly, so I guess it is 
recognizing this as a code block.


When I put point inside the block and type C-c C-c, emacs gives me this 
message:


C-c C-c can do nothing useful at this location.

I wonder if I have Babel? Is it built in to the emacs or Org versions 
that I have?


Thanks.

--Chris Ryan

Simon Thum wrote:

Hi Christopher,

to add my 2c: I'm using org-mode to track our participation in a
mid-sized project (9 Partners, ~30 People, 3 Years). I'm not
coordinating, in which case I'd probably look for more project
management centric tools, and thus found org-mode to be very useful.

I use it to track the project state, not hard data (which is typically
massive), our commitments and other's compliance with their commitments,
and all the rest that comes up and needs project context: Ideas, tasks,
deadlines, project reports  what not. The outline of this file reflects
the project structure. I have tags for partners and people in that file,
so e.g. when I speak someone I can easily check for further things to
discuss.

Big projects get their own file, for smaller projects and commitments I
have a few more files. I'm not using the attachments as it's
unfortunately a very microsoft-wordey project where git won't help much,
but plan to use them privately. Ah yes, I use org-mode for private stuff
too. It's the first tool that I use for more than a month.

I use export (tags) to inform my supervisor and other people on the
project about certain aspects, which usually works OK. I also found the
custom links to be helpful, as we have multiple web frontends for
project-specific matters whose contents I can link in easily this way.

The whole thing synced to a server using git, which saved my shiny a few
times. This is something I wouldn't recommend anyone to put off, even if
your backup schedule is in minutes.

HTH,

Simon


On 01/30/2012 06:37 PM, Christopher W. Ryan wrote:

I'm fairly experienced with emacs, ESS, Sweave, and R, but I've only
started to dabble in Org mode in the past couple of weeks. Just as
Christoph is, I'm trying to decide whether/how Org-mode might be useful
in organizing and carrying out research projects, presentations, etc. So
this thread has been very useful and timely.

I'm trying to envision what a small research project, managed via a
single Org file, might look like. There would be notes from meetings,
thoughts from brainstorming sessions, scheduled appointments, data, R
code, R output, and manuscript/presentation prose. Some of this might be
destined for a manuscript, some for a beamer presentation, and some only
for internal consumption. How are all these pieces differentiated in
the Org file, so that Org knows what to put in the
presentation/manuscript, and what not to? Could anyone share or point to
a short, perhaps fictional, example?

Thanks very much.

--Chris
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY 13904
cryanatbinghamtondotedu

Observation is a more powerful force than you could possibly reckon.
The invisible, the overlooked, and the unobserved are the most in danger
of reaching the end of the spectrum. They lose the last of their light.

From there, anything can happen . . . [God, in Joan of Arcadia,

episode entitled, The Uncertainty Principle.]

Tomas Grigera wrote:

Hi Cristoph

On Fri, Jan 27, 2012 at 15:27, John Hendyjw.he...@gmail.com wrote:

On Thu, Jan 26, 2012 at 3:21 PM, GMX Christoph
13christoph...@gmx.net wrote:

Hi
this is my first post here and although I am evaluating org mode
with great interest, I am also asking myself in which way other
scientists are making use of org mode. It will take a while to get
my head around how to accomplish certain things in org mode but for
the moment I am intrigued by *why* one would want to approach the
problem of organizing one's research with org mode and in which way.


[...]


Thomas, Eric and John gave very useful answers, I just want to add my
$0.02 as a physicist who recently (about a year ago) started using Org
mode. I started mainly looking for a workflow organization system,
but slowly discovered it has many other possibilities. For research, I
find org-babel is a great tool. It allows you to have a document
collecting together thoughts and 

Re: [O] how do scientists use org mode?

2012-02-01 Thread Nick Dokos
Christopher W. Ryan cr...@binghamton.edu wrote:

 Thanks everyone for the advice and ideas. I see lots of potential, and 
 also lots to learn.
 
 I made my first attempt at an R code block in an Org file. I'm running 
 Ubuntu 10.04 LTS. Synaptic tells me that I have emacs 23.1+1-4ubuntu7.2, 
 and Org 6.34c-1.
 
 I added this to my .emacs:
 
 ;; active Babel languages
 (org-babel-do-load-languages
   'org-babel-load-languages
   '((R . t)
 ))
 
 Here is the source block:
 
 #+begin_src R
 getwd()
 dd - read.csv(cars.csv, sep=,, header=TRUE)
 head(dd)
 str(dd)
 dd$date - as.Date(as.character(dd$Date), format=%d-%b-%y)
 names(dd)[4] - city
 table(is.na(dd$date))
 min(dd$date, na.rm=TRUE); max(dd$date, na.rm=TRUE)
 #+end_src
 
 emacs seems to do the syntax highlighting properly, so I guess it is 
 recognizing this as a code block.
 
 When I put point inside the block and type C-c C-c, emacs gives me this 
 message:
 
 C-c C-c can do nothing useful at this location.
 
 I wonder if I have Babel? Is it built in to the emacs or Org versions 
 that I have?
 

You probably have babel, but not the ob-R.el module - that came in 6.36+:

,
| $ git blame -L1,1 lisp/ob-R.el
| 07388931 lisp/babel/langs/ob-R.el (Eric Schulte 2010-06-11 16:02:42 -0700 1) 
;;; ob-R.el --- org-babel functions for R code evaluation
| $ git describe 07388931
| release_6.36-324-g0738893
`

You can use some other language (elisp, shell, python probably all
existed in 6.34). But you will be happier I think with a more recent
version of org: visit http://orgmode.org/org-mode-download.html
and choose your poison.

o Many people update to the latest development version fairly frequently,
  using git.

o Many others use the standard distribution (7.8.03 as of this writing):
  download a .zip or .tgz file and install it.  Alternatively, you can
  use the Emacs package manager (ELPA): there are several entries in the
  FAQ


http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development

  that describe these methods in more detail.

o Many others use whatever is bundled with their emacs (invariably an
  ancient org version that causes problems to everybody involved: org-mode
  is moving very fast).

Nick



[O] adding a footnote munches newlines at the end of a section

2012-02-01 Thread Eric Abrahamsen
I use `org-footnote-action' (C-c C-x f) to add a footnote, and don't
have any org-footnote-section set, so it adds them at the end of the
current subtree. This progressively eats up newlines, so that if I add
two footnotes in a row, it intrudes on the headline of the next section:

--8---cut here---start-8---
[fn:31] 字里的飞白

[fn:32] sdfdsfsdf

[fn:33] * Two

  They'd been going somewhere called Hailing[fn:4], a largish town,
  but Qin Shanyuan decided to stop here at the village of Zhaxia.
--8---cut here---end---8---

Obviously * Two is actually meant to be on its own line, forming a new
headline.

This appears to be a problem with
`org-footnote-goto-local-insertion-point', or with whatever function
comes afterwards to add the actual footnote label. I guess not enough
newlines are added. Is this reproducible elsewhere?

Thanks,
Eric

-- 
GNU Emacs 24.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.24.9)
 of 2012-01-26 on pellet
Org-mode version 7.8.03 (release_7.8.03.285.g646b3)




Re: [O] adding a footnote munches newlines at the end of a section

2012-02-01 Thread Achim Gratz
Eric Abrahamsen e...@ericabrahamsen.net writes:
 This appears to be a problem with
 `org-footnote-goto-local-insertion-point', or with whatever function
 comes afterwards to add the actual footnote label. I guess not enough
 newlines are added. Is this reproducible elsewhere?

Your recipe leads to the same symptoms here.


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

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables




Re: [O] taskjuggler (tj3) export issues and proposals

2012-02-01 Thread Christian Egli
John Hendy jw.he...@gmail.com writes:

 Exports fine, but I get this error:

 ./reports.tji:33: Error: Unexpected token 'gauge' found. Expecting one

 Is gauge in your tweaks or is this a tj 2.x.x specific syntax?

Ah, sorry. 'gauge' seems to only work in tj3 3.1.0.
 
 By the way, nice report! 

I was trying to squezze it all into one html file so I can open it
easier from Emacs.

Thanks
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland

-
Neu bei der SBS: 9000 Buecher kaufen oder schenken. Mehr dazu finden Sie unter 
http://www.sbs.ch/verkauf



Re: [O] [PATCH] narrowing in agenda file

2012-02-01 Thread Litvinov Sergey
This must be a cumulative patch against master.
From f95e9e89b47b35d5198ecaff7ee20ffb3e63b066 Mon Sep 17 00:00:00 2001
From: Litvinov Sergey slitvi...@gmail.com
Date: Thu, 2 Feb 2012 08:15:56 +0100
Subject: [PATCH] Make narrowing of the agenda file survive (org-agenda-redo)

* lisp/org.el (org-prepare-agenda-buffers): move '(save-excursion
  (save-restriction' construction
* testing/examples/org-agenda-test.org: add examples
---
 lisp/org.el  |   65 +
 testing/examples/org-agenda-test.org |   21 +++
 2 files changed, 54 insertions(+), 32 deletions(-)
 create mode 100644 testing/examples/org-agenda-test.org

diff --git a/lisp/org.el b/lisp/org.el
index dc9e653..2f08579 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16575,39 +16575,40 @@ When a buffer is unmodified, it is just killed.  When modified, it is saved
 		(set-buffer file)
 	  (org-check-agenda-file file)
 	  (set-buffer (org-get-agenda-file-buffer file)))
-	(widen)
-	(setq bmp (buffer-modified-p))
-	(org-refresh-category-properties)
-	(setq org-todo-keywords-for-agenda
-		  (append org-todo-keywords-for-agenda org-todo-keywords-1))
-	(setq org-done-keywords-for-agenda
-		  (append org-done-keywords-for-agenda org-done-keywords))
-	(setq org-todo-keyword-alist-for-agenda
-		  (append org-todo-keyword-alist-for-agenda org-todo-key-alist))
-	(setq org-drawers-for-agenda
-		  (append org-drawers-for-agenda org-drawers))
-	(setq org-tag-alist-for-agenda
-		  (append org-tag-alist-for-agenda org-tag-alist))
-
 	(save-excursion
-	  (remove-text-properties (point-min) (point-max) pall)
-	  (when org-agenda-skip-archived-trees
-		(goto-char (point-min))
-		(while (re-search-forward rea nil t)
-		  (if (org-at-heading-p t)
-		  (add-text-properties (point-at-bol) (org-end-of-subtree t) pa
-	  (goto-char (point-min))
-	  (setq re (format org-heading-keyword-regexp-format
-			   org-comment-string))
-	  (while (re-search-forward re nil t)
-		(add-text-properties
-		 (match-beginning 0) (org-end-of-subtree t) pc)))
-	(set-buffer-modified-p bmp)
-(setq org-todo-keywords-for-agenda
-  (org-uniquify org-todo-keywords-for-agenda))
-(setq org-todo-keyword-alist-for-agenda
-	  (org-uniquify org-todo-keyword-alist-for-agenda)
-	  org-tag-alist-for-agenda (org-uniquify org-tag-alist-for-agenda
+	  (save-restriction
+		(widen)
+		(setq bmp (buffer-modified-p))
+		(org-refresh-category-properties)
+		(setq org-todo-keywords-for-agenda
+		  (append org-todo-keywords-for-agenda org-todo-keywords-1))
+		(setq org-done-keywords-for-agenda
+		  (append org-done-keywords-for-agenda org-done-keywords))
+		(setq org-todo-keyword-alist-for-agenda
+		  (append org-todo-keyword-alist-for-agenda org-todo-key-alist))
+		(setq org-drawers-for-agenda
+		  (append org-drawers-for-agenda org-drawers))
+		(setq org-tag-alist-for-agenda
+		  (append org-tag-alist-for-agenda org-tag-alist))
+		(save-excursion
+		  (remove-text-properties (point-min) (point-max) pall)
+		  (when org-agenda-skip-archived-trees
+		(goto-char (point-min))
+		(while (re-search-forward rea nil t)
+		  (if (org-at-heading-p t)
+			  (add-text-properties (point-at-bol) (org-end-of-subtree t) pa
+		  (goto-char (point-min))
+		  (setq re (format org-heading-keyword-regexp-format
+   org-comment-string))
+		  (while (re-search-forward re nil t)
+		(add-text-properties
+		 (match-beginning 0) (org-end-of-subtree t) pc)))
+		(set-buffer-modified-p bmp)))
+	(setq org-todo-keywords-for-agenda
+	  (org-uniquify org-todo-keywords-for-agenda))
+	(setq org-todo-keyword-alist-for-agenda
+	  (org-uniquify org-todo-keyword-alist-for-agenda)
+	  org-tag-alist-for-agenda (org-uniquify org-tag-alist-for-agenda
 
  Embedded LaTeX
 
diff --git a/testing/examples/org-agenda-test.org b/testing/examples/org-agenda-test.org
new file mode 100644
index 000..b16badb
--- /dev/null
+++ b/testing/examples/org-agenda-test.org
@@ -0,0 +1,21 @@
+#+Title: a collection of examples for org-agenda tests
+* TODO should be visible
+  CLOCK: [2010-01-01 Fri 10:00]--[2010-01-01 Fri 10:05] =  0:05
+ob-agenda-test.org buffer should be narrowed after execution of this block
+#+BEGIN_SRC elisp :results silent
+(let ((org-agenda-files (list buffer-file-name)))
+  (org-narrow-to-subtree)
+  (org-agenda nil t)
+  (org-agenda-redo))
+#+END_SRC
+
+#+BEGIN_SRC elisp :results silent
+(let ((org-agenda-files (list buffer-file-name)))
+  (org-agenda nil a)
+  (org-agenda-clockreport-mode 1)
+  (org-agenda-change-time-span 'year 2010)
+  (org-agenda-day-view 1)
+)
+#+END_SRC
+* TODO should be hidden
+  CLOCK: [2010-02-01 Mon 10:00]--[2010-02-01 Mon 10:05] =  0:05
-- 
1.7.3.4