Re: [Orgmode] [patch] org-wl: Code cleanup and enhancements

2010-05-07 Thread Carsten Dominik


On May 7, 2010, at 5:36 PM, David Maus wrote:


Attached patch for org-wl.el contains some code cleanup and two
enhancements:

 1. Store and open link to Wanderlust folders.

 2. Store link to Wanderlust message while visiting the message
buffer.

Up to now it was only possible to store a link to a message when
point was in the message summary.

@Carsten: This patch also contains the update for ChangeLog.  I hope
merging different ChangeLog entries works out of the box.  I.e. there
will be two other patches with an updated ChangeLog as well.



Hi David, I have applied the patch, thanks.  Also, thanks for
providing the ChangeLog.  These never apply cleanly, because
I usually have made other changes in the mean time.  But it still
saves me time if you provide the entires.

The best way would still be to publish a git branch with your changes,
then I can merge and fix the "conflict" the easiest.

I did have a problem with this particular patch to org-wl.el, and so
I did apply the patch by hand - please double-check if all went well.

Thanks!  Your contributions are much appreciated.

- Carsten



___
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: Infinite loop when escape replace string contains escape sequence it replaces [6.35trans]

2010-05-07 Thread Carsten Dominik

Applied, thanks.

- Carsten

On May 7, 2010, at 6:03 PM, David Maus wrote:



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.


Org enters an infinite loop when `org-replace-escapes' is called with
a table containing a replace string that contains the escape sequence
it should be replaced with.

Example:
,
| (org-replace-escapes "%m" '(("%m" . "87zl0qq1f3.wl%maus.da...@gmail.com 
")))

`

I stumpled upon when I tried to store a link to a internet message
whose message id contained the sequence "%m" (perfectly valid for a
message id) while using "%m" as message description.

Attached patch fixes this by

 1. detecting such 'self reference' and replacing the offending
sequence in the replace string by a string with a text property
that contains the original sequence

 2. replacing occurences of substrings with this text property by the
original sequence.

HTH
-- David

Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2)
of 2009-11-02 on raven, modified by Debian
Package: Org-mode version 6.35trans
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de
repl.diff>___

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


- Carsten





___
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] Pretty org-entities in org-mode buffers

2010-05-07 Thread Carsten Dominik


On May 7, 2010, at 5:27 PM, Eric Schulte wrote:


Carsten Dominik  writes:


Also there should be a switch for turning this on and off.

I would like to integrate this code into org-entities.el.



Those both sound great.  It would take a little bit of effort to look
into how to remove font-lock keywords.  If you have the time and
inclination please go ahead with this, otherwise I should be able to
take a shot at it myself in the next week or two -- I'm in the  
middle of

my final exams right now.


I think the right way would be to install a function into font-lock- 
keywords, and

that function can then honor a switch.  I can do that.

- Carsten



___
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] Pretty org-entities in org-mode buffers

2010-05-07 Thread Carsten Dominik


On May 7, 2010, at 5:27 PM, Eric Schulte wrote:


Carsten Dominik  writes:


Dear Eric,

this is fantastic.


Great, Thanks


This is kind of like X-symbol, only that I can just write my trusted
LaTeX macros and get all those characters.  Makes me think that I  
need

to add a few more symbols that I commonly use in math expressions.



Yea, I have the following org-entites customization in my setup which
covers some of the symbol names I commonly expect.  It's been growing
the more I use org-entities.

--8<---cut here---start->8---
(add-to-list 'org-entities



There is now a special user variable that can be used to add your own
entities, if you want to avoid messing with this constant.  But I guess
this is a matter of taste.
I will also accept patches that will add to org-entities, in a limited  
way.


- Carsten

'("supseteq" "\\supseteq" t "⊇" "[superset of or  
equal to]"

  "[superset of or equal to]" "⊇"))
(add-to-list 'org-entities
'("subseteq" "\\subseteq" t "⊆" "[subset of or  
equal to]"

  "[subset of or equal to]" "⊆"))
(add-to-list 'org-entities
'("subseteq" "\\subseteq" t "⊆" "[subset of or  
equal to]"

  "[subset of or equal to]" "⊆"))
