[Orgmode] Both todo and tag search

2010-06-17 Thread Chao Lu
Dear all,

For the custom agenda command, is it possible to define a search performing
both todo and tag search, for example, the items whose todo state is ACTIVE,
and the context(defined by tag) is Office?

Thanks!

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


Re: [Orgmode] Re: questions about html export

2010-06-17 Thread Mark Elston

Daniel,

I think the thread that Thomas is referring to is the one started
by Nicolas Goaziou regarding exportation to LaTeX.  He submitted
a patch but in his email he noted that the exportation to HTML is
still not working correctly for these cases.

However, he provided a clue as to what the problem might be so if
you were so inclined you could start there and look for an answer...

Mark

On 6/17/2010 6:32 PM, Daniel Mahler wrote:

On Fri, Jun 18, 2010 at 2:30 AM, Daniel Mahler  wrote:

Hi,

I have 2 issues with exporting

1. I would like html export to activate plain links



Ignore this, they are activated.


2. I would like to embed source blocks in numbered lists, without
breaking the numbering ie:

1) get ready
 #+BEGIN_SRC sh
get_ready
 #+END_SRC
2) go
 #+BEGIN_SRC sh
go
 #+END_SRC

currently the src blocks cause the numbering to reset, so all
items in a sequence like this are numbered 1


this is still an issue


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


Re: [Orgmode] Re: questions about html export

2010-06-17 Thread Thomas S. Dye

Aloha Daniel,

Good to hear you got the link problem worked out.

I believe your issue with lists was discussed recently on the mailing  
list.  I didn't follow that discussion closely and don't remember if  
it came to a resolution, but in the absence of a response from other  
list members more savvy than I am, you might want to look through the  
list archives:


http://lists.gnu.org/archive/html/emacs-orgmode/

Apologies for the rather weak reply.  I hope the recent list  
discussion has what you need.


Tom

On Jun 17, 2010, at 3:32 PM, Daniel Mahler wrote:

On Fri, Jun 18, 2010 at 2:30 AM, Daniel Mahler   
wrote:

Hi,

I have 2 issues with exporting

1. I would like html export to activate plain links



Ignore this, they are activated.


2. I would like to embed source blocks in numbered lists, without
breaking the numbering ie:

   1) get ready
#+BEGIN_SRC sh
   get_ready
#+END_SRC
   2) go
#+BEGIN_SRC sh
   go
#+END_SRC

   currently the src blocks cause the numbering to reset, so all
items in a sequence like this are numbered 1


this is still an issue


thanks
Daniel



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


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


[Orgmode] Re: questions about html export

2010-06-17 Thread Daniel Mahler
On Fri, Jun 18, 2010 at 2:30 AM, Daniel Mahler  wrote:
> Hi,
>
> I have 2 issues with exporting
>
> 1. I would like html export to activate plain links


Ignore this, they are activated.

> 2. I would like to embed source blocks in numbered lists, without
> breaking the numbering ie:
>
>    1) get ready
>     #+BEGIN_SRC sh
>    get_ready
>     #+END_SRC
>    2) go
>     #+BEGIN_SRC sh
>    go
>     #+END_SRC
>
>    currently the src blocks cause the numbering to reset, so all
> items in a sequence like this are numbered 1

this is still an issue

> thanks
> Daniel
>

___
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] questions about html export

2010-06-17 Thread Daniel Mahler
Hi,

I have 2 issues with exporting

1. I would like html export to activate plain links

2. I would like to embed source blocks in numbered lists, without
breaking the numbering ie:

1) get ready
 #+BEGIN_SRC sh
get_ready
 #+END_SRC
2) go
 #+BEGIN_SRC sh
go
 #+END_SRC

currently the src blocks cause the numbering to reset, so all
items in a sequence like this are numbered 1

thanks
Daniel

___
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] Estimate ranges in column view

2010-06-17 Thread Mike Gauland
When planning my work, I estimate the effort required as a range, rather than a
single value. That is, instead of estimating a certain task will take 4 days,
I'll use a range of 3-5 days. If I'm a bit less confident I know how long it
will take, I'll use a wider range (e.g., 2-6 days).  

