Re: [Orgmode] template to auto complete the imdb entry address.

2010-11-27 Thread Michael Brand
On Sun, Nov 28, 2010 at 00:43, Alin Soare  wrote:
> | Domicile conjugal      | tt0065651 | 20 | 1970 | France     |
> I wish to have a link to imdb web page, and to see only its id (as now).

Would link abbreviations help?
http://orgmode.org/manual/Link-abbreviations.html
e. g. the inline version:

#+LINK: imdb http://www.imdb.com/title/
| Domicile conjugal | [[imdb:tt0065651]] | 20 | 1970 | France |
| Douze hommes en colère | [[imdb:tt0050083]] | 20 | 1957 | Etats Unis |

Michael

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


Re: [Orgmode] Generated images in buffer

2010-11-27 Thread Jeff Horn
On Sun, Nov 28, 2010 at 2:04 AM, Dov Grobgeld  wrote:
> The same idea could be used for any system generating images, e.g. LaTeX
> formulas, asymptote, a python script using cairo, etc.

I think evaluating Babel code blocks can insert output into your org-file.

Also, I regularly use =C-c C-x C-l= to display rendered LaTeX
equations in-buffer. That keystroke only displays the current
subtree's equations. With a prefix, it will generate previews for the
entire document.

Best,
Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
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] Generated images in buffer

2010-11-27 Thread Dov Grobgeld
I'm still feel quite a newbie to org-mode and I've been looking for a way to
include "dependent" images within the emacs buffer, but I still haven't
found it.

As an example, assume that I have manully created a diagram with ditaa code,
and once I am finishede diting  I'd like to press a keystroke e.g. Ctrl-C
Ctrl-C and have the contents change to the generated output image, and the
ditaa code will be hidden. When subsequently navigating to the image there
should be some indicator that this is a generated image and some keystroke
should allow turning the image back to its source code.

The same idea could be used for any system generating images, e.g. LaTeX
formulas, asymptote, a python script using cairo, etc.

Similarly if the source code is svg I might not want to display the source
code at all (which might be large), but would like to invoke inkscape to
edit the svg data. This is better done by referencing the svg as an external
image, instead of having it inline, but I would still like to easily invoke
an editor application from within emacs with a simple keystroke.

So is this currently possible?

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


Re: [Orgmode] Recurring events within date ranges

2010-11-27 Thread Carsten Dominik

Hi Suvaya,

this has come up many tomes on the mailing list, and
the various answers are covered by the FAQ.

http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files

- Carsten

On Nov 28, 2010, at 6:15 AM, suvayu ali wrote:


Hi everyone,

How does one specify a recurring timestamp that expires beyond a  
date range?


e.g.
** Do something
   every Sunday from <2010-09-03 Sun +1w>  to <2010-11-07 Sun> but  
not beyond.


I looked at the the diary library briefly, but didn't find anything
obvious. Any suggestions?


Thanks,
--
Suvayu

Open source is the future. It sets us free.

___
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: LaTeX export of lists

2010-11-27 Thread Richard Lawrence
Hi Tom,

> Is there an easy way to keep text following a list with the list, i.e,
> without a blank line following the list, during export?
>
> * List
>   1. First item
>   2. Second item
> Following text.
>
> Gets exported as:
>
> \section{List}
> \label{sec-1}
>
> \begin{enumerate}
> \item First item
> \item Second item
> \end{enumerate}
>
> Following text.
>
> I don't want a blank line between \end{enumerate} and "Following text."

Is this because you don't want to start a new paragraph in LaTeX?  I
have used \noindent on the occasions when I have run into this issue.

* List
  1. First item
  2. Second item
\noindent
Following text

Not necessarily pretty, but it works, if you're just looking to prevent
indentation.  

Best,
Richard


___
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] Org-beamer block display math

2010-11-27 Thread Jeff Horn
When marking a block to call out display math, I notice an extra line
break above the display math. I believe this occurs because the block
is given it's own section.

I expect the math to be centered vertically within the block. Is there
a workaround?

Please reference the screenshot (it's small) in lieu of me posting the
org and pdf files. They're both in the shot.

http://cl.ly/3PjB

Thanks for any help.

Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

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


Re: [Orgmode] Recurring events within date ranges

2010-11-27 Thread Jeff Horn
On Sun, Nov 28, 2010 at 12:15 AM, suvayu ali
 wrote:
> Hi everyone,
>
> How does one specify a recurring timestamp that expires beyond a date range?
>
> e.g.
> ** Do something
>    every Sunday from <2010-09-03 Sun +1w>  to <2010-11-07 Sun> but not beyond.
>
> I looked at the the diary library briefly, but didn't find anything
> obvious. Any suggestions?

I saw a recent discussion on the list, but don't remember the
conclusion. I don't think expiring events are possible currently.

When I no longer need a repeated task, I simply remove the repeater
cookie (+1w in your example above), mark the task as done for the
final time, and archive it.

Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
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] Recurring events within date ranges

2010-11-27 Thread suvayu ali
Hi everyone,

How does one specify a recurring timestamp that expires beyond a date range?

e.g.
** Do something
every Sunday from <2010-09-03 Sun +1w>  to <2010-11-07 Sun> but not beyond.

I looked at the the diary library briefly, but didn't find anything
obvious. Any suggestions?


Thanks,
-- 
Suvayu

Open source is the future. It sets us free.

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


[Orgmode] Re: MobileOrg on DropBox for Teams

2010-11-27 Thread Tommy Kelly
> You should be able to rename the MobileOrg directory from within the web
> interface once you've linked MobileOrg to your Dropbox account.  

Thanks Richard, that worked fine.

But does that mean there's a bit of coordination to manage if multiple
users all decided they want to use MobileOrg? In turn, each user would
get their top level MobileOrg folder up and running, then move it down a
level, so as to make space for the next user who'd do the same?

> ... the iPhone ... doesn't really know what folder its data is stored
> in.

Spooky :-)

