Re: [Orgmode] Re: Filter scheduled items

2010-10-01 Thread Matt Lundin
Jeff Horn jrhorn...@gmail.com writes:

 I meant in particular whether there was a built-in agenda view for
 *unscheduled* items.


With the following setting...

(setq org-agenda-todo-ignore-scheduled t)

...org-todo-list (C-c a t) will show only unscheduled todos.

If you don't want the setting above to apply globally, you could bind it
to a custom command:

(add-to-list 'org-agenda-custom-commands
 '(u Unscheduled todo 
   ((org-agenda-todo-ignore-scheduled t

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: How do I convert org to OpenOffice?

2010-09-30 Thread Matt Lundin
Lennart Borgman lennart.borg...@gmail.com writes:

 There is a way, isn't there? ;-)

I've had great success with LaTeX2rtf (i..e, org-LaTeX-rtf). As long
as you are not using too many exotic packages, it works like a charm.

The website indicates that there are Windows binaries available:

http://latex2rtf.sourceforge.net/
http://sourceforge.net/projects/latex2rtf/files/

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: How do I convert org to OpenOffice?

2010-09-30 Thread Matt Lundin
Christian Egli christian.e...@sbszh.ch writes:

 Matt Lundin m...@imapmail.org writes:

 Lennart Borgman lennart.borg...@gmail.com writes:

 There is a way, isn't there? ;-)

 I've had great success with LaTeX2rtf (i..e, org-LaTeX-rtf). As long
 as you are not using too many exotic packages, it works like a charm.

 It works fairly well with LaTeX2rtf. Cross references didn't work
 though.

The manual suggests that cross-references work, but that their
functionality depends on the office suite:

http://latex2rtf.sourceforge.net/docu_1_9_14.html#Cross%20References

I've found both section references and page references to work well with
Open Office. 

 A colleague just showed me PyODConverter[1] which seems to be some kind
 of command line remote control for OO.o. So what you do is to export org
 to html and then use PyODConverter to convert html to doc. According to
 him it works well.

Thanks for pointing this out.

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: Filter scheduled items

2010-09-30 Thread Matt Lundin
Marcelo de Moraes Serpa celose...@gmail.com writes:

 Hmm, org actually does this already.

 The problem is that I was filtering by TODO items, and the scheduled
 item was the parent of two TODO items (A non-TODO item tagged as
 PROJECT).

 So now I guess the question is:
 Can I make sub-items inherit the schedule information?

Yes, by using org-use-property-inheritance. This works when doing a
property search, so you'll have to use tags-todo.

Does this custom command accomplish what you are looking for?

--8---cut here---start-8---
(add-to-list 'org-agenda-custom-commands
 ;; a todo list with no future items and inherited scheduling info
 '(x No future items tags-todo +SCHEDULED=\today\/!+TODO
   ((org-use-property-inheritance '(SCHEDULED)
--8---cut here---end---8---

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: Projects+Next Actions view

2010-09-30 Thread Matt Lundin
Marcelo de Moraes Serpa celose...@gmail.com writes:

 Another thing that I like about Things
 (http://culturedcode.com/things/) is the Next Actions view. It
 basically lists all projects plus the very first next action for each
 of them. When you need some perspective, having quick access to a view
 like this is very useful. It also shows any orphan tasks (tasks that
 don't belong to a project), so you have a nice overview of what you
 can do based on your own input.

 With org, I have created a Projects view, a tags agenda filter
 filtering for non-todo items. I could use follow mode, which is quite
 useful, but doesn't give the same uncluttered view Things does with
 its next actions view. I was wondering if it would be possible, even
 if more elisp would be needed, to create a view like this?

 E.x:

 * Keep the cat alive :PROJECT:HOME:
  ** TODO Feed the cat
   ...

 * Feature 2 :PROJECT:FEATURE:
 ** TODO Run the script
  ...


You could use a sparse tree view:

(add-to-list 'org-agenda-custom-commands
 '(x PROJECT+N/A tags-tree PROJECT|TODO=\TODO\
   ((org-show-siblings nil)
(org-show-entry-below nil

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: Fixing slowness of following Gnus links to IMAP articles

2010-09-30 Thread Matt Lundin
Hi David,

David Maus dm...@ictsoc.de writes:

 Sébastien Vauban wrote:
Hi David,

David Maus wrote:
 Sébastien Vauban wrote:
 it just perfectly *works*!  Great, great feature... Thanks a lot.

 Sweet!

I must add that 14 seconds is the average time for my huge folder. For folder
of more traditional sizes (less emails), it's more or less instantaneous...

 I suppose (from the timing of the functions) that what takes that long
 is Gnus building the view of the folder.

 Just pushed to master.


This commit is incompatible with development Gnus (and, therefore, the
Gnus that will be released with Emacs 24). Going forward, nnimap.el no
longer has the function nnimap-group-overview-filename. Thus, with the
default settings and development gnus, org-follow-link fails on gnus
links to imap links.

For the time being, could we set the default value of
org-gnus-nnimap-query-article-no-from-file to nil? This would allow
users of Courier servers and Emacs 23 to gain the speed benefits without
causing unexpected problems for users of development Gnus.

For reference, here are the full commit details:

--8---cut here---start-8---
commit 6d7b15cf9ff4025c2670e48c08f52e12a8b5928b
Author: David Maus dm...@ictsoc.de
Date:   Thu Sep 9 14:16:22 2010 +0200

Mitigate access to messages on slow IMAP servers.

* org-gnus.el (org-gnus-nnimap-query-article-no-from-file): New
customization variable.
(org-gnus-nnimap-cached-article-number): New function.
(org-gnus-follow-link): Try to fetch cached article number of
message-id.

Some IMAP servers (e.g. Courier) are slow when searching for a message
by its message id header field.  Because article numbers in IMAP
mailboxes are persistent UIDs, we can try to look up the UID of a IMAP
message in Gnus' cache for the mailbox in question and skip the slow
search on the server.

The problem with slow server was reported by S?bastien Vauban and the
patch is based on the work of Tassilo Horn.
--8---cut here---end---8---

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: Having (too) many files in org-agenda-files

2010-09-29 Thread Matt Lundin
Hi Sebastian, 

I wrote this response yesterday, but it may have gotten lost in gmane's
reverse obfuscation system for email addresses. :)

(OT: Is there a correct way to respond to your messages in gnus? I
subscribe to org-mode via gmane/nntp and in your emails the org-mode ML
address is obfuscated and redirected:
emacs-orgmode-mXXj517/z...@public.gmane.org.)

-

Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org
writes:

 Of course, I have many, many files in Org mode. All files I write (or
 touch) in fact.

 Of course, I would like to search through my files at some point in time.
 I even would like to search through your files at some point in time, I mean
 through =org-mode/contrib/babel= and =Worg= for example.


The drawback of org-mode's plain text format is that org-mode needs to
load, parse, and fontify, and preserve in memory all files it queries
(i.e., agenda files). Too many agenda files can thus cause a pretty big
performance hit (both when loading agenda files and constructing agenda
views). To avoid this, I would recommend including only important files
in org-agenda-files. Possible solutions for searching other files
include:

1. loading the other directories when needed (e.g., through a function
   that changes the value of org-agenda-files)
2. using the variable org-agenda-text-search-extra-files (see below)
3. searching other directories with external tools (grep, perl script,
   etc.)

 The problem is the load-time of my Emacs, now:

 Emacs Init startup time: 221 seconds.

Do you invoke an agenda command in your emacs, such as
org-agenda-to-appt? That would cause org-mode to load all org files.

 coming from 20 seconds before the heavy use of Org...

 with tens of times such lines in my *Messages* buffer:

 OVERVIEW
 Checking for library `filladapt'...
 +- Requiring `filladapt' (already loaded)
 Checking for library `filladapt'... Found
 Fontifying Axa.org... (regexps)
 Checking for library `filladapt'... Found
 Fontifying Axa.org... (regexps.)
 Checking for library `filladapt'... Found
 Fontifying Axa.org... (regexps..)
 Checking for library `filladapt'... Found
 +- Requiring `outline-mode-easy-bindings' (already loaded)
 +- Requiring `ispell' (already loaded)
 Evaluate code AFTER HAVING LOADED `flyspell'... [2 times]
 Starting new Ispell process [en_US] ...
 Checking for library `filladapt'...
 +- Requiring `filladapt' (already loaded)
 Checking for library `filladapt'... Found

It seems that filladapt is causing some of the verbosity (and possible
slowness) there. When loading agenda files, my *Messages* buffer only
shows:

OVERVIEW [29 times]

 You'll tell me: not a problem, you do that only once a day, and you
 use Emacs client/server for the rest of the time. True. A bit, because
 I sometimes have to restart Emacs for testing a fresh one (not
 impacted by defvars already defined, or deffaces, etc.).

 Having to wait almost 4 minutes is a real pain. So, here my
 comments/questions:

 - Isn't it possible to delay the fontification/ispell/etc. to when we really
   display (i.e., pop up) the buffer?  I guess this must be a major component
   of the time this takes.

I imagine the fontification is necessary for the agenda to function
properly. Thus, org files are parsed en masse when the agenda is called
for the first time. (Hence my question about whether you were calling
the agenda from ~/.emacs.)


 - Couldn't we have 2 vars: =org-agenda-files= for the files you know you want
   have scanned for the agenda construction, and an extra list such as
   =org-search-files= for files not containing any dates?  Then, some time
   would have to be taken when =C-c a s=, but not before. And not if you don't
   search for anything in your Org files during that Emacs session...


This already exists. See org-agenda-text-search-extra-files. 

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: Having (too) many files in org-agenda-files

2010-09-29 Thread Matt Lundin


Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org
writes:

 Of course, I have many, many files in Org mode. All files I write (or
 touch) in fact.

 Of course, I would like to search through my files at some point in time.
 I even would like to search through your files at some point in time, I mean
 through =org-mode/contrib/babel= and =Worg= for example.


The drawback of org-mode's plain text format is that org-mode needs to
load, parse, and fontify, and preserve in memory all files it queries
(i.e., agenda files). Too many agenda files can thus cause a pretty big
performance hit (both when loading agenda files and constructing agenda
views). To avoid this, I would recommend including only important files
in org-agenda-files. Possible solutions for searching other files
include:

1. loading the other directories when needed (e.g., through a function
   that changes the value of org-agenda-files)
2. using the variable org-agenda-text-search-extra-files (see below)
3. searching other directories with external tools (grep, perl script,
   etc.)

 The problem is the load-time of my Emacs, now:

 Emacs Init startup time: 221 seconds.

Do you invoke an agenda command in your emacs, such as
org-agenda-to-appt? That would cause org-mode to load all org files.

 coming from 20 seconds before the heavy use of Org...

 with tens of times such lines in my *Messages* buffer:

 OVERVIEW
 Checking for library `filladapt'...
 +- Requiring `filladapt' (already loaded)
 Checking for library `filladapt'... Found
 Fontifying Axa.org... (regexps)
 Checking for library `filladapt'... Found
 Fontifying Axa.org... (regexps.)
 Checking for library `filladapt'... Found
 Fontifying Axa.org... (regexps..)
 Checking for library `filladapt'... Found
 +- Requiring `outline-mode-easy-bindings' (already loaded)
 +- Requiring `ispell' (already loaded)
 Evaluate code AFTER HAVING LOADED `flyspell'... [2 times]
 Starting new Ispell process [en_US] ...
 Checking for library `filladapt'...
 +- Requiring `filladapt' (already loaded)
 Checking for library `filladapt'... Found

It seems that filladapt is causing some of the verbosity (and possible
slowness) there. When loading agenda files, my *Messages* buffer only
shows:

OVERVIEW [29 times]

 You'll tell me: not a problem, you do that only once a day, and you
 use Emacs client/server for the rest of the time. True. A bit, because
 I sometimes have to restart Emacs for testing a fresh one (not
 impacted by defvars already defined, or deffaces, etc.).

 Having to wait almost 4 minutes is a real pain. So, here my
 comments/questions:

 - Isn't it possible to delay the fontification/ispell/etc. to when we really
   display (i.e., pop up) the buffer?  I guess this must be a major component
   of the time this takes.

I imagine the fontification is necessary for the agenda to function
properly. Thus, org files are parsed en masse when the agenda is called
for the first time. (Hence my question about whether you were calling
the agenda from ~/.emacs.)


 - Couldn't we have 2 vars: =org-agenda-files= for the files you know you want
   have scanned for the agenda construction, and an extra list such as
   =org-search-files= for files not containing any dates?  Then, some time
   would have to be taken when =C-c a s=, but not before. And not if you don't
   search for anything in your Org files during that Emacs session...


This already exists. See org-agenda-text-search-extra-files. 

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: org-capture (lost PATCH?)

2010-09-27 Thread Matt Lundin
Jambunathan K kjambunat...@gmail.com writes:

 I had proposed a patch to org-capture in this thread.

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

 The patch has neither been rejected nor accepted. I am a bit concerned
 that it might have been lost.

It's currently on patchwork with the status of deferred:

http://patchwork.newartisans.com/patch/246/

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: Problem with PROPERTIES :OPTIONS: when exporting subtree

2010-09-26 Thread Matt Lundin
Rainer M Krug r.m.k...@gmail.com writes:

 Hi

 I hava a problem with exporting to LaTeX.

 I want to export a table to latex. I put it into a subtree, containing
 only the table, i.e. no headers, as I want to include it into another
 document. I thought, that using the :OPTIONS: property, I can disable
 the headers - but it does not seem to be working - am I missing
 something?

I believe the relevant property is :EXPORT_OPTIONS:.

,[ (info (org) Export options) ]
|When exporting only a single subtree by selecting it with `C-c @'
| before calling an export command, the subtree can overrule some of the
| file's export settings with properties `EXPORT_FILE_NAME',
| `EXPORT_TITLE', `EXPORT_TEXT', `EXPORT_AUTHOR', `EXPORT_DATE', and
| `EXPORT_OPTIONS'.
`

 ###
 * Table of Parameter

 The parameters are as follow:
 ** The Table
 :PROPERTIES:
 :EXPORT_FILE_NAME: table
 :OPTIONS: H:0 num:f toc:f author:f timestamp:f creator:f
 :END:
 | A | B |  C |
 |---+---+|
 | 1 | 2 | 33 |
 |   |   |    |
 ###


Is it correct that you are trying to disable author, table-of-contents,
etc.? If so, I believe these can be turned off with the nil option:

--8---cut here---start-8---
* Table of Parameter

The parameters are as follow:
** The Table
:PROPERTIES:
:EXPORT_FILE_NAME: table
:EXPORT_OPTIONS: H:0 num:nil toc:nil author:nil timestamp:nil creator:nil
:END:
| A | B |  C |
|---+---+|
| 1 | 2 | 33 |
|   |   |    |
--8---cut here---end---8

Have you considered radio tables? It's a nice solution for including an
org-mode table in a LaTeX document.

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: Sparse trees and searching for multiple words

2010-09-21 Thread Matt Lundin
Tom levelha...@gmail.com writes:

 I see sparse trees can be constructed by searching for a regexp, but I
 can't find the same ability for multiple searches.

 For example, I'd like to see entries which contains the words 'cat' and
 'dog' in any order. Or 'apple', 'orange', 'melon', 'plum' and 'pear'
 in any order.

 Searching for multiple keywords in a single operation is a pretty
  basic feature. I recommend adding it if currently there is no way to
  do it in org.

For such searches, I use org-search-view:

C-c a s +cat +dog [RET]

This will pull up the headlines for all entries that contain the
substrings cat and dog in any order.

By default, org-search-view treats the entry as a single substring if
there are no plus or minus signs. E.g.,

C-c a s cat dog [RET]

...will find only those entries that have the precise string cat dog.

For searches more like Google's (i.e., lazy booleans), you can set the
variable org-agenda-search-view-always-boolean to t. Then, a search such
as:

C-c a s cat dog [RET]

...will find all entries that have the words cat and dog in any order.

,[ C-h v org-agenda-search-view-always-boolean ]
| When this is non-nil, the string will be split on whitespace, and each
| snippet will be searched individually, and all must match in order to
| select an entry.
`

If you want to force cat and dog to match full words only, you can
set the variable org-agenda-search-view-force-full-words to t.

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: calendar and agenda entries

2010-09-20 Thread Matt Lundin
henry atting nsmp...@online.de writes:

 On So, Sep 19 2010, Matt Lundin wrote:

 henry atting nsmp...@online.de writes:

 When printing or exporting the emacs calendar it is possible to include
 diary entries or holidays. 

 Mmh, this should be understood as a statement not a question but many
 thanks anyway.

Ah, yes. I've accidentally left off question marks so many times in my
own posts that I tend to assume everything is a question. :)


 [...]


 Is there a way to include org-agenda entries as well?

 Yes.

 http://orgmode.org/worg/org-faq.php#include-entries-from-org-mode-files-into-emacs-diary

 http://orgmode.org/worg/org-faq.php#add-Org-scheduled/deadlined-entries-to-diary!

 Yes, that does the trick. I created a diary file (normally I don't use
 it), added a single line `%%(org-diary)` 

 Now entries from org-agenda files do show up in the generated
 calendars - at least in those for the whole month. As far as I see the
 weekly calendars don't support it.

I believe some of the weekly calendars---namely, filofax (t f W) and iso
(t w 3)---do:

,[ (info (emacs) Writing Calendar Files) ]
| If the variable `cal-tex-diary' is non-`nil' (the default is `nil'),
| diary entries are included also (in monthly, filofax, and iso-week
| calendars only).
`

The variety of cal-tex export commands is truly mind-boggling!

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: calendar and agenda entries

2010-09-19 Thread Matt Lundin
henry atting nsmp...@online.de writes:

 When printing or exporting the emacs calendar it is possible to include
 diary entries or holidays. 

Yes. For more information, see:

(info (emacs) Writing Calendar Files)

You'll want to put the following settings in your org-mode file:

(setq cal-tex-diary t)
(setq cal-tex-holidays t)

 Is there a way to include org-agenda entries as well?

Yes.

http://orgmode.org/worg/org-faq.php#include-entries-from-org-mode-files-into-emacs-diary

http://orgmode.org/worg/org-faq.php#add-Org-scheduled/deadlined-entries-to-diary!

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: Bug: org-auto-repeat-maybe only updates first timestamp [7.01trans]

2010-09-17 Thread Matt Lundin
Andrew J. Korty a...@iu.edu writes:

 Remember to cover the basics, that is, what you expected to happen and
 what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

 Your bug report will be posted to the Org-mode mailing list.
 

 If I have multiple timestamps in a TODO item, org-auto-repeat-maybe
 only advances the first one.  In the following example, I'd like both
 the SCHEDULED and DEADLINE timestamps to advance when the item is
 marked DONE, but only the SCHEDULED timestamp advances.

 * TODO do something by Sunday but not until Friday
   SCHEDULED: 2010-09-17 Fri ++1w DEADLINE: 2010-09-19 Sun ++1w

I can confirm this bug, although AFAICT it occurs only when both the
SCHEDULED and DEADLINE repeating syntax are of the ++ variety.

E.g.,

The example above results in:

--8---cut here---start-8---
* TODO do something by Sunday but not until Friday
  SCHEDULED: 2010-09-24 Fri ++1w DEADLINE: 2010-09-19 Sun ++1w
--8---cut here---end---8---

However, if the scheduled timestamp is not a double plus (++), then
the timestamps advance as expected:

--8---cut here---start-8---
* TODO Another example
  SCHEDULED: 2010-09-17 Fri +1w DEADLINE: 2010-09-19 Sun ++1w
--8---cut here---end---8---

becomes...

--8---cut here---start-8---
* TODO Another example
  SCHEDULED: 2010-09-24 Fri +1w DEADLINE: 2010-09-26 Sun ++1w
--8---cut here---end---8---

Other combinations also work as expected:

--8---cut here---start-8---
* TODO Another example
  SCHEDULED: 2010-09-17 Fri .+1w DEADLINE: 2010-09-19 Sun .+1w
--8---cut here---end---8---

becomes...

--8---cut here---start-8---
* TODO Another example
  SCHEDULED: 2010-09-24 Fri .+1w DEADLINE: 2010-09-24 Fri .+1w
--8---cut here---end---8---

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: Bug: org-auto-repeat-maybe only updates first timestamp [7.01trans]

2010-09-17 Thread Matt Lundin
Andrew J. Korty a...@iu.edu writes:

 Andrew J. Korty a...@iu.edu wrote:

 Bernt Hansen be...@norang.ca wrote:

   If I have multiple timestamps in a TODO item, org-auto-repeat-maybe
   only advances the first one.  In the following example, I'd like both
   the SCHEDULED and DEADLINE timestamps to advance when the item is
   marked DONE, but only the SCHEDULED timestamp advances.
  
   * TODO do something by Sunday but not until Friday
 SCHEDULED: 2010-09-17 Fri ++1w DEADLINE: 2010-09-19 Sun ++1w
   Why not just drop the SCHEDULED: tag and change the DEADLINE
 task to   DEADLINE: 2010-09-19 Sun ++1w -2d
   This way it won't show up in your agenda until Friday -- 2 days
 before
  it's due.

 Right, but then it will show up in tags-todo lists before I want it
 to.  An example is renewing my driver's license, for which I could
 use

 DEADLINE: 2011-10-12 Wed ++4y -2w

 but it would show up in tags-todo lists way before it would make
 sense to renew.  Although I suppose I could set
 org-agenda-ignore-deadlines to 'all and just rely on the
 daily/weekly agenda to show them to me ...

 Oops, frobbing org-agenda-ignore-deadlines won't help.  It works in
 the case of driver's license renewal, but it breaks a different case.
 Say I've been asked to review a document by October 31.  So I set a
 deadline of 2010-12-31.  But I do want to see it on my tags-todo list
 now because if I had time now, I could review the documents and submit
 my comments well before the deadline.

I assume you mean org-agenda-todo-ignore-deadlines. In this particular
case you could set that variable to 'far, which causes deadlines to be
displayed only when they fall within the lead time specified in
org-agenda-warning days or (as in the example above) in the timestamp
itself.

Here's an example:

--8---cut here---start-8---
* TODO Review really important document
  DEADLINE: 2010-10-31 Sun -2m
* TODO Review less important document
  DEADLINE: 2010-10-31 Sun
--8---cut here---end---8---

Let's assume the following settings:

--8---cut here---start-8---
(setq org-agenda-todo-ignore-deadlines 'far
  org-deadline-warning-days 14)
--8---cut here---end---8---

With these settings, the first task would show up *today* both in your
agenda and in your TODO list, while the second task would appear in both
places two weeks before the deadline.

That said, I sometimes set both a scheduled and deadline timestamp to
create an extra reminder/safety net, so the original bug you reported is
certainly an issue.

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: Bug: org-auto-repeat-maybe only updates first timestamp [7.01trans]

2010-09-17 Thread Matt Lundin
Andrew J. Korty a...@iu.edu writes:

 Matt Lundin m...@imapmail.org wrote:

 --8---cut here---start-8---
 * TODO Review really important document
   DEADLINE: 2010-10-31 Sun -2m
 * TODO Review less important document
   DEADLINE: 2010-10-31 Sun
 --8---cut here---end---8---

 Let's assume the following settings:

 --8---cut here---start-8---
 (setq org-agenda-todo-ignore-deadlines 'far
   org-deadline-warning-days 14)
 --8---cut here---end---8---

 With these settings, the first task would show up *today* both in your
 agenda and in your TODO list, while the second task would appear in both
 places two weeks before the deadline.

 Right, but what I want is for the second task to appear in the todo
 list even before two weeks before the deadline, and I don't want it to
 appear in the agenda until two weeks before the deadline. In other
 words, I always want to see tasks I can do now in my todo lists,
 whereas I only want to see tasks that are due soon in the agenda.
 Lengthening the lead time won't help because it unnecessarily shows
 tasks in the agenda that aren't due soon.

 But maybe my usage is not an intended one.

Oops. I misunderstood your request.

What you are describing is org-mode's default behavior---i.e., to show
all todos with deadlines in the todo list, but only to show deadlines in
the agenda when they are within org-deadline-warning days.

To ensure this behavior, you'll want to make sure that
org-agenda-todo-ignore-deadlines is set to nil (the default). All todos
with deadlines will then appear in your todo list.

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: C-a T DONE behavior

2010-09-17 Thread Matt Lundin
julien cubizolles j.cubizol...@free.fr writes:

 I've noticed that C-a T DONE doesn't display DONE entries if they have a
 DEADLINE set, whether it's in the past or in the future. Is it the
 intended behavior ? I'm trying to use it to purge DONE tasks but it's
 useless at the moment.

On your machine, what is the value of org-agenda-todo-ignore-deadlines
and/or org-agenda-todo-ignore-with-date?

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: Bug: org-auto-repeat-maybe only updates first timestamp [7.01trans]

2010-09-17 Thread Matt Lundin
Andrew J. Korty a...@iu.edu writes:

 Matt Lundin m...@imapmail.org wrote:

 Andrew J. Korty a...@iu.edu writes:

  Matt Lundin m...@imapmail.org wrote:
 
  --8---cut here---start-8---
  * TODO Review really important document
DEADLINE: 2010-10-31 Sun -2m
  * TODO Review less important document
DEADLINE: 2010-10-31 Sun
  --8---cut here---end---8---
 
  Let's assume the following settings:
 
  --8---cut here---start-8---
  (setq org-agenda-todo-ignore-deadlines 'far
org-deadline-warning-days 14)
  --8---cut here---end---8---
 
  With these settings, the first task would show up *today* both in your
  agenda and in your TODO list, while the second task would appear in both
  places two weeks before the deadline.
 
  Right, but what I want is for the second task to appear in the todo
  list even before two weeks before the deadline, and I don't want it to
  appear in the agenda until two weeks before the deadline. In other
  words, I always want to see tasks I can do now in my todo lists,
  whereas I only want to see tasks that are due soon in the agenda.
  Lengthening the lead time won't help because it unnecessarily shows
  tasks in the agenda that aren't due soon.
 
  But maybe my usage is not an intended one.

 Oops. I misunderstood your request.

 What you are describing is org-mode's default behavior---i.e., to show
 all todos with deadlines in the todo list, but only to show deadlines in
 the agenda when they are within org-deadline-warning days.

 To ensure this behavior, you'll want to make sure that
 org-agenda-todo-ignore-deadlines is set to nil (the default). All todos
 with deadlines will then appear in your todo list.

 True, but then we're back to the problem with the driver's license
 renewal.


I knew there was a reason for example I provided above. :)

If I understand you correctly, you'd like: 1) deadlines to show up on
your todo list, 2) but not if they are too far away (let's say more than
1 year from now). I believe this scenario is essentially covered by the
original example I provided; all that is required is some tweaking.

Does this custom command accomplish what you're looking for?

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((d Todos (incl. deadlines) todo 
 ((org-deadline-warning-days 100) ;; change this as you wish
  (org-agenda-todo-ignore-deadlines 'far
--8---cut here---end---8---

With this command, you'd see all todos with deadlines that fall a
reasonable distance from the present (in this case, the next 100 days),
but wouldn't see the drivers license renewal 4 years from now.

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: Question: Repeating Items?

2010-09-16 Thread Matt Lundin
Hi Ken,

Kenneth Miller kenn...@erdosmiller.com writes:

 I fired up org-mode on my new machine, pulled my org files from source
 control, set my agenda files and agenda-key, attempted to view my
 agenda, and got the following. I've replaced some of the names with
 random characters for privacy, but events and todos are repeating
 themselves over and over and I can't seem to figure out why.

I've never encountered this problem. Could you please provide a test
case org file (along with the relevant portions of your .emacs)?

Also, could you please report what version of org-mode you are using
(M-x org-version).

Best,
Matt


 Example:

 Tuesday    14 September 2010
   em:         Sched.11x:  TODO Schedule Detectachem Monthly Review
   em:         Sched.11x:  TODO Detectachem Monthly Documentation
   em:         Sched.11x:  TODO Detectachem Monthly Billing
   em:         Sched.11x:  TODO Schedule Detectachem Monthly Review
   em:         Sched.11x:  TODO Detectachem Monthly Documentation
   em:         Sched.11x:  TODO Detectachem Monthly Billing
   em:         Sched.11x:  TODO Schedule Detectachem Monthly Review
   em:         Sched.11x:  TODO Detectachem Monthly Documentation
   em:         Sched.11x:  TODO Detectachem Monthly Billing
   em:         Sched.11x:  TODO Schedule Detectachem Monthly Review
   em:         Sched.11x:  TODO Detectachem Monthly Documentation
   em:         Sched.11x:  TODO Detectachem Monthly Billing
   em:         Sched.11x:  TODO Schedule Detectachem Monthly Review
   em:         Sched.11x:  TODO Detectachem Monthly Documentation
   em:         Sched.11x:  TODO Detectachem Monthly Billing
   em:         Sched.10x:  TODO Payroll
   em:         Sched.10x:  TODO Payroll
   em:         Sched.10x:  TODO Payroll
   em:         Sched.10x:  TODO Payroll
   em:         Sched.10x:  TODO Payroll
   pipe:       In -31 d.:  TODO Research wireless security for credit
 card transactions.
   pipe:       In -31 d.:  TODO Research wireless security for credit
 card transactions.
   pipe:       In -31 d.:  TODO Research wireless security for credit
 card transactions.
   pipe:       In -31 d.:  TODO Research wireless security for credit
 card transactions.
   pipe:       In -31 d.:  TODO Research wireless security for credit
 card transactions.

 ___
 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] [PATCH] Fix bug that erases org buffer when calling agenda via org-agenda-open-link.

2010-09-15 Thread Matt Lundin

* lisp/org-agenda.el (org-prepare-agenda): If the agenda is called
  from within the agenda via an elisp link, such as
  [[elisp:(org-agenda-list)]], org-prepare-agenda erases the buffer of
  the file containing the link, since that buffer is current during
  org-prepare agenda (due to a with-current-buffer in
  org-agenda-open-link). An additional test now ensures that the
  agenda buffer is in fact current when the buffer is erased and local
  variables for the agenda are set.
---
 lisp/org-agenda.el |   11 ---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 9f94fa6..ba46d14 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -2816,9 +2816,10 @@ the global options and expect it to be applied to the 
entire view.)
  (org-uniquify org-done-keywords-for-agenda))
 (setq org-drawers-for-agenda (org-uniquify org-drawers-for-agenda))
 (let* ((abuf (get-buffer-create org-agenda-buffer-name))
-  (awin (get-buffer-window abuf)))
+  (awin (get-buffer-window abuf))
+  (abufcur (equal (current-buffer) abuf)))
   (cond
-   ((equal (current-buffer) abuf) nil)
+   (abufcur nil)
(awin (select-window awin))
((not (setq org-pre-agenda-window-conf (current-window-configuration
((equal org-agenda-window-setup 'current-window)
@@ -2829,7 +2830,11 @@ the global options and expect it to be applied to the 
entire view.)
(switch-to-buffer-other-frame abuf))
((equal org-agenda-window-setup 'reorganize-frame)
(delete-other-windows)
-   (org-switch-to-buffer-other-window abuf
+   (org-switch-to-buffer-other-window abuf)))
+  ;; additional test necessary in case agenda is invoked from within
+  ;; agenda buffer via elisp link
+  (unless abufcur
+   (switch-to-buffer abuf)))
 (setq buffer-read-only nil)
 (let ((inhibit-read-only t)) (erase-buffer))
 (org-agenda-mode)
-- 
1.7.2.3


___
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: omitting done TODOs from custom agenda

2010-09-15 Thread Matt Lundin
Eric Abrahamsen e...@ericabrahamsen.net writes:

 On Tue, Sep 14 2010, Eric Abrahamsen wrote:

 On Tue, Sep 14 2010, Matt Lundin wrote:

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 I'm having a bit of confusion: I've created my own TODO sequences with
 org-todo-keywords, in this case (sequence CONTACT(n) REPLY(r) |
 CONTACTED(e@)). Then I've got a custom agenda defined using
 org-agenda-custom-commands, where there's a weekly view on top and some
 TODO items below. When I start this agenda view, and mark one of the
 TODO items as CONTACTED, it doesn't disappear from the agenda view. It's
 very clearly marked as done in the original org file, but it stays in
 agenda. I've looked at all the extra variables for a custom agenda
 command, and there doesn't seem to be one that say don't show completed
 items.

 Would you mind sharing your custom agenda command?


 '(org-agenda-custom-commands (quote ((c Agenda plus contacts
 ((agenda  nil) (tags-todo TODO=\CONTACT\ nil) (tags-todo
 TODO=\REPLY\ nil)) nil nil) (g Get It Louder ((agenda  nil)
 (tags-todo Gil nil)) nil

 Looks like the problem here was that CONTACT is a substring of
 CONTACTED—whatever function decides if a todo keyword is pending or
 completed apparently just reads the string until it finds the first
 match (?). I changed it to SENT and everything worked fine. Dunno if
 that's worth considering a bug, but it's certainly surprising behavior.

I'd agree. The tags-todo search does seem to search for all instances of
the substring (CONTACT) rather than the word alone. This seems to be
inconsistent with the behavior of the tags match. E.g., in the following
sample:

--8---cut here---start-8---
** Testing
*** CONTACT Call so and so
*** CONTACTED Call Mr. Potato Head
*** TODO The quick brown fox   :comp:
*** DONE jumped over the lazy dog  :computer:
--8---cut here---end---8---

C-c a M comp 

pulls up only The quick brown fox, whereas

C-c a M TODO=CONTACT

or 

C-c a M /CONTACT

pull up both todos containing that substring.

For the time being, have you considered using the todo search instead of
tags-todo? That works correctly on my machine. E.g.,

--8---cut here---start-8---
(setq org-agenda-custom-commands 
  '((c Agenda plus contacts
 ((agenda ) 
  (todo CONTACT) 
  (todo REPLY)
--8---cut here---end---8---

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: Customizing agenda line format

2010-09-15 Thread Matt Lundin
Norbert Zeh n...@cs.dal.ca writes:

  Here's what I found out by tinkering around with settings a little.
 Setting org-agenda-prefix-format to  (as I already did before)
 correctly removes the prefix *before* the TODO keyword. The formatting
 function for everything starting with the TODO keyword, however, seems
 to unconditionally insert a space between the TODO keyword and the
 rest of the line. Thus, even if the TODO keyword is empty (by setting
 org-agenda-todo-keyword-format to ), there is still a space after
 the now empty TODO keyword. Hence, the extra space at the beginning of
 the line. To me it seems like there's no way around this with the
 standard org mode settings.

After experimenting a bit, I've also come to conclusion that the initial
space is hard-coded.

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: Search files in a folder

2010-09-13 Thread Matt Lundin
노정태 basi...@gmail.com writes:

 Suvayu, I read your comment, and googled about what I can't understand.

 In Emacs, M-x grep RET Filename * RET does what I want. Thank you.

 And now, I want to make it as one elisp command.

 What should I do? Can anybody write a simple script?

FWIW, here's my elisp function to search all my org files with lgrep:

--8---cut here---start-8---
  (defun my-org-grep (search optional context)
Search for word in org files. 

Prefix argument determines number of lines.
(interactive sSearch for: \nP)
(let ((grep-find-ignored-files '(#* .#*))
  (grep-template (concat grep X -i -nH  
 (when context
   (concat -C (number-to-string context)))
  -e R F)))
  (lgrep search *org* /home/matt/org/)))

  (global-set-key (kbd f8) 'my-org-grep)
--8---cut here---end---8---

A prefix argument (e.g., C-u 3 f8) will change the number of
contextual lines pulled up by the search.

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] [PATCH] Removed unecessary invocations of org-agenda-show.

2010-09-13 Thread Matt Lundin

lisp/org-agenda.el (org-agenda-set-tags): Remove org-agenda-show to prevent
disrupting windows and changing point in original buffer.
(org-agenda-set-property): Same
(org-agenda-set-effort): Same
(org-agenda-toggle-archive-tag): Same

When setting a tag in the agenda, org-mode displays the corresponding
entry in the original org buffer by calling org-agenda-show. This has
the unwelcome side-effect of disrupting the current window arrangement
and changing the position of the point in the original buffer. This
behavior is inconsistent with the that of org-agenda-todo, which makes
all its changes silently.

Here is the offending line (6799) in org-agenda-set-tags:

--8---cut here---start-8---
(org-agenda-show)   ;;; FIXME This is a stupid hack and should not be needed
--8---cut here---end---8---

The same line occurs in org-agenda-set-property, org-agenda-set-effort,
and org-agenda-toggle-archive tag.
---
 lisp/org-agenda.el |4 
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 32c65db..784ba6a 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6796,7 +6796,6 @@ the same tree node, and the headline of the tree node in 
the Org-mode file.
   (org-agenda-check-no-diary)
   (if (and (org-region-active-p) (interactive-p))
   (call-interactively 'org-change-tag-in-region)
-(org-agenda-show)   ;;; FIXME This is a stupid hack and should not be 
needed
 (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
 (org-agenda-error)))
   (buffer (marker-buffer hdmarker))
@@ -6825,7 +6824,6 @@ the same tree node, and the headline of the tree node in 
the Org-mode file.
   Set a property for the current headline.
   (interactive)
   (org-agenda-check-no-diary)
-  (org-agenda-show)   ;;; FIXME This is a stupid hack and should not be needed
   (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
   (org-agenda-error)))
 (buffer (marker-buffer hdmarker))
@@ -6848,7 +6846,6 @@ the same tree node, and the headline of the tree node in 
the Org-mode file.
   Set the effort property for the current headline.
   (interactive)
   (org-agenda-check-no-diary)
-  (org-agenda-show)   ;;; FIXME This is a stupid hack and should not be needed
   (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
   (org-agenda-error)))
 (buffer (marker-buffer hdmarker))
@@ -6872,7 +6869,6 @@ the same tree node, and the headline of the tree node in 
the Org-mode file.
   Toggle the archive tag for the current entry.
   (interactive)
   (org-agenda-check-no-diary)
-  (org-agenda-show)   ;;; FIXME This is a stupid hack and should not be needed
   (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
(org-agenda-error)))
 (buffer (marker-buffer hdmarker))
-- 
1.7.2.3


___
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: Agenda: Hide Sched. Items

2010-09-13 Thread Matt Lundin
Nathan Neff nathan.n...@gmail.com writes:

 Is there a way to hide Scheduled Items in a custom Agenda View?


Yes. You can use the variable org-agenda-entry-types.

 I have the following custom agenda set up:

 ( Timeline ((agenda  ))
   ((org-agenda-ndays 1)
(org-agenda-show-log t)
(org-agenda-clockreport-mode t)
  (org-agenda-log-mode-items '(clock))
 )
 )


Here's an example:

(setq org-agenda-custom-commands 
  '(( Timeline ((agenda  ))
 ((org-agenda-ndays 1)
  (org-agenda-show-log t)
  (org-agenda-clockreport-mode t)
  (org-agenda-log-mode-items '(clock))
  (org-agenda-entry-types '(:timestamp :sexp :deadline)) ;; [1]
  

HTH,
Matt

Footnotes:

[1] Added line. Note the absence of :scheduled.

___
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: Repeating tasks on specific days of the week

2010-09-13 Thread Matt Lundin
Jeff Horn jrhorn...@gmail.com writes:

 Hi everyone!

 I was wondering how to create repeating tasks for, say, Tuesday and
 Thursday at noon. I found this on stack overflow: http://cl.ly/2K8c

 Is that really the best answer? Can this not be accomplished with
 symbolic expressions?

 Seems like a great feature for academics and students. Surely, I'm
 ignorant, and someone has a better solution than creating multiple
 repeating tasks?

AFAIK, one cannot use complex symbolic expressions with repeating tasks;
the moment a headline with such an expression is marked done, it is
removed from the agenda. The only solution, at the moment, is to create
different entries for each desired day of the week:

--8---cut here---start-8---
* Tuesday task
  SCHEDULED: 2010-09-14 Tue +1w

* Thursday task
  SCHEDULED: 2010-09-16 Thu +1w
--8---cut here---end---8---

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: omitting done TODOs from custom agenda

2010-09-13 Thread Matt Lundin
Eric Abrahamsen e...@ericabrahamsen.net writes:

 I'm having a bit of confusion: I've created my own TODO sequences with
 org-todo-keywords, in this case (sequence CONTACT(n) REPLY(r) |
 CONTACTED(e@)). Then I've got a custom agenda defined using
 org-agenda-custom-commands, where there's a weekly view on top and some
 TODO items below. When I start this agenda view, and mark one of the
 TODO items as CONTACTED, it doesn't disappear from the agenda view. It's
 very clearly marked as done in the original org file, but it stays in
 agenda. I've looked at all the extra variables for a custom agenda
 command, and there doesn't seem to be one that say don't show completed
 items.

A simple question: Are you refreshing the agenda after marking the item
done (i.e., CONTACTED)? Similarly, do the inactive items (i.e.,
CONTACTED) remain when you invoke the agenda view the again.

Inactive todos do not disappear from the agenda until it is refreshed
(r).

 These items are part of a tag-todo statment, where the selecting regexp
 is a tag, not a particular todo keyword, so I wouldn't think I've done
 anything to force it to display these todo keywords.

Would you mind sharing your custom agenda command?

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: Customizing agenda line format

2010-09-13 Thread Matt Lundin
Norbert Zeh n...@cs.dal.ca writes:

 Is there a way to freely customize the format of lines in the weekly
 agenda or todo list.  
...
 I have a bunch of todo items that have a special todo state, say SPECIAL.
 I don't want those included in my weekly agenda, but rather have a block
 agenda where one of the blocks lists all todo items with todo state
 SPECIAL.  Clearly, since this block includes only items that are
 SPECIAL, listing this tag at the beginning of each entry's line is
 redundant information.  So I'd like to remove the TODO state.  For
 example, the org file entry

 * SPECIAL Call mom

 should appear simply as

 Call mom

 in that block of my agenda.  Can this be done?  

Check out the variable org-agenda-todo-keyword-format. 

E.g.,

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((x Special todo SPECIAL
  ((org-agenda-todo-keyword-format )
--8---cut here---end---8---

The variable org-agenda-prefix-format might also be of interest.

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: bug ? invoking display-time causes org mode clocking to go bad

2010-09-13 Thread Matt Lundin
Antony lisp.li...@gmail.com writes:

 On 9/2/2010 4:03 AM, Antony wrote:

 Start vanilla emacs
 type
 C-x f ~/foo.org

 type
 * foo enter

 type
 M-x display-time
 modeline shows 7:29 AM
 when my PC is showing 1:30AM
 They don't match.

 no one can reproduce this?

This sounds like a general emacs/cygwin question.

What do you get when you evaluate the following--i.e., type C-x C-e
after the closing parenthesis?

(current-time-zone)

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: Customizing agenda line format

2010-09-13 Thread Matt Lundin
Norbert Zeh n...@cs.dal.ca writes:

 Matt Lundin [2010.09.13 1512 -0400]:
 Norbert Zeh n...@cs.dal.ca writes:
 
  Is there a way to freely customize the format of lines in the weekly
  agenda or todo list.  
 ...
  I have a bunch of todo items that have a special todo state, say SPECIAL.
  I don't want those included in my weekly agenda, but rather have a block
  agenda where one of the blocks lists all todo items with todo state
  SPECIAL.  Clearly, since this block includes only items that are
  SPECIAL, listing this tag at the beginning of each entry's line is
  redundant information.  So I'd like to remove the TODO state.  For
  example, the org file entry
 
  * SPECIAL Call mom
 
  should appear simply as
 
  Call mom
 
  in that block of my agenda.  Can this be done?  
 
 Check out the variable org-agenda-todo-keyword-format. 
 
 E.g.,
 
 --8---cut here---start-8---
 (setq org-agenda-custom-commands
   '((x Special todo SPECIAL
((org-agenda-todo-keyword-format )
 --8---cut here---end---8---
 
 The variable org-agenda-prefix-format might also be of interest.

 Well, I tried setting org-agenda-todo-keyword-format to %0s, which
 didn't work, but I didn't think about the above.  So I tried this now.
 It does remove the todo keyword, but it does only that.  In particular,
 there is now a space at the beginning of each line, which I assume is
 simply the space in the headline that succeeds the todo keyword.  Any
 way of getting rid of that?  Thanks for the pointer so far.


The information at the beginning of the line is controlled by
org-agenda-prefix-format. What is the value of org-agenda-prefix-format
on your machine?

What happens if you set org-agenda-prefix-format to  in the command
above?

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: Search files in a folder

2010-09-12 Thread Matt Lundin
Eric S Fraga ucec...@ucl.ac.uk writes:

 On Mon, 13 Sep 2010 04:11:48 +0900, 노정태 basi...@gmail.com wrote:

 I want to search org files in my /org folder.
 But I can't find a command to search files wholly.
 C-c a s (org-search-view) does search only with headline.
 I can't search the contents of my org files with just one command.
 
 Does Org-mode have the function what I'm looking for?

 maybe org-mode does not but of course emacs does: M-x grep RET
 or M-x occur RET


These work just fine. Org-mode also has a built-in interface to emacs'
multi-occur function --- it searches for (and displays) all lines
containing a given regexp in one's agenda files.[1]

Simply type:

C-c a / [regexp]

E.g.

C-c a / \(org\|org-\)mode


Best,
Matt

Footnotes:

[1] (info (org) Agenda dispatcher)

,
| `/'
|  Search for a regular expression in all agenda files and
|  additionally in the files listed in
|  `org-agenda-text-search-extra-files'.  This uses the Emacs command
|  `multi-occur'.  A prefix argument can be used to specify the
|  number of context lines for each match, default is 1.
`



___
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: [ANN] List improvement v.2

2010-09-03 Thread Matt Lundin
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi everyone,

 I have now merged Nicolas' branch into the current master.  Hopefully
 all will go well.
 If not, I am sure Nicolas can fix things on short notice.

 Thanks to Nicolas for the big chunk of work!

Thanks, Nicolas, for all your work on this! Here are a couple pieces of
feedback:

1. On my machine, toggling a checkbox within a long list takes a long
   time. I have a 200+ item list. It takes approximately 5 seconds for
   org to toggle a single checkbox within the list (see elp results
   below).[1] With the previous list implementation, toggling happened
   immediately. (Note: I am not using headline cookies in conjunction
   with that particular list.)

2. Typing C-c C-x C-b on the following headline correctly checks all
   boxes; typing C-c C-x C-b again, however, does not uncheck the boxes:

--8---cut here---start-8---
* TODO headline with checkboxes
  SCHEDULED: 2010-09-04 Sat +1d
  :LOGBOOK:
  - State DONE   from STARTED[2010-09-03 Fri 23:46]
  CLOCK: [2010-09-03 Fri 23:30]--[2010-09-03 Fri 23:46] =  0:16
  :END:
  :PROPERTIES:
  :LAST_REPEAT: [2010-09-03 Fri 23:46]
  :END:
  
  - [ ] One
  - [ ] Two
  - [ ] Three
--8---cut here---end---8---

I believe the problem has to do with the presence of an extra list item
(i.e., the state change item). The following headline toggles all
checkboxes on and off correctly:

--8---cut here---start-8---
* TODO headline with checkboxes 
  
  - [ ] One
  - [ ] Two
  - [ ] Three
--8---cut here---end---8---

Best, 

Matt

Footnotes:

[1] elp results when toggling a checkbox within a large list

--8---cut here---start-8---
org-ctrl-c-ctrl-c 1   
5.68269   5.68269
org-toggle-checkbox   1   
5.650102  5.650102
org-update-checkbox-count-maybe   1   
5.648023  5.648023
org-update-checkbox-count 1   
5.648003  5.648003
org-end-of-item   232 
5.342644  0.0230286422
org-list-bottom-point 233 
4.323943  0.0185576995
org-list-bottom-point-with-indent 233 
3.921707  0.0168313605
org-get-indentation   29365   
1.423531  4.847...e-05
org-list-maybe-skip-block 2138
1.233362  0.0005768765
org-list-search-unenclosed-generic2376
1.193279  0.0005022218
org-search-backward-unenclosed1646
1.038115  0.0006306895
org-get-item-beginning942 
0.805425  0.0008550169
org-at-item-p 28838   
0.724153  2.511...e-05
org-get-end-of-item   232 
0.570308  0.0024582241
org-get-next-item 232 
0.549035  0.0023665301
org-list-get-item-same-level  232 
0.545578  0.0023516293
org-in-item-p 232 
0.461183  0.0019878620
org-list-bottom-point-with-regexp 233 
0.211803  0.0009090257
org-search-forward-unenclosed 730 
0.185302  0.0002538383
org-list-in-item-p-with-regexp232 
0.145808  0.0006284827
org-list-in-item-p-with-indent232 
0.119868  0.0005166724
org-list-ending-between   466 
0.094626  0.0002030622
org-list-repair   1   
0.030683  0.030683
org-get-end-of-list   11  
0.018076  0.0016433636
org-list-struct   1   
0.008442  0.008442
org-on-heading-p  466 
0.006995  1.501...e-05
org-entry-get 2   
0.003465  0.0017325
org-get-property-block2   
0.00342   0.00171
org-at-heading-p  232 
0.002794  1.204...e-05
org-checkbox-blocked-p1   
0.00161   0.00161
org-list-end-re   466 
0.001331  2.856...e-06
org-list-struct-assoc-at-point   

[Orgmode] Re: [BUG - low] capture with region selected in read only erc buffer

2010-09-02 Thread Matt Lundin
Hi Carsten,

Carsten Dominik carsten.domi...@gmail.com writes:

 On Sep 2, 2010, at 1:18 AM, Richard Riley wrote:

 If I select a region in, in this case, an erc (emacs irc client)
 buffer
 in the read only section and then use my global keys to create a new
 item using the following j template while the text is still selected

 (j Journal entry
  (file+datetree journal.org)
  * %T %?\n  %i\n  %a)

 then I get the following backtrace :-

 Debugger entered--Lisp error: (error Capture abort: (text-read-
 only))
  signal(error (Capture abort: (text-read-only)))
  error(Capture abort: %s (text-read-only))
  byte-code(\301\302!\203\n

 Fixed, thanks.


This update caused the following error when invoking org-capture on a
Gnus article:

--8---cut here---start-8---
Debugger entered--Lisp error: (args-out-of-range 0 401)
  remove-text-properties(0 401 (read-only t) 
[[gnus:gmane.emacs.orgmode#87aao21i92@gmx.de][sebastian Rose: Re: 
Org-protocol / Chrome on Linux]])
  (progn (remove-text-properties 0 (length initial) (quote ...) annotation))
  (if annotation (progn (remove-text-properties 0 ... ... annotation)))
  (when annotation (remove-text-properties 0 (length initial) (quote ...) 
annotation))
  (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...)) (when 
initial (remove-text-properties 0 ... ... initial)) (when annotation 
(remove-text-properties 0 ... ... annotation)) (cond (... ...) (... ...) (t ... 
... ... ... ... ... ...)))
  (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...) 
(org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
  org-capture(nil)
  call-interactively(org-capture nil nil)
  recursive-edit()
  byte-code(\306  @\307=\203!  debug(error (args-out-of-range 0 401))
  remove-text-properties(0 401 (read-only t) 
[[gnus:gmane.emacs.orgmode#87aao21i92@gmx.de][sebastian Rose: Re: 
Org-protocol / Chrome on Linux]])
  org-capture(nil)
  call-interactively(org-capture nil nil)
  recursive-edit()
  byte-code(\306  @\307=\203!  debug(error (args-out-of-range 0 401))
  remove-text-properties(0 401 (read-only t) 
[[gnus:gmane.emacs.orgmode#87aao21i92@gmx.de][sebastian Rose: Re: 
Org-protocol / Chrome on Linux]])
  org-capture(nil)
  call-interactively(org-capture nil nil)
--8---cut here---end---8---

Reverting commit d8498a40e815d8604311e9844e6c75bbf074d026 fixed the
issue.

Thanks,
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: Agenda view and timestamps

2010-08-23 Thread Matt Lundin
Hi Julien,

julien cubizolles j.cubizol...@free.fr writes:

 Le lundi 16 août 2010 à 20:23 +0200, Bastien a écrit :
 Hi Julien,
 
 julien cubizolles j.cubizol...@free.fr writes:
 
  Is there a way to make the agenda view display only the entries with a
  timestamp ? I would need that for a block agenda.
 
 ,
 | (setq org-agenda-custom-commands
 |   '((d With timestamps agenda List of tasks with a timestamp
 |  ((org-agenda-skip-function
 |(lambda ()
 |  (let* ((ts (org-entry-get nil TIMESTAMP)))
 |(if (or (not ts) (equal ts ))
 |(progn (outline-next-heading) (point))
 `
 
 Not tested but it should work.

 Just tested, and it works perfectly. Thanks a lot, I would never have
 come up with such an elaborate solution : my only experience of lisp
 programming is parenthesis matching while adapting other
 people's .emacs.


Another solution is to use the variable org-agenda-entry-types. This is
slightly more efficient, since it searches solely for timestamps when
creating the agenda, rather than considering all agenda types and then
filtering out everything that is not a timestamp.

--8---cut here---start-8---
(setq org-agenda-custom-commands
   '((d With timestamps agenda List of tasks with a timestamp
  ((org-agenda-entry-types '(:timestamp))
--8---cut here---end---8---

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: Nice links bookmarks

2010-07-27 Thread Matt Lundin
Hi Andrea,

Andrea Crotti andrea.crott...@gmail.com writes:

 I was wondering how many people add nice links in the footnotes like [1]

 I use turn-on-orgstruct and turn-on-orgtbl when I write messages and
 I suspect that it could be an orgmode feature, but I could not find it.

 If I add a footnote I get a similar result but not exactly the same...
 Thansk a lot

 [1] www.fakelink.com


Could you please clarify your question? I'm not quite sure what you are
trying to accomplish.

Are you perhaps inquiring how to use org-footnote in message-mode? You
can do so with M-x org-footnote-action.

But that may not be what you are looking for

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: Finding old appointments

2010-07-25 Thread Matt Lundin
Tassilo Horn tass...@member.fsf.org writes:

 Additionally, there are some more complex outdated entries, that have
 subtrees and done todos.

 Yes, what I want to spot are enties with an active (or also inactive?
 not sure about this one) timestamp that is before today, and if it's a
 TODO, it has to be in a DONE state.  The same must hold for any
 subtrees.

 Well, basically I'm just looking for a search facility that shows me an
 agenda view with all entries that contain only timestamps before today
 and no pending todos, so that I can use the agenda commands to act on
 them.  Some will be deleted, others archived.

Here's an example of an agenda view that would bring up all old, active
timestamps marked DONE:

C-c a m [RET] TIMESTAMPtoday+TODO=DONE

(If I understand the question correctly...) The variable
org-stuck-projects (see the docstring) can be tweaked to identify
subtrees that match your criteria.

A custom skip function might also be useful here. 

(info (org) Special agenda views)

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: Personal accounting with emacs, org and...?

2010-07-22 Thread Matt Lundin
Russell Adams rlad...@adamsinfoserv.com writes:

 On Thu, Jul 22, 2010 at 01:20:58AM -0500, Marcelo de Moraes Serpa wrote:
 Hey list,
 
 I was wondering if anyone out there manages his personal accounting
 with org. I never really managed my personal finances, but I think
 it's about time to know where my money comes from and where it is
 going (and where the leaks are :P). I would use something like
 lessaccounting.com, but I would rather integrate it into my
 orgmode-based PIM. Any ideas?

 I use John Wiegley's Ledger (of Remember fame), which is a CLI tool
 that does reporting against plain text files.

 I do my expense reporting and business accounting in it. Very flexible
 and because it is text based, I can use version control and emacs.


+1 for ledger. It comes bundled with a nice emacs mode (ledger.el) that
makes entering data quite simple.

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: Org-mode release 7.01

2010-07-19 Thread Matt Lundin
Carsten Dominik carsten.domi...@gmail.com writes:

 This is a major release, and we have worked months on getting
 it together.  Most important is of cause the complete integration
 of Org Babel into  Org mode.  Many thanks to Eric Schulte and
 Dan Davison who have worked tirelessly to make this happen.
 Thomas S. Dye gets credit here as well because he did a lot of
 work on documentation and function/variable docstrings.

Thanks, Carsten, for another brilliant release! And a special thanks to
Eric Schulte for taking into account my concerns about security and
org-babel and for finding a very graceful solution.

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: Re Audible reminder in org-mode not working

2010-07-15 Thread Matt Lundin
evita moreno evitamoren...@live.com writes:

 Dear all,

 I have a question which may look like it is already answered but the
 solutions provided in previous threads don't really work for me. FYI, I
 am using a Linux Mint Isadora distribution and I tried to run org-mode
 both in a console-session of emacs (emacs -nw) and in an emacs GUI. I
 have tried to set an audible reminder for my appointments using:

 (setq appt-audible t)

 For some reason, this does not seem to work (the visible reminder works
 just fine). I am sure it does not have to do with volume as it works
 fine with other apps. BTW, the code I am using is collected from
 various threads and given that I know next to nothing in LISP, I can
 safely assume that this is probably the reason the whole audible
 reminder thing is not working 

 I was wondering whether anyone out there could provide a bit of code to
 set audible reminders in org-mode (preferably working in a console
 too). I am teaching young people to use emacs and org-mode to do their
 research and running emacs in a console is probably the best thing to
 do to to stop them from getting distracted from menus, toolbars and
 other things!

The first question: Does your computer beep under other circumstances?
It's very likely that Linux Mint disables the beep by default. What is
the result the following command produce?

lsmod | grep pcspkr

If pcspkr is enabled, you might want check the value of the following
options with M-x describe-variable

visible-bell
ring-bell-function

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: Pull items from another file (by tag) and show them in another

2010-07-14 Thread Matt Lundin
Hi Marcelo,

Marcelo de Moraes Serpa celose...@gmail.com writes:

 This might sound crazy, but here's what I'd like to do:

 I have a reference.org file full of interesting notes I take during
 the day. It even includes saying that I tag as mantras, such as this
 one, from Paulo Coelho:  Be the best, but get prepared to be
 attacked. Only mediocrity is safe ;)

 I also have a horizons_of_focus.org (from GTD) a file I review every
 week or so, and it has a list of MANTRAS I want to internalize. So,
 when I capture a mantra, I just want it to go to my reference, but I
 want to refer to it on horizons_of_focus. Is there a way (using babel
 or some other crazy elisp) to pull entries tagged as TAG (in this
 case :MANTRA:) and list them under a headline? This would be akin to a
 custom view of data stored in other source (another org file).

Perhaps the simplest solution would be to use the agenda to view all
items tagged :PITHY_SAYING_A: and to view them in succession with follow
mode.

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] [PATCH] Fix inclusion of agenda-archives in search view.

2010-07-14 Thread Matt Lundin
* org-agenda.el (org-search-view): Fixed inclusion of agenda-archives
in org-agenda-text-search-extra-files.

org-search-view lacked a local binding for
org-agenda-text-search-extra-files. Thus when pop was called on the
variable, the agenda-archives symbol was removed and subsequent
searches failed to include the archives.
---
 lisp/org-agenda.el |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 191ee52..f65ceb8 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -3444,6 +3444,7 @@ in `org-agenda-text-search-extra-files'.
  'mouse-face 'highlight
  'help-echo (format mouse-2 or RET jump to location)))
 (full-words org-agenda-search-view-force-full-words)
+(org-agenda-text-search-extra-files org-agenda-text-search-extra-files)
 regexp rtn rtnall files file pos
 marker category tags c neg re boolean
 ee txt beg end words regexps+ regexps- hdl-only buffer beg1 str)
-- 
1.7.1.1


___
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: can you require a certain template with lognotedone?

2010-07-13 Thread Matt Lundin
Hi Michael,

Michael Gilbert m...@gilbert.org writes:

 I require a note when certain TODOs are changed to DONE. These are
 almost always some sort of structured logging. Is there a way to call
 org-capture and/or require a certain template for that note? That
 would be a very powerful workflow for me.

You could use org-after-todo-state-change-hook to call a function that
invokes org-capture, using arbitrary tests to see if the current entry
has a particular property, etc.

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: Bug: Relative paths in file: links are expanded [6.36trans]

2010-07-13 Thread Matt Lundin
Aidan Gauland aidal...@no8wireless.co.nz writes:

 If I create a link with C-c C-l and give it a relative file: link, a
 link is created with an absolute path.  For example, C-c C-l
 file:../foo.org RET foo puts
 [[file:~/path/to/working-directory/foo.org][foo]] in the buffer.  I was
 expecting [[file:../foo.org][foo]].

That is the default behavior. You can change it by setting
org-link-file-path-type to relative.

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: [ANN] Org-babel integrated into Org-mode

2010-06-29 Thread Matt Lundin
Hi Eric,

Thanks again for all the work that you, Dan, and Tom have put into
org-babel. I'm glad to see it become part of org-mode!

Eric Schulte schulte.e...@gmail.com writes:

 2) Babel will now be loaded by default along with the rest of Org-mode.
This means that *everyone* currently using babel will need to change
their Emacs config and remove the (require 'org-babel-int) and/or
(require 'org-babel) lines.

I would like to request that org-babel be made an optional module. I ask
this as someone who uses org-babel regularly. Here are my reasons:

  - Org-babel adds rather specific and complex functionality to org-mode
that those who use it as a simple outliner and todo manager do not
require. (In other words, an option to turn it off might be nice for
those who are worried about feature creep.)

  - Org-babel increases the risk of accidentally executing malicious or
dangerous code when typing C-c C-c on a src block or exporting a
file. Perhaps users should activate it only after they understand
the risks.

+ For instance, I might write a blog post warning about the dangers
  of typing rm -rf ~/. If I put this between #+begin_src sh
  and #+end_src and unthinkingly hit C-c C-c, I would be in trouble.
  I believe this is the reason for the variables
  org-confirm-shell-link-function and
  org-confirm-elisp-link-function.

+ This is admitted a bit far-fetched as an example, as it would
  require one to have loaded ob-sh.el. But since elisp execution is
  activated by default, there remain opportunities for unwittingly
  executing code that is meant for other purposes (e.g., warnings,
  examples, etc.).

Support for evaluating emacs-lisp code blocks is loaded by default.
All other languages will need to be required explicitly.  To conform
to Emacs filename specifications all language require lines have been
shortened from e.g.

(require 'org-babel-sh)

to

(require 'ob-sh)

When I run make clean  make  make install I find that the language
directory is not installed. Does the langs directory require a manual
installation?

Also, with make install, the ob-* files are installed on the same level
as the org-files, yet lines 108-114 in org.el indicate that they should
be installed in a babel subdirectory.

Thanks!
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: [ANN] Org-babel integrated into Org-mode

2010-06-29 Thread Matt Lundin
Hi Nick,

Nick Dokos nicholas.do...@hp.com writes:

 Matt Lundin m...@imapmail.org wrote:


 When I run make clean  make  make install I find that the language
 directory is not installed. Does the langs directory require a manual
 installation?
 

 It's part of the git repository, so it should be present after you do a
 git pull.

My apologies if my question wasn't clear. Yes, I can see the langs
directory in the org-mode repo. The problem, however, is that make
install does not copy the lang files to the target lispdir (in my case,
/usr/local/share/emacs/site-lisp). I'm not sure about the conventional
way to handle such installation in a Makefile, but it seems that the
babel/langs/* files have to added to LISPF.


 Also, with make install, the ob-* files are installed on the same level
 as the org-files, yet lines 108-114 in org.el indicate that they should
 be installed in a babel subdirectory.
 

 Not here: they end up in org-mode/lisp/babel.

What does org-mode represent here? Are you invoking make install to
install to a target directory (lispdir) or are you simply leaving the
compiled lisp files in place in the local org-mode repository? 

This section of the lisp file flattens out the lisp/babel hierarchy in
the repo when copying to the target directory:

--8---cut here---start-8---
install-lisp: $(LISPFILES) $(ELCFILES)
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
$(CP) $(LISPFILES) $(lispdir)
$(CP) $(ELCFILES)  $(lispdir)
--8---cut here---end---8---

Thanks,
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: Bug: Definition of stuck projects [6.36trans (release_6.36.293.g2e73c)]

2010-06-25 Thread Matt Lundin
Jean-Marie Gaillourdet j...@gaillourdet.net writes:

 I've been trying to make org-stuck-projects work as advertised, but
 wasn't successfull.

 But let's start with what I'd like to achieve. My projects are marked
 with a todo keyword PROJECT. I would like to consider every project
 which has neither a task with keyword TODO nor a task with keyword
 STARTED as stuck. Especially, this means a project may contain tasks
 with active todo keywords, e.g. DELEGATED or WAITING, but it is still
 considered stuck.

 After reading the manual and the doc-string of org-stuck-projects. I
 think the following value should achieve this.

 (setq org-stuck-projects '(/PROJECT (TODO STARTED) nil ))

 But every sub task of the project with an active todo keywords make a
 project unstuck. I have the impression the list (TODO STARTED) is
 completely ignored. The following project should appear on the list of
 stuck projects, but it does not.

 * PROJECT Testprojekt   :inproject:
 *** DELEGATED a delegated subtask


I cannot replicate this. Using the setting above, I called
org-agenda-list-stuck-projects on the following file:

--8---cut here---start-8---
#+TODO: TODO PROJECT DELEGATED WAITING | DONE

* PROJECT Testprojekt :inproject:
** DELEGATED a delegated subtask
* PROJECT Another test
** TODO A todo  
--8---cut here---end---8---

The agenda yielded the correct results:

--8---cut here---start-8---
List of stuck projects: 
  test:   PROJECT Testprojekt:inproject:
--8---cut here---end---8---

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: [PATCH] Fix agenda display for late scheduled and deadline tasks

2010-06-21 Thread Matt Lundin
Hi Bernt,

Bernt Hansen be...@norang.ca writes:

 * lisp/org-agenda.el (org-agenda-get-deadlines):
 (org-agenda-get-scheduled):
 * lisp/org.el (org-time-string-to-seconds):
 For deadline and scheduled agenda display ignore the cyclic repeater
 when calculating how many days late the task is.  If you have a weekly
 task and miss the date the agenda view will show more than a week late
 now instead of resetting on the cyclic repeating date.  This makes it
 much more obvious when you missed a repeating task after the repeater.
 ---
 Updated patch - fixes DAYN - DAYNR in the docstring.

I believe this patch breaks the functionality of
org-agenda-repeating-timestamp-show-all.

I have org-agenda-repeating-timestamp-show-all set to t, but only one
occurrence of each repeating timestamp is shown.

Thanks,
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: Entries title in agenda view

2010-06-21 Thread Matt Lundin
Julien Danjou jul...@danjou.info writes:

 I did not find what I want in the documentation, so here I am.

 I've entries in the form:
 * Customers
 ** MyCustomer
 *** Project
  Meeting to do some stuff
 2010-06-21 Mon


 In the agenda view (C-c a a) I see

 Monday 21 June 2010
Meeting to do some stuff

By default, the agenda view includes the CATEGORY property. Have you by
chance customized org-agenda-prefix-format?

 Problem is that i really lacks of context. I've to scroll down to the
 entry to read the echo area.

 Is there anyway to change the entry text to include its parent headings,
 or part of them?

A couple of solutions here:

1. Add a category (assuming org-agenda-prefix-format) is set to display
   categories.

--8---cut here---start-8---
* Customers
** MyCustomer
   :PROPERTIES:
   :CATEGORY: mycustomer
   :END:
*** Project
 Meeting to do some stuff
 2010-06-21 Mon
--8---cut here---end---8---

--8---cut here---start-8---
Day-agenda (W25):
Monday 21 June 2010 W25
  mycustomer: Meeting to do some stuff
--8---cut here---end---8---

2. Use tags and set the agenda to display inherited tags:

(setq org-agenda-show-inherited-tags t)

--8---cut here---start-8---
* Customers
** MyCustomer:mycustomer:
   :PROPERTIES:
   :CATEGORY: mycustomer
   :END:
*** Project:projectA:
 Meeting to do some stuff
 2010-06-21 Mon
--8---cut here---end---8---

--8---cut here---start-8---
Day-agenda (W25):
Monday 21 June 2010 W25
  mycustomer: Meeting to do some stuff:mycustomer:projectA::
--8---cut here---end---8---

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: howto open attachment directory in external program?

2010-06-18 Thread Matt Lundin
Kestutis Matonis maton...@gmail.com writes:

 in .mailcap i have set-upped:

 inode/directory-locked; pcmanfm2 '%s';
 inode/directory; pcmanfm2 '%s';
 text/directory; pcmanfm2 '%s';

 but when I'm trying to open attachments directory, it is still opened
 in emacs.

I'm not sure why org-attach is not respecting the mailcap settings. But
for a simple solution you could add a setting to org-file-apps:

(add-to-list 'org-file-apps '(directory . pcmanfm2))

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

2010-06-17 Thread Matt Lundin
zwz zhangwe...@gmail.com writes:

 Matt Lundin m...@imapmail.org writes:

 zwz zhangwe...@gmail.com 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: Keeping agenda window

2010-06-15 Thread Matt Lundin
Radosław Grzanka radosl...@gmail.com writes:

 W dniu 2010-06-15 10:16, Livin Stephen Sharma pisze:

 Radek,  have you tried 'org-agenda-follow-mode'?   [ yes, I did
 see you write ..if i follow the link to one of my outlines.. in
 your email :) ]

 Hello,   thank you for your reply. I did not know about follow-mode
 but it seems it is not working like described here:
 http://orgmode.org/manual/ Agenda-commands.html

 It says:  In Follow mode, as you move the cursor through the agenda
 buffer, the other window always shows the corresponding location in
 the Org file. 

Follow mode works as described here. What precisely is not working for
you?

   Either way, it is really nice feature (if it works like described)
 but it still does not work like I want it. I want to be able to hit
 'RET' in agenda buffer and move cursor to other window to location of
 the heading keeping agenda display in bottom window.

Try TAB (org-agenda-goto).

,[(info (org) Agenda commands)]
| `TAB'
|  Go to the original location of the item in another window. Under
|  Emacs 22, `mouse-1' will also works for this.
`

- 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: any idea how to convert org file to MS WORD an retain text structure?

2010-06-15 Thread Matt Lundin
Christian Egli christian.e...@sbszh.ch writes:

 Rainer Stengele rainer.steng...@diplan.de writes:

 I love to edit documents in Org.

 I know what you mean.

 Unfortunately I have to finally deliver text in MS Word.

 Sometimes I find myself in that situation.

 Any idea how to best export/convert my org file to Word?

 I've used latex export followed by latex2rtf in the past. Most things
 work reasonably well, other like toc don't seem to work. So some manual
 fidgeting is required in the end.

+1 for latex2rtf (for simple documents).

For industrial-strength conversion, I'd recommend tex4ht. It has handled
every LaTeX feature I've thrown at it (biblatex, toc, index, footnotes)
with aplomb.

http://www.tug.org/tex4ht/

You can convert tex directly to odt and then save as a doc file within
OpenOffice.

- 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: preventing automatic rebuild of agenda on refiling?

2010-06-15 Thread Matt Lundin
Michael Gilbert m...@gilbert.org writes:

 I may have missed when this happened or if it's been discussed
 already, but I'm noticing that recent Org-mode automatically rebuilds
 the agenda each time I refile a task. This can dramatically slow down
 the process of refiling a lot of items. Is there a setting to change
 this?
 
 As far as I am aware of: No, you currently cannot disable it for a
 single refile operation.  But, if you refile a lot of items you might
 try Agenda's bulk action:
 
 http://orgmode.org/manual/Agenda-commands.html
 Bulk actions actually do not rebuld the agenda.

 But if I'm not mistaken, they involve refiling all the marked items to
 the same destination. That hasn't been my workflow at all.

 This is a frustrating change. I guess my option now is to jump to the
 item in question, refile it, then jump back. But given that in my
 current workflow I refile scores of items during my daily prep... Ugh.
 I'm sure there was a good reason for the change, but it just doesn't
 suit how I've come to use Org-mode.

 Anyway, if there are any other ideas out there other than waiting for
 the roundtrip of the rebuild or jumping back and forth to the source
 files, I would be interested in hearing them!

If you give a triple prefix argument to org-agenda-refile, the agenda
will not be rebuilt.

If you'd like this as the default behavior, you can bind it to a key (or
change the original binding):

(define-key org-agenda-mode-map \C-c\C-w 
  (lambda ()
(interactive)
(org-agenda-refile nil nil t)))

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: [ANN] Org to Atom, revisited

2010-06-15 Thread Matt Lundin
David,

David Maus dm...@ictsoc.de writes:

 The Org to Atom exporter I've preliminary announce some weeks ago
 entered a state I consider to be stable and consistent enough to be
 included into Org mode.

Thanks. This looks great! I had grand plans a year or so ago to work on
a feed exporter, but your org-atom.el far outleaps my brief, faltering
steps in that direction. I look forward to using it.

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: Timestamp format questions

2010-06-07 Thread Matt Lundin
Hi Joost,

Joost Kremers joostkrem...@fastmail.fm writes:

 Most pressing: how can I say that a certain event occurs every week on
 a certain day and time, but only for a limited period? E.g., for
 classes I teach I want to be able to say 'this class takes place from
 April 8 through July 8, every Thursday from 12.00 to 14.00. If I
 write:

2010-04-08 Thu 12:00-14.00 +1w

 I get the correct time and interval, but of course it doesn't stop at the
 correct date. However, if I write

2010-04-08 Thu 12:00-14.00 +1w--2010-07-08 Thu

 then it shows up *every day* in the agenda view, not just on Thursdays. (That
 actually looks like a bug to me, but perhaps I'm doing something
 wrong.)

You can use diary sexps to schedule more complex appointments.

, (info (org) Timestamps) 
| DIARY-STYLE SEXP ENTRIES
|  For more complex date specifications, Org mode supports using the
|  special sexp diary entries implemented in the Emacs calendar/diary
|  package.  For example
| 
|   * The nerd meeting on every 2nd Thursday of the month
| %%(diary-float t 4 2)
`

See also the following FAQ entry:
http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files

The function org-diary-class nicely covers the scenario above:

--8---cut here---start-8---
* 12:00-14:00 Weekly class
%%(org-diary-class 4 8 2010 7 8 2010 4)
--8---cut here---end---8---

http://orgmode.org/worg/org-faq.php#org-diary-class

 Also, is there a way to say that a certain event that occurs every
 week does not occur on one specific date? For example, I teach a class
 every Thursday, but the Thu. 13th of May was Ascension Day, so the
 class was cancelled. I would like the event to not show up on such
 days.

--8---cut here---start-8---
* 12:00-14:00 Weekly class
%%(org-diary-class 4 8 2010 7 8 2010 4 19)
;; iso number of the week to skip
--8---cut here---end---8---

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] Bug: Pretty display of subscripts and hyperlinks

2010-06-06 Thread Matt Lundin
Hi Carsten,

Git commit 70d24c5d036cd5787f719104a0ad2f157c5207b1 causes underscores
in hyperlinks to display parts of link and description as subscripts.
E.g., this link...

[[http://www.samplepage.com/an_underscore][Some description words]]

...displays the word Some in the description as a subscript. With M-x
visible-mode, the substring underscore][Some is displayed as a
subscript.

Thanks,
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: For Org-mode on the go?

2010-06-05 Thread Matt Lundin
Tim O'Callaghan tim.ocallag...@gmail.com writes:

 Just though I'd point out the NanoNote a $99 Linux Palmtop, that
 should run Emacs.

Out of curiosity, do you know of anyone who has ported Emacs for use on
the device? Last I heard, the NanoNote ran OpenWrt, which AFAICT has no
Emacs package. 

From the wiki:

,
|  editor
| 
| * vim
| * joe
| * zile like emacs. 
`

http://en.qi-hardware.com/wiki/Ben_NanoNote_Software_Status

Thanks,
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: clocktable and :tags

2010-06-05 Thread Matt Lundin
Kristofer Bergstrom k...@onensemble.org writes:

 Unfortunately, the :tags element of clocktable dynamic blocks does not
 seem to be functioning properly.  Identical commands on Sebastian's
 system worked fine.  The problem can be seen below in a test I'm
 using.  Running C-c C-c while on the clocktable line updates the
 timestamp in the clocktable, but the tags element is not being
 evaluated.

Using your example, it works fine here with the latest org-mode:

--8---cut here---start-8---
#+BEGIN: clocktable :tags PHONE :maxlevel 2 :scope file
Clock summary at [2010-06-05 Sat 12:29]

| L | Headline   | Time   |
|---++|
|   | *Total time*   | *0:03* |
|---++|
| 1 | Non work-related project 3 | 0:03   |
#+END:
--8---cut here---end---8---

 Or maybe I should upgrade to a newer version of org-mode?  I don't
 know how to determine the current version I am using... 

Type M-x org-version. 

Or in an org-mode buffer you can use the menu: 

  - Org -- Documentation -- Show version

Since the clock report is working fine here with an up-to-date org-mode,
I'd recommend trying the most recent release:

http://orgmode.org/org-6.36c.tar.gz

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: Switching states without taking a note, occasionally

2010-05-22 Thread Matt Lundin
Hi Juri,

Juri Krivov jkri...@gmail.com writes:

 I have my TODO states set up in a way so that I am often
 asked for a state change note, because this is most of the time what
 I want.  Example would be
 #+TODO: TODO(t) | DONE(d@)
 However, sometimes I have a couple of tasks that I would like to
 quickly
 switch to DONE, without going through the noting process.  Is there
 a way to do this, to switch task with note-taking switched off
 temporarily?

You can set the :LOGGING: property for that item:

(info (org) Tracking TODO state changes)

E.g., 

--8---cut here---start-8---
* TODO No note todo
  :PROPERTIES:
  :LOGGING:  nil
  :END:
--8---cut here---end---8---

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: GitHub

2010-05-22 Thread Matt Lundin
Hi Carsten,

Carsten Dominik carsten.domi...@gmail.com writes:

 since a number of you have voiced a strong preference for Org-mode to
 be hosted on GitHub, I am not considering such a step.

 Could someone spell out for me what steps I would have to take to do
 this?
 In particular:

 - How do I get the entire current repo onto GitHub?
 - Can I set up repo.or.cz in a way that it will become an
   automatic mirror, so that old clones will continue to be updated when
   pulling?

+1 for keeping a mirror on repo.or.cz. I prefer its simple, no-nonsense
web interface.

Does this mean that Worg will also switch to github or will it stay on
repo.or.cz?

Thanks,
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] [PATCH] Don't build org-refile-cache if org-refile-use-cache is nil

2010-05-21 Thread Matt Lundin

The function org-get-refile-targets was building org-refile-cache even
if org-refile-use-cache was set to nil. This caused every refile
attempt to call org-refile-cache-clear and to produce the message
Refile cache has been cleared.
---
 lisp/org.el |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index d21aa1f..496eceb 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9661,7 +9661,8 @@ on the system \/u...@host:\.
 (when (= (point) pos0)
   ;; verification function has not moved point
   (goto-char (point-at-eol
-   (org-refile-cache-put tgs (buffer-file-name) descre)
+   (when org-refile-use-cache
+ (org-refile-cache-put tgs (buffer-file-name) descre))
(setq targets (append tgs targets))

 (message Getting targets...done)
-- 
1.7.1


___
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] [PATCH] Fix org-refile-cache-check-set

2010-05-21 Thread Matt Lundin

Org-refile-cache fails when org-refile-use-outline-path is set to file.
Specifically, org-refile-cache-check-set throws a markerp error when it
encounters file targets, since they have nil instead a marker object.
This patch applies the test only to targets with markers (i.e.,
headings).
---
 lisp/org.el |   15 +--
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 496eceb..38e6a30 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9537,13 +9537,16 @@ on the system \/u...@host:\.
 
 (defun org-refile-cache-check-set (set)
   Check if all the markers in the cache still have live buffers.
+  (let (marker)
   (catch 'exit
-(while set
-  (if (not (marker-buffer (nth 3 (pop set
- (progn
-   (message not found) (sit-for 3)
-   (throw 'exit nil
-t))
+(while (setq marker (nth 3 (pop set)))
+  ;; if org-refile-use-outline-path is 'file, marker may be nil
+  (when marker
+   (if (not (marker-buffer marker))
+   (progn
+ (message not found) (sit-for 3)
+ (throw 'exit nil)
+t)))
 
 (defun org-refile-cache-put (set rest identifiers)
   Push the refile targets SET into the cache, under IDENTIFIERS.
-- 
1.7.1


___
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] only display a scheduled item if it is due today or in the past

2010-05-21 Thread Matt Lundin
Nathaniel Flath flat0...@gmail.com writes:

 On May 2, 2010, at 7:37 PM, Nathaniel Flath wrote:

 One thing I've wanted from org-mode is the ability to have
 certain items 'hidden' from the agenda until the day they are
 scheduled - this patch implements this for all properties who
 have a STYLE property of 'hidden'.   I ended up implementing
 this(the patch is attached), and thought I'd contribute it to
 org-mode. If you have any comments, please let me know.

 The primary use I have for it is essentially what Nathan said - it
 controls display or recurring items to be the same as habits, with the
 exception of not displaying the habit graph.

To avoid seeing future instances of recurring tasks, you can set the
variable org-agenda-repeating-timestamp-show-all to nil. 

 I also use it when scheduling items that can't be started before a
 certain date.  For example, I recently got a note that my tax return
 was being inverstigated and that I should contact the IRS in 30 days. 
 Now, I schedule this item for 30 days from now, but in 23 days it
 starts showing up in my weekly agenda, even though there's nothing that
 can be done about it at that point.  I'd much rather have it only
 display when it can actually be worked on.

I'm still a bit confused about this patch. By definition, scheduled
items do not appear on the agenda until the day on which they are
scheduled. As I understand it, this patch is primarily for weekly
agendas---i.e., to prevent items scheduled on Friday from appearing
under the Friday slot until it is indeed Friday. In that case, why not
use the daily agenda instead of the weekly agenda?

Would it perhaps be better to write a personal skip function that
handles this instead of hard-coding another test in org-agenda.el?

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: Co-maintainer, a least for some time?

2010-05-20 Thread Matt Lundin
Hi Carsten,

Carsten Dominik carsten.domi...@gmail.com writes:

 I am having a lot of trouble keeping up with everything here in emacs-
 orgmode, in combination with the rest of my life.

 Is there anyone who would be willing to step up as a co-maintainer, at
 least for some time?

 The tasks would include looking at small patches people submit, making
 decision about whether to apply them, checking copyright issues, and
 applying the patches.  I will be around, so important decisions can be
 deferred to me.

I'm happy to help out as much as my emacs-lisp and git skills allow.
Though others here are far more qualified to serve as an official
co-maintainer, I could try to pick up some of the slack by working on
any bug fixes, issues, patches, etc. you or the co-maintainer might be
willing to delegate.

Speaking of which, I've been meaning to sign papers with the FSF. I'll
do that ASAP.

I, too, vote for some sort of issue tracking system. Perhaps this could
be as simple as some of around us here replying to issues on the list
with an I'll take a look at this or I'll take responsibility for
this. We've all been spoiled by your wonderfully quick and attentive
responses to mailing list posts. Perhaps, however, it's time for the
community to take more responsibility for claiming issues, bug fixes,
etc. within the first 24 to 48 hours of their arrival on the list. If an
issue proves too difficult to solve then the responsible party can defer
to your or the co-maintainer's expertise.

Since this is org-mode, I would prefer to use an org-mode file to track
issues. After all, the Wikipedia article on org-mode highlights its
suitability for Distributed issue tracking.[1] The challenge, of
course, would be to coordinate this file with the mailing list. Perhaps
we could publish a remember template so that contributors, when claiming
an issue, can easily create a new todo (with a unique id) in the
org-issues file and publish the id in their reply: e.g., opened and
claimed issue [ID number]. Just an idea...

Best,
Matt

Footnotes:

[1] Org-mode can be used as a distributed issue tracker, by storing .org
files in a distributed revision control system. Developers of the
org-babel extension to org-mode use org-mode in this way to track bugs
and feature requests. http://en.wikipedia.org/wiki/Org-mode

___
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: Co-maintainer, a least for some time?

2010-05-20 Thread Matt Lundin
Carsten Dominik carsten.domi...@gmail.com writes:

 I think this i an excellent idea, and keeping this file on Worg so
 that people can access it on the web and modify it when needed is a
 good idea.

 If everyone agrees, then I am glad to accept your offer to start a
 system like this.

 Matt, I guess this covers pretty much exactly what you were proposing?

Yes, I very much like the idea. 

David: I look forward to seeing what you develop!

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: skip entry with inherited tags

2010-05-18 Thread Matt Lundin
Martin Pohlack m...@os.inf.tu-dresden.de writes:

 Hi,

 On 18.05.2010 09:42, Matthias Teege wrote:
 Moin,

 I'm using a simple skip-function to exclude todos from a list.

 (defun my-skip-someday-and-scheduled ()

   (org-agenda-skip-entry-if 'scheduled 'regexp :SOMEDAY:))

 That works when the tag was assigned to an entry but not when it was
 inherited from a parent. How do I get all tags for an entry?

 I have been using the same approach with the same limitations.  I
 stumbled upon the tags filter preset, which supposedly should filter
 out headlines with a specific tag set.

 I tried to set it to -maybe but it did not seem to have an effect
 with the default Agenda type.  Is this supposed to work?

Did you set the variable as a list? 

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((x No maybe todo 
 ((org-agenda-filter-preset '(-maybe))
--8---cut here---end---8---

BTW, I believe one solution to the original question is:

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((x No scheduled or someday todo 
 ((org-agenda-todo-ignore-scheduled t)
  (org-agenda-filter-preset '(-SOMEDAY))
--8---cut here---end---8---

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: Include FAQ to info? (was: Org-FAQ request for full-text dump)

2010-05-15 Thread Matt Lundin
Carsten Dominik carsten.domi...@gmail.com writes:

 On May 13, 2010, at 6:46 PM, Memnon Anon wrote:

 Hi.

 Wouldn't it be nice to have the FAQ available for offline-browsing
 as
 well?

 The FAQ is an Org file, available in Worg...


 So does Gnus, Emacs itself ...

 If it is too much work to convert it to info proper, maybe an
 orgfile
 like org-help.org[1] could be added to the distribution.

 I do like org-help.org.  But someone would have to:

 - go through it to check if it up to date
 - commit to do this again to update every few releases

I'd be happy to do this. Just to be clear, is the envisioned
org-help.org simply the org FAQ with a different title or a
redacted/abridged of the FAQ?

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: Poll: Who is using these commands

2010-05-11 Thread Matt Lundin
Carsten Dominik carsten.domi...@gmail.com writes:

 How many of your are using these keys

 C-c C-f
 C-c C-b
 C-c C-n
 C-c C-p

 for navigation through the outline?  These are first class keys,
 and I would have good uses for these keys if most people don't
 actually use them.

I use C-c C-n and C-c C-p quite frequently. The others I do not use at
all.

My primary use for C-c C-n and C-c C-p is to move from an entry to a
heading so that I can then use speed keys to climb and descend the
outline. I would not mind if they were rebound.

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: org mode as tabbed notebook

2010-05-07 Thread Matt Lundin
katepano katep...@gmail.com writes:

 I was wondering if somebody managed to use orgmode as atabbed
 notebook, like gjots, or the old keynotes program from windows which I
 miss a lot or even Ms one note. I tried using tabbed.el or speedbar,
 or the sitemap of orgmode but it was not satisfactory. Any way how you
 manage to have a lot of files open simultaneously, with the buffer
 list?

One easy way to switch org-buffers is to use C-c b (org-iswitchb) in
conjunction with ido, which allows for fuzzy matching.

I have the following settings in my emacs file:

--8---cut here---start-8---
  (ido-mode 1)

  (ido-everywhere 1)
  (setq ido-confirm-unique-completion t)
  (setq ido-enable-flex-matching t)

  ;; will use ffap-guesser to determine whether file name is at point
  (setq ido-use-filename-at-point 'guess)

  (setq org-completion-use-ido t)
--8---cut here---end---8---

Note that these settings also make ido the default interface for
switch-to-buffer and find-file.

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] org-check-for-hidden breaks promote/demote in region

2010-05-06 Thread Matt Lundin
Hi Carsten,

I find that commit 11baa7cf77245cc2a5f44dd55e034157896ad08d (which
changes the behavior of M-left and M-right) makes it impossible to
promote and demote headlines in a region.[1]

In the past, if I marked a region of folded headlines and used M-left or
M-right, org-mode would promote/demote all the headlines in the region.
Now, it simply throws the following error:

Hidden subtree, open with TAB or use subtree command
M-S-left/right 

The problem: When the region is active, M-S-left/right (as in the
past) only moves a single subtree, so AFAICT there is currently no way
to promote/demote all headings in a region.

While I appreciate the new safeguard for single outline headings, IMO
the check is irrelevant when attempting to act on headlines in a region,
since (1) the user chooses to move an entire region and (2) the hidden
headlines are normally included in the region.

Here's a patch that skips the check if the region is active:

--8---cut here---start-8---
diff --git a/lisp/org.el b/lisp/org.el
index 0385383..463a0eb 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16146,20 +16146,19 @@ this fucntion returns t, nil otherwise.
beg end)
 (save-excursion
   (catch 'exit
-   (if (org-region-active-p)
-   (setq beg (region-beginning) end (region-end))
+   (unless (org-region-active-p)
  (setq beg (point-at-bol))
  (beginning-of-line 2)
  (while (and (not (eobp)) ;; this is like `next-line'
  (get-char-property (1- (point)) 'invisible))
(beginning-of-line 2))
- (setq end (point)))
-   (goto-char beg)
-   (goto-char (point-at-eol))
-   (setq end (max end (point)))
-   (while (re-search-forward re end t)
- (if (get-char-property (match-beginning 0) 'invisible)
- (throw 'exit t)))
+ (setq end (point))
+ (goto-char beg)
+ (goto-char (point-at-eol))
+ (setq end (max end (point)))
+ (while (re-search-forward re end t)
+   (if (get-char-property (match-beginning 0) 'invisible)
+   (throw 'exit t
nil
 
 (defun org-metaup (optional arg)
--8---cut here---end---8---

Thanks,
Matt

Footnotes:

[1] The change was discussed in this thread: 
http://mid.gmane.org/l2me4f0b2511004191529s16b84452kb4feea51f0635...@mail.gmail.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: Linking Mail ?

2010-04-29 Thread Matt Lundin
David Frascone d...@frascone.com writes:

 I finally got gnus working with my gmail account.  (I didn't want to
 try my work account first, because too many failed logins will lock it,
 and I have to call IT . . . Pain in the . . )
 But, in a nutshell, it is simply WAY too slow.  

Could you explain what was slow? I find Gnus to be as fast as any mail
reader I've used, but it all depends on how one sets it up and whether
one uses other processes to fetch mail:

http://www.emacswiki.org/emacs/GnusSpeed

 I don't mind a command line mail, though I prefer a gui with nice
 keyboard shutcuts.  I used mutt for many, many years . . . . but, gnus
 is not mutt.  I don't think an e-macs mail reader will really work for
 links, 

I do not understand what you mean here.

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: org-agenda-todo-ignore-scheduled setting not affecting custom agenda

2010-04-28 Thread Matt Lundin
Paul Mead paul.d.m...@gmail.com writes:

 If I use one of the built-in agenda comands, for instance C-c a t any
 scheduled todos are omitted as expected. If I select any of my custom
 agenda commands, they are not.

As far as I can see, there is only one custom command to which the
ignore option would apply: the todo STARTED search in a (the
custom block agenda). 

It looks as if most of your custom agenda commands are tags-todo
searches. Try the following setting:

(setq org-agenda-tags-todo-honor-ignore-options t)

Best,
Matt


 ;; Agenda settings

 (setq org-agenda-start-with-log-mode t)
 (setq org-agenda-include-diary t)
 (setq org-agenda-ndays 1)
 (setq org-agenda-start-on-weekday nil)
 (setq org-agenda-tags-column 120)
 (setq org-agenda-todo-ignore-scheduled 'all)
 (setq org-agenda-todo-ignore-deadlines nil)
 (setq org-enforce-todo-dependencies t)
 (setq org-agenda-dim-blocked-tasks t)
 (setq org-agenda-skip-deadline-if-done t)
 (setq org-agenda-skip-scheduled-if-done t)
 (setq org-agenda-skip-timestamp-if-done t)
 (setq org-agenda-skip-unavailable-files t)
 (setq org-agenda-window-setup 'current-window)
 (setq org-archive-default-command 'org-archive-to-archive-sibling)
 (setq org-agenda-prefix-format
  '((agenda .   %-20:c%?-12t% s)
(timeline .   % s)
(todo .   %-20:c)
(tags .   %-20:c)
(search .   %-20:c)))
 (setq org-agenda-todo-keyword-format %-10s)

 (setq org-agenda-custom-commands
'((a Custom block Agenda
   ((agenda )
(todo STARTED)
(tags-todo FOCUS/!-STARTED-WAITING
  ((org-agenda-todo-ignore-scheduled t)
  (d DONE list todo DONE
   ((org-agenda-todo-ignore-scheduled nil)
(org-agenda-todo-ignore-with-date nil)
(org-agenda-todo-ignore-deadlines nil)))
  (p Project list tags project)
  (c Call list tags-todo phone
   ((ps-number-of-columns 1)
(ps-landscape-mode t)
(org-agenda-prefix-format  %-20:c [ ]  )
(Orgae-agenda-with-colors nil)
(org-agenda-remove-tags t))
   (~/My Dropbox/calls.ps))
  (o In the office
   ((tags-todo @office)
(tags-todo online)
(tags-todo pc)
(tags-todo phone)
(tags-todo penpaper)
   ))
  (h Working from home
   ((tags-todo wfh)
(tags-todo online)
(tags-todo pc)
(tags-todo phone)
(tags-todo penpaper)
))
  (f FOCUS list tags-todo FOCUS
   ((org-agenda-overriding-header Focus actions:
 )




 ___
 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: [enhancement request] Re: Recursive calender item

2010-04-28 Thread Matt Lundin
Richard Riley rileyrg...@gmail.com writes:

 I think a better operation be for org-mode to duplicate the repeated
 task +n ahead when marked as done and create a non repeat version of
 the original as done so it leaves a marked done item in the agenda at
 the original date.


I believe one can already accomplish this in a couple of ways:

1. By setting the variable org-log-repeat to time and using the agenda's
   log view to browse completed tasks.

2. By using org-clone-subtree-with-time-shift to create multiple
   instances of a todo at specified intervals.

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: Custom agenda view - filter by priority AND scheduled date

2010-04-28 Thread Matt Lundin
Barton abubi...@gmail.com writes:

 In my workflow, I move by priorities and scheduled dates for the tasks.
 My goal with this issue is to have a view that would show me only the
 tasks with certain priority(-ies) that are scheduled for today (or are
 overdue, as in  (org-agenda-repeating-timestamp-show-all t) ).

 My feeble attempt here:

 (setq org-agenda-custom-commands
   '((c Custom
  ((agenda  ((org-agenda-ndays 1))) 
   (tags-todo +PRIORITY=\A\)))
 ;; ...other commands here
 ))

 ... displays a usual daily agenda and following it, _all_ the #A tasks
 that I have. Clearly not what has been intended.

Here's one way to do it:

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((c Custom tags-todo +SCHEDULED=\today\+PRIORITY=\A\)
;; ...other commands here
))
--8---cut here---end---8---

Another approach is to use the daily agenda view and a skip function.
This is a bit faster than the first example:

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((c Custom agenda 
 ((org-agenda-entry-types '(:scheduled))
  (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp 
\\[#A\\]
;; ...other commands here
))
--8---cut here---end---8---

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] Re: Questions about creating new nodes (headings)

2010-04-28 Thread Matt Lundin
David Frascone d...@frascone.com writes:

 Here are two questions (or maybe one question, and a bug report) from
 my note taking while reading the manual.

 * Best way to make next menu item?  M-Enter seems to work pretty
 well.
 I'm not to happy with the way org-mode adds a blank line after a block
 of text when doing C-S-RET from the entry line, and M-RET from the
 block of text.  Do most of you have a blank line after your text
 blocks, but before the next entry?  And, I just noticed that it
 doesn't ALWAYS add the blank line . . . tres strange.  The blank lines
 seem
 to have some correlation with having other blank lines after higher
 nodes.
 It is VERY strange behavior . . so far, unpredictable to me :)

See the docstring for org-blank-before-new-entry:
  - i.e.,  C-h v org-blank-before-new-entry

If you never want a blank line, the simplest setting is:
(setq org-blank-before-new-entry nil)

 * C-RET does not seem to do what the info page suggests.
 It seems to go into a column selection mode.  Which, by itself, is
 very useful, and I'll have to remember that.   I can't seem to find
 the C-RET behavior anywhere (jump over the body, and add a new
 heading at the same level. C-S-RET Does do what it is supposed to,
 so, I guess a good workaround is C-S-RET, then backspace over the
 TODO.

I cannot reproduce this behavior. C-RET correctly creates a new headline
beneath the current entry.

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: Does anyone use Jump C-c C-j

2010-04-28 Thread Matt Lundin
David Frascone d...@frascone.com writes:

  Jump - seems really hard to use.

 C-c C-j.  Opens help window with cursor in it, so I have to C-x o to
 get to Org-goto window.  Then, once in the goto window, hitting tab
 opens the subtree, but pressing a down arrow again goes back to the
 top.  Seems very useless for actually finding anything.  Am I using it
 wrong?  Dropping a mark and C-x C-x seems much easier.

There is another (and IMO more convenient) interface for org-goto (C-c
C-j). To test it, try the following setting:

(setq org-goto-interface 'outline-path-completion) 

Otherwise, you can try fiddling with the other org-goto variables. Type
C-h v org-goto [TAB] for a full list.

- 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: Copying and Pasting (and Selecting)

2010-04-28 Thread Matt Lundin
David Frascone d...@frascone.com writes:

  Copying and Pasting
 This could just be me fighting with Aquamacs (Cmd-C, Cmd-V, Cmd-etc
 mac keys). But, the cutting, copying, and pasting do not seem very
 intuitive.  I am used to (from old emacs days) using C-w and C-y, but,
 i usually did that over regions.  Shift-Arrows to select, etc.  When I
 shift arrow over a subtree it mucks with priority.  I know that's by
 design, but I find it annoying.  Doing the alternative (cutting a
 subtree) does NOT seem intuitive to me.  (Well, the C-w at the end of
 the command (C-c C-x C-w) does).  But, I'm not trying to report a bug
 -- I'm actually asking a question:  How do you guys typically select a
 region and move it, assuming that you can't just move the subtree with
 M-S-Arrows

1. I use C-[SPACE] together with transient-mark-mode to select a region
   and then type C-w to kill it and C-y to yank it.

2. I often kill folded subtrees with a simple C-k (org-kill-line).

3. I make frequent use of org-refile.

- 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: Linking Mail ?

2010-04-28 Thread Matt Lundin
David Frascone d...@frascone.com writes:

 2) Which mail subsystem would be most compatible and easiest to use? 
 MH?  Gnus?  And, would it be worth the trouble setting up on a mac?

You might want to check out this recent ML discussion:

http://thread.gmane.org/gmane.emacs.orgmode/23481/focus=23588

- 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: Another stupid one -- archiving and reports

2010-04-26 Thread Matt Lundin
David Frascone d...@frascone.com writes:

 Similarly, I'd like to archive off old completed tasks.

 Could someone point me to how to do these things . . . I'm sure it's
 documented somewhere :)

(info (org) Archiving)

- 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: Suggestions needed for handling ideas

2010-04-26 Thread Matt Lundin
Hi Ali,

Ali Tofigh alix.tof...@gmail.com writes:

 What really feels unsatisfactory to me is that only headlines can be
 TODO items. I want to be able to insert TODO items in the middle of a
 section. I've looked at the inline-tasks add-on, but that doesn't
 really do it for me... 

Could you please elaborate?

 Anyway, I understand that the way org-mode is implemented right now,
 it would be very impractical to try to add non-headline TODO-items. In
 any case, org has simplified my life, even before I've optmized the
 way I use it. It's great!

Here's one quick hack to search for non-headline todo items (i.e.,
checkboxes):

C-c a / \[ \] [RET]

This will generate a list of all open list items, such as,

 - [ ] Review this idea

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: due today notification

2010-04-24 Thread Matt Lundin
Buck Brody buckbr...@gmail.com writes:

 Is there a way to know if an item is due today by only looking at the
 headline or at an agenda?  For instance, could a tag today be
 triggered based upon a deadline? Basically, when looking at a sparse
 tree or an agenda, I would like to know what is due today without using
 agenda for current day or week or going into column view.

C-c / m DEADLINE=today [RET]

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: Emacs 24; view-diary-entries-initially

2010-04-23 Thread Matt Lundin
Nick Dokos nicholas.do...@hp.com writes:

 Tomas Dahlqvist tomas.dahlqv...@gmail.com wrote:

 I have started using Emacs 24 from git.

 Just a note for the unwary: the emacs project page says

  Note that the CVS and Git repositories are *not* up-to-date.

 IOW, you *have* to use bzr to access the sources, if you intend to keep
 up-to-date with emacs24 development.


In my experience, this git mirror stays up-to-date:

http://repo.or.cz/w/emacs.git

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: [PATCH] followup to `org-rember-templates' docstring

2010-04-20 Thread Matt Lundin
Hi Carsten,

Carsten Dominik carsten.domi...@gmail.com writes:

 On Apr 16, 2010, at 10:45 AM, Chris Gray wrote:

 Carsten Dominik wrote:

 Hi Stepan
 On Apr 16, 2010, at 12:23 AM, Štěpán Němec wrote:


 Hello,

 I'm sorry for my somewhat precocious previous mail (which I
 unfortunately still don't see posted, I use Gmane and am not
 subscribed
 -- any chance of making the list not moderated?).

 No, we like it spam free here.  Please subscribe, if you don't want
 to receive the mails, use some throw-away web-based email address.

 With all mailman mailing lists, it's also possible subscribe using
 your
 normal email address and turn off delivery.  It's one of the options
 in
 the settings screen.  This makes it easier to remember which email
 address you should use to write to the list with.

 This may be worth a FAQ entry.


I just added an FAQ on this.

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: Agenda View: Do not display items scheduled in the past

2010-04-19 Thread Matt Lundin
Friedericksen Hope friedericksen.h...@gmail.com writes:

 I tried to solve this problem with the manual, but I was not very
 successfull. I have an org file with several items, nearly all with a
 timestamp. When I open the standard agenda with C-x a a I get a weekly
 view with a display of all scheduled items from the past (like missed
 items) in red below the todays appointment. (I hope you can
 understand).

 The items scheduled in the past are displayed ion red with a number
 like 3x saying that it was scheduled three days before.

 How can I prevent orgmode from displaying these items? I only want to
 see items with a timestamp today (and, of course, deadline items in
 the next two weeks).

(setq org-scheduled-past-days 0)

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: How you ORGanize yourself? (aka: Why not one file to rule'em all?)

2010-04-17 Thread Matt Lundin
Hi Marcelo,

Marcelo de Moraes Serpa celose...@gmail.com writes:

 This is a thread to share your org dir (you have one right) file
 structure. The title is because I see many of org users prefer having
 big monolithic files, and I have a slightly different line of thought.

I have a handful of central files: e.g, inbox.org, reading.org,
computer.org, writing.org, and so on. I've found, however, that on my
relatively modest machines org/outline buffers slow down at appr.
12,000+ lines and become more or less unnavigable at appr. 30,000+ lines
(especially if they have a deeply nested structure). Whenever a file
gets too large, I simply create new files for sub-projects and
sub-topics (e.g., perl.org, emacs.org, etc.) and link to them from the
main file (e.g., computer.org). I also do a lot of archiving.

FWIW, I've found it quite convenient to rely on filetags to organize my
notes. I've written a few functions that allow me to limit my agenda to
a subset of agenda files that share a filetag (e.g., emacs or
writing). This is a bit quicker than calling agenda commands on all
agenda files and then filtering afterward. It also allows for greater
focus on a particular area of work.

Here are the functions:

http://orgmode.org/worg/org-hacks.php#set-agenda-files-by-filetag

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: [Babel] Macro for begin_src?

2010-04-17 Thread Matt Lundin
Erik Iverson er...@ccbr.umn.edu writes:

 http://doc.norang.ca/org-mode.html#Yasnippets

 If anyone else has a different macro set up, I'm still interested in
 hearing your solutions.


 Nope, yasnippet is the way to go I think!

There are quite a few other options. IMO, installing yasnippet is
overkill if you are only using it for comment blocks in org-mode.

1. The first and simplest option is built into org-mode. Simply type:

s [TAB] or [M-TAB]

This will automatically expand to:

--8---cut here---start-8---
#+begin_src 

#+end_src
--8---cut here---end---8---

For a full list of completions, type C-h v
org-structure-template-alist.

2. The second option is to save the text to a register:

(set-register ?b #+begin_src\n\n#+end_src)

Then type C-x r i b to insert the source block.

(info (emacs) Registers)

3. You can use abbrev mode for dynamic expansion:

 - Activate the abbrev minor-mode in org-mode:

   + M-x abbrev-mode

   + permanently: (add-hook 'org-mode-hook (lambda () (abbrev-mode 1)))

 - In org-mode, type something like sbp for a perl source block.

 - Immediately after sbp type C-x a i l.

 - Enter the expansion: #+begin_src perl[C-q C-j][C-q C-j]#+end_src

   + Note: the C-q C-j creates a new line in the minibuffer

 - Now, whenever, you type sbp[Space, RET, TAB, etc.] in an org-mode
   buffer, the src block will magically appear.

 - If you want more complex completion (like yasnippet) you can combine
   abbrev mode with skeletons.

   See: 
- (info (emacs) Abbrevs) and
- http://www.emacswiki.org/emacs/SkeletonMode

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: Support (or not) for Emacs 21, and XEmacs

2010-04-16 Thread Matt Lundin
Hi Carsten,

Carsten Dominik domi...@uva.nl writes:

 I have made a test version of Org with the compatibility code
 for XEmacs and without some of the left-over compatibility
 code for Emacs 21.

 I would appreciate if some people could check out the
 `remove-compatibility-code' branch from repo.or.cz and report back
 if they experience any problems with Emacs 22, 23, and 24, either
 during compilation or while running.

No problems here so far. In fact, I received fewer warnings during
compilation.

GNU Emacs 24.0.50.7 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0)
 of 2010-04-15 on archdesk

- 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: Show entries which have been logdone in the last several days?

2010-04-15 Thread Matt Lundin
filebat Mark filebat.m...@gmail.com writes:

 I am a big fun of org-mode, and right now I'd like to get the
 statistics for the time allocation in my daily life.
 Apparently, not all things are important, so some entries may not have
 the timestamp like 2010-04-15 19:48.
 Thus agenda view can't help for my question, it seems can't show the
 entries which are closed like the following:

 ,---
 | *** DONE Check which node run which stage
 | CLOSED: [2009-11-23 星期一 17:12]
 | This is an sample.
 `---

You can display inactive timestamps in the agenda view:

,[Org Manual 10.5, Commands in the Agenda Buffer]
| `v l  or short  l'
|  Toggle Logbook mode.  In Logbook mode, entries that were marked
|  DONE while logging was on (variable `org-log-done') are shown in
|  the agenda, as are entries that have been clocked on that day.
|  You can configure the entry types that should be included in log
|  mode using the variable `org-agenda-log-mode-items'.  When called
|  with a `C-u' prefix, show all possible logbook entries, including
|  state changes.  When called with two prefix args `C-u C-u', show
|  only logging information, nothing else.  `v L' is equivalent to
|  `C-u v l'.  
| 
| `v [  or short  ['
|  Include inactive timestamps into the current view.  Only for
|  weekly/daily agenda and timeline views.  
`

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: Using org-agenda opens all my .org files.

2010-04-14 Thread Matt Lundin
Rich Wellum richwel...@gmail.com writes:

 When I run org-agenda to look at all my TODO's - every single .org file is
 opened into buffers. Is this simply the way it works or is my setup
 incorrect? It's a pain to have to kill all those buffers each time.

This is the way that org-mode works. If you'd like to release/kill your
org-mode buffers, simply type x in the agenda.

Might I ask why you want to kill the org buffers once they have been
opened? It is a relatively expensive operation to open and parse all the
org files the first time the agenda is generated. However, once the org
files (and all the properties added by org-mode) are loaded into memory,
agenda creation is much quicker. 

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: org-protocol and web links

2010-04-06 Thread Matt Lundin
Hi Richard,

Richard Riley rileyrg...@gmail.com writes:

 Does anyone have a w template  which can  store a hot link using the
 page title (not just the url) in addition to the selection under the
 title line? The problem I find is that I havent got the combo right to
 do this : if I select something on a conkeror page and then call
 org-remember the selection becomes the %c which is usually used to store
 an encoded title and url org link.

 e.g I want my new org item first line to be something like the following
 if I invoke org-remember from conkeror on a web page having first
 hilited blah blah somewhere on the page

With the following org-remember-template:

--8---cut here---start-8---
(setq org-remember-templates
  '(
;; other templates here
(protocol ?w * %c\n %U\n\n %i nil bottom nil)
))
--8---cut here---end---8---

I get the following when I select text on the org-mode home page in
conkeror and call org-protocol-remember (which I have bound to C-c r in
conkeror):

--8---cut here---start-8---
* [[http://orgmode.org/][Org-Mode: Your Life in Plain Text]]
 [2010-04-06 Tue 16:07]

 Org-mode is for keeping notes, maintaining ToDo lists, doing project
 planning, and authoring with a fast and effective plain-text system.
--8---cut here---end---8---

What do you have in your conkerorrc? I'm currently using the setup I put
up on the org-protocol page on Worg:

http://orgmode.org/worg/org-contrib/org-protocol.php#sec-8.1

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: Add org-habit to org-modules

2010-04-05 Thread Matt Lundin
Nathan Neff nathan.n...@gmail.com writes:

 Is there a way to add org-habit to the
 org-modules list without using org-custom and without
 specifying all the modules at once, like this:

 (setq org-modules (quote (org-bbdb org-bibtex blah blah blah)))

 I'm looking for something like this:
 ;; Except this doesn't work :-)
 (append org-modules (list ('org-habit)))

(add-to-list 'org-modules 'org-habit)

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: Org-mode and citations

2010-04-04 Thread Matt Lundin
John Hendy jw.he...@gmail.com writes:

 Just finishing up a report and was taking care of the citations. I've
 been using C-c C-x f and it's been awesome... until I go to export to
 LaTeX when everything falls apart. Footnotes in my document came during
 unordered list items (bullets) and the LaTeX export had all kinds of
 mismatched brackets that I haven't been able to sort through. Is there
 a better way? Here's an example of what I'm experiencing:

 --
 \item Through further research, it turns out that World Choice Travel
 is
     exactly how FHTM is generating income from Travelocity\footnote
 {Office of the State Auditor, State of Montana
 \end{itemize}

 \end{itemize}
 (2010). \emph{Temporary Cease and Desist Order and Opportunity for
 Hearing}
 (SEC-2010-12), 29. \href{http://www.sao.mt.gov/legal/securities/
 S10_HITECH%20Cease%20and%20Desist.pdf}{http://www.sao.mt.gov} }
 \begin{itemize}
 \item \textbf{Magazines.com:} 35\% on all sales\footnote{Magazines.com
 (2009). \emph{Sales Affiliate Information}. Retrieved
 \end{itemize}
 31 March 2010 from \href{http://www.magazines.com/affiliate/index}
 {http://www.magazines.com} }
 --

Can you please provide the source file you used to produce this output?
I cannot replicate this problem.

Here, the following tree...

--8---cut here---start-8---
* Testing

 - hello[1]

   - A sub point[2] with some /emphasis afterwards/.

 - goodbye[3]

[1] A footnote.

[2] The sub-point footnote.

[3] Another footnote.
--8---cut here---end---8---

exports correctly as...

--8---cut here---start-8---
\begin{itemize}
\item hello\footnote{A footnote. }

\begin{itemize}
\item A sub point\footnote{The sub-point footnote. } with some \emph{emphasis 
afterwards}.
\end{itemize}

\item goodbye\footnote{Another footnote. }
\end{itemize}
--8---cut here---end---8---


 So... (2010). \emph... should be after 'State of Montana' on one item
 rather than made to be in between an \end{itemize} and \begin{itemize}
 (no man's land, that is). Same thing with the last line '31 March...':
 that should have come after 'Retrieved' two lines above.

Are you sure that your plain lists are indented properly?

 So, I can find some info about Bibtex and Reftex but in my opinion it's
 just not very helpful. Even the bibtex.org website seems difficult to
 me. 

I'm not sure I understand your questions about BibTeX or how they relate
to the example above. 

There is ample material on-line for learning BibTeX, but mastering it
requires some patient reading and practice. The short answer: BibTeX is
a file format for storing bibliographical data as well as a program for
formatting BibTeX data for LaTeX processing. Reftex is an emacs mode
(written by Carsten) that, among other things, makes it easy to enter
cite macros and reference keys in a LaTeX file (or, if you'd like, an
org file). Most instructions you'll find on integrating BibTeX with
org-mode presuppose a working familiarity with BibTeX and reftex. For a
quick overview, the Wikipedia article on BibTeX is a good place to
start.[fn:1]

Best,
Matt

Footnotes:

[fn:1] http://en.wikipedia.org/wiki/Bibtex


___
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: Auto-load files into agenda list

2010-04-04 Thread Matt Lundin
Marcelo de Moraes Serpa celose...@gmail.com writes:

 Hello list,

 I keep a diary by using journal.el -- it simply creates a new .org file
 everytime I call M-x journal with the current Date timestamp (
 date_day_of_week.org). Works fine. I usually create a * tags headline
 and tag it with relevant tags. The downside is that, in order to have
 all the agenda power, I need to manually add it to the list. Not sure
 if there is a way to include a whole directory automatically somehow?

From the docstring for org-agenda-files:

,
| If an entry is a directory, all files in that directory that are matched
| by `org-agenda-file-regexp' will be part of the file list.
`

In other words, 

(setq org-agenda-files ~/org/)

See also the following FAQ:

http://orgmode.org/worg/org-faq.php#set-agenda-files-using-wildcards

 Some of you might say to keep the journal in one big file. I just don't
 like it. Separate files make things more maneageble for me.

Calling org-agenda loads each one of your agenda files into a separate
buffer. That means 3 years from now emacs will have to open 1,000 files
and spawn 1,000 buffers to generate the agenda 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: Spreadsheet FR

2010-04-02 Thread Matt Lundin
Hi Russell,

Russell Adams rlad...@adamsinfoserv.com writes:

 I adore the text spreadsheet, however there's one feature Excel
 provides which I don't have in org.

 I often use Excel for lists, where I can sort or narrow the data by
 specific criteria from a larger list.

 Would it be feasible to narrow a table by criteria on a specific
 field in between separators? Ie: only display those cells in field A
 if they are  2, or if field B matches Pick Me!.

One way to achieve this behavior is by using properties + Eric Schulte's
org-collector.el in contrib. You can enter the data in a subtree using
properties and columns and then capture a subset of that data in a table
using a dynamic block. E.g., given the following subtree...

--8---cut here---start-8---
* My shopping list
  :PROPERTIES:
  :COLUMNS:  %40ITEM %10AMOUNT %10TYPE
  :ID:   41101c80-85b9-4af6-8138-8ad460a2949e
  :END:
** Bananas
   :PROPERTIES:
   :AMOUNT:   2.65
   :TYPE: fruit
   :END:
** Cheese
   :PROPERTIES:
   :AMOUNT:   4.54
   :TYPE: dairy
   :END:
** Flour
   :PROPERTIES:
   :AMOUNT:   3.00
   :TYPE: grain
   :END:
** Dish soap
   :PROPERTIES:
   :AMOUNT:   1.29
   :TYPE: kitchen
   :END:
** Lettuce
   :PROPERTIES:
   :AMOUNT:   1.80
   :TYPE: vegetable
   :END:
** Carrots
   :PROPERTIES:
   :AMOUNT:   2.56
   :TYPE: vegetable
   :END:
** Milk
   :PROPERTIES:
   :AMOUNT:   3.25
   :TYPE: dairy
   :END:
--8---cut here---end---8---

...you can use org-collector to capture a subset of data as follows...

--8---cut here---start-8---
* Data

#+begin: propview :id 41101c80-85b9-4af6-8138-8ad460a2949e :conds ((string= 
TYPE vegetable)) :cols (ITEM AMOUNT TYPE)
| ITEM| AMOUNT | TYPE  |
|---+--+-|
| Lettuce |  1.8 | vegetable |
| Carrots | 2.56 | vegetable |
|---+--+-|
|   | 4.36 | |
#+TBLFM: $LR2=vsum(@i+...@ii-1)
#+end
--8---cut here---end---8---

Change the conditions to match dairy items greater than 4 and you get
the following:

--8---cut here---start-8---
* Data

#+begin: propview :id 41101c80-85b9-4af6-8138-8ad460a2949e :conds ((and 
(string= TYPE dairy) ( AMOUNT 4))) :cols (ITEM AMOUNT TYPE)
| ITEM   | AMOUNT | TYPE  |
|--+--+-|
| Cheese | 4.54 | dairy |
|--+--+-|
|  | 4.54 | |
#+TBLFM: $LR2=vsum(@i+...@ii-1)
#+end
--8---cut here---end---8---

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: Spreadsheet FR

2010-04-02 Thread Matt Lundin
Dan Davison davi...@stats.ox.ac.uk writes:

 Hi Russell,

 Carsten Dominik carsten.domi...@gmail.com writes:

 On Apr 1, 2010, at 11:46 PM, Russell Adams wrote:

 Fellow Org'ers,

 I adore the text spreadsheet, however there's one feature Excel
 provides which I don't have in org.

 I often use Excel for lists, where I can sort or narrow the data by
 specific criteria from a larger list.

 Would it be feasible to narrow a table by criteria on a specific
 field in between separators? Ie: only display those cells in field A
 if they are  2, or if field B matches Pick Me!.

 How about keeping a master table containing all the information, and
 then generating narrowed views as separate tables? The babel way to do
 this would be to have a block function filter-table (provided below)
 and then call it where needed:

This is fantastic. Thanks, Dan!

- 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: A bright new Org-mode clone project

2010-04-01 Thread Matt Lundin
Julien Barnier jul...@no-log.org writes:

 That's why I'm going to rewrite it in C#/Mono : this will assure that
 the new project can run on every machine you can think about, and it
 would be much lighter on resources (especially memory) than Emacs.

:) 

 Because Emacs keys are really to complicated and quite outdated, I'm
 going to reimplement org-mode with a modern graphical interface, which
 would be almost exclusively mouse driven. 

I think it would be quite innovative if the user could move
headlines/entries by 1) selecting text with the mouse, 2) using a
drop-down menu option to cut the selection, 3) selecting a destination
with the mouse, and 4) using a drop-down menu option to paste the text.

Also, I would like to request WYSIWYG formatting. Have you considered a
binary format for the files? Then we could use styles to demarcate
separate sections of an org-file instead of all those asterisks!!

 I also plan to add some 3D compiz-like effects that would allow some
 text animation or blinking in order to make tags and keywords more
 visible.

Might I request spinning text? ;)

 As you see, the project is already quite advanced and mature. The last
 thing I have to do is to find a name for it. I was thinking of
 smog-mode, or maybe frog-mode, but I'm open to any suggestion.

How about edomgro?

- 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: Table of contents in another language

2010-03-31 Thread Matt Lundin
Leo Ferres lfer...@ccs.carleton.ca writes:

 Just trying to learn Org-Mode (which I find absolutely great so far).
 I was wondering if anyone could let me know how to change the
 automatic generation of table of contents in the export to html
 code, so I can go back and forth between Contenidos (in Spanish) and
 the usual Table of Contents in English.

You can put a the following line in the header of your file:

#+LANGUAGE: en

...and change it to...

#+LANGUAGE: es

for Spanish.

See http://orgmode.org/org.html#Export-options.

I believe the default setting for Table of Contents is Índice. You can
change this by customizing the variable org-export-language-setup.

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: How to open pdf file links with evince under linux?..

2010-03-29 Thread Matt Lundin
Hi Daniel,

Daniel Martins daniel...@gmail.com writes:

 my values are

 org-file-apps is a variable defined in `org.el'.
 Its value is
 ((auto-mode . emacs)
  (\\.x?html?\\' . default))

It looks as if you have changed this variable somehow. The default value
is:
((auto-mode . emacs)
 (\\.mm\\' . default)
 (\\.x?html?\\' . default)
 (\\.pdf\\' . default))

With the default settings you have two options:

1. Add the following line to ~/.mailcap (user only) or /etc/mailcap
   (typical location of system-wide settings on Linux).

application/pdf; evince %s

2. Change the default settings per Jan's instructions:

  2010/3/23 Jan Böcker jan.boec...@jboecker.de
 
  But we can tell Org directly what to do with PDF files: take a
  look at the variable org-file-apps (M-x customize-variable
  org-file-apps).
 
  Each entry in this list consists of (selector, action) pairs where
  the action tells Org how to open a file, and the selector (in most
  cases a regular expression matched against the file name)
  specifies what kind of files to open in this way.
 
  Add the following entry:
 
  Extension:      \.pdf\'
  Command:        evince %s
 
  Links to PDF files should now open in evince.

 which does not help very much since i think is scary to change the
 auto-mode in emacs

Changing the pdf setting in this way does nothing to the
auto-mode-alist. The auto-mode cons cell simply instructs org-mode to
open any file matching a regexp in auto-mode-alist within emacs.

 I have the same annoying problem reported by Jan

Could you explain what problem you mean here? I believe it was Leo who
reported the problem, while Jan offered a solution.

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] [PATCH] Speed up org-diary

2010-03-28 Thread Matt Lundin
Hi Carsten,

Thanks to the new variable org-agenda-entry-types, I have moved all my
appointments from emacs diary into org-mode. It is now quite fast to
pull up weekly and monthly calendars with a custom agenda command.

The missing piece of the puzzle is integration with diary and
cal-tex functions via the org-diary sexp. I have found org-diary to be
excruciatingly slow when called for anything more than a couple of days.
I have the following line in my diary file:

%%(org-diary :timestamp :sexp)

If I try to view 20 or so upcoming days in the diary by typing C-u 20 d
on a date in the calendar, it can take upwards of 30 seconds to generate
the diary display. This is of little consequence, since I can, after
all, simply use the custom agenda command. But I often want to print out
a nice LaTeX calendar of my appointments with cal-tex-cursor-month. And
that takes upwards of 50 seconds (see attached elp-results file).

Judging from the elp-results, the culprit seems to be
org-prepare-agenda-buffers (46 seconds), which is called 31 times (once
for each day). It seems to me that since org-diary is being called 31
times in quick succession by the same function (diary-sexp-entry), one
should only need to call org-prepare-agenda-buffers once.

The only solution I could see to this problem was to add a test to see
if org-diary had been called less than 1 second ago. Thus, I added the
variable org-diary-last-run-time and a conditional in org-diary that
only runs org-prepare-agenda-buffers if org-diary-last-run-time is less
than 1 second in the past. 

With the patch, it now takes appr. 5 seconds to generate the LaTeX
calendar with cal-tex and org-prepare-agenda-buffers is called only
once. 

--8---cut here---start-8---
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 797728b..6179907 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4086,6 +4086,8 @@ Needed to avoid empty dates which mess up holiday 
display.
   (apply 'diary-add-to-list args)
 (apply 'add-to-diary-list args)))
 
+(defvar org-diary-last-run-time nil)
+
 ;;;###autoload
 (defun org-diary (rest args)
   Return diary information from org-files.
@@ -4123,8 +4125,14 @@ function from a program - use 
`org-agenda-get-day-entries' instead.
   (let* ((files (if (and entry (stringp entry) (string-match \\S- entry))
(list entry)
  (org-agenda-files t)))
+(time (org-float-time))
 file rtn results)
-(org-prepare-agenda-buffers files)
+(when (or (not org-diary-last-run-time)
+ ( (- time
+   org-diary-last-run-time)
+1))
+  (org-prepare-agenda-buffers files))
+(setq org-diary-last-run-time time)
 ;; If this is called during org-agenda, don't return any entries to
 ;; the calendar.  Org Agenda will list these entries itself.
 (if org-disable-agenda-to-diary (setq files nil))
--8---cut here---end---8---

Thanks for looking at this. I'm eager to know if there is a more elegant
way of accomplishing the same thing.

- Matt

cal-tex-cursor-month  1   
50.220853 50.220853
cal-tex-list-diary-entries1   
48.950022 48.950022
diary-list-entries1   
48.949987 48.949987
diary-list-sexp-entries   31  
48.934395 1.5785288709
diary-sexp-entry  31  
48.916153000  1.5779404193
org-diary 31  
48.914679 1.5778928709
org-prepare-agenda-buffers31  
46.019204000  1.4844904516
org-agenda-get-day-entries868 
2.644963  0.0030471923
org-refresh-category-properties   868 
2.360211  0.0027191370
org-agenda-get-timestamps 868 
1.006278  0.0011593064
org-agenda-get-sexps  868 
0.868225  0.0010002592
org-end-of-subtree1426
0.719536  0.0005045841
org-agenda-get-blocks 868 
0.528355  0.0006087039
org-get-agenda-file-buffer1736
0.418875  0.0002412880
org-back-to-heading   2826
0.295757  0.0001046560
org-diary-sexp-entry  620 
0.209813  0.0003384080
org-parse-time-string 1710
0.172886  0.0001011035
org-format-agenda-item71  
0.161254  0.0022711830
org-time-string-to-time   

[Orgmode] Re: LaTeX package dependencies

2010-03-26 Thread Matt Lundin
Mikael Fornius m...@abc.se writes:

 * texlive 2009 (Arch-linux) misses MnSymbol

MnSymbol is part of texlive-fontsextra on archlinux.

% locate MnSymbol.sty | xargs pacman -Qo
/usr/share/texmf-dist/tex/latex/mnsymbol/MnSymbol.sty is owned by 
texlive-fontsextra 2009.16617-1

The rest of the packages are owned by texlive-core.

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


<    2   3   4   5   6   7   8   9   >