Re: [O] Performance problem

2011-05-23 Thread Matt Lundin
Michael Welle mwe012...@gmx.net writes:

 I use Emacs 23.2.1 and org-mode 7.5. After some time, usually after a
 few days of 'uptime', building an agenda becomes very slw. 

Is this the standard agenda or a custom agenda?

 I expect the agenda built from 120 org file to show up within five
 seconds. 

Five seconds still seems like a long time. How many lines are in your
agenda? Are your org buffers already open when you call it? Or have you
closed your org buffers by typing x in the agenda?

 If Emacs is in the bad state it takes three minutes. Restarting Emacs
 solves the problem.

 I don't blame org-mode for that behaviour, but maybe someone of you has
 observed such behaviour, too? Any hints on debugging? 

M-x elp-instrument-package org [RET]
M-x org-agenda-list
M-x elp-results

Best,
Matt

 Building the agenda results in more than 60k stat syscalls. Mostly
 /etc/localtime is stat'ted and the org files. That is strange, but not
 different if all works as expected.





Re: [O] org-contacts and dates before 1970

2011-05-23 Thread Le Wang
On Mon, May 23, 2011 at 2:03 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Le Wang l26w...@gmail.com writes:

 On Thu, May 19, 2011 at 1:46 PM, Le Wang l26w...@gmail.com wrote:
 Is it possible to specify birthdays without year?  I often want to jot
 down someone's birthday so I'm not surprised next year, but don't want

 to ask them how old they are.  :)

 Not really :(

 Fair enough.  I'll use 1900 as a place holder for now.

 I'm seeing another issue now, where if any org contact has a birthday
 pre 1970, I get the error Bad sexp at line xxx   Does this work
 for anyone else?

 I'm on Windows 7 runing native build of Emacs CVS and 23.2.1.  My
 org-mode is less than a week old.

 This is probably related to the same problem as discussed in this
 thread:

 http://thread.gmane.org/gmane.emacs.orgmode/39206

 on the limitations of unix time (whether on Unix or not...).

Thanks for the pointer, Eric.  Most of that thread was over my head.
AFAIK, there is no 64 bit version of Emacs on Windows, so I guess I'm
SOL.

Just to clarify, diary-anniversary worked fine for my birthdays
pre-1970, but org-contacts can't?

-- 
Le



[O] pinpoint presentation software?

2011-05-23 Thread Matt Price
Has anyone out there tried the pinpoint presentation software from gnome (
http://live.gnome.org/Pinpoint)?  I wonder if it would be a good export
target for org. I can't compile it right now because of dependency issues,
but I'd be very interested to hear of everyone else's experience.  Thanks!
Matt


[O] Help with WORG Style Exports

2011-05-23 Thread Mike McLean
Hello

I trying to cull the upper right corner of the webpage hover menu from
WORG pages for my use in org-mode files I export to HTML. I have had no
luck with either Google nor reading the various export options and
publishing setup from Worg in figuring out what the key components are
and how to get them into my setup.

Can anyone help?




Re: [O] Help with WORG Style Exports

2011-05-23 Thread Mike McLean
On 5/23/11 11:48 AM, Puneeth Chaganti wrote:
 On Mon, May 23, 2011 at 8:51 PM, Mike McLean mike.mcl...@pobox.com wrote:
 Hello

 I trying to cull the upper right corner of the webpage hover menu from
 WORG pages for my use in org-mode files I export to HTML. I have had no
 luck with either Google nor reading the various export options and
 publishing setup from Worg in figuring out what the key components are
 and how to get them into my setup.
 - Look at the #+STYLE export option for information on how to insert a
 CSS style sheet in your export.

 - Look at the table-of-contents related CSS from Worg site, and
 include that in your own CSS file.

Talk about me over-thinking. I was so convinced that this was some AJAX
stuff related to the includes of prototype and scriptalicious in Worg
that I completely overlooked the CSS-only solution. Thanks!




Re: [O] Repeating Task Exception

2011-05-23 Thread Matt Lundin
Bernt Hansen be...@norang.ca writes:

 David Neu da...@davidneu.com writes:

 I was wondering if there was a way to add an exception to a
 repeating entry such as

 Weekly Meeting 2011-05-04 Wed 13:30-14:00 +1w

 i..e I'd like to be able to insert a line that indicates when this
 event will *not* occur.

 That's not currently supported.  To handle this I clone the subtree with
 time shift and remove the meetings that are cancelled.

More complex calendar entries are supported (with limited functionality)
through the use of diary sexps. In particular, the org-diary-class sexp
(part of org-mode) was created to scenarios like the one above:

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

HTH,
Matt



[O] Org Contacts, Gnus and Yasnippet Not Playing Nicely

2011-05-23 Thread Ian Barton
I am trying to set up Org Contacts and gnus. Org Contacts suggests that 
pressing + Tab in the To: field in a message buffer should offer a 
list of tags from my contacts file. However, I just get a Tab.


I suspect that Yasnippet is interfering, as entering the abbreviation 
for any of my snippets and pressing Tab auto-completes the snippet. Does 
anyone have a tip for making Yasnippets, gnus and org-contacts play 
nicely together?


Ian.



Re: [O] Org Contacts, Gnus and Yasnippet Not Playing Nicely

2011-05-23 Thread Maurice
Hello,

Ian Barton li...@manor-farm.org écrivit :

 I am trying to set up Org Contacts and gnus. Org Contacts suggests
 that pressing + Tab in the To: field in a message buffer should
 offer a list of tags from my contacts file. However, I just get a Tab.

 I suspect that Yasnippet is interfering, as entering the abbreviation
 for any of my snippets and pressing Tab auto-completes the
 snippet. Does anyone have a tip for making Yasnippets, gnus and
 org-contacts play nicely together?

 Ian.

Like for me with emacs23 but in emacs24 it works fine (with same
configuration) = ??

Maurice 



[O] Remote editing not working from agenda views?

2011-05-23 Thread Marcus Klemm
Hello List,

I've created a custom block agenda that consists of an agenda view
showing me the scheduled items of the next 7 days and a TODO list
showing me unscheduled TODO items from various projects. In the TODO
part, I can toggle states using t, switch to an entry's origin with
SPC, TAB and RET and so on. When I try the same in the agenda part,
Emacs says Command not allowed in this line.

In the process of investigating this issue I found that remote
editing, jumping to origin etc. is also not working in the built-in
agenda views for the day, week etc.

What am I missing?

Ciao, Marcus



[O] Remote editing not working from agenda?

2011-05-23 Thread Marcus Klemm
Hello List,

I've created a custom block agenda that consists of an agenda view
showing me the scheduled items of the next 7 days and a TODO list
showing me unscheduled TODO items from various projects. In the TODO
part, I can toggle states using t, switch to an entry's origin with
SPC, TAB and RET and so on. When I try the same in the agenda part,
Emacs says Command not allowed in this line.

In the process of investigating this issue I found that remote
editing, jumping to origin etc. is also not working in the built-in
agenda views for the day, week etc.

What am I missing?

Ciao, Marcus



Re: [O] Performance problem

2011-05-23 Thread Eric S Fraga
Michael Welle mwe012...@gmx.net writes:

 Hi,

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

 Michael Welle mwe012...@gmx.net writes:

 I use Emacs 23.2.1 and org-mode 7.5. After some time, usually after a
 few days of 'uptime', building an agenda becomes very slw. 

 Is this the standard agenda or a custom agenda?
 it's a custom agenda that collects all appointments for the next four
 weeks:

( z Appointments for the next four weeks agenda 
 ((org-agenda-skip-function
   (lambda nil
 (org-agenda-skip-entry-if 'nottodo '(APPT
  (org-agenda-ndays 28)
  (org-agenda-include-diary nil )))


 I expect the agenda built from 120 org file to show up within five
 seconds. 

 Five seconds still seems like a long time. How many lines are in your
 agenda? Are your org buffers already open when you call it? Or have you
 closed your org buffers by typing x in the agenda?
 OK, five seconds is an upper boundary, it might take more like three
 seconds or so. I count twentyone, twentytwo, ... to 'measure' the
 duration of the operation. With this higly accurate method I can't
 observe much difference if I started with loaded org files or not.

Well, for me, a monthly view (equivalent to your 4 week view?)
takes well over 5 seconds at best of times:

--8---cut here---start-8---
org-agenda-list   2   
19.049079 9.5245395
org-agenda-view-mode-dispatch 1   
18.791959 18.791959
org-agenda-month-view 1   
18.529849 18.529849
org-agenda-change-time-span   1   
18.529803 18.529803
org-agenda-redo   1   
18.528674 18.528674
org-agenda-get-day-entries462 
18.115907999  0.0392119220
org-let   1   
17.600798 17.600798
org-agenda-get-scheduled  462 
9.582477  0.0207412922
org-get-todo-state12382   
6.030746  0.0004870575
org-back-to-heading   13407   
4.345888  0.0003241507
org-agenda-get-timestamps 462 
3.373204  0.0073013095
org-agenda-get-deadlines  462 
2.611434  0.0056524567
org-agenda-skip   13809   
1.883538  0.0001363993
org-time-string-to-absolute   11880   
1.539487  0.0001295865
org-agenda-get-blocks 462 
1.467086  0.0031755108
org-prepare-agenda2   
1.273137  0.636568
--8---cut here---end---8---

but this is on a netbook...:

,
| processor : 0
| vendor_id : GenuineIntel
| cpu family: 6
| model : 28
| model name: Intel(R) Atom(TM) CPU N450   @ 1.66GHz
| stepping  : 10
| cpu MHz   : 1667.000
| cache size: 512 KB
| physical id   : 0
| siblings  : 2
`

this explains why I don't use a monthly view very often... ;-)

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.288.gcec8)



Re: [O] org-contacts and dates before 1970

2011-05-23 Thread Eric S Fraga
Le Wang l26w...@gmail.com writes:

 On Mon, May 23, 2011 at 2:03 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Le Wang l26w...@gmail.com writes:

[...]

 I'm seeing another issue now, where if any org contact has a birthday
 pre 1970, I get the error Bad sexp at line xxx   Does this work
 for anyone else?

 I'm on Windows 7 runing native build of Emacs CVS and 23.2.1.  My
 org-mode is less than a week old.

 This is probably related to the same problem as discussed in this
 thread:

 http://thread.gmane.org/gmane.emacs.orgmode/39206

 on the limitations of unix time (whether on Unix or not...).

 Thanks for the pointer, Eric.  Most of that thread was over my head.
 AFAIK, there is no 64 bit version of Emacs on Windows, so I guess I'm
 SOL.

 Just to clarify, diary-anniversary worked fine for my birthdays
 pre-1970, but org-contacts can't?

This is something that the developer(s) of org-contacts will have to
respond to themselves.  My response was simply to highlight that org
mode's date calculations are definitely dependent on some of the
implementation quirks of Emacs and that these could be responsible for
the problems you are observing!  I have no idea how the Emacs diary
functions differ from org mode in this respect.  Sorry.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.288.gcec8)



[O] Org-capture template Problem

2011-05-23 Thread Chao LU
Dear all,

I'm trying to define a template for org-capture like below:

(setq org-capture-templates
  '(
 *(e EMACS entry (file+olp (concat org-source-dir /Emacs.org)
EMACS INBOX) * %? :prepend t)*
 (i INBOX entry (file+olp (concat org-private-dir /iPrv.org)
INBOX -INBOX-) * %? :prepend t)
   )
)

And the file Emacs.org has such structure:

#+-*- coding:utf-8; mode:org -*-
#+STARTUP:Overview
#+INFOJS_OPT: view:overview mouse:underline buttons:nil ltoc:nil
#+INFOJS_OPT: up:Sitemap.html
#+INFOJS_OPT: home:index.html
#+INFOJS_OPT: path:./theme/org-info.js
#+OPTIONS: num:nil h:3 TeX:nil LaTeX:nil toc:nil f:t \n:t
#+FILETAGS: Emacs
#+TITLE: Emacs
#+LINK: pdf file:./Emacs/%s.pdf
#+LINK: txt file:./Emacs/%s.txt

* Emacs
** INBOX
*** blabla


It doesn't work, the error message is *progn: Heading not found on level 3:
INBOX*.

To me, it seems Emacs was trying to find the headline *(3rd level)* with
name of INBOX. But according to my configuration, it should go and find the
head of *2nd level*. Could anybody give me some hint why it behave like so?

Thanks,

Chao


Re: [O] Completing with anything

2011-05-23 Thread Stefan Monnier
  So at least cycling-completion seems fundamentally incompatible with
  this idea of abbrev-expansion-after-completion, at least if you want to
  allow arbitrarily complex abbrevs like skeletons.
 Indeed, this is a real problem.

I've now added a :exit-function property that
completion-at-point-functions can return which is a function that gets
called when completion is finished.  It operates outside of the
completion-table, so has access to the buffer text and can do things
like abbrev-expand.

It gets a status argument which tells it whether the completion is
`exact' (basically, it's valid according to the completion-table, but
there may be further completions available), `sole' (it's the only
completion), and `finished' (not only it's the sole completion, but the
user is not expected to want to change it).  `sole' is used by cycling,
so the :exit-function can call abbrev-expand when the status is
`finished' and it won't interfere with cycling (which simply won't
benefit from abbrev-expansion).


Stefan



Re: [O] org-capture in message-mode buffer

2011-05-23 Thread Carsten Dominik
Hi, 

is there an agreement here on whether the patch appearing in this thread

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

should be applied or not?

- Carsten

On 8.5.2011, at 09:53, Leo wrote:

 On 2011-05-05 17:19 +0800, Ulf Stegemann wrote:
 [elide 4 lines]
 This sounds interesting (at least for those that use gmail).  Is the URL
 where the archived message will be available predictable, i.e. is it
 possible to know it while still composing the message?  If yes, it would
 be great to expand `org-gnus-store-link' to either use a Gnus archive
 group (Gcc) or a gmail one.
 
 I have started using latest No Gnus and realised the Gcc header is now
 enabled per default. But after some trial I turned it off anyway. I use
 gmail smtp which does the archiving automatically. I don't know enough
 whether that is predictable.
 
 Leo
 
 




Re: [O] org-capture in message-mode buffer

2011-05-23 Thread Leo
On 2011-05-24 11:19 +0800, Carsten Dominik wrote:
 is there an agreement here on whether the patch appearing in this thread

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

 should be applied or not?

 - Carsten

I don't really know.

The patch merely goes back to the same behaviour before the patch to add
link support for message mode and only when GCC header cannot be found.

But I do use it in my org mode.

Leo



Re: [O] Org-capture template Problem

2011-05-23 Thread Nick Dokos
Chao LU looc...@gmail.com wrote:

 Dear all,
 
 I'm trying to define a template for org-capture like below:
 
 (setq org-capture-templates
   '(
  (e EMACS entry (file+olp (concat org-source-dir /Emacs.org) 
 EMACS INBOX) * %?
 :prepend t)
  (i INBOX entry (file+olp (concat org-private-dir /iPrv.org) 
 INBOX -INBOX-) * %?
 :prepend t)
        )
 )
 
 And the file Emacs.org has such structure:
 
 #+-*- coding:utf-8; mode:org -*-
 #+STARTUP:    Overview
 #+INFOJS_OPT: view:overview mouse:underline buttons:nil ltoc:nil
 #+INFOJS_OPT: up:Sitemap.html
 #+INFOJS_OPT: home:index.html
 #+INFOJS_OPT: path:./theme/org-info.js
 #+OPTIONS: num:nil h:3 TeX:nil LaTeX:nil toc:nil f:t \n:t
 #+FILETAGS: Emacs
 #+TITLE: Emacs
 #+LINK: pdf file:./Emacs/%s.pdf
 #+LINK: txt file:./Emacs/%s.txt
 
 * Emacs
 ** INBOX
 *** blabla
 
 
 It doesn't work, the error message is progn: Heading not found on level 3: 
 INBOX.
 
 To me, it seems Emacs was trying to find the headline (3rd level) with name 
 of INBOX. But according
 to my configuration, it should go and find the head of 2nd level. Could 
 anybody give me some hint
 why it behave like so?
 

Search the list for backquote.

Nick