t


___
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] Beamer and notes blocks

2010-11-27 Thread Jeff Horn
Hi all,

Could someone enlighten me as to how to get blocks with the beamer
environment "notes" to show up?

Specifically, I don't want notes to show up in the presentation (the
default, expected behavior), but I would like them to show up in a
speaker notes pdf.

How are you producing speaker notes for your Beamer presentations
using org-export?

Thanks for any help!
Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

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


Re: [Orgmode] [BUG] org-babel :session breaks returning things with python?

2010-11-27 Thread Eric Schulte
Hi,

A recent commit fixes this issue.  Instead of placing a return call
inside of a python code block it is now possible to use a new :return
header argument to specify the value to be returned. e.g.

#+begin_src python :return squared_plus(2)
  def squared_plus(x):
  return x*x+1
#+end_src

#+results:
: 5

Best -- Eric

Christopher Allan Webber  writes:

> Hello,
>
> In the latest org master, I get this issue:
>
> #+BEGIN_SRC python
> return 33
> #+END_SRC
>
> #+results:
> : 33
>
> #+BEGIN_SRC python :session
> return 33
> #+END_SRC
>
> #+results:
> : org_babel_python_eoe
>
> Not really sure what's happening, but I'm seeing inside of *Python*:
>
> : >>> return 33
> : 
> : open('/tmp/babel-283184et/python-28318XQy', 'w').write(str(_))
> : 
> : 
> : 'org_babel_python_eoe'
> :   File "", line 1
> : SyntaxError: 'return' outside function
> : >>> >>> >>> Traceback (most recent call last):
> :   File "", line 1, in 
> : NameError: name '_' is not defined
> : >>> >>> >>> 'org_babel_python_eoe'
> : >>> 
>
> ___
> 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


Re: [Orgmode] Re: moving in the agenda view is slow

2010-11-27 Thread Nick Dokos
Rainer Stengele  wrote:

> Am 27.11.2010 20:23, schrieb Nick Dokos:
> > ...
> > Can you do M-x elp-instrument-function  next-line  and
> > get another profile?
> > 

> ok, I did, getting
> 
> org-agenda-next-line  10
>   0.864912  0.0864912
> org-unhighlight   14
>   0.000875  6.257...e-05
> org-detach-overlay14
>   0.000622  4.449...e-05
> org-agenda-do-context-action  10
>   0.000274  2.74e-05
> org-get-at-bol10
>   9.400...e-05  9.400...e-06
> org-agenda-post-command-hook  14
>   7.5e-05   5.357...e-06
> 
> for 10 "next-lines", all in the agenda block of
> 
> Monday 29 November 2010 W48
> 
> which means there is no date crossing.
> What can I do to detail org-agenda-next-line?
> 

Apparently, you didn't read my mail carefully enough: see above.

Nick

___
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


Fwd: [Orgmode] Creating files for a Kindle

2010-11-27 Thread Jeff Horn
Forgot to CC the group. Apologies.

Jeff


-- Forwarded message --
From: Jeff Horn 
Date: Sat, Nov 27, 2010 at 7:19 PM
Subject: Re: [Orgmode] Creating files for a Kindle
To: Graham Smith 


On Sat, Nov 27, 2010 at 5:21 PM, Graham Smith  wrote:
> I am actually a bit confused with the format as what I've read suggests its
> "modified"HTML, and that its the same as the MOBI format, but equally the
> HTML is meant to be different between the Kindles 1and 2, and the latest
> kindle 3.

I don't pretend to know anything about Mobi or ePub as modified HTML.
I just know that Kindles do display native, standard HTML fine. I
haven't checked, but the files should be searchable as well.

> But I will give direct HTML a try.

Let me know if it works, and also if you can search within the file.
Perhaps for testing, just export an old org outline to HTML, drag and
drop, and see if it is what you expect?

Jeff

--
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/



-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
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] Typo in Worg Beamer Tutorial

2010-11-27 Thread Jeff Horn
Hi Eric (or others),

I believe the image used in section 3.1 on the following page is incorrect.

http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.php

I was expecting an image of the slide generated by the example code in
that section.

Best,
Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
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] template to auto complete the imdb entry address.

2010-11-27 Thread Alin Soare
Hi,

I used to keep the list of movies I saw into a html database, but now, after
having learned org mode, I want to transform the database into a org mode file.

Example of org mode file:


| Domicile conjugal  | tt0065651 | 20 | 1970 | France |
| Douze hommes en colère | tt0050083 | 20 | 1957 | Etats Unis |
| Élection   | tt0126886 | 20 | 1999 | Etats Unis |
| Elephant   | tt0363589 | 20 | 2003 | Etats Unis |
| Entre les murs | tt1068646 | 20 | 2008 | France |
| Ève| tt0042192 | 20 | 1950 | Etats Unis |
| Faust  | tt0016847 | 20 | 1926 | Allemagne  |


I wish to ask you what possibilities exists for me to insert on the second
column the imdb entry, as easy as possible.

I wish to have a link to imdb web page, and to see only its id (as now).