(add-to-list 'org-entities
'("leq" "\\leq" t "≤" "<=" "<=" "≤"))
(add-to-list 'org-entities
'("geq" "\\geq" t "≥" ">=" ">=" "≥"))
--8<---cut here---end--->8---



I am wondering if we could be a bit more generous with the regular
expression.  For example, I would love for $\alpha=\beta$ to show the
symbols as well.


agreed, maybe this would be better (using [:alnum:])?  The only reason
for the restriction is to keep symbols from appearing mid way through
typing out some other symbol or word.

--8<---cut here---start->8---
(defun org-pretty-entities ()
 (font-lock-add-keywords
  nil (mapcar
   (lambda (el)
 (list
  (concat "(?\\(" (regexp-quote "\\") (nth 0 el)  
"[^[:alnum:]]" "\\)")
  `(0 (progn (compose-region (match-beginning 1) (- (match- 
end 1) 1)

 ,(nth 6 el)) nil
   org-entities)))
--8<---cut here---end--->8---



Also there should be a switch for turning this on and off.

I would like to integrate this code into org-entities.el.



Those both sound great.  It would take a little bit of effort to look
into how to remove font-lock keywords.  If you have the time and
inclination please go ahead with this, otherwise I should be able to
take a shot at it myself in the next week or two -- I'm in the  
middle of

my final exams right now.



Thanks for all your contributions, which continue to make Org-mode so
much richer.



It's my Pleasure -- Eric



- Carsten


On May 5, 2010, at 6:19 PM, Eric Schulte wrote:


Hi,

Recently I've been making use of org-entites for exporting my greek/
math
heavy class notes to HTML.  I'm really loving the results.

This morning I've started playing around with the below function
`org-pretty-entities', which is adapted from Phil Hagelberg's
`pretty-lambdas'[1].  Calling this function in an org-mode buffer  
will

have the effect of fontifying all org-entities text strings as the
character which they represent, so \Delta is replaced with Δ,  
\lambda

with λ, \in with ∈, and so forth.

I've just started playing with this, and I make no guarantees as to
it's
safety or utility, but I was very pleasantly surprised by the
simplicity
of the function, and how nice it's been to see my special characters
appear in org-mode buffers as I type.

#+begin_src emacs-lisp :results silent
(defun org-pretty-entities ()
  (interactive)
  (font-lock-add-keywords
   nil (mapcar
(lambda (el)
  (list
   (concat "(?\\(" (regexp-quote "\\") (nth 0 el) "[\s]" "\
\)")
   `(0 (progn (compose-region (match-beginning 1) (-
(match-
end 1) 1)
  ,(nth 6 el)) nil
org-entities)))

(org-pretty-entities)
#+end_src

To try this out, just evaluate the above code block inside of an
org-mode buffer, then starting typing out org-entities.

Hope others find this useful.

Best -- Eric

Footnotes:
[1]  
http://github.com/technomancy/emacs-starter-kit/blob/master/starter-kit-defuns.el#L135


___
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


- Carsten


- Carsten





___
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-crypt symmetric encryption patch

2010-05-07 Thread Carsten Dominik


On May 7, 2010, at 5:17 PM, Peter Jones wrote:


Rick Moynihan  writes:

I've patched org-crypt to use symmetric encryption.  If org-crypt-key
is nil a symmetric cipher is used.


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

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

So, I guess this is right.


OK, I have applied this patch.


 We should probably update the documentation
for org-crypt to say that if you don't set a crypt key it will default
to symmetric encryption.


I have changed this i the file header of org-crypt.el.  However, this
reminded me hat encryption is no documented in the manual.  Would one
of you like to identify  location in a manual where this would fit in
and write a short addition to fix this?

Thanks.

- Carsten



___
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] [patch] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid

2010-05-07 Thread Carsten Dominik

Hi David,

what is the difference/advantage of this idea over using uuidgen as  
Org does now?


Thanks.

- Carsten

On May 7, 2010, at 5:57 PM, David Maus wrote:


Attached patch for org-id adds a new function `org-id-uuid' that
returns a random (version 4) uuid following the format and suggestions
in RFC 4122:

 - it collects some random, system ans user specific data

 - creates a md5 hash for this data to obtain the require 32 octets

 - flips the correct bits to indicate a random uuid

Using the elisp method to create a random uuid can be customized by
setting `org-id-method' to 'uuid.

In addition `org-id-new' throws an error when the call to
`org-id-uuid-program' returns something that does not look like a
uuid.[1]

HTH
-- David


[1] Sorry, this should have been a patch on its own.

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de
elisp.diff>___

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


- Carsten





___
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] noob question : In a table , how to update a formula when inserting a new line

2010-05-07 Thread w t
On Fri, May 7, 2010 at 7:21 PM, Matt Chastagnier  wrote:
> Hi,
>
> I've just started with org-mode and have done several tutorials. But I'm
> stuck with this problem for 3 hours :
>
>
> I have :
>
> | item    | quantity |
> |-+--|
> | laptop  |    4 |
> | desktop |    7 |
> |-+--|
> | Total   |   11 |
>
> #+TBLFM: @4$2=vsum(@i...@ii)
>
> I insert a new line [because I will want to add a new item] (M-S down) and
> update the table (C-u C-c C-c) :
>
> | item    | quantity |
> |-+--|
> | laptop  |    4 |
> | desktop |    7 |
> | |   11 |
> |-+--|
> | Total   |   11 |
>
> #+TBLFM: @4$2=vsum(@i...@ii)
>
> but my formula isn't updated automatically so the wrong field is updated. I
> would like the formula to become @5$2 instead of @4$2 automatically.

Before editing the table make sure there is no blank line between the
table and the line "#+TBLFM: @4$2=vsum(@i...@ii)". Then use the
M-S- command.


___
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] noob question : In a table , how to update a formula when inserting a new line

2010-05-07 Thread Nick Dokos
Matt Chastagnier  wrote:

> I've just started with org-mode and have done several tutorials. But I'm
> stuck with this problem for 3 hours :
> 
> 
> I have :
> 
> | item| quantity |
> |-+--|
> | laptop  |4 |
> | desktop |7 |
> |-+--|
> | Total   |   11 |
> 
> #+TBLFM: @4$2=vsum(@i...@ii)
> 
> I insert a new line [because I will want to add a new item] (M-S down) and
> update the table (C-u C-c C-c) :
> 
> | item| quantity |
> |-+--|
> | laptop  |4 |
> | desktop |7 |
> | |   11 |
> |-+--|
> | Total   |   11 |
> 
> #+TBLFM: @4$2=vsum(@i...@ii)
> 
> but my formula isn't updated automatically so the wrong field is updated. I
> would like the formula to become @5$2 instead of @4$2 automatically.
> I've searched during 2 hours with google but found nothing :/ ... Is it
> possible to do it? Cause It's very annoying to update the formula "by hand"
> (sorry for my english).
> 

You looked in the wrong place :-) If you look in section 3.5.1,
"References", in the Org manual, you'll find

,
|As a special case, references like `$LR5' and `$LR12' can be used to
| refer in a stable way to the 5th and 12th field in the last row of the
| table.
`


So make your formula

#+TBLFM: $LR2=vsum(@i...@ii)

HTH,
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


[Orgmode] noob question : In a table , how to update a formula when inserting a new line

2010-05-07 Thread Matt Chastagnier
Hi,

I've just started with org-mode and have done several tutorials. But I'm
stuck with this problem for 3 hours :


I have :

| item| quantity |
|-+--|
| laptop  |4 |
| desktop |7 |
|-+--|
| Total   |   11 |

#+TBLFM: @4$2=vsum(@i...@ii)

I insert a new line [because I will want to add a new item] (M-S down) and
update the table (C-u C-c C-c) :

| item| quantity |
|-+--|
| laptop  |4 |
| desktop |7 |
| |   11 |
|-+--|
| Total   |   11 |

#+TBLFM: @4$2=vsum(@i...@ii)

but my formula isn't updated automatically so the wrong field is updated. I
would like the formula to become @5$2 instead of @4$2 automatically.
I've searched during 2 hours with google but found nothing :/ ... Is it
possible to do it? Cause It's very annoying to update the formula "by hand"
(sorry for my english).


and just a big thank you for this very powerful extension of emacs ^^.

Thank you in advance for having read,
hoping for an answer if you have a bit time,

Salutation

Matt C
___
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] Literate programming

2010-05-07 Thread Eric Schulte
Hi Ivanov,

Are you familiar with Org-babel?

http://orgmode.org/worg/org-contrib/babel/

It adds literate programming support to Org-mode.

Best -- Eric

Ivanov Dmitry  writes:

> Hi.
> I have been using a literate programming tool: leo editor.  Maybe someone 
> used it. A programmer can create a tree with the description of the program 
> with the minuteness he wants. In each node he has a chunk of code and 
> comments, if needed.
>
> Is anybody interested in creating an emacs mode, making it like leo?The tree 
> buffer seems an ideal tool for this project. I promise to help with all my 
> elisp skills.
>
> I have posted this message at CEDET mailing list, so if you are interested, 
> please check the thread:
>
> http://comments.gmane.org/gmane.emacs.cedet/4423
>
>
>
> ___
> 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] unique id=-values in aggregated html-exported docs

2010-05-07 Thread Dirk-Jan C . Binnema
Hi all,

Recently, I've started using org + jekyll for blogging; it works well so far,
but I found a small issue when aggregating multiple org-exported-to-html
entries into one page. The problem is that some of the html-elements have
id=... attributes, which are supposed to be unique in a html document;
however, this fails when aggregating different elements into one. Similar
concern for other supposedly unique items like footnotes.

The id=-thing is mostly annoying because it makes html-tidy complain (and
breaks strict standard compliance), but e,g. the footnote issue could be
annoying in practice (i.e.. jumping to the wrong footnote).

So, one possible solution might be to have a way to make org prefix its
id-values with something truly unique, or even just a random number. Or is
there some other way to solve this?

Thanks in advance,
Dirk.

-- 
Dirk-Jan C. Binnema  Helsinki, Finland
e:d...@djcbsoftware.nl   w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C


___
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] org-id: New org-id-method 'uuid' w/ elisp function that creates random uuid

2010-05-07 Thread David Maus
Attached patch for org-id adds a new function `org-id-uuid' that
returns a random (version 4) uuid following the format and suggestions
in RFC 4122:

  - it collects some random, system ans user specific data

  - creates a md5 hash for this data to obtain the require 32 octets

  - flips the correct bits to indicate a random uuid

Using the elisp method to create a random uuid can be customized by
setting `org-id-method' to 'uuid.

In addition `org-id-new' throws an error when the call to
`org-id-uuid-program' returns something that does not look like a
uuid.[1]

HTH
 -- David


[1] Sorry, this should have been a patch on its own.

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


org-id-uuid-elisp.diff
Description: Binary data


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


[Orgmode] Re: org-crypt symmetric encryption patch

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

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

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

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

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



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


[Orgmode] Literate programming

2010-05-07 Thread Ivanov Dmitry
Hi.
I have been using a literate programming tool: leo editor.  Maybe someone used 
it. A programmer can create a tree with the description of the program with the 
minuteness he wants. In each node he has a chunk of code and comments, if 
needed.

Is anybody interested in creating an emacs mode, making it like leo?The tree 
buffer seems an ideal tool for this project. I promise to help with all my 
elisp skills.

I have posted this message at CEDET mailing list, so if you are interested, 
please check the thread:

http://comments.gmane.org/gmane.emacs.cedet/4423



___
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  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


Re: [Orgmode] Pretty org-entities in org-mode buffers

2010-05-07 Thread Carsten Dominik

Dear Eric,

this is fantastic.  This is kind of like X-symbol, only that I can  
just write my trusted LaTeX macros and get all those characters.   
Makes me think that I need to add a few more symbols that I commonly  
use in math expressions.


I am wondering if we could be a bit more generous with the regular  
expression.  For example, I would love for $\alpha=\beta$ to show the  
symbols as well.

Also there should be a switch for turning this on and off.

I would like to integrate this code into org-entities.el.

Thanks for all your contributions, which continue to make Org-mode so  
much richer.


- Carsten


On May 5, 2010, at 6:19 PM, Eric Schulte wrote:


Hi,

Recently I've been making use of org-entites for exporting my greek/ 
math

heavy class notes to HTML.  I'm really loving the results.

This morning I've started playing around with the below function
`org-pretty-entities', which is adapted from Phil Hagelberg's
`pretty-lambdas'[1].  Calling this function in an org-mode buffer will
have the effect of fontifying all org-entities text strings as the
character which they represent, so \Delta is replaced with Δ, \lambda
with λ, \in with ∈, and so forth.

I've just started playing with this, and I make no guarantees as to  
it's
safety or utility, but I was very pleasantly surprised by the  
simplicity

of the function, and how nice it's been to see my special characters
appear in org-mode buffers as I type.

#+begin_src emacs-lisp :results silent
 (defun org-pretty-entities ()
   (interactive)
   (font-lock-add-keywords
nil (mapcar
 (lambda (el)
   (list
(concat "(?\\(" (regexp-quote "\\") (nth 0 el) "[\s]" "\ 
\)")
`(0 (progn (compose-region (match-beginning 1) (- (match- 
end 1) 1)

   ,(nth 6 el)) nil
 org-entities)))

 (org-pretty-entities)
#+end_src

To try this out, just evaluate the above code block inside of an
org-mode buffer, then starting typing out org-entities.

Hope others find this useful.

Best -- Eric

Footnotes:
[1]  
http://github.com/technomancy/emacs-starter-kit/blob/master/starter-kit-defuns.el#L135


___
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


- Carsten





___
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] Exporting to single LaTeX file and multiple HTML files

