Re: [O] Bug: No property change from ‘org-clock-sum’

2011-05-06 Thread Peter Jones
Bernt Hansen be...@norang.ca writes:
 The org-invoice.el contributed file created by Peter Jones uses a
 CLOCKSUM property but I'm not sure if this is intended to be updated
 manually or automatically from the clocking lines in org.  I've CC-ed
 Peter in case he can shed any light on this.

IIRC, when I wrote org-invoice.el the function (org-clock-sum) updated
the CLOCKSUM entry in the property drawer.  I don't remember anything
about text properties being updated, and that doesn't seem very useful
to me.

-- 
Peter Jones - pmade inc.
303-219-0226 http://pmade.com



[O] org-crypt.el security problem (From: Milan Zamazal)

2011-03-04 Thread Peter Jones
Here is an email I received from Milan Zamazal:

,
| I don't know whether you are aware of this, but I consider it a serious
| security problem of org-crypt.el in (at least) Emacs 23.2:
| 
| I've found out that when I edit a (decrypted) crypt entry and the edited
| file is autosaved, the autosaved file contains the given crypt entry in
| plain text.  So unless the user has got a special arrangement of storing
| autosave files to a secure location where they are also deleted
| securely, the secret content may be accessed either in the autosave file
| directly, or it may be later retrieved by an off-line attacker from the
| deleted file content that remained stored somewhere on the disk.
| 
| This should be fixed or at least a big warning should be placed in
| org-crypt.el.
`

I don't have time to look into this.  Would someone please see if there
is a way to prevent it.  Off the top of my head, the only thing I can
think of is disabling autosave for any org buffer that uses org-crypt.

Hopefully there's an autosave hook where you can encrypt the headings
and save to disk using a temporary buffer without having to alter the
current buffer and interrupt the user by encrypting a heading that is
being edited.

-- 
Peter Jones - pmade inc.
303-219-0226 http://pmade.com




[Orgmode] Using C-n/C-n in Column View

2010-11-24 Thread Peter Jones
I've noticed that using C-n or C-p in column view jumps me around
between columns and sometimes outside of any column at all.  When using
the arrow keys point moves up and down rows, staying in the same column
as I'd expect.

I checked my bindings, and C-n is bound to:

,
| C-n runs the command next-line, which is an interactive compiled Lisp
| function in `simple.el'.
`

And the down arrow appears to be bound to some anonymous function:

,
| down runs the command #[nil i^X\302\303!\210\304
| \203...@m\204^v^@\302\303!\210\202...@\305^h!\210 \306=\205\^...@\307
| )\207 [col major-mode beginning-of-line 2 org-invisible-p2
| move-to-column org-agenda-mode org-agenda-do-context-action] 2 nil
| nil], which is an interactive compiled Lisp function.
`

I've grepped the source and I can't seem to find where this binding is
set.  I'd like to set it to C-n so it works as expected since I really
*hate* using the arrow keys.

Thanks.

-- 
Peter Jones - pmade inc.
303-219-0226 http://pmade.com


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


[Orgmode] Re: org-crypt symmetric encryption patch

2010-05-07 Thread Peter Jones
Rick Moynihan rick.moyni...@gmail.com writes:
 I've patched org-crypt to use symmetric encryption.  If org-crypt-key
 is nil a symmetric cipher is used.

That seems like a pretty simple change.  The documentation for
epg-encrypt-string says:

,
| If RECIPIENTS is nil, it performs symmetric encryption.
`

So, I guess this is right.  We should probably update the documentation
for org-crypt to say that if you don't set a crypt key it will default
to symmetric encryption.

-- 
Peter Jones - pmade inc.
303-219-0226 http://pmade.com



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


[Orgmode] Re: bug in org-crypt?

2010-04-15 Thread Peter Jones
Xiao-Yong Jin xj2...@columbia.edu writes:
 On Wed, 14 Apr 2010 09:43:43 +0200, Carsten Dominik wrote:

 Hi Xiao,
 I have just checked in a patch by Peter Jones, which should fix this
 bug.  Please check if this is indeed the case and let me know.

 Tested and it is indeed fixed.  Thanks.

I found another bug.  When encrypting an empty headline, for some reason
the next heading gets encrypted as the body of the current headline.
I'll have to put in a special case to do nothing if the headline is
indeed empty.

-- 
Peter Jones - pmade inc.
303-219-0226 http://pmade.com



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


[Orgmode] Agenda and Reloading Changed Files

2009-10-19 Thread Peter Jones
I have a couple of org files that are generated from cronjobs in the
morning.  Throughout the day, however, reloading the agenda prompts me
with:

library.org changed on disk; really edit the buffer? (y, n, r or C-h)

And it does so every time I reload, even though the file hasn't changed
since this morning.

Anyone know a workaround for this?

-- 
Peter Jones - 303-219-0226
http://contextualdevelopment.com



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


[Orgmode] Re: org-invoice tutorial

2009-09-21 Thread Peter Jones
henry atting nsmp...@online.de writes:
 is there anywhere a tutorial about org-invoice? Or at least a more
 detailed description?

I don't have much time right now to write a tutorial, but I could answer
specific questions.  I'll start with a better description:

org-invoice really does two things:

1. Take a sub-tree of headings with dates and associated work times and
   generate an org table.  Headings will be placed into buckets based on
   their date stamp, and the resulting table will be sorted by date,
   with totals for each day in the range, and a final total.  The
   generated table has a few options to control its look (e.g. what
   columns are in the table).

2. Provide an elisp interface to collect invoice data from a sub-tree.
   This can be useful, for example, in submitting invoice data to an
   invoicing service such as Freshbooks.

I'll try to answer any questions posted to this list about org-invoice.

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] Re: org-invoice question

2009-09-21 Thread Peter Jones
d...@teklibre.org (Dave Täht) writes:
 So I cribbed and modified the org-invoice from the code example and
 tried to make it work.  I guess it needs the CLOCKSUM properties
 generated, which I don't quite know how to do, or something else I am
 missing to generate the summaries.

CLOCKSUM properties are generated on the fly from CLOCK lines by
org-mode.  The alternative, as you have figured out, is to use a
property called WORK.  This is the approach I personally use so that I
can round task times to the nearest 15 minutes.

 Presentation-wise I have other issues with it, but I'll settle for
 making it work first:

 * Client Bar 
 :PROPERTIES: 
 RATE: 95.00
 :END:
 *** DONE [2008-01-01 Tue] Searched for Widgets on Google
 :PROPERTIES:
 RATE: 25.00
 WORK: 20:00
 :END:
 *** [2008-01-02 Wed] Billed You for Taking a Nap

The properties need to begin and end with a colon.  Try changing RATE:
and WORK: to :RATE: and :WORK:.

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] Re: Build issue with latest git version - org-crypt.el

2009-09-16 Thread Peter Jones
Mark Elston m_els...@comcast.net writes:
 However, for those who won't be using org-crypt as a normal
 part of their daily operation it is probably simpler to make
 the build/installation of org-crypt optional.  That way the
 normal maintenance for those who do simple things stays,
 uh, simple.

I also think that org-crypt should be optional, or at least put in the
contrib directory.  I didn't realize it was going to cause build issues.

That said, here is a patch for the Makefile so I could build the latest
org-mode:

diff --git a/Makefile b/Makefile
index f1b541b..085951d 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,7 @@ infodir = $(prefix)/share/info
 
 BATCH=$(EMACS) -batch -q -no-site-file -eval \
   (progn (add-to-list (quote load-path) \$(lispdir)\) \
+  (add-to-list (quote load-path) \$(lispdir)/epg\) \
  (add-to-list (quote load-path) (expand-file-name \./lisp/\)))
 
 # Specify the byte-compiler for compiling org-mode files

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] How Are Others Customizing LaTeX Export?

2009-09-16 Thread Peter Jones
I've written a few LaTeX templates for use with Emacs Muse, and I am
looking at ways to use them with Org.  For example, I have one template
that generates a custom title page with my company's logo, my email
address, and phone number.

After reading the manual and looking at the org-latex.el code it doesn't
look like it would be easy to customize the export in this way.

For the title page I could use the org-export-latex-title-command
variable, other customizations can use #+LATEX_HEADER:, but for stuff
like multicol that needs to do an \end{multicols} before \end{document}
it doesn't currently seem possible.

Is anyone else doing LaTeX customization with Org?

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] Re: How Are Others Customizing LaTeX Export?

2009-09-16 Thread Peter Jones
Bart Bunting b...@ursys.com.au writes:
 I am no expert at LaTeX.  However in response to a request I made recently
 on this list Tim Burt spent time assisting me put together a template that I
 can use to produce pdfs in the format our company requires.

 I have attached a copy of the template to this email in the hope that it may
 help others create their own templates.  It is working very well for me so
 far.  There are still a few bits that can't be expressed entirely in org
 syntax thus requiring the LaTeX style file.

 Tim's explanation of how to use it is below.

This is great, it gives me a lot to think about and learn ;)

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] Re: Publishing clocked time

2009-09-12 Thread Peter Jones
Carsten Dominik carsten.domi...@gmail.com writes:
 should we add org-invoice.el to the contrib directory?
 Also, I would like to add org-crypt.el, actually to the core.
 Do you agree, and do you have a copyright agreement signed
 with the FSF?

Yes, yes, and yes.

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] Re: Publishing clocked time

2009-09-11 Thread Peter Jones
Russell Adams rlad...@adamsinfoserv.com writes:
 #+BEGIN timecard

 |++-|
 | *Date* | *Task* | *Hours* |
 |++-|
 | 2009-09-01 | Customer X |   8 |
 | 2009-09-02 | Customer X |   8 |
 | 2009-09-03 | Customer X |   8 |
 | 2009-09-04 | Customer X |   8 |
 | 2009-09-05 | Customer X |   8 |
 |++-|
 |*Total* ||  40 |
 |++-|
 #+END

I've attached my org-invoice.el file which does something very close to
this.  I use it to generate reports in table form like what you are
requesting, and I have another .el file that uses org-invoice as a
library to collect the same data and submit it to my invoicing system.

Example output:

#+BEGIN: invoice
| Task / Date   |  Time |  Price |
|---+---+|
| Friday, August 21, 2009   | 03:00 |  55.00 |
| Blah Blah Blah| 03:00 |  55.00 |
|---+---+|
| Friday, August 28, 2009   | 06:00 |  10.00 |
| Blah Blah Blah| 06:00 |  10.00 |
|---+---+|
| Total:| 09:00 |  65.00 |

#+END:

You can disable the price calculation.



org-invoice.el
Description: application/emacs-lisp


-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Publishing clocked time

2009-09-11 Thread Peter Jones
Russell Adams rlad...@adamsinfoserv.com writes:
 I noticed in the comments you're working on a way to upload to
 Freshbooks! That quite exciting, given I use them too!

Unfortunately (for you) I'm no longer working with the client that
required me to use Freshbooks.  So, I don't expect to finish that code.

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] Correct Way to Customize LaTeX Export?

2009-09-08 Thread Peter Jones
I recently started exporting some org headlines to LaTeX.  I poked
around but couldn't find the best way to customize the output, e.g. add
a call to hypersetup.  The best I came up with was:

,
| (setq org-export-latex-classes
|   '((article
|  \\documentclass[11pt]{article}
| \\usepackage[utf8]{inputenc}
| \\usepackage[T1]{fontenc}
| \\usepackage{graphicx}
| \\usepackage{longtable}
| \\usepackage{soul}
| \\usepackage{hyperref}
| \\hypersetup{
|   hyperindex=true,
|   plainpages=false,
|   colorlinks=true,
|   linkcolor=black
| }
|  (\\section{%s} . \\section*{%s})
|  (\\subsection{%s} . \\subsection*{%s})
|  (\\subsubsection{%s} . \\subsubsection*{%s})
|  (\\paragraph{%s} . \\paragraph*{%s})
|  (\\subparagraph{%s} . \\subparagraph*{%s}
`