If I tape every time [[http://.id.html][ID]] is too much to type, and I can
make errors. I need to insert the id 2 times.

Could I define a template, like a function with 1 parameter, and call that
function that reads the id, and completes all link, or something like this ?

Are the templates useful for what I need here?

Apart from templates, are there any other possibilities to have a control over
the web link ?

Thanks in advance.


Alin





___
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] Piping between code blocks Was: Handling of errors when using Ledger

2010-11-27 Thread Eric Schulte
Dan Davison  writes:

>
> Incidentally, I have for a long time wondered whether we should permit
> src blocks to read *input data* from standard input. This would require
> altering ob-eval such that the src block body is read from file. Then we
> could do things like
>
> #+source: output-some-text
> #+begin_src sh :results output
>   # print stuff
> #+end_src
>
> #+begin_src perl :stdin output-some-text
>   while ( <> ) {
>   # process the text
>   }
> #+end_src
>

This is interesting, it would involve starting all such pipe-chained
blocks at the same time, and coordinating their input and output through
Unix pipes (note: I don't know how pipes would work on a Windows
machine).

One question is whether we allow data to pass /directly/ between blocks,
or if we insert babel in between to do its usual parsing (i.e. arrays
into elisp lists, etc...).  I'd lean against inserting babel as I
believe this would be of use mainly for performance, and Emacs/Babel
parsing would blow any performance gains.  Also it could be difficult to
implement.

I think that in addition to the :stdin option above we would need a
=:stdout= option would imply both =:results output= and =:results
scalar= and would allow the process to write intermediate results
directly to a supplied pipe.  Perhaps such a :stdout option would never
be supplied directly by the user, but would rather be used by babel to
organize piping when that code block has referenced by another code
block using :stdin.

Does the above make sense or sound appealing?

Best -- Eric

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


[Orgmode] LaTeX export of lists

2010-11-27 Thread Thomas S. Dye

Aloha all,

Is there an easy way to keep text following a list with the list, i.e,  
without a blank line following the list, during export?


* List
  1. First item
  2. Second item
Following text.

Gets exported as:

\section{List}
\label{sec-1}

\begin{enumerate}
\item First item
\item Second item
\end{enumerate}

Following text.

I don't want a blank line between \end{enumerate} and "Following text."

I looked through the documentation and browsed the list archive to no  
avail, but I might have missed what I was looking for.


All the best,
Tom

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


Re: [Orgmode] Creating files for a Kindle

2010-11-27 Thread Alan L Tyree
On Sat, 27 Nov 2010 20:48:05 +
Graham Smith  wrote:

> Does anyone by chance use orgmode to create files for a Kindle?
> 
> If you do I would appreciate some helpful hints or ideas on how you
> approach it.
> 
> The Kindle file format is apparently modified HTML, but the guidance
> I have found seems to revolve around creating files in MSWord and
> then converting to Kindle by uploading to Amazon OR using Calibre to
> convert PDFs to Kindle. There is also a Mobi publisher that will
> convert files to Kindle, but its Windows only.
> 
> The problem I have had, is that PDFs converted to Kindle lose a lot of
> formatting, including tables.
> 
> The Kindle is a great bit of kit for reading documents (far better
> than a computer screen) and the free mobile phone connection makes it
> easy to check email etc, as well as browse the web at no cost. I'm
> much more impressed than I expected to be.
> 
> I am slowly transferring a pile of paper documents/reference material
> onto it, but I am having problems producing documents that take full
> advantage of the Kindle features.  You can upload PDFs directly  but
> as native PDFs they aren't as user friendly as proper Kindle
> formatted flles.
> 
> My guess is that orgmode files exported as HTML and then converted to
> Kindle may be the way to go, but, as I said, I  would be interested
> if anyone has already established a work flow for this.

I have used org to create ePub format by exporting to xhtml then using
Sigil to complete the task. I would then use Calibre to convert from
ePub to Kindle format. 

There are lots of instructions on the Web for building ePub directly
from the xhtml file if you don't want to install Sigil, but I have
found Sigil to be an easy to use program for making the ePub.

HTH,
Alan



> 
> Many thanks,
> 
> Graham


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


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


Re: [Orgmode] Creating files for a Kindle

2010-11-27 Thread Jeff Horn
On Sat, Nov 27, 2010 at 3:48 PM, Graham Smith  wrote:
> The Kindle file format is apparently modified HTML, but the guidance I have
> found seems to revolve around creating files in MSWord and then converting
> to Kindle by uploading to Amazon OR using Calibre to convert PDFs to Kindle.
> There is also a Mobi publisher that will convert files to Kindle, but its
> Windows only.

I thought it was all proprietary. I'm surprised there are any
third-party converters.

> The problem I have had, is that PDFs converted to Kindle lose a lot of
> formatting, including tables.

Yep, that pretty much made me want the Kindle DX. Native PDFs are
great on a big screen.

> My guess is that orgmode files exported as HTML and then converted to Kindle
> may be the way to go, but, as I said, I  would be interested if anyone has
> already established a work flow for this.

Kindles understand native HTML as I understand it. Why not use org to
convert your files to HTML, style them if you wish, and put them
directly on your kindle? I've done that with a few short lists and
it's worked fine. Just drag and drop the HTML into the kindle
documents directory.

Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
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: moving in the agenda view is slow

2010-11-27 Thread Rainer Stengele
Am 27.11.2010 20:23, schrieb Nick Dokos:
> Rainer Stengele  wrote:
> 
>> Nick, elp-reset-all does not work.
> 
> Some more detail would be helpful: in what way does it not work?
> 
> If I do
> 
> M-x elp-reset-all
> M-x elp-results
> 
> I get a blank slate. Then I can press 10 "n", and do M-x elp-results
> and get
> 
> org-agenda-list   1   
> 0.542113  0.542113
> org-agenda-get-day-entries105 
> 0.296363  0.0028225142
> org-agenda-get-scheduled  105 
> 0.173385  0.0016512952
> org-agenda-files  3   
> 0.163354  0.054451
> org-time-string-to-absolute   833 
> 0.129597  0.0001555798
> org-parse-time-string 847 
> 0.110073  0.0001299574
> org-prepare-agenda1   
> 0.055021  0.055021
> org-agenda-get-timestamps 105 
> 0.050603  0.0004819428
> org-prepare-agenda-buffers1   
> 0.049225  0.049225
> org-refresh-category-properties   15  
> 0.030431  0.0020287333
> org-agenda-get-sexps  105 
> 0.02591   0.0002467619
> org-agenda-get-deadlines  105 
> 0.017842  0.0001699238
> org-diary-sexp-entry  14  
> 0.013668  0.0009762857
> org-agenda-get-blocks 105 
> 0.012985  0.000123
> org-agenda-next-line  10  
> 0.012237  0.0012237
> org-closest-date  196 
> 0.010801  5.511...e-05
> org-finalize-agenda   1   
> 0.009044  0.009044
> org-up-heading-safe   95  
> 0.008690  9.148...e-05
> org-agenda-do-context-action  10  
> 0.008677  0.0008677000
> org-display-outline-path  10  
> 0.007925  0.0007925
> ...
> 
> reflecting the stats from the last reset onwards. What do you get?
> 
>> Reason for "42" calls is I simply leave my finger on the key for a while
>> ... just to see the result more clear:
> 
> Hmm, I'd prefer a more controlled experiment: it would be better to
> press it say 10 times discretely. I wonder also if crossing from one
> date to the next affects things (in my case, it does not).
> 
>>
>> org-agenda-next-line  42
>>   2.837738  0.0675651904
> 
> Be that as it may, you get 67.5ms per call to org-agenda-next-line
> and I get 1.22ms, roughly a factor of  50.
> 
> Can you do M-x elp-instrument-function  next-line  and
> get another profile?
> 
> Thanks,
> Nick
> 
> 
> ___
> 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
> 

ok, I did, getting

org-agenda-next-line  10
  0.864912  0.0864912
org-unhighlight   14
  0.000875  6.257...e-05
org-detach-overlay14
  0.000622  4.449...e-05
org-agenda-do-context-action  10
  0.000274  2.74e-05
org-get-at-bol10
  9.400...e-05  9.400...e-06
org-agenda-post-command-hook  14
  7.5e-05   5.357...e-06

for 10 "next-lines", all in the agenda block of

Monday 29 November 2010 W48

which means there is no date crossing.
What can I do to detail org-agenda-next-line?

What can I do

Rainer

___
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] Creating files for a Kindle