2010-05-07 Thread Eric Schulte
Possibly one of these...
- http://eschulte.github.com/babel-dev/publish.html
- http://orgmode.org/worg/org-tutorials/org-jekyll.php

Ulf Stegemann  writes:

> I'm wondering what's the best way to export a single org file to a
> /single/ LaTeX file but also to /multiple/ HTML files. Think of lengthy
> manuals and things like that where such a strategy may be sensible. What
> came to my mind were include commands or publishing functions that
> post-process the export but this seems all rather cumbersome. Has anyone
> a better idea?
>
> Ulf
>
>
>
> ___
> 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] Exporting to single LaTeX file and multiple HTML files

2010-05-07 Thread David Maus
Ulf Stegemann wrote:
>I'm wondering what's the best way to export a single org file to a
>/single/ LaTeX file but also to /multiple/ HTML files. Think of lengthy
>manuals and things like that where such a strategy may be sensible. What
>came to my mind were include commands or publishing functions that
>post-process the export but this seems all rather cumbersome. Has anyone
>a better idea?

The function below could be a starting point of a more general
functionality: It takes a file and splits copys all headlines with a
certain level to a separate output file.

The more general functionality I am thinking of would be: Create
multiple output files for one or more input files that contain
headlines that match a certain criteria.

E.g.: Create output file "TODO.org" with all headlines with todo
keyword TODO or put all files with the tag "tag" into a output file
"tag.org" etc.