When I first started doing this, I switched from using a single 'Effort' column
in org mode, to two columns (Effort_Low and Effort_High), simply summing each
column to get an estimate for a composite task.  However, this magnifies the
level of uncertainty in the estimate. The final 'Effort_Low' value tells me what
to expect if everything goes optimally; 'Effort_High' provides the extremely
pessimistic view.

More realistic summaries come from considering the range of each pair, using the
combined statistical variance in each (low, high) pair to determine the variance
in the final value. This is the method used by LiquidPlanner, for example.

I've been mucking about with org-colview.el to automate this calculation for me,
and am quite pleased with the results so far. I've approached this by adding a
new summary type ("est") to org-columns-compile-map, and extending
org-columns-number-to-string and org-columns-string-to-number to convert ranges
to and from strings. This lets me populate an 'Estimates' column with values
such as "[2 4]", and specify a summary type "est" to have the algorithm
described above used to produce the final estimates.

I have two questions for the list:

  1. Is this the right approach, or should I change the behaviour of the
existing EFFORT property?
  2. Is this something others would find useful?

Thanks,
Mike



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


[Orgmode] Re: [babel] exports, caching, remote execution

2010-06-17 Thread Austin Frank
Eric--

Thanks for the reply.

On Thu, Jun 17 2010, Eric Schulte wrote:

> I believe the exporter does respect caching, the following minimal
> example worked (i.e. was not re-run) for me on export to html.  Could
> you provide an example that demonstrates the problem?

Yes, I'll keep an eye on this and try to narrow it down to an example if
I can.

> Not that I'm currently aware of.  Dan has handled most of the remote
> execution work so he may know more than me in this regard.

And thanks to him for that!  I tipped him off to using TRAMP with ESS,
and he took it and ran further than I ever hoped!

> Is "scpc" in the line above a transport protocol?

Yes, it is scp over an existing ssh connection.  The following org-style
link goes to the relevant info page.

[[info:tramp:External%20methods][info:tramp:External methods]]

> Maybe this should be an org-mode wide features, i.e. the ability to
> resolve remote file references with C-c C-o and on export.  Does that
> sound reasonable, and would it take care of the need in this
> particular case?

C-c C-o actually works!  I was extremely encouraged to see this, and it
got my hopes up for export =)

If remote file references could be resolved during export, that would be
ideal.

> A block like the following may be an acceptable workaround in the near
> term (notice I named your block above).
>
> #+begin_src sh :file test.png :var remote=rplot :exports results
>   scp $remote ./test.png
> #+end_src

Nice suggestions, I'll try it later today.

Thanks,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgpUhoMm4Ichl.pgp
Description: PGP signature
___
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: add a table entry by org-remember template

2010-06-17 Thread Matt Lundin
zwz  writes:

> Matt Lundin  writes:
>
>> zwz  writes:
>>
>>> AFAIK, it is now impossible to add a table entry by org-template.
>>> But I think it is very useful. For example,
>>> in my private.org, there is a section
>>>
>>> * Contacts
>>>   | name | tel. | email   | addr  |
>>>   |--+--+-+---|
>>>   | A|   12 | a...@a.com | somewhere |
>>>   
>>>
>>> If it is feasible with such a template  
>>> ("Contact" ?c "| %^{Name} | %^{tel} | %^{email} | %^{addr} |\n"
>>> "~/private.org" "Contacts")
>>> to add new contacts, it would be very nice to organize (e.g. sort) all
>>> the contacts based on org-table.
>>
>> One solution would be to use properties to store contact information:
>
> Yes, this is how I am doing now.
> I forgot the "column view" thing. :)
>
> BTW, how to sort the headings (names) by the properties?

Typing C-c ^ r will prompt you for a property. If you are above the
first headline, all first level headlines will be sorted. If you are on
a headline, all subheadings will be sorted.

> and what is dblocks?

Sorry for the shorthand. Dynamic blocks can be used to refresh "dynamic"
information (such as a table generated from properties) within an org
file.

> Are they mentioned in the manual?

- (info "(org) Dynamic blocks")
- (info "(org) Capturing column view")

Best,
Matt


___
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: Multiple TODO states

2010-06-17 Thread Bernt Hansen
Chao Lu  writes:

> I'm wondering if it is possible for an item to have multiple todo state, like:
>   Physics:    ACTIVE MOBILE Quantum optics   
> :Optics::Video:MITC:ACTIVE:
>    
> --TODO   
> -TAG
>
> For I defined a todo sequence like:
>
> (sequence "QUEUE(q)" "NEXT(n)" "ACTIVE(a)" "|" "DONE(d)")
>
> to indicate the state of task.
>
> However I also prefer to have some context with them, so I defined
> more todo state:
>
>               (sequence "MOBILE" "|")
>               (sequence "AUDIO" "|")
>               (sequence "CAR" "|")
>               (sequence "TIMEBOX" "|")
>               (sequence "RECUR-DAILY" "|")
>               (sequence "RECUR-DUALLY" "|")
>               (sequence "RECUR-TRIPLY" "|")
>               (sequence "RECUR-WEEKLY" "|")
>
> But seems Org refuse to put multiple todo state on the same item.
>
> And the reason I do not like to put these context into tag, is that I
> think these contexts are related to how I finish things, but the tags
> like "Math Physics" is more about the content of the item.
>
> So anyone has suggestions?

Multiple simultaneous TODO states are currently not supported.
You should add extra context information as tags instead.

Tags are normally used for context.

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


Re: [Orgmode] mobileorg new user report

2010-06-17 Thread Matthew Jones
Hey Greg, thanks for this report.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Thu, Jun 17, 2010 at 1:27 PM, Greg Troxel  wrote:

>
> I just started using Org mode and MobileOrg and have a few comments.
> First, thanks to everyone who's written/etc. org - it's nice to step
> into already-baked software.
>
> * Mobileorg
>
> ** removed files
>
> I had a foo.org that I pushed with others, and then deleted, and it
> didn't go away from my phone.  Even when I rm'd from webdav it didn't go
> away.  I may have done this wrong, but it would be nice if this were
> easier.
>
> ** last update
> It would be nice if the home screen showed the time of last sync.
>
> ** mobileorg.org location (I use ~/ORG instead of ~/org)
> This should probably be:
>  (setq org-mobile-inbox-for-pull (concat org-directory "/from-mobile.org
> "))
> instead of
>  "~/org/from-mobile.org"
>
> I realize org-directory is only for remember right now, but it seems
> like it should be more of a global concept.
>
> ** multiple accounts
>
> I try to keep work and personal things separate, so I expect to have two
> parallel org setups, one on a work machine and one on a personal
> machine.  That works fine with org, but I'd like to use mobileorg with
> both (on one phone).  Richard is graciously helping me out with a
> workaround, but I wanted to throw out the concept of mobileorg and the
> forthcoming android version having multiple accounts (like Mail does).
>
> Or perhaps multiple orgs could push/pull to one directory, but then the
> mobileorg.org journal has entries for both and it's probably too much of
> a mess.  And I'd like to be able to let colleagues look at some work org
> things without risking exposing personal org things.
>
> * org proper
>
> ** refiling
>
> I figured this out for refiling, and found it hard to follow list, cons
> cell, etc. even though I like lisp.  Adding the following as an example
> in the docmentation of org-refile-targets would help.  It could also be
> the default - for me refiling is used to put phone- or remember-generate
> entries where they belong, not to move things around in a file.
>
> ; refiling
> (setq org-refile-targets '((org-agenda-files . (:maxlevel . 4
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] mobileorg new user report

2010-06-17 Thread Greg Troxel

I just started using Org mode and MobileOrg and have a few comments.
First, thanks to everyone who's written/etc. org - it's nice to step
into already-baked software.

* Mobileorg

** removed files

I had a foo.org that I pushed with others, and then deleted, and it
didn't go away from my phone.  Even when I rm'd from webdav it didn't go
away.  I may have done this wrong, but it would be nice if this were
easier.

** last update
It would be nice if the home screen showed the time of last sync.

** mobileorg.org location (I use ~/ORG instead of ~/org)
This should probably be:
  (setq org-mobile-inbox-for-pull (concat org-directory "/from-mobile.org"))
instead of
  "~/org/from-mobile.org"

I realize org-directory is only for remember right now, but it seems
like it should be more of a global concept.

** multiple accounts

I try to keep work and personal things separate, so I expect to have two
parallel org setups, one on a work machine and one on a personal
machine.  That works fine with org, but I'd like to use mobileorg with
both (on one phone).  Richard is graciously helping me out with a
workaround, but I wanted to throw out the concept of mobileorg and the
forthcoming android version having multiple accounts (like Mail does).

Or perhaps multiple orgs could push/pull to one directory, but then the
mobileorg.org journal has entries for both and it's probably too much of
a mess.  And I'd like to be able to let colleagues look at some work org
things without risking exposing personal org things.

* org proper

** refiling

I figured this out for refiling, and found it hard to follow list, cons
cell, etc. even though I like lisp.  Adding the following as an example
in the docmentation of org-refile-targets would help.  It could also be
the default - for me refiling is used to put phone- or remember-generate
entries where they belong, not to move things around in a file.

; refiling
(setq org-refile-targets '((org-agenda-files . (:maxlevel . 4


pgpiluEFcrBPp.pgp
Description: PGP signature
___
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: [mobileorg] Android sync failed

2010-06-17 Thread Erik L. Arneson
Torsten Wagner  writes:
> As for the error message and my problem it might be a problem within
> org.el suggested in the thread
>
> "[Orgmode] org-mobile-push error with no headings" from Erik
>
> Thus, maybe you are totally innocent. ;)

I still haven't had time to track down what's causing the error, but
suffice to say that the org-mode upgrade somehow broke `org-mobile-push'
and I haven't been able to use MobileOrg for a week or so now.

I'd grumble, but instead I should track down the bug.  Maybe tomorrow!

-- 
Erik Arneson 
  GPG Key ID: 1024D/62DA1D25
  Office: +1.541.291.9776
  Skype: callto://pymander


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


Re: [Orgmode] Re: [mobileorg] Android sync failed

2010-06-17 Thread Matthew Jones
That's really odd looking... my index.org file looks different:

* [[file:agendas.org][Agenda Views]]
* [[file:notes.org][notes.org]]

So I'm guessing that would be your problem

I use emacs of course to write my code but I don't do anything with android
through emacs... I just stick to the command line tools that ship with the
SDK.   Right now I'm focusing on Synchronization and gaining the ability to
edit the contents of files... I guess the biggest weakness in the system
right now is the user experience and general look and feel, if you are
looking for some way to help out :)

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Wed, Jun 16, 2010 at 10:26 PM, Torsten Wagner
wrote:

> Hi Matthew,
>
> the content of my index.org looks like this
>
> [[work.org]]
> [[agendas.org]]
>
> guess rather standard and normal
>
> I will check further about possible errors. As I said, I pushed a lot of
> buttons and turned a lot of knobs. Maybe one did create another problem
> now.
>
> As for the error message and my problem it might be a problem within
> org.el suggested in the thread
>
> "[Orgmode] org-mobile-push error with no headings" from Erik
>
> Thus, maybe you are totally innocent. ;)
>
> BTW., I cloned the android client sources. I'm always short in time and
> my Java knowledge is a bit rusty but since I like to learn about the
> android internals and since orgmobile on android is the most interesting
> topic for me I thought I can give you some assistance. If there is any
> task you like to see performed, please let me know.
>
>
> Thanks for helping
>
> Totti
>
> CC. Which envrionment did you use to develop the android client? I hope
> and guess it was based around the emacs editor. Do you have any good
> sources how to set-up emacs for android dev?
>
>
>
> On 06/17/2010 10:35 AM, Matthew Jones wrote:
> > Hi Torsten, the issue with https appears to be within Android, I have
> > waited too long to add that information to the wiki so I'll do it now.
> > Can you give me an example of the index.org  file that
> > was generated by org-mobile-push (or is it empty due to the error
> > message from the push?) that should help in determining why nothing
> > comes up.
> >
> > 73,
> > Matthew W. Jones (KI4ZIB)
> > http://matburt.net
> >
> >
> > On Wed, Jun 16, 2010 at 9:14 PM, Torsten Wagner
> > mailto:torsten.wag...@gmail.com>> wrote:
> >
> > Dear Holger,
> >
> > > I remember having to fiddle a little until I got it working - but
> > > nothing bad.
> > Thanks for the answer. I tried again and the only differences (beside
> of
> > different server), I saw in your and in my own set-up was the usage
> of
> > https vs. http. I tried to use http know and it seems to sync (at
> least
> > there is no error message). However, after that all I have is just a
> > empty screen. Files on webdav are not empty ;).
> > I will check again maybe I just created some error during testing and
> > fiddeling.
> >
> > Can someone confirm that the present mobileorg work or cannot work
> with
> > https?
> >
> > Furthermore, another thing I noticed, when I fire-up org-mobile-push,
> I
> > get the following message-log:
> >
> > Agenda written to Org file /home/torsten/org/mobileorg/agendas.org
> > 
> > Creating agendas...done
> > Saving all Org-mode buffers...
> > (No files need saving)
> > Saving all Org-mode buffers... done
> > Copying files...
> > OVERVIEW
> > (No changes need to be saved)
> > Writing index file...
> > byte-code: Wrong type argument: listp, "TODO"
> >
> > as you can see there seems to be an problem within the index-file.
> > Any idea what is going wrong there ?
> >
> >
> > Thanks for helping
> >
> > Totti
> >
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org 
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
> >
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Multiple TODO states

2010-06-17 Thread Chao Lu
Dear all,

I'm wondering if it is possible for an item to have multiple todo state,
like:
  Physics:*ACTIVE* *MOBILE* Quantum optics   *
:Optics::Video:MITC:ACTIVE:*

--TODO
-TAG

For I defined a todo sequence like:

(sequence "QUEUE(q)" "NEXT(n)" "ACTIVE(a)" "|" "DONE(d)")

to indicate the state of task.

However I also prefer to have some context with them, so I defined more todo
state:

  (sequence "MOBILE" "|")
  (sequence "AUDIO" "|")
  (sequence "CAR" "|")
  (sequence "TIMEBOX" "|")
  (sequence "RECUR-DAILY" "|")
  (sequence "RECUR-DUALLY" "|")
  (sequence "RECUR-TRIPLY" "|")
  (sequence "RECUR-WEEKLY" "|")

But seems Org refuse to put multiple todo state on the same item.

And the reason I do not like to put these context into tag, is that I think
these contexts are related to how I finish things, but the tags like "Math
Physics" is more about the content of the item.

So anyone has suggestions?

Thanks,

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


Re: [Orgmode] [babel] exports, caching, remote execution

2010-06-17 Thread Eric Schulte
Hi Austin,

Austin Frank  writes:

> Hey all--
>
> Two (hopefully quick) questions:
>
> 1) Does the exporter respect the :cache argument?  When I evaluate a
>buffer, I can tell that cached blocks are not re-run, as expected.
>When I export to \LaTeX or PDF, it seems that all blocks in the file
>are re-run.  Is there a way to force the exporter to respect caching?
>

I believe the exporter does respect caching, the following minimal
example worked (i.e. was not re-run) for me on export to html.  Could
you provide an example that demonstrates the problem?

--8<---cut here---start->8---
** cache on export
do we export cached blocks

#+begin_src sh :cache yes :exports results
  date
#+end_src

#+results[06ed73c6d8d022cf9c323d92af885952865add17]:
: Thu Jun 17 07:35:19 PDT 2010
--8<---cut here---end--->8---

>
> 2) Is there a way to generate graphical output on a remote host and
>still have it included in export?

Not that I'm currently aware of.  Dan has handled most of the remote
execution work so he may know more than me in this regard.

>A block like
>
>#+source: rplot
>#+BEGIN_SRC R :exports results :dir /u...@example.com: :file test.png
>plot(my-object)
>#+END_SRC
>
>Gives me
>
>#+results:
>[[file:/scpc:u...@example.com:/users/home/user/test.png]]
>

Is "scpc" in the line above a transport protocol?  Maybe this should be
an org-mode wide features, i.e. the ability to resolve remote file
references with C-c C-o and on export.  Does that sound reasonable, and
would it take care of the need in this particular case?

>
>When I export to latex or pdf, the graphic isn't included because
>the file for export is local but the graphic is remote.  Is there a
>way to include remotely generated graphics in a locally exported
>file?  Something like downloading via scp before exporting?
>

A block like the following may be an acceptable workaround in the near
term (notice I named your block above).

#+begin_src sh :file test.png :var remote=rplot :exports results
  scp $remote ./test.png
#+end_src

>
>
> Thanks for any help,
> /au

Thanks -- Eric

___
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: add a table entry by org-remember template

2010-06-17 Thread zwz
Matt Lundin  writes:

> zwz  writes:
>
>> AFAIK, it is now impossible to add a table entry by org-template.
>> But I think it is very useful. For example,
>> in my private.org, there is a section
>>
>> * Contacts
>>   | name | tel. | email   | addr  |
>>   |--+--+-+---|
>>   | A|   12 | a...@a.com | somewhere |
>>   
>>
>> If it is feasible with such a template  
>> ("Contact" ?c "| %^{Name} | %^{tel} | %^{email} | %^{addr} |\n"
>> "~/private.org" "Contacts")
>> to add new contacts, it would be very nice to organize (e.g. sort) all
>> the contacts based on org-table.
>
> One solution would be to use properties to store contact information:
>
> * Name
>   :PROPERTIES:
>   :NAME: A
>   :TEL:  12
>   :EMAIL:a...@a.com
>   :ADDR: somewhere
>   :END:
>
> It would be easy to set up a remember template to capture such
> information. You could then sort all the headings in the contacts file
> by property. And there are other advantages. You could view the
> information in contact view or capture it (or a subset) in tables using
> dblocks. You could add notes and additional metadata to each contact.
> And you could access this data in other emacs modes by using org's
> APIs.  
>
>  - (info "(org) Using the property API")
>  - (info "(org) Using the mapping API")
>
> HTH,
> Matt
>
Yes, this is how I am doing now.
I forgot the "column view" thing. :)

BTW, how to sort the headings (names) by the properties?
and what is dblocks?
Are they mentioned in the manual?


___
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: add a table entry by org-remember template

2010-06-17 Thread Matt Lundin
zwz  writes:

> AFAIK, it is now impossible to add a table entry by org-template.
> But I think it is very useful. For example,
> in my private.org, there is a section
>
> * Contacts
>   | name | tel. | email   | addr  |
>   |--+--+-+---|
>   | A|   12 | a...@a.com | somewhere |
>   
>
> If it is feasible with such a template  
> ("Contact" ?c "| %^{Name} | %^{tel} | %^{email} | %^{addr} |\n"
> "~/private.org" "Contacts")
> to add new contacts, it would be very nice to organize (e.g. sort) all
> the contacts based on org-table.

One solution would be to use properties to store contact information:

--8<---cut here---start->8---
* Name
  :PROPERTIES:
  :NAME: A
  :TEL:  12
  :EMAIL:a...@a.com
  :ADDR: somewhere
  :END:
--8<---cut here---end--->8---

It would be easy to set up a remember template to capture such
information. You could then sort all the headings in the contacts file
by property. And there are other advantages. You could view the
information in contact view or capture it (or a subset) in tables using
dblocks. You could add notes and additional metadata to each contact.
And you could access this data in other emacs modes by using org's
APIs.  

 - (info "(org) Using the property API")
 - (info "(org) Using the mapping API")

HTH,
Matt

___
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] jumping in custom agenda view loses settings

2010-06-17 Thread Eric S Fraga
Hello,

I have created a simple custom agenda view that restricts the items to
consider to those from just two files:

--8<---cut here---start->8---
(setq org-agenda-custom-commands '(("d" agenda "Only items from todo and diary"
((org-agenda-files '("~/git/notes/diary.org" "~/git/notes/tasks.org"))
 (agenda))
)))
--8<---cut here---end--->8---

Dispatching this using "C-c a d" works just fine and moving within this
view using 'f' and 'p' also works; however, jumping using 'j' from
within the agenda view causes the agenda display to revert to the
default settings as if I had invoked it initially with "C-c a a".

Is there any way to jump from one date to another in a custom agenda
view?  Or am I trying to achieve something outside the planned use
cases for custom agenda views?

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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: [PATCH] Call `start-process-shell-command' with just 3 arguments.

2010-06-17 Thread Christian Egli
Hi David


David Maus  writes:

> * org-taskjuggler.el (org-export-as-taskjuggler-and-open):
>   Call `start-process-shell-command' with 3 arguments.
>   Passing more than 3 arguments is strongly discouraged.  See
>   docstring of `start-process-shell-command'.

Excellent, thanks for this patch. That is an elegant solution, it
should also work in older Emacsen. I was going to do it in a more
complicated way, querying for Emacs versions, etc.

There is one little nit though:

> -(start-process-shell-command command nil command file-name)))
> +  (let* ((file-name (buffer-file-name (org-export-as-taskjuggler)))
> +  (command (concat "TaskJugglerUI " file-name)))
> +(start-process-shell-command command nil command)))