But by doing that, I would have to update this variable when pulling
down a new org version that might have changed the default value of
org-export-latex-classes.

Is there a better way to do stuff like insert a call to hypersetup?

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] Re: Anything like org-hide-others/org-close-others?

2009-08-24 Thread Peter Jones
Carsten Dominik carsten.domi...@gmail.com writes:
 S-TAB goes to overview, and `C-c C-r' reveals the location of point.

 If you need in on a single key, write a function that calls
 `org-overview' and then `org-reveal'.

Beautiful, thanks!

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] Anything like org-hide-others/org-close-others?

2009-08-21 Thread Peter Jones
I'd like to have an interactive function that will return the entire
buffer to the outline state (all headings closed/folded), and then
reopen the heading at point.

Usually I'm working in one specific location in an org file.  I might
jump around and open a few other headings, then continue working in my
original heading.  At this point, the buffer seems a bit messy with most
headings closed except the one I'm working on and a few others I've
opened.

It would be nice to hit a key and close everything except the heading
I'm in.

Is this something that is already in org and I'm missing it?  If not,
any pointers on how to implement something like this?

Thanks.

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


[Orgmode] [ANN] org-crypt.el Version 0.4

2009-06-19 Thread Peter Jones
This version includes two patches from Vitaly Ostanin and a new
function.

The new function is `org-crypt-use-before-save-magic'.  When called, it
will add a before-save hook that encrypts all tagged entries.  Example
usage:

(require 'org-crypt)
(org-crypt-use-before-save-magic)

The before-save hook stuff is still experimental.  Please let me know
what you think.



org-crypt.el
Description: application/emacs-lisp

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [ANN] org-crypt Version 0.3

2009-05-18 Thread Peter Jones
Sorry for the delays in getting this posted, I've been doing a lot of
traveling lately.

The attached version of org-crypt fixes a few bugs and is just about
ready to be included in org proper.  The only thing it might need before
inclusion in org is automatic encryption via hooks.

I'd like to find out how people feel about that.  Should org-crypt
attach itself to org-mode-hook so that it can decrypt encrypted entries
after you open an org file?  At first I thought yes, but now I'm leaning
towards no, you should decrypt entries manually as needed.

I do think that org-crypt should hook itself into before-save-hook so
that all entries that *should* be encrypted are encrypted before the
file touches the disk.  A user of org-crypt shouldn't have to worry
about setting up a hook, it should just happen automatically.

Any suggestions on the best way to make that happen in org-crypt?



org-crypt.el
Description: application/emacs-lisp

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Quickly inputting next actions to specific lists.

2009-04-24 Thread Peter Jones
Marcelo de Moraes Serpa celose...@gmail.com writes:
 Ah, I got it. I had Ctrl+1..2 to switch desktops configured in gnome, that's
 why it was not being captured by emacs. It is working now. Thank you!

FWIW: C-u 1 is the same as C-1.  It's an extra key, but I prefer using
C-u since it works regardless of the environment I'm running Emacs in.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: [ANN] org-crypt version 0.2

2009-04-06 Thread Peter Jones
Carsten Dominik carsten.domi...@gmail.com writes:
 I did solve, I think, the issue with headlines in line one.

 Should we go ahead and integrate org-crypt?

I only had one more thing I wanted to do to it before the integration.
I think it should hook itself into before-save and the org-mode hooks to
automatically encrypt and decrypt the entries if org-crypt-automatically
is t.

Does that sound okay, or should that be the responsibility of the user?

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: [ANN] org-crypt version 0.2

2009-04-02 Thread Peter Jones
Carsten Dominik carsten.domi...@gmail.com writes:
 I am a first time pgp/epg/epa user, so I need more guidance.

 I have created a key with

gpg --gen-key

 Now when I do

  M-x epa-list-keys

 I indeed see a line like

  u some-random-letters my name (comment) email

 What exactly must I put into the variable or property for Org?

Just about anything *should* work, an email address or a key ID.  I
always encrypt for myself, so I have this in my ~/.emacs:

,
| (setq org-crypt-key 61C4F407C4EB56B7)
`

I'll add some notes to org-crypt.el to make this more clear.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: [ANN] org-crypt version 0.2

2009-04-02 Thread Peter Jones
Carsten Dominik carsten.domi...@gmail.com writes:
 Below is a patch which will fix this.  Basically you need to
 go back and fix the visibility of the entry, because you are
 inserting in a location that confuses the invisibility code.
 Instead of trying to get the insertion right, it is much better
 to reset it for the entire tree.

Great, thanks!

 The patch also does one other thing:

 It makes encryption cover the entire subtree of an entry
 with tag :crypt:, not just the text up to first child.
 I believe this is more consistent with the structure or
 Org-mode files.  Would you agree?

Yes, I had planned to do that, but wasn't sure exactly how.  You saved
me some time, thank you.

I have one other issue, if you want to point me in the right direction.
It seems that org-scan-tags will skip the first heading if that heading
is on the first line in the buffer.  If you add a blank line above the
heading, then org-scan-tags will pass it to the action function.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] [ANN] org-crypt version 0.2

2009-04-01 Thread Peter Jones
Attached is version 0.2 of John Wiegley's org-crypt.el.

Changes:

  - Headings to encrypt/decrypt are now selected with a tags matcher,
which defaults to crypt.  This means that all headings tagged
crypt will be candidates for encryption/decryption.

  - The encryption key can be set via the `org-crypt-key' variable, or
by setting the CRYPTKEY property.

  - The entire contents of a heading will be encrypted, including
drawers.

  - New `org-decrypt-entries' function.

The org-crypt.el file contains some instructions, some customizable
variables, and a to-do list.

Carsten: after encrypting a folded headline, the new contents of the
heading won't be folded, but the headline will still appear to be
folded.  For example:

* Before...
* After...---BEGIN PGP MESSAGE-
lkafjd;alkfjd;alfjd;ljf
and so on

Please point me in the right direction for resolving this.  Thank you.

Of course, feedback is welcome.  A HUGE thanks to Carsten and John.



org-crypt.el
Description: application/emacs-lisp

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: embedded/inherited tags

2009-03-30 Thread Peter Jones
Konstantin Antipin antipin.konstan...@googlemail.com writes:
 Is there any way to make tags inherited from another tag?
 For example, I have following tags:
 :tech:
 :emacs:
 :orgmode:
 :ubuntu:

 :other:

No, tags cannot inherit from one another, but you can achieve a similar
effect by structuring your headings in the same fashion.  Org has tag
inheritance, but in this case it just means that a heading will inherit
the tags from its parent heading:

* Technology :tech:
** Emacs :emacs:
*** Org Mode :orgmode:
 TODO Turn on tag inheritance

The TODO heading from above will have the following tags (if tag
inheritance is enabled):

 :tech:emacs:orgmode:

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: Workflow Ideas/questions

2009-03-25 Thread Peter Jones
David Thole dth...@gmail.com writes:
 I was thinking a bit about my workflow with org-mode, and I'm thinking
 that I should change up a bit of how I'm doing stuff.  Basically what I do
 now is use org-mode for my GTD stuff (that is, ticket management, notes
 about tickets, etc), and then use muse mode for other stuff.


I'm not sure I have any specific recommendations for you, but thought
I'd share my setup, and maybe it will help somehow.

I use Muse for writing documents and blog articles, and Org to manage my
entire life a la GTD.  I have my workflow split into the following
files:

| File   | Purpose  |
|+--|
| checklists.org | Recuring tasks (pay phone bill), trigger lists, etc. |
| projects.org   | Projects with concrete action lists  |
| review.org | Information that I may need to review later, notes   |
| someday.org| Projects that I might do someday, but not right now  |

I use top-level headings in the projects.org file to split my projects
into categories:

* Personal
** Some Personal Project
*** NEXT Next action
* Business
** Some Business Project
*** NEXT Next action

I also have one org file for each one of my clients.  These client files
have top-level headings that mirror my main files, for example:

* Notes / Review
* Checklists
* Someday / Maybe
* Projects

There is a file-level tag of :project: in the projects.org file, and in
the client files I tag the Projects heading with :project:.

Relevant org variables:

 org-stuck-projects '(+LEVEL=2+project|+LEVEL=3+subproject (NEXT PENDING) 
(single) )

 org-agenda-custom-commands
 '((d Daily Agenda