Things to consider:

  - escape sequences for output file names
("%number" -> counter, "%tag" -> tag etc.)

  - functions to move headline from here to there
(copy, cut, cut and insert link)

  - maybe provide template for the output file's in file options
(e.g. #+TITLE etc.)

For the splitting-by-level there is one caveat: The numbering of the
headlines is lost.

Definitively something that should be cooked up a little more.

,
| (defun org-split-file (file level outfmt)
|   "Split FILE into multiple files.
| FILE is Org file to split.
| LEVEL is outline level of headlines.
| OUTFMT is a template for output files."
|   (let ((visiting (find-buffer-visiting file))
| (cnt 1)
| cand hl out)
| (with-current-buffer (or visiting (find-file-noselect file))
|   (save-excursion
| (save-restriction
|   (setq cand (org-map-entries 'point
|   (format "LEVEL=%s" level)
|   'file))
|   (while (setq hl (pop cand))
| (goto-char hl)
| (setq out (concat
|(org-replace-escapes outfmt
| `(("%n" . ,(format "%s" cnt
|".org"))
| (org-copy-subtree)
| (with-current-buffer (find-file-noselect out)
|   (erase-buffer)
|   (org-paste-subtree level)
|   (save-buffer))
| (kill-buffer (find-buffer-visiting out))
| (setq cnt (1+ cnt))
| (print out)))
`

HTH
 -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


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


[Orgmode] huge font in column view

2010-05-07 Thread Eraldo Helal
When I press 'C-c C-x C-c' on a headline in org-mode, I get into column view as 
expected, however the font is huuuge!
I remember seeing the same sized font when starting emacs without my config 
file.
I have set the font size for this very reason... but column mode seems to 
ignore it

According to what I read, column view gets the font size from the 'default 
font'.
Until now I thought I had changed the default font with '(set-face-attribute 
'default nil :height 80)'.
How else can I set the default font size? Or is the problem elsewhere?

Greetings from Austria,
Eraldo


___
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] Pretty org-entities in org-mode buffers

2010-05-07 Thread Eric S Fraga
On Fri, 07 May 2010 09:27:44 -0600, "Eric Schulte"  
wrote:

[...]

> agreed, maybe this would be better (using [:alnum:])?  The only reason
> for the restriction is to keep symbols from appearing mid way through
> typing out some other symbol or word.

Eric,

ignore my previous email (which crossed yours in the
æther...).  :alnum: more than satisfies my request!  This is
brilliant.

Thanks again,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org mode as tabbed notebook

2010-05-07 Thread Sebastian Rose
katepano  writes:
> Hello All,
> 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?
>
> Any ideas are wellcome!


Speedbar, or even http://www.emacswiki.org/emacs/sr-speedbar.el

works on the console too,


 Sebastian 


___
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] Pretty org-entities in org-mode buffers

2010-05-07 Thread Eric S Fraga
On Wed, 05 May 2010 10:19:44 -0600, "Eric Schulte"  
wrote:
> 
> Hi,
> 
> Recently I've been making use of org-entites for exporting my greek/math
> heavy class notes to HTML.  I'm really loving the results.
> 
> This morning I've started playing around with the below function
> `org-pretty-entities', which is adapted from Phil Hagelberg's
> `pretty-lambdas'[1].  Calling this function in an org-mode buffer will
> have the effect of fontifying all org-entities text strings as the
> character which they represent, so \Delta is replaced with Δ, \lambda
> with λ, \in with ∈, and so forth.
> 
> I've just started playing with this, and I make no guarantees as to it's
> safety or utility, but I was very pleasantly surprised by the simplicity
> of the function, and how nice it's been to see my special characters
> appear in org-mode buffers as I type.
> 
> #+begin_src emacs-lisp :results silent
>   (defun org-pretty-entities ()
> (interactive)
> (font-lock-add-keywords
>  nil (mapcar
>   (lambda (el)
> (list
>  (concat "(?\\(" (regexp-quote "\\") (nth 0 el) "[\s]" "\\)")
>  `(0 (progn (compose-region (match-beginning 1) (- (match-end 1) 
> 1)
> ,(nth 6 el)) nil
>   org-entities)))
>   
>   (org-pretty-entities)
> #+end_src
> 
> To try this out, just evaluate the above code block inside of an
> org-mode buffer, then starting typing out org-entities.
> 
> Hope others find this useful.

Eric,

I am indeed finding this useful (as my notes are often math heavy as
well).  One question: I don't fully understand the regexp above,
especially as I would have expected a specific character after the \s,
so is it possible to make the mapping take effect if I type, say
"\alpha."?  Note the punctuation instead of a space, say.

Other than that, it works really nicely and fits in very well with the
org philosophy (e.g. links) in that the underlying representation is
still simple text.  I've added this to my org-mode-hook and so far
everything is fine.

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org mode as tabbed notebook

2010-05-07 Thread Eric S Fraga
On Fri, 07 May 2010 09:40:55 +0300, katepano  wrote:
> 
> Hello All,
> 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?
> 
> Any ideas are wellcome!

Having never used any of the other tools you mention, I'm not sure
what functionality you are missing or desire.  Can you please expand
on this?  I use a number of tools to manage my buffers including
bs-show, ido and org's own org-iswitchb (C-c b).  I have used ecb mode
as well (which is a bit more powerful than speedbar), especially when
I am coding as well as writing, as it supports org files well enough
for my uses.

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: Infinite loop when escape replace string contains escape sequence it replaces [6.35trans]

2010-05-07 Thread David Maus

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.


Org enters an infinite loop when `org-replace-escapes' is called with
a table containing a replace string that contains the escape sequence
it should be replaced with.

Example:
,
| (org-replace-escapes "%m" '(("%m" . "87zl0qq1f3.wl%maus.da...@gmail.com")))
`

I stumpled upon when I tried to store a link to a internet message
whose message id contained the sequence "%m" (perfectly valid for a
message id) while using "%m" as message description.

Attached patch fixes this by

  1. detecting such 'self reference' and replacing the offending
 sequence in the replace string by a string with a text property
 that contains the original sequence

  2. replacing occurences of substrings with this text property by the
 original sequence.

HTH
 -- David

Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2)
 of 2009-11-02 on raven, modified by Debian
Package: Org-mode version 6.35trans
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


fix-infinite-loop-esc-repl.diff
Description: Binary data


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


[Orgmode] Error on store-link in Normal File

2010-05-07 Thread Daniel E . Doherty

All,

In doing a C-c l in a normal .tex file, I get an error, similar to one I
was getting earlier in dired.  The dired error is fixed, but I just
noticed today that I get a similar error when trying to store a link
within an buffer for an open file.

Here is the trace:

,
| Debugger entered--Lisp error: (wrong-type-argument stringp nil)
|   directory-file-name(nil)
|   (file-name-directory (directory-file-name dirpath))
|   (let ((dirname ...) (basename ...)) (list dirname basename))
|   org-git-split-dirpath(nil)
|   (let ((dirlist ...)) (when (string= ... "") (throw ... nil)) (setq dir 
(first dirlist) relpath (concat ... relpath)))
|   (while (not (file-exists-p ...)) (let (...) (when ... ...) (setq dir ... 
relpath ...)))
|   (catch (quote toplevel) (while (not ...) (let ... ... ...)) (list 
(expand-file-name ".git" dir) relpath))
|   (let ((dir ...) (relpath ...)) (catch (quote toplevel) (while ... ...) 
(list ... relpath)))
|   org-git-gitrepos-p("~/tmfiles/Aegis Fire 
Protection/SunflowerFundingLLC/Petition.tex")
|   (if (org-git-gitrepos-p file) (progn (org-store-link-props :type "git" 
:link ...)))
|   (when (org-git-gitrepos-p file) (org-store-link-props :type "git" :link 
(org-git-create-git-link file)))
|   (let ((file ...)) (when (org-git-gitrepos-p file) (org-store-link-props 
:type "git" :link ...)))
|   (progn (let (...) (when ... ...)))
|   (if (buffer-file-name) (progn (let ... ...)))
|   (when (buffer-file-name) (let (...) (when ... ...)))
|   org-git-store-link()
|   run-hook-with-args-until-success(org-git-store-link)
|   org-store-link(nil)
|   call-interactively(org-store-link nil nil)
`

Regards,
-- 
===
,[ Law Offices ]   
| Daniel E. Doherty
| 7300 W. 110th Street, Suite 930  
| Overland Park, KS 66210
| 913.338.7182 (Phone)   
| 913,338.7164 (FAX) 
`



___
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] org-wl: Code cleanup and enhancements

2010-05-07 Thread David Maus
Attached patch for org-wl.el contains some code cleanup and two
enhancements:

  1. Store and open link to Wanderlust folders.

  2. Store link to Wanderlust message while visiting the message
 buffer.

 Up to now it was only possible to store a link to a message when
 point was in the message summary.

@Carsten: This patch also contains the update for ChangeLog.  I hope
merging different ChangeLog entries works out of the box.  I.e. there
will be two other patches with an updated ChangeLog as well.

HTH
 -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


org-wl-cleanup-features.diff
Description: Binary data


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


Re: [Orgmode] Re: orgcard.txt in Makefile

2010-05-07 Thread Osamu OKANO
Hi!

> Can I have it for the distribution?  In this case you need to
> decide which license you want to distribute it under and mention
> that in the script file.  Any of the usual OpenSource licenses
> will do for this.
Delighted!
This script is free software; you can redistribute it
and/or modify it under the same terms as org-mode itself.

Regards.


___
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] question on htmlize.el source

2010-05-07 Thread Sivaram Neelakantan

The contrib directory has htmlize.el in it.  Is it the
latest,canonical one or I'd need to look somewhere else?  I'm a bit
fond of that as it enables me to share code without worrying about
fontification that I'm used to.

 sivaram
 -- 



___
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] Pretty org-entities in org-mode buffers

2010-05-07 Thread Eric Schulte
Carsten Dominik  writes:

> Dear Eric,
>
> this is fantastic.

Great, Thanks

> This is kind of like X-symbol, only that I can just write my trusted
> LaTeX macros and get all those characters.  Makes me think that I need
> to add a few more symbols that I commonly use in math expressions.
>

Yea, I have the following org-entites customization in my setup which
covers some of the symbol names I commonly expect.  It's been growing
the more I use org-entities.

--8<---cut here---start->8---
(add-to-list 'org-entities
 '("supseteq" "\\supseteq" t "⊇" "[superset of or equal to]"
   "[superset of or equal to]" "⊇"))
(add-to-list 'org-entities
 '("subseteq" "\\subseteq" t "⊆" "[subset of or equal to]"
   "[subset of or equal to]" "⊆"))
(add-to-list 'org-entities
 '("subseteq" "\\subseteq" t "⊆" "[subset of or equal to]"
   "[subset of or equal to]" "⊆"))
(add-to-list 'org-entities
 '("leq" "\\leq" t "≤" "<=" "<=" "≤"))
(add-to-list 'org-entities
 '("geq" "\\geq" t "≥" ">=" ">=" "≥"))
--8<---cut here---end--->8---

>
> I am wondering if we could be a bit more generous with the regular
> expression.  For example, I would love for $\alpha=\beta$ to show the
> symbols as well.

agreed, maybe this would be better (using [:alnum:])?  The only reason
for the restriction is to keep symbols from appearing mid way through
typing out some other symbol or word.

--8<---cut here---start->8---
(defun org-pretty-entities ()
  (font-lock-add-keywords
   nil (mapcar
(lambda (el)
  (list
   (concat "(?\\(" (regexp-quote "\\") (nth 0 el) "[^[:alnum:]]" "\\)")
   `(0 (progn (compose-region (match-beginning 1) (- (match-end 1) 1)
  ,(nth 6 el)) nil
org-entities)))
--8<---cut here---end--->8---

> 
> Also there should be a switch for turning this on and off.
>
> I would like to integrate this code into org-entities.el.
>

Those both sound great.  It would take a little bit of effort to look
into how to remove font-lock keywords.  If you have the time and
inclination please go ahead with this, otherwise I should be able to
take a shot at it myself in the next week or two -- I'm in the middle of
my final exams right now.

>
> Thanks for all your contributions, which continue to make Org-mode so
> much richer.
>

It's my Pleasure -- Eric

>
> - Carsten
>
>
> On May 5, 2010, at 6:19 PM, Eric Schulte wrote:
>
>> Hi,
>>
>> Recently I've been making use of org-entites for exporting my greek/
>> math
>> heavy class notes to HTML.  I'm really loving the results.
>>
>> This morning I've started playing around with the below function
>> `org-pretty-entities', which is adapted from Phil Hagelberg's
>> `pretty-lambdas'[1].  Calling this function in an org-mode buffer will
>> have the effect of fontifying all org-entities text strings as the
>> character which they represent, so \Delta is replaced with Δ, \lambda
>> with λ, \in with ∈, and so forth.
>>
>> I've just started playing with this, and I make no guarantees as to
>> it's
>> safety or utility, but I was very pleasantly surprised by the
>> simplicity
>> of the function, and how nice it's been to see my special characters
>> appear in org-mode buffers as I type.
>>
>> #+begin_src emacs-lisp :results silent
>>  (defun org-pretty-entities ()
>>(interactive)
>>(font-lock-add-keywords
>> nil (mapcar
>>  (lambda (el)
>>(list
>> (concat "(?\\(" (regexp-quote "\\") (nth 0 el) "[\s]" "\
>> \)")
>> `(0 (progn (compose-region (match-beginning 1) (-
>> (match-
>> end 1) 1)
>>,(nth 6 el)) nil
>>  org-entities)))
>>
>>  (org-pretty-entities)
>> #+end_src
>>
>> To try this out, just evaluate the above code block inside of an
>> org-mode buffer, then starting typing out org-entities.
>>
>> Hope others find this useful.
>>
>> Best -- Eric
>>
>> Footnotes:
>> [1]  
>> http://github.com/technomancy/emacs-starter-kit/blob/master/starter-kit-defuns.el#L135
>>
>>
>> ___
>> 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
>
> - Carsten


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

2010-05-07 Thread Thomas S. Dye


On May 6, 2010, at 8:40 PM, katepano wrote:


Hello All,
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?


Any ideas are wellcome!


Aloha katepano,

I'm not familiar with other programs you mention, so I might be  
misinterpreting your larger question.  On the narrower question about  
having a lot of files open and creating a view into the open files,  
Org-mode uses something it calls the Agenda.  The Agenda is extremely  
flexible, so you can create pretty much anything you want with it.   
I'm guessing that, with a bit of study and experimenting, the Agenda  
can approximate a tabbed notebook.


There is a good Agenda tutorial here:
http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php

HTH,
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] Re: orgcard.txt in Makefile

2010-05-07 Thread Carsten Dominik


On May 7, 2010, at 4:20 PM, Osamu OKANO wrote:


Hi!


this looks really good!  What is imperfect?

This script is linewise.
So it can't deal with a new line when an emphasis markup.

==pass==
{\tt  org-replace-disputed-keys}.
==fail==
{\tt
 org-replace-disputed-keys}.
==

Regards.


OK, I just removed the line break.  Thanks for writing the script!
Can I have it for the distribution?  In this case you need to
decide which license you want to distribute it under and mention
that in the script file.  Any of the usual OpenSource licenses
will do for this.

Greetings


- Carsten





___
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] Iterate many tables

2010-05-07 Thread Carsten Dominik

Hi,

both functions work without any problem for me, so I do not know what  
you are doing differently.  maybe you ned to describe exactly how you  
are calling the functions.


- Carsten

On May 6, 2010, at 1:34 PM, T Helms wrote:


Thanks for bringing this up, it would be a useful tool.

I get an error using the functions as well

org-recalculate-all-tables:
org-recalculate-all-tables: Wrong number of arguments: (lambda  
(function) "Apply FUNCTION to the start of all tables in the  
buffer." (save-excursion (save-restriction (widen) (goto-char (point- 
min)) (while (re-search-forward org-table-any-line-regexp nil t)  
(message "Mapping tables: %d%%" (/ (* 100.0 (point)) (buffer-size)))  
(beginning-of-line 1) (when (looking-at org-table-line-regexp) (save- 
excursion (funcall function)) (or (looking-at org-table-line-regexp)  
(forward-char 1))) (re-search-forward org-table-any-border-regexp  
nil 1 (message "Mapping tables: done")), 2


org-iterate-all-tables:
while: Wrong number of arguments: (lambda (function) "Apply FUNCTION  
to the start of all tables in the buffer." (save-excursion (save- 
restriction (widen) (goto-char (point-min)) (while (re-search- 
forward org-table-any-line-regexp nil t) (message "Mapping tables: %d 
%%" (/ (* 100.0 (point)) (buffer-size))) (beginning-of-line 1) (when  
(looking-at org-table-line-regexp) (save-excursion (funcall  
function)) (or (looking-at org-table-line-regexp) (forward-char 1)))  
(re-search-forward org-table-any-border-regexp nil 1 (message  
"Mapping tables: done")), 2



On 05/05/2010 03:37 PM, Johan Ekh wrote:




Any idea what could be wrong?



Error meassage:

org-recalculate-all-tables: Wrong number of arguments: #[(function)  
"ŠŒ~ˆebˆÄÅÆ#ƒ:



Best regards,
Johan






On Fri, Apr 30, 2010 at 5:03 PM, Carsten Dominik > wrote:


On Apr 30, 2010, at 4:07 PM, Johan Ekh wrote:

Hi all,
I have a series of tables in a single file. Each table have some  
fields that depends on fields
in the previous table. Thus, if I change something in the first  
table, I must go down manually
and recalculate (or iterate) each table. Is there a way to  
recalculate all tables in a file simultaneously?



Hi Johan,

This should work if the dependence is only backwards.

(defun org-recalculate-all-tables ()
  (interactive)
  (org-table-map-tables (lambda () (org-table-recalculate t)) t))

If you have dependencies in both directions, this might work  
(untested):


(defun org-iterate-all-tables ()
 (interactive)
 (let* ((imax 10)
(checksum (md5 (buffer-string)))
c1
(i imax))
   (catch 'exit
 (while (> i 0)
   (setq i (1- i))
   (org-table-map-tables (lambda () (org-table-recalculate t)) t)
   (if (equal checksum (setq c1 (md5 (buffer-string
   (progn
 (message "Convergence after %d iterations" (- imax i))
 (throw 'exit t))
 (setq checksum c1)))
 (error "No convergence after %d iterations" imax

If it does, this could be added to org-hacks on Worg.

HTH

- Carsten



___
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


- Carsten





___
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: orgcard.txt in Makefile

2010-05-07 Thread Osamu OKANO
Hi!

> this looks really good!  What is imperfect?
This script is linewise.
So it can't deal with a new line when an emphasis markup.

==pass==
 {\tt  org-replace-disputed-keys}.
==fail==
 {\tt
  org-replace-disputed-keys}.
==

Regards.


___
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] Persistent filters in Org mode

2010-05-07 Thread Carsten Dominik

Hi Thomas,

this sounds like a useful idea to me.
What happens if a user sets a preset filter with agenda custom command  
options?


Maybe there should be a command to set and clear this persistent filter?
Would you like to implement this in order to complete this feature?

- Carsten

On May 6, 2010, at 6:21 AM, Thomas Morgan wrote:


Hello, Org mode hackers,

This patch defines a variable `org-agenda-persistent-filters'.
When it is set, filters persist from one agenda view to the next.

I've found this convenient when using tags for contexts like @home,
@net, etc., some of which commonly remain applicable for a while.

Thanks,
Thomas

From 052ef9205845c78cb24d6fea8f89484bbe12a528 Mon Sep 17 00:00:00 2001
From: Thomas Morgan 
Date: Fri, 23 Apr 2010 11:48:03 +0200
Subject: [PATCH] New option `org-agenda-persistent-filters'.
When set, keep filters from one agenda view to the next.

---
lisp/org-agenda.el |   10 --
1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 93ef921..c8fd731 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -197,6 +197,11 @@ you can \"misuse\" it to also add other text to  
the header.  However,

  :group 'org-export-html
  :type 'string)

+(defcustom org-agenda-persistent-filters nil
+  "When set, keep filters from one agenda view to the next."
+  :group 'org-agenda
+  :type 'boolean)
+
(defgroup org-agenda-custom-commands nil
 "Options concerning agenda views in Org-mode."
 :tag "Org Agenda Custom Commands"
@@ -2713,7 +2718,8 @@ bind it in the options section.")
  (setq org-todo-keywords-for-agenda nil)
  (setq org-done-keywords-for-agenda nil)
  (setq org-drawers-for-agenda nil)
-  (setq org-agenda-filter nil)
+  (unless org-agenda-persistent-filters
+(setq org-agenda-filter nil))
  (put 'org-agenda-filter :preset-filter org-agenda-filter-preset)
  (if org-agenda-multi
  (progn
@@ -2788,7 +2794,7 @@ bind it in the options section.")
  (org-habit-insert-consistency-graphs))
  (run-hooks 'org-finalize-agenda-hook)
  (setq org-agenda-type (org-get-at-bol 'org-agenda-type))
-  (when (get 'org-agenda-filter :preset-filter)
+  (when (or org-agenda-filter (get 'org-agenda-filter :preset- 
filter))

(org-agenda-filter-apply org-agenda-filter))
  )))

--
1.6.3.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


- Carsten





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

2010-05-07 Thread Carsten Dominik


On May 7, 2010, at 10:30 AM, Michael Sperber wrote:



Carsten Dominik  writes:


any progress with integrating noutline.el into XEmacs?


Yes: I've tweaked it (and its dependents) appropriately, committed  
it to
the packages repository, and it's now in pre-release.  My intention  
was

to e-mail you as soon as there was an official release of the relevant
packages.


Excellent - so I will stop bothering you about it - just wanted to  
make sure that we are moving on this front.


Thanks *a lot*.

- Carsten



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

2010-05-07 Thread Michael Sperber

Carsten Dominik  writes:

> any progress with integrating noutline.el into XEmacs?

Yes: I've tweaked it (and its dependents) appropriately, committed it to
the packages repository, and it's now in pre-release.  My intention was
to e-mail you as soon as there was an official release of the relevant
packages.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla


___
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: Wow -- adding images to an org file

2010-05-07 Thread Dan Davison
Carsten Dominik  writes:

> On May 7, 2010, at 4:16 AM, Chris Thompson wrote:
>
>> Nathan Neff  gmail.com> writes:
>>
>>>
>>> I just saw Andreas's screenshot here:
>>>
>>> http://orgmode.org/worg/org-screenshots.php
>>>
>>> If you zoom in to his screenshot,
>>> http://orgmode.org/img/screenshots/org_andreas.jpg
>>>
>>> You can see how he adds images to his org files.
>>> All that I had to do was put this into my emacs init file:
>>>
>>> (defun org-dblock-write:image (params)
>>>  (let ((file (plist-get params :file)))
>>> (clear-image-cache file)
>>> (insert-image (create-image file) )))
>>>
>>> Then, put this in an org-file:
>>>
>>> #+BEGIN: image :file "~/Documents/personal/foo.png"
>>> #+END
>>>
>>> And run C-c C-c (or is it C-c C-x C-u)?
>>>
>>> Anyway, Cool stuff!
>>>
>>> --Nate
>>>
>>
>>
>> Another way to have images in org-mode documents is to use the
>> "iimage"
>> minor mode, which handles  inline images:
>> http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html
>>
>> For additional documentation:
>> http://orgmode.org/worg/org-configs/org-config-examples.php#sec-2_2
>
> At that place, I find this code:
> (add-to-list 'iimage-mode-image-regex-alist (cons (concat
> "\\[\\[file:\
> \(~?" iimage-mode-image-filename-regex "\\)\\]") 1))
>  (defun org-toggle-iimage-in-org () "display images in your org file"
> (interactive) (if (face-underline-p 'org-link) (set-face- 
> underline-p 'org-link nil) (set-face-underline-p 'org-link t))
> (iimage-
> mode))
> I guess I could actually add the above code to org.el, so that the
> only thing to do for a user would be to turn on iimage-mode.
> What is the purpose of toggling the underline property of the link face?

It puts a horizontal line through the middle of the displayed image
(haven't checked if that's fixed in latest emacs).

Dan


>
> - Carsten
>
>
>
> ___
> 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: Wow -- adding images to an org file

2010-05-07 Thread Carsten Dominik


On May 7, 2010, at 4:16 AM, Chris Thompson wrote:


Nathan Neff  gmail.com> writes:



I just saw Andreas's screenshot here:

http://orgmode.org/worg/org-screenshots.php

If you zoom in to his screenshot,
http://orgmode.org/img/screenshots/org_andreas.jpg

You can see how he adds images to his org files.
All that I had to do was put this into my emacs init file:

(defun org-dblock-write:image (params)
 (let ((file (plist-get params :file)))
(clear-image-cache file)
(insert-image (create-image file) )))

Then, put this in an org-file:

#+BEGIN: image :file "~/Documents/personal/foo.png"
#+END

And run C-c C-c (or is it C-c C-x C-u)?

Anyway, Cool stuff!

--Nate




Another way to have images in org-mode documents is to use the  
"iimage"

minor mode, which handles  inline images:
http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html

For additional documentation:
http://orgmode.org/worg/org-configs/org-config-examples.php#sec-2_2


At that place, I find this code:
(add-to-list 'iimage-mode-image-regex-alist (cons (concat "\\[\\[file:\ 
\(~?" iimage-mode-image-filename-regex "\\)\\]") 1))
 (defun org-toggle-iimage-in-org () "display images in your org  
file" (interactive) (if (face-underline-p 'org-link) (set-face- 
underline-p 'org-link nil) (set-face-underline-p 'org-link t)) (iimage- 
mode))
I guess I could actually add the above code to org.el, so that the  
only thing to do for a user would be to turn on iimage-mode.

What is the purpose of toggling the underline property of the link face?

- Carsten



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

2010-05-07 Thread Carsten Dominik

Hi Matt,

I agree and have applied your patch, thanks.

- Carsten

On May 6, 2010, at 5:05 PM, Matt Lundin wrote:


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-/"

The problem: When the region is active, M-S-/ (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


- Carsten





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

2010-05-07 Thread katepano

Hello All,
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?


Any ideas are wellcome!


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

2010-05-07 Thread Carsten Dominik

Hi Michael,

any progress with integrating noutline.el into XEmacs?

Thanks

- Carsten

On Apr 19, 2010, at 1:00 PM, Michael Sperber wrote:



Carsten Dominik  writes:


The compromise for me would be this:

- You fix the things above.
- I leave the rest of the necessary compatibility code in
- I program any new features with whatever is available
 in Emacs 22/23 and rely on you to make it XEmacs compatible.


That would be wonderful.  I'll see that the issues are addressed:

1. posix character classes in regular expressions, thinks like  
[:alpha:]

  These are nice because they work well with arbitrary languages.
  Does XEmacs suppor these now?


No, but I'll see to it that they are.


2. The overlay API - I think XEmacs actually has a compatibility lib
  for these, is that correct?


Correct.

  One of the things you could do it to figure out if I can also  
switch

  to the API calls overlays-in and overlays-at in that library.


You should, anyway: I'll take care of any problems.  I take it  
something

about these didn't work for you in the past: If that is so, a sentence
or two on what those problems were would be much appreciated.


3. outline.el.  Last time  looked, XEmacs still had the horrible old
  outline.el which is pretty much impossible to program.
  I do have a port, xemacs/noutline.el in the Org distribution - if  
you
  could get that into XEmacs, that would get rid of a major  
annoyance,

  including complicated installation instructions.


I'm working on this right now - should be no big problem.  A few minor
incompatibilities with our current outline.el need to be addressed,  
but

I'm working on them.


4. Can you make XEmacs understand mouse-3 instead of button3 ?  Or
  maybe it does understand these by now?


No; I'll try to get this in.

Won't all happen overnight, but I'm getting to work on it.  I very  
much

appreciate your willingness to help!

--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla


- Carsten





___
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: Adaptive filling incompatible with xemacs [6.35i]

2010-05-07 Thread Carsten Dominik

Hi Hendrik,

this has already been fixed in the git repository, but not yet made
it into a release.

Note that the XEmacs support in Org-mode is being reduced now, and  
that you will need to switch to the develloper version of XEmacs if  
you want to use future versions of Org-mode.  6.35 is compatible with  
the current version of XEmacs - save for tis bug with the local- 
variable-p function.  I will soon release the last version that will  
still support XEmacs 21.4.


- Carsten

On May 5, 2010, at 3:57 PM, Hendrik Radke wrote:


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.


The newest version of org-mode does not work together with my
XEmacs21.
Loading with M-x org-mode produces the error message "wrong number of
arguments: local-variable-p, 1".
I located & "fixed" the problem in org.el, here's the output of diff:
$ diff org-6.35i/lisp/org.el org-mode/org.el
17681c17681
<   (unless (local-variable-p 'adaptive-fill-regexp)
---

 (unless (local-variable-p 'adaptive-fill-regexp nil)

Honestly, I don't really understand what adaptive-filling really does,
so my patch may not have the inteded result of the code. However, it
makes my beloved org-mode work again.
Regards, Hendrik Radke


Emacs  : XEmacs 21.4 (patch 22) "Instant Classic" [Lucid]
(i486-linux-gnu, Mule) of Sun Apr  4 2010 on murphy
Package: Org-mode version 6.35i


___
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


- Carsten





___
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