The first argument to start-process-shell-command is the name for the
process. I guess it would be nicer if this name didn't contain the
filename. So maybe something along the following would be nicer:

  (let* ((file-name (buffer-file-name (org-export-as-taskjuggler)))
 (process-name "TaskJugglerUI")
 (command (concat process-name " " file-name)))
(start-process-shell-command process-name nil command)))

I just checked in a patch to that effect in the taskjuggler-export
branch. Also a patch is attached.

Thanks
Christian

>From 2a52eea0d0d20bfcf68375b3aa2fe5bdf402e2d3 Mon Sep 17 00:00:00 2001
From: Christian Egli 
Date: Thu, 17 Jun 2010 10:37:59 +0200
Subject: [PATCH] Change invocation of start-process-shell-command to avoid warnings

Newer Emacsen changed the API of start-process-shell-command and issue
a warning if called with more than 3 args.
---
 lisp/ChangeLog  |6 ++
 lisp/org-taskjuggler.el |7 ---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d351a8a..f3ca66c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-17  Christian Egli  
+
+	* org-taskjuggler.el (org-export-as-taskjuggler-and-open): Fix
+	the invocation of start-process-shell-command to avoid
+	warnings in newer Emacsen
+
 2010-06-08  Christian Egli  
 
 	* org-taskjuggler.el (org-export-taskjuggler-old-level):