((agenda 
 ((org-agenda-todo-keyword-format )
  (org-agenda-remove-tags t)))
 (tags LEVEL=2+goals
   ((org-agenda-remove-tags t)
(org-agenda-prefix-format   )
   (org-agenda-todo-keyword-format )))
 (todo NEXT 
   ((org-agenda-sorting-strategy '(tag-up))
(org-agenda-show-inherited-tags nil)
(org-agenda-todo-keyword-format )))
 (todo PENDING
   ((org-agenda-todo-keyword-format )))
 (stuck 
((org-agenda-remove-tags t))

I look at the above agenda view several times a day (probably hundreds).
I narrow and widen the focus to specific contexts, and to client tasks
via tags throughout the day to keep from procrastinating.

Honestly, Org is the most import tool in my life.  After years of
playing with GTD and trying to make it work for me, Org finally put
everything into place.

HTH,

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: changing headline format

2009-03-23 Thread Peter Jones
n...@aleblanc.cotse.net writes:
does anyone know if there is an easy way to change the headline
format for outline/org mode? I know about hiding stars and using odd
levels only in org, but I want to be able to convert a file so that
the actual text of the headlines is changed.
More specifically I want to be able to quickly convert directory
trees that I grabbed with the unix tree command into org trees.

Why not use sed/awk to alter the output of the tree command so that it's
in a format that org will understand?

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: org-crypt and PROPERTIES location

2009-03-23 Thread Peter Jones
n...@aleblanc.cotse.net writes:
 Are there any org-crypt users out there that want to throw in their
 $0.02?
 Hi Peter,
  I wrote a function for encrypting subtrees a couple of weeks
  ago. I didn't realize someone else was already on the case.
  I guess your solution is better than mine, but where can I get
  hold of it? I don't see it in worg.

Actually, org-crypt was written by John Wiegley, and I'm going to be
making some changes to slightly alter how it works.  You can get John's
version here:

  
http://github.com/jwiegley/dot-emacs/raw/cf72e6e004034849bd683b467b51d960d80a3e66/org-crypt.el

I'll post a message after I've made my changes to it.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: prompt for tag if todo state gets active

2009-03-21 Thread Peter Jones
Eraldo Helal off...@eraldo.at writes:
 I am looking for a way to auto ask for a tag (from a set of tags) when a
 certain todo state gets active.

Eraldo, you should be able to use `org-after-todo-state-change-hook'
with a bit of lisp to do what you want.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: clocksum and archived trees

2009-03-20 Thread Peter Jones
Jota Pin jotapin2...@yahoo.fr writes:
 I tried to figure out how to avoid having archived subtrees to contribute to 
 the sum of times showed with Display Times c-c c-x c-d.

I've been wondering something along the same lines myself.  When
switching to column view via C-c C-x C-c it can sometimes take a long
time because of archive items.

I haven't gotten around to looking into this yet.  Maybe I'll try to fix
this tomorrow when I get some time.

-- 
Peter Jones - 303-669-2637
pmade inc.  - http://pmade.com


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


[Orgmode] Re: org-crypt and PROPERTIES location

2009-03-20 Thread Peter Jones
Carsten Dominik domi...@science.uva.nl writes:
 we don't have a good function for this. Also, it is not so much about
 extracting the contents, more about finding the boundaries.  In some
 ways I think it would actually be better to use a tag for encryption
 instead of a property, because this would allow to encrypt everything
 except the headline.  What about we change this to a tag crypt_KEY?
 Hmm, I am not sure if encryption keys would make valid tags.

AFAIK, the key ID is only needed for encryption.  The encrypted text
will contain a pointer to the key needed for decryption.

Therefore, I suggest that we do this:

  - Have a defcustom for the default key ID to use (I think it will be
very common that you'll use the same key to encrypt everything)

  - Allow overriding the key ID in an inheritable property (if you need
to encrypt a heading using a different key than the default)

  - Use a tag matcher to specify headings to encrypt (another defcustom
that will be used to find headings that should be encrypted
before-save)

  - Encrypt everything under the heading, including properties (even if
the property has the key ID, it won't be needed for decryption, so
the entire contents can be encrypted)

Am I missing anything?

 I'd very much like to see this improved and stabilized, so that we can
 include this with Org, this would be valuable to have.  I am sure John
 would not mind if you did the final steps with it.  Am I right, John?

I had a private conversation with John, and he's completely open to me
putting the finishing touches on org-crypt and getting it included in
the org distribution.

Are there any org-crypt users out there that want to throw in their
$0.02?

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: Insert LOGBOOK drawer removes indendation of first line under headline

2009-03-20 Thread Peter Jones
David Maus maus.da...@gmail.com writes:
 When I start to clock a headline (C-c C-x C-i) that does not have a
 LOGBOOK drawer orgmode inserts one but removes the indentation of the
 first line below the headline:

 Example:

 * TODO Do something
   Do this, do that etc.

 after C-c C-x C-i becomes

 * TODO Do something
   :LOGBOOK:
   CLOCK: [2009-03-20 Fr 19:03]--[2009-03-20 Fr 19:03] =  0:00
   :END:
 Do this, do that etc.


This might be due to my recent indentation patch.  It's not working the
way I expected it would.  I'll look into it.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] [PATCH] Re: Insert LOGBOOK drawer removes indendation of first line under headline

2009-03-20 Thread Peter Jones
David Maus maus.da...@gmail.com writes:
 When I start to clock a headline (C-c C-x C-i) that does not have a
 LOGBOOK drawer orgmode inserts one but removes the indentation of the
 first line below the headline:

This patch fixes your problem.  Sorry about that.

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index c79a6af..8d2279a 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -444,13 +444,13 @@ the clocking selection, associated with the letter `d'.
(stringp org-clock-into-drawer)
(and (integerp org-clock-into-drawer)
 ( org-clock-into-drawer 2)))
-   (org-indent-line-function)
(insert : drawer :\n:END:\n)
-   (beginning-of-line 0)
-   (org-indent-line-function)
-   (beginning-of-line 0)
+(beginning-of-line -1)
+(org-indent-line-function)
(org-flag-drawer t)
-   (beginning-of-line 2)
+(beginning-of-line 2)
+(org-indent-line-function)
+   (beginning-of-line)
(or org-log-states-order-reversed
(and (re-search-forward org-property-end-re nil t)
 (goto-char (match-beginning 0

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: change todo item status automatically when clock check out?

2009-03-20 Thread Peter Jones
Ning Sean nings...@gmail.com writes:
 I wonder if I can configure orgmode in such a way that when a task is
 checked out, the state of the task automatically changes to some designated
 state?

Take a look at `org-after-todo-state-change-hook'.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] [PATCH] Headlines Prefixed with a Period in org-scan-tags, Why?

2009-03-19 Thread Peter Jones
I'm looking at this code in org-scan-tags (org.el):

(concat
 (if org-tags-match-list-sublevels
 (make-string (1- level) ?.) )
 (org-get-heading))

Which causes items in my agenda buffer to be prefixed with a series of
periods.  I've been looking around org.el, and org-agenda.el, and don't
see any code that relies on those periods being there.

If I remove that if expression, the agenda looks the way I'd expect,
with no noticeable consequences.

Is there any reason the patch below would break something in Org?

diff --git a/lisp/org.el b/lisp/org.el
index dabf306..b19e3d1 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9969,10 +9969,7 @@ only lines with a TODO keyword are included in the 
output.
 ((eq action 'agenda)
  (setq txt (org-format-agenda-item
 
-(concat
- (if org-tags-match-list-sublevels
- (make-string (1- level) ?.) )
- (org-get-heading))
+ (org-get-heading)
 category
 ;(org-get-tags-at)
 tags-list


-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: More Flexibility for Stuck Projects?

2009-03-19 Thread Peter Jones
Carsten Dominik domi...@science.uva.nl writes:
 With this change, I guess you can switch to

 - use :project: to define both projects and subprojects
 - exclude :project: from inheritance
 - define your stuck project search +project to identify a project.

 or

 - use a TODO keyword PROJ
 - define the search as TODO=\PROJ\

Thanks Carsten, this gives me a lot of options to consider.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: Feature request: org-goto hierarchical path completion with ido

2009-03-19 Thread Peter Jones
 This is what org-goto is for.  You can select the interface
 to be used with the variable org-goto-interface.  Set it to
 outline-path-completion and it will work like refiling.
 You can configure the maximum depth for this command
 with org-goto-max-level.

Excellent.  I had tried org-goto before, but didn't know about the
org-goto-interface variable.  This is exactly what I wanted.

Thanks Carsten.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: [PATCH] Headlines Prefixed with a Period in org-scan-tags, Why?

2009-03-19 Thread Peter Jones
Carsten Dominik domi...@science.uva.nl writes:
 P.S. Do you have a copyright assignment, I forgot, but I have the
 feeling that I would like to have one ... :-)

I do, and I thought I sent it to you, but I may not have.  What's the
best way for me to get it to you?

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] org-crypt and PROPERTIES location

2009-03-19 Thread Peter Jones
I've started playing with org-crypt, which is very nice.

Unfortunately the org-apply-to-entry-contents function assumes that the
PROPERTIES drawer is at the bottom of the heading's contents.  There
might be a variable in org mode to control this, but all my entries have
the PROPERTIES drawer at the top, with the content underneath.

Of course, this means that org-crypt doesn't actually encrypt anything
for me.

I'm posting this to the org-mode mailing list to see if there is a
better way to get to the contents of a heading, excluding any drawers.
I'm sure there is something in the export system we could reuse.  I say
we because I'm more than willing to submit patches.

One last note, the comments in the org-crypt file mention using an
after-save-hook to encrypt the appropriate headings.  Shouldn't that be
a before-save-hook?

Thanks to all.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: Feature request: org-goto hierarchical path completion with ido

2009-03-18 Thread Peter Jones
Carsten Dominik domi...@science.uva.nl writes:
 This is `C-u C-c C-w', it uses the refile command interface
 to go to a location.

I'm always looking for a faster way to move around my org buffers, so
based on what you said above, I tried setting org-refile-targets like
so:

  (setq org-refile-targets '((nil . (:maxlevel . 2

And then tried using C-u C-c C-w to move around.  Unfortunately, it's
not very practical for moving around since if you want to move somewhere
in the same tree you get this error:

  Cannot refile to position inside the tree or region

It would really be neat if there was a way to jump to a specific
heading, no matter how deep, by just typing a few key strokes.  Right
now, I'm using C-s to do this, but the idea of having auto-completion is
compelling.

How about something like this:

1. Using a key binding, you enter a movement mode (ido, mini-buffer)

2. You select the first level heading you want (just like C-c C-w)

3. Point moves to the heading you selected

4. You are prompted for a second level heading

5. Either choose a heading, or do C-g to stay where you are

6. Continue until you get where you want to be

Does that sound interesting to anyone?  If so, I could put together
something for us to play with.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] More Flexibility for Stuck Projects?

2009-03-18 Thread Peter Jones
I really love the idea of stuck projects, it helps me every day.  Right
now, I consider projects to be level two headings with the :project:
tag.  90% of my projects follow this convention.

However, I sometimes find myself needing sub-projects, where level two
is a project, level three is a sub-project, and level four are tasks:

* Projects:project:
** Some Complex Project
*** Sub-Project 1 :subproject:
 NEXT Do something
 Do something else
*** Sub-Project 2 :subproject:
 Do something again

With the above headings, and my current configuration for stuck
projects, Sub-Project 2 won't show up in the stuck projects list
(because technically it's not a stuck project).

Does anyone have a setting for org-stuck-projects that would allow me to
define a project as either:

1. A level 2 heading tagged :project:

2. A level 3 heading tagged :subproject:

Or a better way to do what I'm doing.

The biggest challenge to getting this working is that I use tag
inheritance with the :project: tag.  In some files I have level 1
headings tagged :project:, and in others, I use file level tags with
:project:.  That means that all headings are basically tagged as
:project:, so I need to specify a heading level for stuck projects.

TIA.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: emacs org-mode

2009-03-18 Thread Peter Jones
Eraldo Helal ad...@eraldo.at writes:
 I wanted to get an overview of how other GTD org-mode users integrate
 non-text project files into their system.

Take a look at the manual, section 9.2 Attachments.  I think that's the
common way to go about it.

I, on the other hand, am an organization freak, and have dedicated git
repositories for each project, where I keep project assets.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: [PATCH] Properly indent clock drawer upon creation

2009-03-01 Thread Peter Jones
Carsten Dominik domi...@science.uva.nl writes:
 can you please describe a test case where the code without your patch
 fails?

The code doesn't fail, this is just a nice to have.

When a clock/logbook drawer is created, the :END: isn't indented
correctly.  This causes a problem for my function that automatically
creates a plain list under a heading.  My function uses
org-indent-line-function to properly indent the plain list, but because
of the bad :END: indentation, the plain list is indented incorrectly
too.

Example before my patch:

* Foo Bar
  :CLOCK:
:END:
- Item One


Example after my patch:

* Foo Bar
  :CLOCK:
  :END:
  - Item One

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: Jump to Heading Body, Create Plain List Item

2009-02-21 Thread Peter Jones
Peter Jones mli...@pmade.com writes:
 I'd like a function that would do the following:

  1) Move to the body of a heading (skipping drawers and the like)

  2) Create the body if necessary (when there are no lines between
 sibling headings or between drawers and a sibling heading)

  3) Append a new plain list item (or create a new plain list if there

This is what I've come up with so far.  I have M-RET bound to the first
function, and M-S-RET bound to the second function.

(defun pmade:org-list-append (optional checkbox)
  Append a plain list item to the current heading.  If the
current heading already has plain list items, a new one will be
added, otherwise a new plain list will be created.  If checkbox
is set, add a plain list item with a checkbox.
  (interactive P)
  (when (not (org-insert-item (if checkbox 'checkbox)))
(org-back-to-heading)
(org-show-subtree)
(outline-next-heading)
(newline)
(when (bolp) (previous-line))
(org-indent-line-function)
(insert (concat - (if checkbox  [ ]   )

(defun pmade:org-list-append-with-checkbox ()
  Calls `pmade:org-list-append' with checkbox set.
  (interactive)
  (pmade:org-list-append t))

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: Jump to Heading Body, Create Plain List Item

2009-02-21 Thread Peter Jones
Peter Jones mli...@pmade.com writes:
 This is what I've come up with so far.  I have M-RET bound to the first
 function, and M-S-RET bound to the second function.

Small bug fix:

(defun pmade:org-list-append (optional checkbox)
  Append a plain list item to the current heading.  If the
current heading already has plain list items, a new one will be
added, otherwise a new plain list will be created.  If checkbox
is set, add a plain list item with a checkbox.
  (interactive P)
  (when (not (org-insert-item (if checkbox 'checkbox)))
(org-back-to-heading)
(org-show-subtree)
(outline-next-heading)
(if (eolp) (newline)
  (newline)
  (previous-line))
(org-indent-line-function)
(insert (concat - (if checkbox  [ ]   )

(defun pmade:org-list-append-with-checkbox ()
  Calls `pmade:org-list-append' with checkbox set.
  (interactive)
  (pmade:org-list-append t))

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: time tracking common activities

2009-02-20 Thread Peter Jones
David Bremner brem...@unb.ca writes:
 J Aaron Farr wrote:

I'm using org-mode to track my time on projects and todo items, but
I'd also like to start tracking time I spend on things such as my
email, reading rss feeds, etc.  I'd prefer to continue to use
org-mode for that so that all my time tracking is in one place with
one system.

 I guess you would still have to think about comfortable ways to find
 the right file/buffer and clock in there.

I think this is probably the key to making this successful.  If it takes
you too long to locate the headings, you won't bother clocking in.

What's the best way to quickly get to a heading?

I'd have to say that using isearch (C-s) is the fastest method to find a
heading.  There's also org-goto, but it requires extra steps.

What are other people doing to quickly get to a specific heading?

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Jump to Heading Body, Create Plain List Item

2009-02-20 Thread Peter Jones
I've been reading through the code, and I don't think this is possible
yet, but I wanted to double check before I wrote something.

I'd like a function that would do the following:

 1) Move to the body of a heading (skipping drawers and the like)

 2) Create the body if necessary (when there are no lines between
sibling headings or between drawers and a sibling heading)

 3) Append a new plain list item (or create a new plain list if there
wasn't one there already)


I find myself doing this many times during the day:

 1) Create a new heading, and clock in

 2) Move point past the clock drawer

 3) Create a blank line under the drawer

 4) Create a list item

It would be super cool if I could just hit a key on a heading, and it
would append a new plain list item and move point there.  I would
probably bind M-RET to this function, since I use C-RET to create new
headings.

Does this exist?  I'll write it otherwise.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: Feature improvement request: state change logging

2009-02-12 Thread Peter Jones
Wanrong Lin wanrong@gmail.com writes:
 2. Can we put all of those state change history logging messages into
 a drawer like STATE-HIST (when the drawer is defined in
 org-drawers), so it is less intrusive in the file?

I also second this.  I've been meaning to look into the code and figure
out how difficult it would be to add a state change drawer.  With
recurring events, the state data obfuscates the normal content under the
heading.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: POLL: the 40 variables project

2009-01-29 Thread Peter Jones
Carsten Dominik domi...@science.uva.nl writes:
 So here is the idea:  I would like to find out which variables
 users actually customize.  This could be the basis
 for a great article on Worg, describing just these selected
 variables.

 org-log-done t
 org-reverse-note-order t
 org-deadline-warning-days 14
 org-hide-leading-stars t
 org-use-fast-todo-selection t
 org-use-fast-tag-selection 'auto
 org-fast-tag-selection-single-key t
 org-special-ctrl-a/e t
 org-special-ctrl-k t
 org-M-RET-may-split-line nil
 org-time-clocksum-format %02d:%02d
 org-completion-use-ido t
 org-agenda-window-setup 'current-window
 org-agenda-restore-windows-after-quit nil
 org-stuck-projects '(LEVEL=2+project/-DONE (NEXT PENDING) (single) )
 org-agenda-ndays 1
 org-agenda-skip-deadline-if-done t
 org-agenda-skip-scheduled-if-done t
 org-agenda-show-all-dates t
 org-agenda-start-on-weekday 1
 org-agenda-todo-ignore-with-date t

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Agenda on iPhone as HTML

2009-01-21 Thread Peter Jones
I finally have my agenda just the way I like, thanks to custom agenda
block commands.  So the next natural thing to do was to get this
exported so I could see it on my iPhone.

Pending a formal Org iPhone application, I decided to put some HTML on a
web server I control, and access it from my phone.  To make it easier to
make phone calls from the agenda, I also create the proper tel links so
that tapping a phone number tells the iPhone to dial out.

You can see the sed hacking in my super-simple function:

(defun pmade:org-write-agenda ()
  Write the agenda buffer to a file, and send to pmade.com.
  (interactive)
  (org-write-agenda ~/agenda.html)
  (shell-command sed -E 's/T:([0-9+-]+)/T:a href=\tel:\\1\\\1\\/a/'  
~/agenda.html | ssh -q pmade.com 'cat  
/opt/sites/pmade.com/www/private/agenda.html')
  (delete-file ~/agenda.html))

Basically, headlines that have something like T:303-555-1212 will have
the number turned into a tel link.

Hope this helps someone else.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: [ANN] Org Invoice 1.0.0

2008-12-11 Thread Peter Jones
Ulf Stegemann [EMAIL PROTECTED] writes:
 If you plan to expand your package I'd have suggestions for it:
 Currently, times are always given as hours and rates as hourly rates. 
 This is fine for a collection of smaller tasks. For projects it's much
 more common to use person days, -weeks or -months. So it would be nice
 if one could choose between these calculation schemes (or if the best
 scheme would be chosen automatically). NB that it's quite common that a
 person day is not hourly rate times eight, so different rates would be
 necessary, too. And while we are at it, a column that indicates the rate
 used would be fine.

 Another nice feature would be to have invoice items with a fixed price,
 i.e. where the price is not calculated based on work or clock time.
 Imagine e.g. hardware sold along with IT services or things like that.

 Those things are rather ideas than feature requests but nevertheless, I
 thought I'll let you know as I think org-invoice has quite a good
 potential, e.g. I can imagine that it's not only handy for actual
 invoices but also for project planning, cost estimates, bids and all
 other things where a cost component is involved.

Great ideas Ulf, thanks.  I've started a TODO file for org-invoice
(using Org of course).  I'll probably be adding new features to it after
the new year.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: [ANN] Org Invoice 1.0.0

2008-12-10 Thread Peter Jones
Oliver Charles [EMAIL PROTECTED] writes:
 I tried emailing you about this when it was first released, but I
 didn't have any reply, so I'll try again (please forgive my rudeness
 if I'm being ignored on purpose! ;)

Oliver, I'm not ignoring you, your email must have found its way to my
spam folder.  Sorry about that!

 've just been having a play - and not
 having much luck getting any output. I use org-mode with odd-levels on
 by default.

 I've tried setting `org-invoice-default-level' to 3, but that doesn't
 seem to change the situtation. I've tried these invoices:

 With `org-invoice-default-level' set to *2*:

 * Invoices
 ** An Invoice Header
 *** [2008-11-25 Tue] An Invoice Item
:PROPERTIES:
:WORK: 0:10
:CLOCKSUM: 0:10
:END:

 #+BEGIN: invoice
 | Task / Date | Time | Price |
 |-+--+---|
 | Total:  | 0:00 |  0.00 |
 #+END:

 Any idea what I'm missing? If I can get this working with the default
 org-mode setup, I can then start fiddling and changing this to suit my
 setup (invoices start at level 3, etc)

Since you are using odd levels, set org-invoice-default-level to 2, and
use a structure like this:

* Invoices
*** An Invoice Header
* [2008-11-25 Tue] An Invoice Item
   :PROPERTIES:
   :WORK: 0:10
   :CLOCKSUM: 0:10
   :END:

#+BEGIN: invoice
| Task / Date | Time | Price |
|-+--+---|
| Total:  | 0:00 |  0.00 |
#+END:

This is based on what I know about org-odd-levels-only, which isn't
much.  org-invoice should correctly move up to the 3-star heading if you
set org-invoice-default-level to 2.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: [ANN] Org Invoice 1.0.0

2008-12-06 Thread Peter Jones
[EMAIL PROTECTED] (Mark A. Hershberger) writes:
 Now, if I can just figure out how to integrate invoicing and ledger

Is ledger an application, or some additional org functionality you want?

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] [ANN] Org Invoice 1.0.0

2008-11-26 Thread Peter Jones
All,

I thought I'd share some elisp that I'm using in conjunction with
org-mode for helping me prepare invoices.

The attached file is useful for producing an org mode dblock that groups
headings by date and calculates billing information based on your hourly
rate.  It also has a clean API for other elisp packages to use.

I currently have another elisp file that submits the invoice data to my
private invoicing system, and I'm working on another that submits to
FreshBooks (a web-based accounting package that one of my clients uses).

At some point in the future, if there's enough interest I'll post this
to Worg with a tutorial.

To those org-mode users in the US that are celebrating Thanksgiving,
have a Happy Holidays!



org-invoice.el
Description: application/emacs-lisp

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Strange behavior of C-RET and C-S-RET

2008-10-28 Thread Peter Jones
Carsten Dominik [EMAIL PROTECTED] writes:
 I cannot reproduce this problem.  Can anyone else?

It happens to me sometimes.  I'll see if I can come up with a test case
that will reproduce this on demand.  Then I can look into fixing it.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: Correct Way to Create Sibling Headings

2008-09-13 Thread Peter Jones
Carsten Dominik [EMAIL PROTECTED] writes:
 M-RET and M-S-RET will remain the same, i.e. they will insert the
 heading directly after the current line, therefore making any content
 of the entry part of the new entry.  I believe this still makes sense,
 because it feels more like direct editing of the text file.  In this
 case, the idea is that if you want to insert the new heading after all
 the content, you would first move the cursor to after the content.

 I am redefining C-RET and C-S-RET in the way you propose.  The will
 now also insert a new heading *before* the current if the cursor is at
 the beginning of the line.  And they will achieve the insertion
 without folding siblings.

 Finally, I am introducing a new option `org-insert-heading-respect-
 content', default nil.  If you set this to t, M-RET and M-S-RET will
 behave just like C-RET and C-S-RET, respectively, so in this way you
 can make this behavior the default.

Great!  I can't wait to update and try this out.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Correct Way to Create Sibling Headings

2008-09-11 Thread Peter Jones
I'm aware of two ways to create a sibling heading (a heading directly
after the current heading):

  1. M-return (org-meta-return)
  2. C-return (org-insert-heading-after-current)

They both operate slightly differently, but neither seem to do what I
want.

org-meta-return creates a heading directly after the current heading,
but before the properties and content of the original heading.
org-insert-heading-after-current collapses the current heading before
creating the next heading, keeping properties and content in their
correct location.

I tend to use org-insert-heading-after-current to get around this side
effect of org-meta-return, but org-insert-heading-after-current doesn't
support the same features that org-meta-return does:

 - Using the shift key to make the new heading a TODO item
 - Creating a heading *above* the current heading when used at the BOL

Plus, org-insert-heading-after-current also collapses the open headings
around it, which is often not what I want since it removes context
information.

I guess I have two questions:

  1. Is there a bug in org-meta-return that assigns the properties and
 content of the current heading to the newly created heading?

  2. What is the intended difference between M-return and C-return?

Thanks.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US



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


[Orgmode] Re: Bug: auto-fill in a body often inserts #

2008-08-21 Thread Peter Jones
Samuel Wales [EMAIL PROTECTED] writes:
 It sometimes happens and sometimes does not happen, which is strange.
 I haven't tried it enough with emacs -q to be sure that it is or is
 not something in my .emacs that is triggering the bug.  However, I
 have no idea what could do this.

I've seen this, but with an older version of org-mode.  It hasn't
happened in a long time, so I assumed it was a bug that got fixed.

IIRC, I suspected that some global minor mode might have whacked
things up, and restarting Emacs fixed the problem.  I also thought the
problem might be the fill-prefix, but in my case, it was nil as
expected.

You might want to see what the fill-prefix is next time it starts
doing that, just to be sure:

,
| C-h v fill-prefix
`

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Bug: auto-fill in a body often inserts #

2008-08-20 Thread Peter Jones
Samuel Wales [EMAIL PROTECTED] writes:
 I am running the latest org-mode from the tar on emacs 22, installed
 via macports, on a mac OS X Tiger default terminal.  I have turned on
 auto-fill and set fill-column.

What does M-x org-version RET say?  

The version of org-mode that came in the latest emacs 22 is pretty
old.  The current version is 6.06b available from http://orgmode.org/.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Command line tricks

2008-08-06 Thread Peter Jones
Russell Adams [EMAIL PROTECTED] writes:
 I've recently started using a few command line options with Org I
 thought I'd share, perhaps they'll inspire someone else.

Awesome stuff Russell.  Thanks for sharing.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: How to convert org file to such a plain text

2008-08-04 Thread Peter Jones
anhnmncb [EMAIL PROTECTED] writes:
 Sorry, I can't find more useful info, the app just says it can import
 the txt file which has different level of indents. So I think replace
 star(*) with tab is enough. Such like this:

 Org file  --  txt file
    
 |* level 1 |level 1
 |** level 2   --  |tablevel 2   
 |tab- item   |tab- item
 |*** level 3   |tabtablevel 3  
    

 I'm not a programmer, so if my request is stupid and easy to achieve by
 any other way, please let me know.

For the time being, it might make sense to create a keyboard macro
that exports to ASCII, and then replaces stars with tabs.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Displaying column titles in column view

2008-08-01 Thread Peter Jones
Steven E. Harris [EMAIL PROTECTED] writes:
 There are still many things that are odd about the header line. If I
 have a vertically-split window, with an org-mode file in the bottom
 window, and I activate column mode, the header appears above the top
 window. Maybe that's the only place that the top gutter can appear.

I don't have any of these problems, but I'm using GNU Emacs.  I do
know that org-mode has a completely different implementation of column
view for XEmacs.

You might want to look in org-colview-xemacs.el and do some light
comparisons with org-colview.el.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Project Planning Tutorial Using Org-Mode

2008-07-26 Thread Peter Jones
Cezar Halmagean [EMAIL PROTECTED] writes:
 Thank you very much ! Is that Emacs on OS X ? And if so, which one ?
 Carbon Emacs ?

Yes, Carbon Emacs (22.2.1) built from macports.  I really like the
Cocoa version Emacs but didn't like being on the bleeding edge.

Aquamacs is too non-standard for my tastes.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Project Planning Tutorial Using Org-Mode

2008-07-25 Thread Peter Jones
Peter Jones [EMAIL PROTECTED] writes:
 The file you want is:

   emacs/emacs.d/pmade-org.el

Of course, I meant to say:

  emacs/emacs.d/pmade-colors.el

For my home-brewed color theme.

Sorry about that.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Project Planning Tutorial Using Org-Mode

2008-07-25 Thread Peter Jones
rolf [EMAIL PROTECTED] writes:
 What a clean and concise rc-setup! 

 And,  thx for sharing!

Thanks.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Project Planning Tutorial Using Org-Mode

2008-07-25 Thread Peter Jones
Carsten Dominik [EMAIL PROTECTED] writes:
 looks great!

My workflow would completely suck if it weren't for Org-Mode.  Thanks
Carsten!

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] [PATCH] Auto-load org-colview when updating a dynamic colview block

2008-07-24 Thread Peter Jones
If you try to update a dynamic colview block before org-colview has
been auto-loaded, you get an error message about an undefined function
org-dblock-write:columnview.

Adding this function name to the list of auto-load functions that are
in org-colview to the auto-load list in org.el fixes the problem.

From b450416fd270232317c0bc07d59536f2266e3e51 Mon Sep 17 00:00:00 2001
From: Peter Jones [EMAIL PROTECTED]
Date: Thu, 24 Jul 2008 11:02:14 -0600
Subject: [PATCH] Auto-load org-colview when updating a dynamic colview block

If you try to update a dynamic colview block before org-colview has
been auto-loaded, you get an error message about an undefined function
org-dblock-write:columnview.

Adding this function name to the list of auto-load functions that are
in org-colview to the auto-load list in org.el fixes the problem.
---
 lisp/org.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 4051568..7a5be1f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2650,7 +2650,7 @@ collapsed state.
 (org-autoload (if (featurep 'xemacs) org-colview-xemacs org-colview)
  '(org-columns-number-to-string org-columns-get-format-and-top-level
org-columns-compute org-agenda-columns org-columns-remove-overlays
-   org-columns org-insert-columns-dblock))
+   org-columns org-insert-columns-dblock org-dblock-write:columnview))
 
 ;; Autoload ID code
 
-- 
1.5.3.7


-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Project Planning Tutorial Using Org-Mode

2008-07-24 Thread Peter Jones
(shameless-self-promotion-mode t)

I just wrote a tutorial on how to use org-mode to plan and estimate a
project.

http://pmade.com/articles/2008/project-planning

Feedback is encouraged.  If you use org-mode for stuff like this,
please post a comment on how you do things differently.

Thanks.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Project Planning Tutorial Using Org-Mode

2008-07-24 Thread Peter Jones
Richard G Riley [EMAIL PROTECTED] writes:
 The other thing which would be nice would be to use org-mode
 itself to publish your tutorial. org-mode really is a great tool!

I actually use Emacs Muse for my site.  I love org-mode, and spend at
least 90% of my workday in org files, but I think muse is a bit more
appropriate for publishing.

Thanks for all the great feedback so far!  I'm definitely going to
incorporate it into my next article.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Project Planning Tutorial Using Org-Mode

2008-07-24 Thread Peter Jones
Manish [EMAIL PROTECTED] writes:
 It's titillating.  I mean it piques interest but it does not talk of
 specifics (setup, functions, key bindings).  A good starter to using
 Org for planning/estimation nonetheless.

Thanks Manish.

As I was editing the article I worried that it didn't have enough
detail.  In the end, I felt it was already getting too lengthy, and
adding more specific information would make it discouragingly long.

I'm hoping to find a better balance between length and detail in my
next article.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Project Planning Tutorial Using Org-Mode

2008-07-24 Thread Peter Jones
Cezar Halmagean [EMAIL PROTECTED] writes:
 What Emacs version and color theme are you using ? That looks really
 good. Also can you share your rails/muse integration cause it looks like
 it's working pretty nice for ya.

I'm using Emacs 22.2.1, with a home-brewed color theme.

If you're really interested in my color theme, you can get it via git:

  git clone git://pmade.com/rc

The file you want is:

  emacs/emacs.d/pmade-org.el

As far as Rails and Muse, it's a bit silly.  I wrote my own CMS in
Ruby, using Rails, with the sole goal of using Emacs Muse to interface
with it.

I therefore also wrote a Muse publishing style that works with my CMS.
Basically, I write my page using Muse inside Emacs, C-c C-t, and the
page is translated to HTML and uploaded to my site.

If you're interested in the CMS and Muse publishing style, it's
currently available as a Rails Engine (plugin):

  git clone git://pmade.com/barecms

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Agenda View, Hiding Scheduled DONE Items

2008-06-19 Thread Peter Jones
I looked through the manual and the bindings reference (C-h b) in the
agenda view, and haven't been able to figure this out.

When in the agenda view, is there a way to hide items that are
scheduled for the current day, yet are marked as DONE?  That is, I
only want to see items that are still TODO.

I've been using the agenda view more heavily lately, but it would be
nice to filter out DONE items so I can see what remains on my task
list for the day.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Agenda View, Hiding Scheduled DONE Items

2008-06-19 Thread Peter Jones
Carsten Dominik [EMAIL PROTECTED] writes:
 (setq org-agenda-skip-scheduled-if-done t)

Perfect, thanks!

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Kill text in org mode

2008-06-11 Thread Peter Jones
John [EMAIL PROTECTED] writes:
   1. To kill some text from the mark till the begining of
  a line, I usually type in:
   - C-SPC to run `set-mark-command', then
   - C-a to run `beginning-of-line', and then
   - M-w to run `kill-ring-save'

  But in org-mode `C-a' is bound to `org-beginning-of-line' which
  quits marking region.  Thus `M-w' can't work anymore.

This doesn't happen for me.  You might want to ensure you have the
latest version.

Also, a faster way to kill from point to the beginning of the line is:

  C-- C-k

That is, Control-minus and then Control-k.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US


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


[Orgmode] Re: Allow 'prefix' to be set on the command line

2008-06-09 Thread Peter Jones
Dominik, C. [EMAIL PROTECTED] writes:
 Is this a syntax understood by all make programs?  Nice, 
 I am taking the patch.  Thanks.

It works with BSD Make, and GNU Make, I can't speak for Microsoft's
version of Make (nmake), but I don't believe it works there.

It's not POSIX, but I'm not sure if there are any operating systems
that are using a plain POSIX make.  Someone want to enlighten me?

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] [PATCH] Allow 'prefix' to be set on the command line

2008-06-02 Thread Peter Jones
This patch allows you to:

  make install prefix=/some/path

Makes installing Org-mode in a non-standard path a bit easier.

From e0b6b847c6b8a4b0c41aff3bab0ea2fe5e45c082 Mon Sep 17 00:00:00 2001
From: Peter Jones [EMAIL PROTECTED]
Date: Thu, 29 May 2008 21:22:59 -0600
Subject: [PATCH] Allow 'prefix' to be set on the command line

This patch allows you to:

  make install prefix=/some/path
---
 Makefile |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 35684f3..19fa9ca 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
 EMACS=emacs
 
 # Where local software is found
-prefix=/usr/local
+prefix?=/usr/local
 
 # Where local lisp files go.
 lispdir = $(prefix)/share/emacs/site-lisp
-- 
1.5.4.4


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


[Orgmode] Column view and hl-line-mode

2008-06-02 Thread Peter Jones
When using column view, I find it hard to visually follow a row across
its columns, to see which column values go with which to-do heading.
In other words, column view doesn't have any horizontal rules, so I
usually resort to placing my finger on the screen and running it
left-to-right to help line up rows and columns.

In the past I had used hl-line-mode to do this for me.  It made the
current row (line) a different color, thus making a single row stand
out from the others, allowing my eyes to correctly associate the
correct column data with the row of interest.

Of course, recent changes disabled the effects of hl-line-mode in
column view (and for good reason).

Would it be possible to make the row/line that point is on stand out,
either by alternating the row colors, or allowing something like
hl-line-mode to work in column view?

Thanks.

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Re: Additional Properties for Export

2008-05-20 Thread Peter Jones
Carsten Dominik [EMAIL PROTECTED] writes:
 Hi Peter, how do you export a single subtree?  If you do it by
 selecting the subtree as the region, then the headling of the subtree
 will become the title for export. - - - Actually, I just tried, and
 that does not work.  Bug is fixed now, in the git-repo.

I narrow to the subree.  I do wish it were a little easier to export a
subtree, because I have to ensure that nothing is folded after I
narrow to the subtree.

Thanks for adding EXPORT_TITLE.

 The EXPORT_OPTIONS property is a lot harder, can you motivate why and
 how you would want it?

A simple use case is the table of contents.  When exporting the entire
file I want a TOC.  When exporting a subtree, however, I don't.  This
feature isn't as important as the EXPORT_TITLE is.  If you want, I can
see if I can come up with a patch for it.

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Additional Properties for Export

2008-05-19 Thread Peter Jones
As you can tell from my recent questions, I've been doing a lot of
exporting from Org lately.  Here are a few things I'd like some
feedback on.

I would like to be able to set a TITLE property for a sub-tree, and
when I export just that sub-tree, the document title will be taken
from that property instead of the file global #+TITLE:.

Right now, when I export a sub-tree, I need to manually change the
#+TITLE: line so that the exported document will have an appropriate
title.

It would also be nice to have an OPTIONS property (or maybe
EXPORT_OPTIONS) where I could override the #+OPTIONS line for each
sub-tree.

Does this seem generally useful?

Here is an example document:

#+TITLE: Client Work

* Client A
** Project Foo Requirements
   :PROPERTIES:
   :ID:   a-foo
   :TITLE:Foo Application Requirements
   :COLUMNS:  %50ITEM(Task) %5Effort(Effort Estimate){:} %5TODO(State)
   :END:
*** DONE Feature 1
*** TODO Feature 2
** Project Bar Requirements
   :PROPERTIES:
   :ID:   a-bar
   :TITLE:Bar Application Requirements
   :COLUMNS:  %50ITEM(Task) %5Effort(Effort Estimate){:}
   :END:
*** TODO Feature 1
*** TODO Feature 2

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Re: Possible Bug in Table Calculations?

2008-05-16 Thread Peter Jones
Carsten Dominik [EMAIL PROTECTED] writes:
 Currently, Org uses cals with only 5 significant digits, this is the
 cause for this accuracy.  You can change this per equation by
 including something like n8 or f8 into the mode string, like

   @5$1=vsum(@[EMAIL PROTECTED]);n8%.2f

Ah, I totally glossed over the n8 format.  Thanks.

 Maybe I should actually do this by default.  Yes, I wil, do so.
 Better questions about too wide fields than inaccurate calculations.

I agree, and thanks!

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Possible Bug in Table Calculations?

2008-05-15 Thread Peter Jones
I'm probably just missing something, but...

Org Table:
|  Values |
|-|
|  568.68 |
|  599.32 |
|  140.16 |
| 1308.20 |
#+TBLFM: @5$1=vsum(@[EMAIL PROTECTED]);%.2f

Results from calc:
 568.68
 599.32
   + 1168.
 140.16
   + 1308.16

Is this some sort of rounding error?  What am I doing wrong?

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Re: Customizing HTML Export

2008-05-15 Thread Peter Jones
[EMAIL PROTECTED] (Joel J. Adamson) writes:
 The best thing to do is visit www.tug.org, get the Not So Short
 Introduction to LaTeX and read about it for a while.  There are tons of
 tutorials on the internet, and you'll find a lot of them at tug.org.
 Most TeX systems come with pdflatex, which directly produces pdf, with
 limitations (pdflatex can't use eps graphics, my preferred format, but
 must use png or gif --- someone please correct me if I'm wrong).  But
 for that you can just generate the dvi and then use dvipdf to get a
 pdf.  Again when I use my own fonts
 (\usepackage[garamond]{mathdesign}) then I get nice results with
 printing and pdf.  I used dvipng to produce this attachment.

Joel, thanks for the thorough response.  I'll definitely read the
tutorials at tug.org and make this happen, it's been a long time
coming.

Next time you come back home to Boulder for a vacation, I'll take you
out for a beer.

Thanks again.

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Re: Clock/add_time Format

2008-05-15 Thread Peter Jones
Carsten Dominik [EMAIL PROTECTED] writes:
 Sure please make the patch.

Attached.  At this point I've just created the patch.  I'll have some
time tomorrow to actually use it and see how it feels.

From 335a6fcaf50277e5f9362763bc21e6482af6fda6 Mon Sep 17 00:00:00 2001
From: Peter Jones [EMAIL PROTECTED]
Date: Thu, 15 May 2008 21:16:41 -0600
Subject: [PATCH] Add org-time-clocksum-format customize variable

Replace all occurrences of the format string %d:%02d with
org-time-clocksum-format, which contains the same string by default.

This allows anyone to customize the appearance of clock summaries.

For example:

  (setq org-time-clocksum-format %02d:%02d)
---
 lisp/org-clock.el  |6 +++---
 lisp/org-colview-xemacs.el |2 +-
 lisp/org-colview.el|2 +-
 lisp/org.el|8 +++-
 4 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index fe84167..089eb55 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -197,7 +197,7 @@ of a different task.)
 	 (h (floor delta 3600))
 	 (m (floor (- delta (* 3600 h)) 60)))
 (setq org-mode-line-string
-	  (propertize (format -[%d:%02d (%s)] h m org-clock-heading)
+	  (propertize (format (concat -[ org-time-clocksum-format  (%s)]) h m org-clock-heading)
 		  'help-echo Org-mode clock is running))
 (force-mode-line-update)))
 
@@ -375,7 +375,7 @@ If there is no running clock, throw an error, unless FAIL-QUIETLY is set.
 	(setq global-mode-string
 	  (delq 'org-mode-line-string global-mode-string))
 	(force-mode-line-update)
-	(message Clock stopped at %s after HH:MM = %d:%02d%s te h m
+	(message (concat Clock stopped at %s after HH:MM =  org-time-clocksum-format %s) te h m
 		 (if remove  = LINE REMOVED )))
 
 (defun org-clock-cancel ()
@@ -487,7 +487,7 @@ in the echo area.
 	(when org-remove-highlights-with-change
 	  (org-add-hook 'before-change-functions 'org-remove-clock-overlays
 			nil 'local
-(message Total file time: %d:%02d (%d hours and %d minutes) h m h m)))
+(message (concat Total file time:  org-time-clocksum-format  (%d hours and %d minutes)) h m h m)))
 
 (defvar org-clock-overlays nil)
 (make-variable-buffer-local 'org-clock-overlays)
diff --git a/lisp/org-colview-xemacs.el b/lisp/org-colview-xemacs.el
index cc32116..da5d837 100644
--- a/lisp/org-colview-xemacs.el
+++ b/lisp/org-colview-xemacs.el
@@ -1042,7 +1042,7 @@ Don't set this, this is meant for dynamic scoping.)
   (cond
((eq fmt 'add_times)
 (let* ((h (floor n)) (m (floor (+ 0.5 (* 60 (- n h))
-  (format %d:%02d h m)))
+  (format org-time-clocksum-format h m)))
((eq fmt 'checkbox)
 (cond ((= n (floor n)) [X])
 	  (( n 1.) [-])
diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index 5d3127a..9bad58b 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -837,7 +837,7 @@ Don't set this, this is meant for dynamic scoping.)
   (cond
((eq fmt 'add_times)
 (let* ((h (floor n)) (m (floor (+ 0.5 (* 60 (- n h))
-  (format %d:%02d h m)))
+  (format org-time-clocksum-format h m)))
((eq fmt 'checkbox)
 (cond ((= n (floor n)) [X])
 	  (( n 1.) [-])
diff --git a/lisp/org.el b/lisp/org.el
index 971e98c..ae0cfd9 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1598,6 +1598,12 @@ end of the second format.
 	(concat [ (substring f 1 -1) ])
   f)))
 
+(defcustom org-time-clocksum-format %d:%02d
+  The format string used when creating CLOCKSUM lines, or when
+org-mode generates a time duration.
+  :group 'org-time
+  :type 'string)
+  
 (defcustom org-deadline-warning-days 14
   No. of days before expiration during which a deadline becomes active.
 This variable governs the display in sparse trees and in the agenda.
@@ -11352,7 +11358,7 @@ If there is already a time stamp at the cursor position, update it.
   Compute H:MM from a number of minutes.
   (let ((h (/ m 60)))
 (setq m (- m (* 60 h)))
-(format %d:%02d h m)))
+(format org-time-clocksum-format h m)))
 
 (defun org-hh:mm-string-to-minutes (s)
   Convert a string H:MM to a number of minutes.
-- 
1.5.3.7


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


[Orgmode] Re: Restarting a CLOCK entry?

2008-05-14 Thread Peter Jones
Anupam Sengupta [EMAIL PROTECTED] writes:
 The botheration is really a nag in the sense that the mode-line does not 
 depict
 the correct elapsed time - I do use the mode line status (with other custom
 details) - and it will be nice to have the status line reflect the changes.

It would be pretty slick if you could just do a second C-c C-x C-i on
the heading, and org-mode did the right thing (restart/start the clock
using the incomplete clock line start time).

I've also found myself in situations where I've fat-fingered a few
things and ended up with an incomplete clock line and no clock
running.  It would be nice to just clock-in and fix it.  I usually
manually type the entire clock line, and then do a C-c C-y to have
org-mode calculate the duration.

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Re: Customizing HTML Export

2008-05-13 Thread Peter Jones
[EMAIL PROTECTED] (Joel J. Adamson) writes:
 I want you to know that LaTeX is worth it, in case you have yet to give
 it a fair shot.

I haven't given LaTex a fair shot yet, but it is the next technology
on my list of things to learn.

What I'm doing right now is using the HTML export from org-mode as a
way to generate requirements outlines for my clients.  I then use a
CSS file that I've written that makes the HTML look very nice so that
I can export it to PDF.

I realize that LaTex is a better way to go to PDF, but I do have some
concerns:

 1. A lot of software and configuration needs to be in-place to use
LaTex
 2. The default fonts used when converting LaTex to PDF are ugly, to
say the least
 3. HTML and CSS is much more accessible to me right now


Joel, want to point me in the right direction for learning LaTex and
producing nice looking PDF documents?

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Customizing HTML Export

2008-05-12 Thread Peter Jones
I'm trying to come up with the best way to insert author and date
information after the title h1 in an HTML export of a single org file.

This may seem silly, but I have a CSS file that turns the title h1 and
author info into a title page for printing.  I'm doing this as opposed
to using latex.

I could use the HTML preamble to insert the title h1 and author info
myself, but I'm not sure how to make the preamble dynamic enough to
capture the title of the page being exported since it can only be a
string.

Any suggestions?

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Re: Property for startup visibility?

2008-05-06 Thread Peter Jones
Richard KLINDA [EMAIL PROTECTED] writes:
 Hello, is there a property for setting the startup visibility (folden,
 children or subtree) of a tree?

Place this in your .org file.  I keep it near the top:

#+STARTUP: showall

Search the manual for startup for more options.

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Re: Release 6.02

2008-04-25 Thread Peter Jones
Carsten Dominik [EMAIL PROTECTED] writes:
 I think this property will become more special in the future, maybe
 using special commands to set the estimate without having to enter
 column view.  But you are quite right that not much special stuff
 happens right now with this property.

Thanks for the info Carsten.

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Re: Release 6.02

2008-04-24 Thread Peter Jones
Carsten Dominik [EMAIL PROTECTED] writes:
 The special property Effort can be used for effort estimates
 

 If you want to plan your work in a very detailed way, or if
 you need to produce offers with quotations of the estimated
 work effort, you may want to assign effort estimates to
 entries.  If you are also clocking your work, you may later
 want to compare the planned effort with the actual working
 time.  Effort estimates can now be stored in a special
 property `Effort', displayed side-to-side with clock sums,
 and also be summed over a day, in order to show the planned
 work load of a day.  See the manual for more details.

Carsten, I'm already using a property called Estimate that works
great, especially in column view.  What extra functionally would I get
by switching to this Effort property, or changing the
org-effort-property to work with my Estimate property?

Thanks.

-- 
Peter Jones, pmade inc.
http://pmade.com


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


[Orgmode] Re: Org and Muse

2008-04-21 Thread Peter Jones
Richard G Riley [EMAIL PROTECTED] writes:
 I just dug out some old Muse documents I had and am now wondering what
 overlap exists, if any, between Muse and Org. As a committed Org user
 should I migrate these Muse projects to Org projects?  Any thoughts
 appreciated. Possibly I have the wrong end of the stick with regard to
 org publishing and the two should live together?

I use both Org and Muse.  There is a bit of overlap, so sometimes it's
hard for me to choose one over the other when creating a new document.

I don't use org publishing, so that makes it a bit easier.  I use Org
for all my planning and time tracking, and Muse for any document that
I intend to publish and release to some sort of audience.

Muse projects and publishing styles are very powerful, along with a
very intuitive markup syntax.  That's why I prefer Muse over Org
publish.

But I can understand your desire to move all your old Muse documents
to Org.  At least once a day I think to myself how incredible Org is.
It's easily one of the best software packages I've ever used.

-- 
Peter Jones, pmade inc.
http://pmade.com


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