2010-11-27 Thread Graham Smith
Does anyone by chance use orgmode to create files for a Kindle?

If you do I would appreciate some helpful hints or ideas on how you approach
it.

The Kindle file format is apparently modified HTML, but the guidance I have
found seems to revolve around creating files in MSWord and then converting
to Kindle by uploading to Amazon OR using Calibre to convert PDFs to Kindle.
There is also a Mobi publisher that will convert files to Kindle, but its
Windows only.

The problem I have had, is that PDFs converted to Kindle lose a lot of
formatting, including tables.

The Kindle is a great bit of kit for reading documents (far better than a
computer screen) and the free mobile phone connection makes it easy to check
email etc, as well as browse the web at no cost. I'm much more impressed
than I expected to be.

I am slowly transferring a pile of paper documents/reference material onto
it, but I am having problems producing documents that take full advantage of
the Kindle features.  You can upload PDFs directly  but as native PDFs they
aren't as user friendly as proper Kindle formatted flles.

My guess is that orgmode files exported as HTML and then converted to Kindle
may be the way to go, but, as I said, I  would be interested if anyone has
already established a work flow for this.

Many thanks,

Graham
___
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: moving in the agenda view is slow

2010-11-27 Thread Nick Dokos
Rainer Stengele  wrote:

> Nick, elp-reset-all does not work.

Some more detail would be helpful: in what way does it not work?

If I do

M-x elp-reset-all
M-x elp-results

I get a blank slate. Then I can press 10 "n", and do M-x elp-results
and get

org-agenda-list   1   
0.542113  0.542113
org-agenda-get-day-entries105 
0.296363  0.0028225142
org-agenda-get-scheduled  105 
0.173385  0.0016512952
org-agenda-files  3   
0.163354  0.054451
org-time-string-to-absolute   833 
0.129597  0.0001555798
org-parse-time-string 847 
0.110073  0.0001299574
org-prepare-agenda1   
0.055021  0.055021
org-agenda-get-timestamps 105 
0.050603  0.0004819428
org-prepare-agenda-buffers1   
0.049225  0.049225
org-refresh-category-properties   15  
0.030431  0.0020287333
org-agenda-get-sexps  105 
0.02591   0.0002467619
org-agenda-get-deadlines  105 
0.017842  0.0001699238
org-diary-sexp-entry  14  
0.013668  0.0009762857
org-agenda-get-blocks 105 
0.012985  0.000123
org-agenda-next-line  10  
0.012237  0.0012237
org-closest-date  196 
0.010801  5.511...e-05
org-finalize-agenda   1   
0.009044  0.009044
org-up-heading-safe   95  
0.008690  9.148...e-05
org-agenda-do-context-action  10  
0.008677  0.0008677000
org-display-outline-path  10  
0.007925  0.0007925
...

reflecting the stats from the last reset onwards. What do you get?

> Reason for "42" calls is I simply leave my finger on the key for a while
> ... just to see the result more clear:

Hmm, I'd prefer a more controlled experiment: it would be better to
press it say 10 times discretely. I wonder also if crossing from one
date to the next affects things (in my case, it does not).

> 
> org-agenda-next-line  42
>   2.837738  0.0675651904

Be that as it may, you get 67.5ms per call to org-agenda-next-line
and I get 1.22ms, roughly a factor of  50.

Can you do M-x elp-instrument-function  next-line  and
get another profile?

Thanks,
Nick


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


Re: [Orgmode] MobileOrg on DropBox for Teams

2010-11-27 Thread Richard Moreland
Hi Tommy,

You should be able to rename the MobileOrg directory from within the web
interface once you've linked MobileOrg to your Dropbox account.  You'll
know it worked because the renamed folder will continue to have the same
special icon that it had prior to the rename, indicating that it is
linked to an application.

You won't need to change anything on the iPhone side, it doesn't really
know what folder its data is stored in.  However, in your .emacs, you'll
want to change org-mobile-directory to your newly directory name.

Hope this helps,
Richard