diff --git a/lisp/org-taskjuggler.el b/lisp/org-taskjuggler.el
index f64138e..01bfc47 100644
--- a/lisp/org-taskjuggler.el
+++ b/lisp/org-taskjuggler.el
@@ -326,9 +326,10 @@ defined in `org-export-taskjuggler-default-reports'."
   "Export the current buffer as a TaskJuggler file and open it
 with the TaskJuggler GUI."
   (interactive)
-  (let ((file-name (buffer-file-name (org-export-as-taskjuggler)))
-	(command "TaskJugglerUI"))
-(start-process-shell-command command nil command file-name)))
+  (let* ((file-name (buffer-file-name (org-export-as-taskjuggler)))
+	 (process-name "TaskJugglerUI")
+	 (command (concat process-name " " file-name)))
+(start-process-shell-command process-name nil command)))
 
 (defun org-taskjuggler-parent-is-ordered-p ()
   "Return true if the parent of the current node has a property
-- 
1.7.0.4


-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland
___
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] Verbatim LaTeX inside delimiters in HTML export with jsMath?

2010-06-17 Thread Christian Moe

Hi,

To display LaTeX math in Org html export with lovely jsMath, it must be
exported verbatim with

  #+OPTIONS: ^:nil TeX:nil

so one cannot use lazy superscripts/subscripts or Org entities in the 
rest of the text.


Is there a simple way to turn these options on, but protect LaTeX where
it appears *inside math delimiters* so it's exported verbatim? I.e.
inside $...$, $$...$$, \( ... \), \[ ... \], \begin ... \end ?

I ask because I'm keeping a note file with much text and only a few 
equations, but with frequent reference to e.g. CO_2 and m^2. It's 
possible to always write $CO_2$ and $m^2$, but less readable, and 
irksome when you've got used to an easier way. An inline formula can be 
protected by surrounding it with verbatim markup, =$...$=, but then it's 
only good for jsMath, not for LaTeX export.


Yours,
Christian

___
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] add a table entry by org-remember template

2010-06-17 Thread zwz
AFAIK, it is now impossible to add a table entry by org-template.
But I think it is very useful. For example,
in my private.org, there is a section

* Contacts
  | name | tel. | email   | addr  |
  |--+--+-+---|
  | A|   12 | a...@a.com | somewhere |
  

If it is feasible with such a template  
("Contact" ?c "| %^{Name} | %^{tel} | %^{email} | %^{addr} |\n"
"~/private.org" "Contacts")
to add new contacts, it would be very nice to organize (e.g. sort) all
the contacts based on org-table.


___
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