On Sat, 27 Nov 2010 13:18 -0600, "Tommy Kelly" 
wrote:
> Is the location on DropBox where the iPhone app expects to find the org
> files hard-coded (to "/MobileOrg"), or is it customizable?
> 
> I've tried messing with org-mobile-directory on the emacs side and with
> the "Index File" field on the iPhone app, but it didn't work. I tried:
> 
> I set org-mobile-directory to:
>  ~/Dropbox//MobileOrg
> 
> and on the iPhone I set "Index File" to:
> //MobileOrg/index.html
> 
> It didn't complain when syncing but I got no files on the iPhone (I'd
> org-mode-push'ed first).
> 
> Tommy
> 
> P.S. I've previously had MobileOrg syncing working fine with the files
> in the default place. So my basic setup appears to be fine.
> 
> P.P.S. The reason I ask is we use DropBox for Teams. If we had multiple
> MobileOrg users, then the default setting would cause collisions since
> all our files would be getting dropped in /MobileOrg. It would be better
> if we could have the files kept in individualized directories,
> e.g. within user-specific DB folders.
> 
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 

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


[Orgmode] MobileOrg on DropBox for Teams

2010-11-27 Thread Tommy Kelly
Is the location on DropBox where the iPhone app expects to find the org
files hard-coded (to "/MobileOrg"), or is it customizable?

I've tried messing with org-mobile-directory on the emacs side and with
the "Index File" field on the iPhone app, but it didn't work. I tried:

I set org-mobile-directory to:
 ~/Dropbox//MobileOrg

and on the iPhone I set "Index File" to:
//MobileOrg/index.html

It didn't complain when syncing but I got no files on the iPhone (I'd
org-mode-push'ed first).

Tommy

P.S. I've previously had MobileOrg syncing working fine with the files
in the default place. So my basic setup appears to be fine.

P.P.S. The reason I ask is we use DropBox for Teams. If we had multiple
MobileOrg users, then the default setting would cause collisions since
all our files would be getting dropped in /MobileOrg. It would be better
if we could have the files kept in individualized directories,
e.g. within user-specific DB folders.



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


Re: [Orgmode] Opening org files on Aquamacs startup

2010-11-27 Thread Jeff Horn
I had problems with desktop. I've saved an elisp file with lines that
call the buffers I like to open when Aquamacs starts. I call it using
`M-x load-file` after emacs starts (I don't like keeping it in my init
file). The file looks something like:

(find-file "~/path/to/file1")
(find-file "~/path/to/file2")
(dired "~/path/to/directory")
etc...

HTH,
Jeff

On Sat, Nov 27, 2010 at 11:35 AM, Juri Artamonov  wrote:
> Thank you Guys, desktop is working.
> Best regards,
>                        Juri.
>
> On Sat, Nov 27, 2010 at 2:11 PM, Stefan Vollmar  wrote:
>>
>> Dear Juri,
>>
>> On 27.11.2010, at 13:39, Juri Artamonov wrote:
>>
>> > I'm using Aquamacs and I would like to specify set files that should be
>> > opened when Aquamacs is started. Does anyone know how to do this?
>>
>> A rather elegant method involves the desktop library and allows you to
>> generally restore the state of an arbitrary Emacs session:
>>
>>
>> http://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html
>>
>> Warm regards,
>>  Stefan
>> --
>> Dr. Stefan Vollmar, Dipl.-Phys.
>> Head of IT group
>> Max-Planck-Institut für neurologische Forschung
>> Gleuelerstr. 50, 50931 Köln, Germany
>> Tel.: +49-221-4726-213  FAX +49-221-4726-298
>> Tel.: +49-221-478-5713  Mobile: 0160-93874279
>> Email: voll...@nf.mpg.de   http://www.nf.mpg.de
>>
>>
>>
>>
>>
>>
>
>
> ___
> 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
>
>



-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
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: moving in the agenda view is slow

2010-11-27 Thread Rainer Stengele
Am 27.11.2010 18:00, schrieb Nick Dokos:
> Rainer Stengele  wrote:
> 
>> What I did:
>> open the agenda view
>>
>> M-x elp-instrument-package  org > several "n"s - delays are there - same on linux (V23.2.1) and windows emacs
>> M-x elp-results
>>
>>
>> org-agenda-next-line  79  
>> 4.004141  0.0506853291
>> org-agenda-do-context-action  79  
>> 0.001360  1.722...e-05
>> org-unhighlight   81  
>> 0.000917  1.132...e-05
>> org-get-at-bol79  
>> 0.000473  5.987...e-06
>> org-detach-overlay81  
>> 0.000268  3.320...e-06
>> org-agenda-post-command-hook  81  
>> 0.000244  3.024...e-06
>>
>> strange, why do I not get more details?
> 
> Why are there 79 calls to org-agenda-next-line? AFAIK, there should be
> just one for each "n" pressed. Maybe do M-x elp-reset-all, then press
> "n", and M-x elp-results?
> 
> The thing is that org-agenda-next-line is very simple:
> 
> ,
> | (defun org-agenda-next-line ()
> |   "Move cursor to the next line, and show if follow mode is active."
> |   (interactive)
> |   (call-interactively 'next-line)
> |   (org-agenda-do-context-action))
> `
> 
> and the calls to org-agend-do-context-action don't amount to much, so
> essentially all of the time must be spent in the (call-interactively
> 'next-line).
> 
> Maybe M-x elp-instrument-function  next-line  will give some
> more clues.  I assume call-interactively cannot be instrumented by elp
> since it's in C.
> 
> Nick
> 
> 
> ___
> 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
> 
Nick, elp-reset-all does not work.
Reason for "42" calls is I simply leave my finger on the key for a while
... just to see the result more clear:

org-agenda-next-line  42
  2.837738  0.0675651904
org-agenda-do-context-action  42
  0.000735  1.75e-05
org-unhighlight   44
  0.000494  1.122...e-05
org-get-at-bol42
  0.000263  6.261...e-06
org-detach-overlay44
  0.000141  3.204...e-06
org-agenda-post-command-hook  44
  0.000132  3.000...e-06

Rainer





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


Re: [Orgmode] Lists handling

2010-11-27 Thread Nicolas Goaziou
Hello,

> Karl Maihofer writes:

> Thanks for that. Did you work on the demote/promote problem, too?

No, nothing related to lists actually. But I added a way to configure
export of inline tasks.

> As pointed out above in my special case inline tasks would be a
> great thing to have in lists. But I understand your reservation.

It would be desirable to hear the opinions of others here.

> With a drawer, you mean something like the following?

> ,
> | - Item 1
> |   - Item 1a
> | :COMMENT:
> | This is a comment.
> | :END:
> |   - Item 1b
> | - Item 2
> | - Item 3
> `

Yes.

> In HTML export it would then be important to be able to format the
> comment with CSS. Right now my inline tasks get a nice border and a
> colored background so that the comments can be recognized withhin
> the lists. Would this be possible for drawers, too?

Sure, drawers export is configurable. You can have a look at
`org-export-format-drawer-function'.

Regards,

-- Nicolas





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


Re: [Orgmode] moving in the agenda view is slow

2010-11-27 Thread Nick Dokos
Rainer Stengele  wrote:

> What I did:
> open the agenda view
> 
> M-x elp-instrument-package  org  several "n"s - delays are there - same on linux (V23.2.1) and windows emacs
> M-x elp-results
> 
> 
> org-agenda-next-line  79  
> 4.004141  0.0506853291
> org-agenda-do-context-action  79  
> 0.001360  1.722...e-05
> org-unhighlight   81  
> 0.000917  1.132...e-05
> org-get-at-bol79  
> 0.000473  5.987...e-06
> org-detach-overlay81  
> 0.000268  3.320...e-06
> org-agenda-post-command-hook  81  
> 0.000244  3.024...e-06
> 
> strange, why do I not get more details?

Why are there 79 calls to org-agenda-next-line? AFAIK, there should be
just one for each "n" pressed. Maybe do M-x elp-reset-all, then press
"n", and M-x elp-results?

The thing is that org-agenda-next-line is very simple:

,
| (defun org-agenda-next-line ()
|   "Move cursor to the next line, and show if follow mode is active."
|   (interactive)
|   (call-interactively 'next-line)
|   (org-agenda-do-context-action))
`

and the calls to org-agend-do-context-action don't amount to much, so
essentially all of the time must be spent in the (call-interactively
'next-line).

Maybe M-x elp-instrument-function  next-line  will give some
more clues.  I assume call-interactively cannot be instrumented by elp
since it's in C.

Nick


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


Re: [Orgmode] Opening org files on Aquamacs startup

2010-11-27 Thread Juri Artamonov
Thank you Guys, desktop is working.

Best regards,
   Juri.

On Sat, Nov 27, 2010 at 2:11 PM, Stefan Vollmar  wrote:

> Dear Juri,
>
> On 27.11.2010, at 13:39, Juri Artamonov wrote:
>
> > I'm using Aquamacs and I would like to specify set files that should be
> opened when Aquamacs is started. Does anyone know how to do this?
>
> A rather elegant method involves the desktop library and allows you to
> generally restore the state of an arbitrary Emacs session:
>
>
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html
>
> Warm regards,
>  Stefan
> --
> Dr. Stefan Vollmar, Dipl.-Phys.
> Head of IT group
> Max-Planck-Institut für neurologische Forschung
> Gleuelerstr. 50, 50931 Köln, Germany
> Tel.: +49-221-4726-213  FAX +49-221-4726-298
> Tel.: +49-221-478-5713  Mobile: 0160-93874279
> Email: voll...@nf.mpg.de   http://www.nf.mpg.de
>
>
>
>
>
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Org-Babel - Clojure & Lazy Sequences Bug

2010-11-27 Thread Eric Schulte
Fixed, Thanks -- Eric

Achim Gratz  writes:

> "Eric Schulte"  writes:
>> I've just pushed up an implementation of this feature.
>
> I'm afraid byte-compile doesn't like it:
>
> In org-babel-expand-body:clojure:
> ob-clojure.el:63:26:Warning: reference to free variable `result-params'
>
>
> :-)
>
>
> Achim.

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


Re: [Orgmode] Opening org files on Aquamacs startup

2010-11-27 Thread Stefan Vollmar
Dear Juri,

On 27.11.2010, at 13:39, Juri Artamonov wrote:

> I'm using Aquamacs and I would like to specify set files that should be 
> opened when Aquamacs is started. Does anyone know how to do this?

A rather elegant method involves the desktop library and allows you to 
generally restore the state of an arbitrary Emacs session:

http://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de








smime.p7s
Description: S/MIME cryptographic signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Opening org files on Aquamacs startup

2010-11-27 Thread Juri Artamonov
Hello,

I'm using Aquamacs and I would like to specify set files that should be
opened when Aquamacs is started. Does anyone know how to do this?

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


Re: [Orgmode] Lists handling

2010-11-27 Thread Karl Maihofer

Hi Nicolas!

Thanks for your answer!

Nicolas Goaziou  schrieb:

Wouldn't drawers be more appropriate here than inline tasks? Not that
it would work with a drawer either, but the examples given seem to
focus more on content than on a task title.


In fact I have both, text comments and tasks that interrupt my lists.  
So I think for me it is a more natural solution to use inline tasks. I  
write my notes between the start- and end-line of an inline task. And  
sometimes I then realize that there is something to take care of. So  
the inline task gets a TODO-state. Without inline tasks withhin the  
list I would have to add an extra inline task above or below the list.  
But some of my lists are several pages long, so this would not be the  
Org-way to define tasks (right there where the work had to be done).


Of course this is a special case. My lists do not contain my thoughts,  
but a given structure. I have to comment this structure. And it should  
be possible to differenciate between the lists and the comments in the  
HTML export. All this worked quite well with inline tasks.



I don't understand what the indentation problem you're talking about
is, [...]


You are right, identation was the wrong word. I meant promoting and  
demoting the current subtree with M-S-left or right arrow key. In the  
example below if the cursor is on Item 1 and I hit M-S-right arrow key  
Item 1a is demoted, but not Item 1b because of the inline task in  
between.


,
| - Item 1
|   - Item 1a
| *** Inline Task
| Here is text.
| *** END
|   - Item 1b
| - Item 2
| - Item 3
`

This is a big issue for me because I will have to edit the structure  
of the lists regularly. Until now this is not possible once I have  
added my comments. And it would be much effort to cut the comments,  
edit the structure and paste the comments again. So if promoting and  
demoting would work in this structure it would be a big help in my case.



[...] but I worked on indentation wrt inline tasks recently. My work is
at: git://github.com/ngz/org-mode-lists.git inlinetask
It might solve some of your problems.


I just checked out a copy and I'll have a look. Thanks for that. Did  
you work on the demote/promote problem, too?



I'm writing down ideas to put in a future update of lists. Some
previously "unsupported anymore" stuff may appear again, after a phase
of testing on a parallel git branch.

In this context, you raise an interesting question about inline tasks.
I have my idea (read below), but a discussion about it might be
productive.
It looks to me the syntax is way too subtle to be clear. Moreover,
lists are all about indentation, and inline tasks defeat that as they
live at column 0. They also visually break any structure around.


Perhaps syntax highlighting of inline tasks is an idea to solve the  
visusl problem. If the inline task gets a background color one can  
differentiate easier between the list and the task.



To be honest, I'm not very enthusiastic about allowing inline tasks
within lists. On the other hand, I will definitely let drawers in,
thus my first question.


As pointed out above in my special case inline tasks would be a great  
thing to have in lists. But I understand your reservation. It would be  
an impurity withhin a list.


With a drawer, you mean something like the following?

,
| - Item 1
|   - Item 1a
| :COMMENT:
| This is a comment.
| :END:
|   - Item 1b
| - Item 2
| - Item 3
`

In my special case this would be second choice. But I think I could  
live without tasks but with comments withhin lists when I change my  
workflow a bit.


In HTML export it would then be important to be able to format the  
comment with CSS. Right now my inline tasks get a nice border and a  
colored background so that the comments can be recognized withhin the  
lists. Would this be possible for drawers, too?


Regards,
Karl





___
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] [nd]oexport for org-publish-attachment

2010-11-27 Thread Łukasz Stelmach
Hello.

I am willing to implement some kind of tagging for attachment files for
publishing. For text we've got the :noexport: tag which prevents
particular subtree from beeing published I'd like to have the same for
files, especially stored as attachments under data/, published with
org-publish-attachments. IMHO there should be a way to tag a directory
tree as exportable and individual files as unexportable and the other
way round.

How should this be done? Brainstorm!

-- 
Miłego dnia,
Łukasz Stelmach


___
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: moving in the agenda view is slow

2010-11-27 Thread Rainer Stengele
Am 26.11.2010 22:28, schrieb Markus Heller:
> Martin Stemplinger  writes:
> 
>> Hallo Rainer Stengele,
>>
>> am 26.11.2010 schriebst Du:
>>
>>> Hi all,
>>>
>>> I am struggling more and more with slowness in my agenda view.
>>> Moving from line to line with n and p is slow.
>>> Pressing the n key for 2 seconds will result in the cursor not following 
>>> every keypress
>>> but jumping down after 2 or 3 seconds.
>>>
>>> I switched off all minor modes and found no improvements.
>>> What is the agenda doing when I am moving from item to item?
>>> Follow-mode is off.
>>>
>>> I use about 10 org files with a total of 35.000 lines.
>>> The slowness is true for customized agenda views as well as for default 
>>> ones like "C-a t"
>>> (List of all todo entries).
>>>
>>> GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-04 on 
>>> LENNART-69DE564 (patched)
>>> Org-mode version 7.3 (release_7.3.157.ga98a)
>>>
>>> Rainer
>>
>> Maybe it's something completely different but I found org-mode to be
>> ridicilous slow when the org-files were under git version control. No
>> idea when this started and why it happened.  
> 
> I've had a similar issue.  Somebody here suggested to put the line below
> in my .emacs, which helped.  But beware, this disables the vc backend of
> emacs completely, so you'll have to run git manually.
> 
> Here is the line:
> 
> ;; no vc-git
> (setq vc-handled-backends nil)
> 
> 
> HTH
> Markus
> 
> 
> ___
> 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
> 
ok i tried this, no effect.

Rainer

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


Re: [Orgmode] moving in the agenda view is slow

2010-11-27 Thread Rainer Stengele
Am 27.11.2010 08:09, schrieb Manuel Hermenegildo:
> My impression is that it is indeed at least partially related to
> font-lock. I have also observed that (at least on a mac) it is much
> worse in emacs 23 than in emacs 22 (to the point where it has made me
> swicth back to emacs 22 to make org usable). A recent post suggested
> using 
>
> (setq font-lock-verbose nil)
>
> which does improve things (by avoiding printing some messages during
> font-lock), but it is still slow for me in emacs 23. My org files are
> 15 or so, around 30K lines each. --Man
>
that didn't really change the slowness.
Thanks,

Rainer

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


Re: [Orgmode] moving in the agenda view is slow

2010-11-27 Thread Rainer Stengele
Am 27.11.2010 03:53, schrieb Nick Dokos:
> Eric S Fraga  wrote:
>
>> Rainer Stengele  writes:
>>
>>> Hi all,
>>>
>>> I am struggling more and more with slowness in my agenda view.  Moving
>>> from line to line with n and p is slow.  Pressing the n key for 2
>>> seconds will result in the cursor not following every keypress but
>>> jumping down after 2 or 3 seconds.
>> I'll add that I have observed this the past week or so: there's a very
>> noticeable pause between my hitting 'n', say, and the cursor moving down
>> to the next line in a default agenda view (C-c a a).  My agenda files
>> add up to less than 40k lines.  I've not done any investigation to see
>> why things have slowed up recently but will start playing around...
>>
> I don't have this problem at all (perhaps because my agenda files are
> puny at less than 5K lines total), but I obtained a profile[fn:1] and
> most of the time goes to font-lock stuff. Here are the top five:
>
> font-lock-fontify-region  11953   
> 4.586574  0.0003837173
> font-lock-default-fontify-region  11953   
> 4.219105  0.0003529745
> font-lock-fontify-keywords-region 11953   
> 2.885069  0.0002413677
> font-lock-extend-jit-lock-region-after-change 87462   
> 1.440971  1.647...e-05
> org-agenda-list   1   
> 0.461168  0.461168
>
> What does your profile look like?
>
> Thanks,
> Nick
>
> Footnotes:
> [fn:1] ... by doing
>
> M-x elp-instrument-package  org  C-c a a to get an agenda
> a dozen "n"s - N.B. I get instant response here: no delays.
> M-x elp-results

What I did:
open the agenda view

M-x elp-instrument-package  org http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Highlight special string

2010-11-27 Thread Sébastien Vauban
Hi Karl,

Karl Maihofer wrote:
> Darlan Cavalcante Moreira  schrieb:
>> Karl Maihofer  wrote:
>>> I'd like to highlight the strings "(ok)" and "(fail)" in my Org-document.
>>> Ok should get a green background, fail a red one. I think highlighting in
>>> emacs should last, but it would be great to have these strings highlighted
>>> in HTML-export, too, if this is no problem.
>>
>> Not exactly what you want, but for temporary highlights (useful for
>> instance to see if you are repeating the same word too much in a text) you
>> can use hi-lock-mode.
>>
>> Turn hi-lock-mode on with M-x hi-lock-mode. Then you can highlight a word
>> with "C-x w h" (highlight-regexp) or a the line containing a word with "C-x
>> w l" (highlight-lines-matching-regexp). Remove highlights with "C-x w r".

Please find the *lasting* solution that I'm using, hence IMHO better than
hi-lock.

The only thing you would still miss is the ability to get those highlighted
words exported to HTML or PDF.

#+begin_src emacs-lisp
  ;; special words
  (setq my/keywords-error-pattern

"\\(BUG\\|FIXME\\|XXX\\|TODO\\|[Ee]rror\\|ERROR\\|[Ww]arning\\|[Mm]issing\\|[Ii]nvalid\\|[Ff]ailed\\|[Cc]orrupted\\|[Ff]atal\\|FATAL\\|[Uu]ndefined\\|[Dd]enied\\)")

  (make-face 'my/keywords-error-face)
  (GNUEmacs (set-face-attribute 'my/keywords-error-face nil
;; :family "Serif"
;; :height 0.9
:weight 'normal :slant 'normal
:box '(:line-width 1 :color "#CC")
:foreground "#CC"
:background "#88"
))

  (setq my/keywords-org-error-pattern
"\\(BUG\\|FIXME\\|XXX\\|[^*] 
TODO\\|[Ee]rror\\|[Ww]arning\\|[Mm]issing\\|[Ii]nvalid\\|[Ff]ailed\\|[Cc]orrupted\\|[Ff]atal\\|[Uu]ndefined\\)")
; smaller subset of keywords for
; ensuring no conflict with Org mode
; TODO keywords
  ;; FIXME Highlighting all special keywords but "TODO" in Org mode is
  ;; already a good step. Though, a nicer integration would be that "TODO"
  ;; strings in the headings are not touched by this code, and that only
  ;; "TODO" strings in the text body would be. Don't know (yet) how to do
  ;; that...

  ;; FIXME TODO should be highlighted in Org, even when at beginning of
  ;; line -- of course, without * in front of it.

  ;; set up highlighting of special words for proper selected major modes
  ;; only
  (dolist (mode '(fundamental-mode
  svn-log-view-mode
  text-mode))
; no interference with Org mode (which
; derives from text-mode)
(font-lock-add-keywords
 mode
 `((,my/keywords-error-pattern 1 'my/keywords-error-face prepend

  ;; set up highlighting of special words for Org mode only
  (dolist (mode '(org-mode))
(font-lock-add-keywords
 mode
 `((,my/keywords-org-error-pattern 1 'my/keywords-error-face prepend

  ;; add fontification patterns (even in comments) to a selected major
  ;; mode *and* all major modes derived from it
  (defun fontify-keywords ()
(interactive)
;;   (font-lock-mode -1)
;;   (font-lock-mode 1)
(font-lock-add-keywords
 nil
 `((,my/keywords-error-pattern 1 'my/keywords-error-face prepend
  ;; FIXME 0  t

  ;; set up highlighting of special words for selected major modes *and*
  ;; all major modes derived from them
  (dolist (hook '(c++-mode-hook
  c-mode-hook
  change-log-mode-hook
  cperl-mode-hook
  css-mode-hook
  emacs-lisp-mode-hook
  html-mode-hook
  java-mode-hook
  latex-mode-hook
  lisp-mode-hook
  makefile-mode-hook
  message-mode-hook
  php-mode-hook
  python-mode-hook
  sh-mode-hook
  shell-mode-hook ;; works in *shell* buffers!
  ssh-config-mode-hook))
(add-hook hook 'fontify-keywords))
#+end_src

As signaled in my comments, the only problem I have is that when such a word
appears in a Org heading, the Org heading fontification is disabled -- only
for that single line!

Would someone be able to fix that last tiny feature...

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies

[Orgmode] Re: Org-Babel - Clojure & Lazy Sequences Bug

2010-11-27 Thread Achim Gratz
"Eric Schulte"  writes:
> I've just pushed up an implementation of this feature.

I'm afraid byte-compile doesn't like it:

In org-babel-expand-body:clojure:
ob-clojure.el:63:26:Warning: reference to free variable `result-params'


:-)


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

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada


___
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