Re: [Orgmode] Re: How to write special LaTeX symbols

2011-01-17 Thread Eric S Fraga
Chris Gray  writes:

> Xin Shi wrote:
>
>> Hello all,
>
>> Thanks for your response!
>
>> I can go with the UTF-8 method. The only problem for me now is I don't know
>> how to input the ö from Emacs.
>
>> I've tried the C-x 8 RET, but don't know the name or hex. Any
>> suggestions?
>
> The key combinations are pretty intuitive once you learn a few.  For
> example, ö is C-x 8 " o, and é is C-x 8 ' e.

Another approach is to change the input method to tex (C-u C-\ tex RET)
which then allows you to type in utf characters using tex (or latex?)
escape sequences.  This is quite useful, especially if you are writing
latex documents in any case so are up to speed with latex command...

So, to type in ö, you would type '\ " o' (without the single quotes) and
you would get what you want.  You also get TAB completion in this mode
so that typing in '\ " TAB' would show you all the valid characters that
can be defined by starting with \".

Further, you can use describe-input-method to see information about what
the input method provides and, in the case of tex, you get all the
relevant character sequences that the mode understands.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.201.g82108.dirty)

___
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] Painless integration of source blocks with language

2011-01-17 Thread Sébastien Vauban
Hi Eric,

"Eric Schulte" wrote:
> I've just pushed up a new header argument combination ":comments noweb"
> which will wrap all embedded noweb sections in link comments, as
> demonstrated in the following example.  Hopefully this should be
> sufficient for a complete mapping from a pure code file back to the
> original org-mode file.

If I understand correctly, this is some sort of enhancement to the ":comments
yes" option.

If yes, is there a reason to have both values, with subtle differences?
Shouldn't we port the behavior of ":comments noweb" to the ":comments yes"
value?

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] [RFC] Give org-format-agenda-item a real format

2011-01-17 Thread Julien Danjou
On Thu, Jan 13 2011, Eric S Fraga wrote:

> this sounds very appealing!  I (personally) would like to have the time
> at the far left of the screen and this would allow for that while still
> allowing me to include all the information I want.  I'll try it out soon
> and will give you feedback but probably not before next week due to
> current commitments...

Thanks Eric. I really need testing and review to push this forward.

-- 
Julien Danjou
❱ http://julien.danjou.info


pgp0EBnUYekKt.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] Encrypting org-mode files

2011-01-17 Thread Julien Danjou
On Mon, Jan 17 2011, Marcelo de Moraes Serpa wrote:

> What is the de-facto way to encrypt using org? I now I can use GnuPG,
> but I'd prefer something that integrates better and auto-decrypts when
> the agenda is triggered.

Take a look at `org-crypt' package.

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpWD7BYIz7Et.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] pcomplete bug in 7.4

2011-01-17 Thread Carsten Dominik


On Jan 16, 2011, at 11:00 AM, David Maus wrote:


At Mon, 03 Jan 2011 23:30:49 +0100,
kelaouchi wrote:

Completing todo keywords using M-TAB always works for "TODO"
and "WAITING" on 7.4 (except it doesn't add any space after keyword).

Completing other todo keywords (as "SOMEDAY", "CANCELLED", ...) only
works the first time i run M-TAB.


I can confirm this problem with

Org-mode version 7.4 (release_7.4.199.g8be1)

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
of 2010-12-11 on raven, modified by Debian

emacs -Q, just load Org mode and this file:

#+begin_src org
 ,#+TODO: TODO SOMEDAY | DONE
#+end_src

I noticed that SOMEDAY gets completed if the keyword is defined before
TODO, e.g.:

#+TODO: SOMEDAY TODO | DONE

Seems to work.



Kalaouchi, thanks for the report.  David, thanks for the additional  
info.

Should be fixed now.

- 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] [babel] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Sébastien Vauban
Hi,

I tried to work on a CSV2Ledger, accepting the particular (European) CSV
format of my bank:

* Data

#+results: excel-from-bank
#+begin_example
Numéro du compte :;979-9500975-24;Compte Maxi
Date valeur;Référence de l'opération;Description;Montant de 
l'opération;Devise;Date d'opération;Compte de contrepartie;Nom de la 
contrepartie :;Communication 1 :;Communication 2 :
04-06-2009;A9F04NT01WK300TG;Virem. 
internet;420,00;EUR;04-06-2009;799-5900947-23;PAYEE ONE; ; 
24-02-2009;A9B24NT012K4018Z;Virem. 
internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening; 
18-05-2008;A8E19NT000S604QI;Virem. 
internet;-1.000,00;EUR;19-05-2008;799-8068445-18;PAYEE TWO; ; 
#+end_example

* "Europeanize" the CSV file

Here, we have to make several manipulations on the input file, such as:
- remove dots from amounts
- replace commas from amounts by dots
- replace semi-commas by commas
- etc.

My goal is to make that as a suite of bash commands (=echo | cmd 1 | cmd 2=),
tangled in a script file.

However, I can't do any work on the input file, the very basic echo command
already giving an error:

#+begin_src sh :var data=excel-from-bank :results output
echo "$data"
#+end_src

#+results:
Code block produced no output.

#+begin_src stderr
sh: line 3: unexpected EOF while looking for matching `''
sh: line 10: syntax error: unexpected end of file
#+end_src

In this sample, this is due to the apostrophe in the header line ("Montant de
l'opération").

Any idea on how to:
- circumvent such problem?
- or, eventually, do this better?

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Bernt Hansen
Bernt Hansen  writes:

> Carsten Dominik  writes:
>
>> On Jan 14, 2011, at 5:03 PM, Bernt Hansen wrote:
>>
>>> Carsten Dominik  writes:
>>>
 On Dec 22, 2010, at 1:29 PM, Bernt Hansen wrote:

> Noorul Islam K M  writes:
>
>> Bernt Hansen  writes:
>>
>>> Hi,
>>>
>>> If you are viewing the agenda with a time span of a week (or
>>> anything
>>> larger than a day) and then use 'j' to jump to a new date the span
>>> changes back to day.
>>>
>>


 Has this been fixed?  Because I cannot reproduce this issue.

 - Carsten
>>>
>>> Hi Carsten,
>>>
>>> No this hasn't been fixed but it is related to some configuration I
>>> have.  When I run with a minimal emacs I cannot reproduce it but
>>> when I
>>> run with my regular setup I can.  I'll try to narrow down the cause of
>>> this issue over the weekend.
>>
>> Please do.  Thanks
>>
>> - Carsten

So I thought I would try to 'fix' this the easy way by removing my
customization for org-agenda-ndays but that makes it worse.  After
removing the customization and restarting emacs the '.' key in the
agenda goes to Saturday (today is Monday).  I have my week starting on
Saturday for the agenda display - when viewing a single day it jumps to
the first day of the week instead of today.

I've reinstated my org-agenda-ndays variable setting as shown in the
minimal emacs setup that follows.

Regards,
Bernt


>
> Hi Carsten,
>
> I think I found it.
>
> ,[ ~/bin/minimal-emacs
> | #!/bin/sh
> | TESTEL=
> | TESTFILE=/tmp/test.el
> | if test -e $TESTFILE
> | then
> |   TESTEL="-l /tmp/test.el"
> | fi
> | emacs -q -l ~/minimal.emacs $TESTEL 
> `
>
> ,[ ~/minimal.emacs ]
> | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
> | (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . 
> org-mode))
> | (require 'org-install)
> | 
> | (global-set-key "\C-cl" 'org-store-link)
> | (global-set-key "\C-ca" 'org-agenda)
> | (global-set-key "\C-cb" 'org-iswitchb)
> `
>
> ,[ /tmp/test.el ]
> | (setq org-agenda-ndays 1)
> `
>
> $ ~/bin/minimal-emacs
>
> | Keys | Description |
> |--+-|
> | C-c a a  | Start agenda (shows today only) |
> | w| Show agenda for the week|
> | j 12 RET | Jump to the 12th of the month   |
>
> And we're back to a day view again.  Setting 'org-agenda-ndays' to 1
> seems to be the cause of this issue.
>
> Regards,
> Bernt
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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


[Orgmode] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Carsten Dominik

Hi Julien,

have you been following this thread?  I think this has to do with your  
rewrite of the dagenda span stuff.  Maybe you can find out better and  
faster that I why this goes wrong?  Please read the entire thread.


- Carsten

On Jan 17, 2011, at 3:27 PM, Bernt Hansen wrote:


Bernt Hansen  writes:


Carsten Dominik  writes:


On Jan 14, 2011, at 5:03 PM, Bernt Hansen wrote:


Carsten Dominik  writes:


On Dec 22, 2010, at 1:29 PM, Bernt Hansen wrote:


Noorul Islam K M  writes:


Bernt Hansen  writes:


Hi,

If you are viewing the agenda with a time span of a week (or
anything
larger than a day) and then use 'j' to jump to a new date the  
span

changes back to day.






Has this been fixed?  Because I cannot reproduce this issue.

- Carsten


Hi Carsten,

No this hasn't been fixed but it is related to some configuration I
have.  When I run with a minimal emacs I cannot reproduce it but
when I
run with my regular setup I can.  I'll try to narrow down the  
cause of

this issue over the weekend.


Please do.  Thanks

- Carsten


So I thought I would try to 'fix' this the easy way by removing my
customization for org-agenda-ndays but that makes it worse.  After
removing the customization and restarting emacs the '.' key in the
agenda goes to Saturday (today is Monday).  I have my week starting on
Saturday for the agenda display - when viewing a single day it jumps  
to

the first day of the week instead of today.

I've reinstated my org-agenda-ndays variable setting as shown in the
minimal emacs setup that follows.

Regards,
Bernt




Hi Carsten,

I think I found it.

,[ ~/bin/minimal-emacs
| #!/bin/sh
| TESTEL=
| TESTFILE=/tmp/test.el
| if test -e $TESTFILE
| then
|   TESTEL="-l /tmp/test.el"
| fi
| emacs -q -l ~/minimal.emacs $TESTEL
`

,[ ~/minimal.emacs ]
| (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
| (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\) 
$" . org-mode))

| (require 'org-install)
|
| (global-set-key "\C-cl" 'org-store-link)
| (global-set-key "\C-ca" 'org-agenda)
| (global-set-key "\C-cb" 'org-iswitchb)
`

,[ /tmp/test.el ]
| (setq org-agenda-ndays 1)
`

$ ~/bin/minimal-emacs

| Keys | Description |
|--+-|
| C-c a a  | Start agenda (shows today only) |
| w| Show agenda for the week|
| j 12 RET | Jump to the 12th of the month   |

And we're back to a day view again.  Setting 'org-agenda-ndays' to 1
seems to be the cause of this issue.

Regards,
Bernt

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


- 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: Worg needs some reorganizing

2011-01-17 Thread Jason Dunsmore
I updated your first one and added your second one.  I also updated mine
to use your idea for the Org mascot.

So we have three options:

Option 1: http://orgmode.org/tmp/worg-jason/
Option 2: http://orgmode.org/tmp/worg-eric/
Option 3: http://orgmode.org/tmp/worg-eric2/

I think they're all a major improvement to Worg.  How should we move
forward with this?  Take a vote?

Regards,
Jason

___
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: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Julien Danjou
On Mon, Jan 17 2011, Carsten Dominik wrote:

> have you been following this thread?  I think this has to do with your
> rewrite of the dagenda span stuff.  Maybe you can find out better and
> faster that I why this goes wrong?  Please read the entire thread.

I've followed but not sure I understood what the bug is. But from my
various tries, I found a bug: when pressing 'j', the current span is
discarded.

Attached is a patch that should fix that, even for future use of
`org-agenda-list' with the span unspecified. :)

From 9dd2fe6650b858a4083ebc083bb8d10a0d6ac7f2 Mon Sep 17 00:00:00 2001
From: Julien Danjou 
Date: Mon, 17 Jan 2011 16:05:28 +0100
Subject: [PATCH] Fix agenda span on date jump

* org-agenda.el (org-agenda-list): Use org-agenda-current-span as a
possible default span if it is set.

Signed-off-by: Julien Danjou 
---
 lisp/org-agenda.el |5 -
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 0cd620c..0d695b5 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -3450,7 +3450,10 @@ given in `org-agenda-start-on-weekday'."
   (setq org-agenda-last-arguments (list include-all start-day span))
   (org-compile-prefix-format 'agenda)
   (org-set-sorting-strategy 'agenda)
-  (let* ((span (org-agenda-ndays-to-span (or span org-agenda-ndays org-agenda-span)))
+  (let* ((span (org-agenda-ndays-to-span (or span
+	 org-agenda-current-span
+	 org-agenda-ndays
+	 org-agenda-span)))
 	 (today (org-today))
 	 (sd (or start-day today))
 	 (ndays (org-agenda-span-to-ndays span sd))
-- 
1.7.2.3


-- 
Julien Danjou
❱ http://julien.danjou.info


pgpzMOJh3HmBL.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] Custom variables in text

2011-01-17 Thread Gustav Wikström
Hello!

Is there a easy way to make use of personal variables inside a text?

Lets say that I want to use a number in my text and know that it will change
in the future. Instead of going through the whole document I just put a
variable in the beginning of the document and use the variable name, which
is transformed to the right number when the document is exported.

I know about the #+LINK in-buffer setting. But I'm looking for a simple
variable without making it a link. Is this possible?

Best regards
Gustav Wikström
___
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] Custom variables in text

2011-01-17 Thread Giovanni Ridolfi
Gustav Wikström  writes:

 Hi Gustav,
>
> Is there a easy way to make use of personal variables inside a text?

please, have a look at the section "Macro replacement"
in the manual.

cheers,
Giovanni

___
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: Enhancing the Org/Gnus experience

2011-01-17 Thread Julien Danjou
On Mon, Nov 29 2010, Sébastien Vauban wrote:

> I've signed (like 2 weeks ago) the FSF papers, and am still waiting for the
> PDF file that proves it. As soon as I get them, I send a proper patch to Larsi
> for integration into Gnus. Eventually, I'd even like to add some other stuff
> (inlined code with = markers, etc.)...

Any news on this?

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpuVIh6l576r.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] [babel] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Eric Schulte
Hi Seb,

I can't reproduce this problem, on my system, I get the following
correct behavior

#+results: excel-from-bank
#+begin_example
Num.ro du compte :;979-9500975-24;Compte Maxi
Date valeur;R.f.rence de l'op.ration;Description;Montant de 
l'op.ration;Devise;Date d'op.ration;Compte de contrepartie;Nom de la 
contrepartie :;Communication 1 :;Communication 2 :
04-06-2009;A9F04NT01WK300TG;Virem. 
internet;420,00;EUR;04-06-2009;799-5900947-23;PAYEE ONE; ; 
24-02-2009;A9B24NT012K4018Z;Virem. 
internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening; 
18-05-2008;A8E19NT000S604QI;Virem. 
internet;-1.000,00;EUR;19-05-2008;799-8068445-18;PAYEE TWO; ; 
#+end_example

#+begin_src sh :var data=excel-from-bank :results output
echo "$data"
#+end_src

#+results:
: Num.ro du compte :;979-9500975-24;Compte Maxi
: Date valeur;R.f.rence de l'op.ration;Description;Montant de 
l'op.ration;Devise;Date d'op.ration;Compte de contrepartie;Nom de la 
contrepartie :;Communication 1 :;Communication 2 :
: 04-06-2009;A9F04NT01WK300TG;Virem. 
internet;420,00;EUR;04-06-2009;799-5900947-23;PAYEE ONE; ; 
: 24-02-2009;A9B24NT012K4018Z;Virem. 
internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening; 
: 18-05-2008;A8E19NT000S604QI;Virem. 
internet;-1.000,00;EUR;19-05-2008;799-8068445-18;PAYEE TWO; ;

and the sh code block expands to the following (with C-c C-v v) which is
not affected by commas...

#+begin_src sh
  data=$(cat < writes:

> Hi,
>
> I tried to work on a CSV2Ledger, accepting the particular (European) CSV
> format of my bank:
>
> * Data
>
> #+results: excel-from-bank
> #+begin_example
> Num.ro du compte :;979-9500975-24;Compte Maxi
> Date valeur;R.f.rence de l'op.ration;Description;Montant de 
> l'op.ration;Devise;Date d'op.ration;Compte de contrepartie;Nom de la 
> contrepartie :;Communication 1 :;Communication 2 :
> 04-06-2009;A9F04NT01WK300TG;Virem. 
> internet;420,00;EUR;04-06-2009;799-5900947-23;PAYEE ONE; ; 
> 24-02-2009;A9B24NT012K4018Z;Virem. 
> internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening; 
> 18-05-2008;A8E19NT000S604QI;Virem. 
> internet;-1.000,00;EUR;19-05-2008;799-8068445-18;PAYEE TWO; ; 
> #+end_example
>
> * "Europeanize" the CSV file
>
> Here, we have to make several manipulations on the input file, such as:
> - remove dots from amounts
> - replace commas from amounts by dots
> - replace semi-commas by commas
> - etc.
>
> My goal is to make that as a suite of bash commands (=echo | cmd 1 | cmd 2=),
> tangled in a script file.
>
> However, I can't do any work on the input file, the very basic echo command
> already giving an error:
>
> #+begin_src sh :var data=excel-from-bank :results output
> echo "$data"
> #+end_src
>
> #+results:
> Code block produced no output.
>
> #+begin_src stderr
> sh: line 3: unexpected EOF while looking for matching `''
> sh: line 10: syntax error: unexpected end of file
> #+end_src
>
> In this sample, this is due to the apostrophe in the header line ("Montant de
> l'opération").
>
> Any idea on how to:
> - circumvent such problem?
> - or, eventually, do this better?
>
> Best regards,
>   Seb

___
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: [babel] Painless integration of source blocks with language

2011-01-17 Thread Eric Schulte
Sébastien Vauban  writes:

> Hi Eric,
>
> "Eric Schulte" wrote:
>> I've just pushed up a new header argument combination ":comments noweb"
>> which will wrap all embedded noweb sections in link comments, as
>> demonstrated in the following example.  Hopefully this should be
>> sufficient for a complete mapping from a pure code file back to the
>> original org-mode file.
>
> If I understand correctly, this is some sort of enhancement to the ":comments
> yes" option.
>
> If yes, is there a reason to have both values, with subtle differences?
> Shouldn't we port the behavior of ":comments noweb" to the ":comments yes"
> value?
>

Yes, the reason to retain both variants is that in the case of short
noweb references embedded in a single line, e.g.

#+source: first
#+begin_src ruby
  5
#+end_src

#+begin_src ruby :noweb yes
  <> + 6
#+end_src

the yes option would be preferable, as the insertion of comments around
the noweb reference would result in adding line breaks around the
reference and possibly breaking new-line sensitive code.

Cheers -- Eric

>
> Best regards,
>   Seb

___
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: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Julien Danjou
On Mon, Jan 17 2011, Julien Danjou wrote:

> Attached is a patch that should fix that, even for future use of
> `org-agenda-list' with the span unspecified. :)

This patch has a side effect for me: my org-agenda-span is set to 14,
and I've no way to reset it without quitting the agenda and requesting
it again.

I think we miss a keybinding to reset org-agenda-current-span to nil so
org-agenda-span get used again.

What do you think? Which key would be fine to reset the span?

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpMeDCrNXroG.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: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Carsten Dominik


On Jan 17, 2011, at 5:34 PM, Julien Danjou wrote:


On Mon, Jan 17 2011, Julien Danjou wrote:


Attached is a patch that should fix that, even for future use of
`org-agenda-list' with the span unspecified. :)


This patch has a side effect for me: my org-agenda-span is set to 14,
and I've no way to reset it without quitting the agenda and requesting
it again.

I think we miss a keybinding to reset org-agenda-current-span to nil  
so

org-agenda-span get used again.

What do you think? Which key would be fine to reset the span?


This should not be done with a key, but automatically in a clever  
way.  It used to work.


- 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: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Julien Danjou
On Mon, Jan 17 2011, Carsten Dominik wrote:

> This should not be done with a key, but automatically in a clever way.  It
> used to work.

Well, it used to work very bad, that's why I rewrote that thing
initially. It was resetting too often to the default without any reason.

So could you define the "clever way" to me? :-)

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpBMX1NWeXKX.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: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Bernt Hansen
Julien Danjou  writes:

> On Mon, Jan 17 2011, Carsten Dominik wrote:
>
>> have you been following this thread?  I think this has to do with your
>> rewrite of the dagenda span stuff.  Maybe you can find out better and
>> faster that I why this goes wrong?  Please read the entire thread.
>
> I've followed but not sure I understood what the bug is. But from my
> various tries, I found a bug: when pressing 'j', the current span is
> discarded.
>
> Attached is a patch that should fix that, even for future use of
> `org-agenda-list' with the span unspecified. :)

Hi Julien,

Thanks for this patch.  I think this fixes the issue I was having with
'j' in the agenda switching from week-view back to single-day view when
org-agenda-ndays is set to 1.

There is still a (new?) problem with jumping to today.

Set the following variable

(setq org-agenda-start-on-weekday 6)

| Key Sequence | Notes  |
|--+|
| C-c a a  | Display weekly agenda  |
| f| Go forward a week  |
| d| Display day agenda |
| .| Go to to day - but it goes to Saturday instead |

This should go to today and not the first day of the week.

Regards,
Bernt


>
>
> From 9dd2fe6650b858a4083ebc083bb8d10a0d6ac7f2 Mon Sep 17 00:00:00 2001
> From: Julien Danjou 
> Date: Mon, 17 Jan 2011 16:05:28 +0100
> Subject: [PATCH] Fix agenda span on date jump
>
> * org-agenda.el (org-agenda-list): Use org-agenda-current-span as a
> possible default span if it is set.
>
> Signed-off-by: Julien Danjou 
> ---
>  lisp/org-agenda.el |5 -
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index 0cd620c..0d695b5 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -3450,7 +3450,10 @@ given in `org-agenda-start-on-weekday'."
>(setq org-agenda-last-arguments (list include-all start-day span))
>(org-compile-prefix-format 'agenda)
>(org-set-sorting-strategy 'agenda)
> -  (let* ((span (org-agenda-ndays-to-span (or span org-agenda-ndays 
> org-agenda-span)))
> +  (let* ((span (org-agenda-ndays-to-span (or span
> +  org-agenda-current-span
> +  org-agenda-ndays
> +  org-agenda-span)))
>(today (org-today))
>(sd (or start-day today))
>(ndays (org-agenda-span-to-ndays span sd))
> -- 
> 1.7.2.3

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


Re: [Orgmode] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Julien Danjou
On Mon, Jan 17 2011, Bernt Hansen wrote:

> This should go to today and not the first day of the week.

It does go on today. I cannot reproduce this problem (git version).

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpc5IrwFnPpi.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: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Bernt Hansen
Julien Danjou  writes:

> On Mon, Jan 17 2011, Bernt Hansen wrote:
>
>> This should go to today and not the first day of the week.
>
> It does go on today. I cannot reproduce this problem (git version).

This consistently does not work for me with the following setup:

~/bin/minimal.emacs
--8<---cut here---start->8---
#!/bin/sh
TESTEL=
TESTFILE=/tmp/test.el
if test -e $TESTFILE
then
  TESTEL="-l /tmp/test.el"
fi
emacs -q -l ~/minimal.emacs $TESTEL 
--8<---cut here---end--->8---

/tmp/test.el
--8<---cut here---start->8---
(setq org-agenda-start-on-weekday 6)
--8<---cut here---end--->8---

~/minimal.emacs
--8<---cut here---start->8---
(add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
(require 'org-install)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
--8<---cut here---end--->8---

Key sequence

$ minimal-emacs
| Key |
|-|
| C-c a a |
| f   |
| d   |
| .   |

Gives me

,
| Day-agenda (W02):
| Saturday   15 January 2011
`

Org-mode version 7.4 (release_7.4.203.g970db)
GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11
on raven, modified by Debian

Regards,
Bernt

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


Re: [Orgmode] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Carsten Dominik


On Jan 17, 2011, at 5:54 PM, Julien Danjou wrote:


On Mon, Jan 17 2011, Bernt Hansen wrote:


This should go to today and not the first day of the week.


It does go on today. I cannot reproduce this problem (git version).


Bent has set org-agenda-start-on-weekday to 6

- 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: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Julien Danjou
On Mon, Jan 17 2011, Bernt Hansen wrote:

> This consistently does not work for me with the following setup:

Ok, with org-agenda-span set to 'week, I've a strange behavior too.
I'll try to debug.

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpKE7cqjTgAS.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: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Julien Danjou
On Mon, Jan 17 2011, Bernt Hansen wrote:
>
> Thanks for this patch.  I think this fixes the issue I was having with
> 'j' in the agenda switching from week-view back to single-day view when
> org-agenda-ndays is set to 1.
>
> There is still a (new?) problem with jumping to today.
>
> Set the following variable
>
> (setq org-agenda-start-on-weekday 6)
>
> | Key Sequence | Notes  |
> |--+|
> | C-c a a  | Display weekly agenda  |
> | f| Go forward a week  |
> | d| Display day agenda |
> | .| Go to to day - but it goes to Saturday instead |
>
> This should go to today and not the first day of the week.

Attached is a fix for that.

From f566a5612560f997f4760144ca850dda5c06bc5e Mon Sep 17 00:00:00 2001
From: Julien Danjou 
Date: Mon, 17 Jan 2011 18:09:30 +0100
Subject: [PATCH] Fix org-agenda-goto-today not respecting the current span.

* org-agenda.el (org-agenda-goto-today): Respect current span.

Signed-off-by: Julien Danjou 
---
 lisp/org-agenda.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 0d695b5..241ed30 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6104,7 +6104,7 @@ Negative selection means regexp must not match for selection of an entry."
  (tdpos (goto-char tdpos))
  ((eq org-agenda-type 'agenda)
   (let* ((sd (org-agenda-compute-starting-span
-		  (org-today) (or org-agenda-ndays org-agenda-span)))
+		  (org-today) (or org-agenda-current-span org-agenda-ndays org-agenda-span)))
 	 (org-agenda-overriding-arguments org-agenda-last-arguments))
 	(setf (nth 1 org-agenda-overriding-arguments) sd)
 	(org-agenda-redo)
-- 
1.7.2.3


-- 
Julien Danjou
❱ http://julien.danjou.info


pgpHux5o3eAgP.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: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Bernt Hansen
Julien Danjou  writes:

> On Mon, Jan 17 2011, Bernt Hansen wrote:
>>
>> Thanks for this patch.  I think this fixes the issue I was having with
>> 'j' in the agenda switching from week-view back to single-day view when
>> org-agenda-ndays is set to 1.
>>
>> There is still a (new?) problem with jumping to today.
>>
>> Set the following variable
>>
>> (setq org-agenda-start-on-weekday 6)
>>
>> | Key Sequence | Notes  |
>> |--+|
>> | C-c a a  | Display weekly agenda  |
>> | f| Go forward a week  |
>> | d| Display day agenda |
>> | .| Go to to day - but it goes to Saturday instead |
>>
>> This should go to today and not the first day of the week.
>
> Attached is a fix for that.

Thanks Julien,

I think that fixes this issue for me.

Regards,
Bernt

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


Re: [Orgmode] Re: Wiki-like creating links on the fly for org

2011-01-17 Thread Bastien
Hi Isaac,

Isaac  writes:

> I encounter the same issue as a wikidpad user migrated to emacs
> It would be fantastic, if emacs org can have a visual tree display of its 
> headings in a sperate window, something like the speedbar?

Maybe have a look at org-toc.el in contrib/.  

M-x org-toc-show (and `?' for a quick help).

I must say it's pretty buggy, though.

Also, `C-x 4 c' might be helpful to create an indirect buffer: then you
can edit in the original buffer and use the indirect one to navigate.

> file linking can be fairly easily done in org, However, wikidpad is more of a 
> database approach (possible to use sqlite as backend), whereas emacs org is a 
> single file based mode: my guess is that implementing wikidpad feature in 
> emacs 
> would would end as a different application, other than what emacs is intended 
> - 
> a mighty text editor

Org can handle several files and helps you create links between all of
them.  What is the precise feature you're missing here?  

Best,

-- 
 Bastien

___
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: Worg needs some reorganizing

2011-01-17 Thread Bastien
Jason Dunsmore  writes:

> I updated your first one and added your second one.  I also updated mine
> to use your idea for the Org mascot.
>
> So we have three options:
>
> Option 1: http://orgmode.org/tmp/worg-jason/
> Option 2: http://orgmode.org/tmp/worg-eric/
> Option 3: http://orgmode.org/tmp/worg-eric2/

Wow!  I love this.  My preference goes to Jason's version: both plain
simple and colorful.  I also love Eric's expandable table of contents:
the one we have for now often clutters the page too much...

> I think they're all a major improvement to Worg.  

So do I -- thanks for this!

> How should we move forward with this?  Take a vote?

Matt's call :)

My suggestion would be to go with Jason's css (combined with Eric's
expandable table of contents) then have Eric's css and the old-worg 
css available as alternative css.

Thanks for this!

-- 
 Bastien

___
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] [Worg] some issues

2011-01-17 Thread Bastien
Hi Achim,

Achim Gratz  writes:

> 2. The "sources" directory seems to exist, albeit apparently it is
> empty.  All links into it that I've tried are dead.

Looks like it's not empty: 
 
  http://orgmode.org/worg/sources/

> 5.Several unencoded "&" in URL.

Can you provide links/patches for this?  (Or maybe even ask Matt for a
push access to Worg.  Those problems are easy to fix when spotted but
they are not easy to find when mentioned...)

> 6. Some CSS errors ("grey" instead of "gray" as color name, some CSS
> elements that don't exist in the specified version 2.1).

I fixed the s/grey/gray problem, thanks!

-- 
 Bastien

___
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] Export issue of URL when the text begins with a date‏

2011-01-17 Thread Bastien
David Maus  writes:

>> It seems that such a non-regression test base and script do not
>> exist. However that would be good to have in order to check that any
>> correction does not break anything. 
>
> That's exactly what the testing framework[1] could and should do.
> I've just not figured out how to best write tests for entire export
> operations.  Thinking of it: We could create an input file dedicated
> to test link exporting, put in different kinds of links, export and
> then use regexps to check if the links have been exported fine.

I've just added testing/links.org to the testing framework.

Vincent, feel free to suggest any addition to testing/ so that we can
enrich our test-base with various examples!  Being able to reproduce
errors on those files will help people feel confident the error does 
not come from their configuration.

Best,

-- 
 Bastien

___
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: Worg needs some reorganizing

2011-01-17 Thread Jason Dunsmore
Bastien  writes:

> Jason Dunsmore  writes:
>
>> I updated your first one and added your second one.  I also updated mine
>> to use your idea for the Org mascot.
>>
>> So we have three options:
>>
>> Option 1: http://orgmode.org/tmp/worg-jason/
>> Option 2: http://orgmode.org/tmp/worg-eric/
>> Option 3: http://orgmode.org/tmp/worg-eric2/
>
> Wow!  I love this.  My preference goes to Jason's version: both plain
> simple and colorful.  I also love Eric's expandable table of contents:
> the one we have for now often clutters the page too much...
>
>> I think they're all a major improvement to Worg.  
>
> So do I -- thanks for this!
>
>> How should we move forward with this?  Take a vote?
>
> Matt's call :)
>
> My suggestion would be to go with Jason's css (combined with Eric's
> expandable table of contents) then have Eric's css and the old-worg 
> css available as alternative css.

Sounds good.  But first.. I noticed an issue with the expandable TOC on
a couple of pages:

http://orgmode.org/tmp/worg-eric/org-faq.html
http://orgmode.org/tmp/worg-eric/org-glossary.html

Does it have something to do with the javascript section-folding?

By the way, having the javascript section-folding enabled on only some
pages is confusing and doesn't make for the best browsing experience.
Now that the TOC will be collapsed by default, perhaps it's no longer
needed?

Regards,
Jason

___
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


[Accepted] [Orgmode] Doors links

2011-01-17 Thread Bastien Guerry
Patch 542 (http://patchwork.newartisans.com/patch/542/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C80lj2kblkx.fsf%40gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Doors links
> Date: Mon, 17 Jan 2011 02:11:26 -
> From: =?utf-8?b?VmluY2VudCBCZWxhw69jaGUgPHZpbmNlbnQuYi4xQGhvdG1haWwuZnI+?=
> X-Patchwork-Id: 542
> Message-Id: <80lj2kblkx@gmail.com>
> To: m...@christianmoe.com, Org mode 
> Cc: =?iso-8859-1?Q?Vincent_Bela=EFche?= 
> 
> > Date: Fri, 14 Jan 2011 23:18:21 +0100
> > From: m...@christianmoe.com
> > To: emacs-orgmode@gnu.org
> > Subject: Re: [Orgmode] Doors links
> >
> > Hi,
> >
> > Try these:
> >
> > [[info:org:Link abbreviations]]
> >
> > [[info:org:Adding%20hyperlink%20types][info:org:Adding hyperlink types]]
> >
> > Yours,
> > Christian
> >
> [...]
> 
> Thanks, I will try that ! I think that the trick deserves a forward link
> in the documentation. I made a patch to the doc, attached.
> 
>Vincent.
> 
> 
> diff --git a/doc/org.texi b/doc/org.texi
> index 4d696ae..96e2e50 100644
> --- a/doc/org.texi
> +++ b/doc/org.texi
> @@ -3093,6 +3093,8 @@ elisp:org-agenda  
> @r{Interactive Elisp command}
>  elisp:(find-file-other-frame "Elisp.org") @r{Elisp form to evaluate}
>  @end example
>  
> +For customizing Org to add new link types @ref{Adding hyperlink types}.
> +
>  A link should be enclosed in double brackets and may contain a
>  descriptive text to be displayed instead of the URL (@pxref{Link
>  format}), for example:
> 

___
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


[Accepted] [Orgmode] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-01-17 Thread Bastien Guerry
Patch 544 (http://patchwork.newartisans.com/patch/544/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3Csa3mxmzv4k0.fsf%40cigue.easter-eggs.fr%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Re: Bug: Jumping to a date in the agenda changes view back
>   to 'day' [7.4 (release_7.4.80.g0e5e5)]
> Date: Mon, 17 Jan 2011 22:11:11 -
> From: Julien Danjou 
> X-Patchwork-Id: 544
> Message-Id: 
> To: Bernt Hansen 
> Cc: Org Mode , Noorul Islam K M , 
>   Carsten Dominik 
> 
> On Mon, Jan 17 2011, Bernt Hansen wrote:
> >
> > Thanks for this patch.  I think this fixes the issue I was having with
> > 'j' in the agenda switching from week-view back to single-day view when
> > org-agenda-ndays is set to 1.
> >
> > There is still a (new?) problem with jumping to today.
> >
> > Set the following variable
> >
> > (setq org-agenda-start-on-weekday 6)
> >
> > | Key Sequence | Notes  |
> > |--+|
> > | C-c a a  | Display weekly agenda  |
> > | f| Go forward a week  |
> > | d| Display day agenda |
> > | .| Go to to day - but it goes to Saturday instead |
> >
> > This should go to today and not the first day of the week.
> 
> Attached is a fix for that.
> 
> 
> >From f566a5612560f997f4760144ca850dda5c06bc5e Mon Sep 17 00:00:00 2001
> From: Julien Danjou 
> Date: Mon, 17 Jan 2011 18:09:30 +0100
> Subject: [PATCH] Fix org-agenda-goto-today not respecting the current span.
> 
> * org-agenda.el (org-agenda-goto-today): Respect current span.
> 
> Signed-off-by: Julien Danjou 
> ---
>  lisp/org-agenda.el |2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index 0d695b5..241ed30 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -6104,7 +6104,7 @@ Negative selection means regexp must not match for 
> selection of an entry."
>   (tdpos (goto-char tdpos))
>   ((eq org-agenda-type 'agenda)
>(let* ((sd (org-agenda-compute-starting-span
> -   (org-today) (or org-agenda-ndays org-agenda-span)))
> +   (org-today) (or org-agenda-current-span org-agenda-ndays 
> org-agenda-span)))
>(org-agenda-overriding-arguments org-agenda-last-arguments))
>   (setf (nth 1 org-agenda-overriding-arguments) sd)
>   (org-agenda-redo)
> -- 
> 1.7.2.3
> 
> 

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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-17 Thread Samuel Wales
Jason the design is superb.

On 2011-01-16, Jason Dunsmore  wrote:
> I'm not a web-designer, but here's my stab at re-designing Worg:
> http://orgmode.org/tmp/worg/

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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-add-link-type

2011-01-17 Thread Bastien
Hi Thomas,

"Thomas S. Dye"  writes:

>   (org-add-link-type
>"citet" 'ebib
>(lambda (path desc format)
>  (cond
>   ((eq format 'latex)
>(if (and desc)
>  (format "\\citet[%s]{%s}" desc path)
>  (format "\\citet{%s}" path))
>
> [[citet:green84:_settl_patter_studies_ocean]]
>
> yields this:
>
> \citet[citet:green84:_settl\_patter\_studies\_ocean]
> {green84:_settl_patter_studies_ocean}

This is because "_" chars are usually protected from conversion in
links, but the LaTeX exporter might be confused by links it doesn't
know. 

What about this :

(org-add-link-type
   "citet" 'ebib
   (lambda (path desc format)
 (cond
  ((eq format 'latex)
   (if (and desc)
 (org-export-latex-protect-string 
  (format "\\citet[%s]{%s}" desc path))
 (org-export-latex-protect-string 
  (format "\\citet{%s}" path)))

Check for other uses of `org-export-latex-protect-string' in
org-latex.el to better understand in what contexts this function 
is useful.

HTH,

-- 
 Bastien

___
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: Worg needs some reorganizing

2011-01-17 Thread Samuel Wales
I like Jason's -- with a non-white bg (text should still be black).
Seems to work with large fonts.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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] configuring Org agenda faces by priority

2011-01-17 Thread Bastien
Hi Rainer,

Rainer Stengele  writes:

> I want to see my prio A agenda items in a higher font size than prio b or 
> prio c.
> I did not find a specific face like "org-agenda-priority-face" or
> similar.

M-x customize-variable RET org-priority-faces RET

PS: This applies to org-mode buffers and org agendas, but having
different priority faces for the agenda only would be too much IMHO.

-- 
 Bastien

___
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] links and no match message

2011-01-17 Thread Schlesinger, Paul
I have used Org for long enough to generate multi megabyte org files that 
coordinate my research. In these hair balls the links are invaluable. I link to 
\labels in tex because they provide good points of refernce for me that do not 
appear in the compiled output.  Since about 7.04 I get a "no match" message 
when I perform a goto on one of these global links.  The link is still found, 
occasionally, but frequently I will need to reform the link.  The location is 
present because just after forming the link they work but the "no match" 
message still appears.

Thanks
Paul Schlesinger
___
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: Worg needs some reorganizing

2011-01-17 Thread Eric Schulte
>>
>> My suggestion would be to go with Jason's css (combined with Eric's
>> expandable table of contents) then have Eric's css and the old-worg 
>> css available as alternative css.
>

Sounds good, I like the idea of combining the two styles.  I don't know
how alternate css stylesheets work, but I would say the more options the
better.  Which has the added benefit of keeping the option open of
future css submissions from Orgers with more web-design experience.

>
> Sounds good.  But first.. I noticed an issue with the expandable TOC on
> a couple of pages:
>
> http://orgmode.org/tmp/worg-eric/org-faq.html
> http://orgmode.org/tmp/worg-eric/org-glossary.html
>
> Does it have something to do with the javascript section-folding?
>
> By the way, having the javascript section-folding enabled on only some
> pages is confusing and doesn't make for the best browsing experience.
> Now that the TOC will be collapsed by default, perhaps it's no longer
> needed?
>

Yes the javascript is probably the culprit here, I agree that with the
hidden TOC it is probably not required.  My preference would be to
remove the section folding (and use of javascript) from Worg entirely.

Cheers -- Eric

>
> Regards,
> Jason

___
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: Worg needs some reorganizing

2011-01-17 Thread Achim Gratz
Bastien  writes:
> Wow!  I love this.  My preference goes to Jason's version: both plain
> simple and colorful.

Please do not use fixed measures in pixels, points, inches or
centimeters and prescribed font families.  Let this choice reside with
the user, they know what fonts in which sizes are readable on their
computer.  Relative font sizes with a 1.2 scaling factor or the symbolic
fontsizes specified by CSS are more friendly.

> I also love Eric's expandable table of contents:
> the one we have for now often clutters the page too much...

+1

I think the unicorn icon should be a bit smaller so that the reserved
space on top is not so large and it might be a quicklink back to the top
worg page.  In Jasons version to me the space between list items, table
rows, etc. looks a bit too large - but that should be easily tuned.


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


___
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: [Worg] some issues

2011-01-17 Thread Achim Gratz
Bastien  writes:
>> 2. The "sources" directory seems to exist, albeit apparently it is
>> empty.  All links into it that I've tried are dead.
>
> Looks like it's not empty: 

Jason or Matt already fixed it, thank you.

>> 5.Several unencoded "&" in URL.
>
> Can you provide links/patches for this?  (Or maybe even ask Matt for a
> push access to Worg.  Those problems are easy to fix when spotted but
> they are not easy to find when mentioned...)

The Google and the RSS link on the top page.  I know it looks wierd, but
it is actually correct to use entities like & there... and except
for some braindead bots if you click that link it will be automagically
correct.


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


Re: [Orgmode] Blogging from org-mode

2011-01-17 Thread Juan Reyero
On Sun, Jan 16, 2011 at 9:57 PM, Tom Breton (Tehom)  wrote:

> Some months back I contributed improvements to org-html.  My intent was to
> make it easy to post org files as blog posts.
>
> So this is a sort of delayed announcement.  There are two packages that
> post to blogs from org-mode: My org2blog/atom and Puneesh's (punchagan's)
> org2blog/wp.  I know there are also blog hosts based on org-mode, but
> that's different.  This is pushing org files to a "normal" blog host such
> as Blogger (for org2blog/atom) or Wordpress (org2blog/wp)
>
> org2blog/atom lives in the git repo http://repo.or.cz/r/org2blog.git and
> org2blog/wp lives in https://github.com/punchagan/org2blog.git
>
> Both respect the normal export options (#+TITLE: etc) but other than that
> the approaches are fairly different.
>
> Please tell me if I've missed any other org-based blogging software (other
> than the blog hosting software which is a different category).
>

I wrote org-jekyll a while back to export a blog to jekyll,

http://juanreyero.com/open/org-jekyll/index.html

>From the doc:

" Extracts subtrees from your org-publish project files that have
  a :blog: keyword and an :on: property with a timestamp, and
  exports them to a subdirectory _posts of your project's
  publishing directory in the year-month-day-title.html format
  that Jekyll expects.  Properties are passed over as yaml
  front-matter in the exported files.  The title of the entry is
  the title of the subtree."

I've been happily using it for more than a year.

jm
-- 
http://juanreyero.com/
http://alandair.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


[Accepted] [Orgmode] Allow inclusion of author's email in LaTeX export

2011-01-17 Thread Bastien Guerry
Patch 536 (http://patchwork.newartisans.com/patch/536/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1294928979-14439-1-git-send-email-wence%40gmx.li%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Allow inclusion of author's email in LaTeX export
> Date: Thu, 13 Jan 2011 19:29:39 -
> From: Lawrence Mitchell 
> X-Patchwork-Id: 536
> Message-Id: <1294928979-14439-1-git-send-email-we...@gmx.li>
> To: emacs-orgmode@gnu.org
> Cc: Lawrence Mitchell 
> 
> * org-latex.el (org-export-latex-make-header): Export email in
> author line if `org-export-email-info' is non-nil.
> 
> Previously exporting to LaTeX would not include the document author's
> email address when org-export-email-info was set.  This patch corrects
> this oversight using the \thanks command to add a footnote to the
> author line.
> 
> ---
> lisp/org-latex.el |   12 +---
>  1 files changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> index 8a9f9eb..4b36273 100644
> --- a/lisp/org-latex.el
> +++ b/lisp/org-latex.el
> @@ -1276,7 +1276,9 @@ TITLE is the current title from the buffer or region.
>  OPT-PLIST is the options plist for current buffer."
>(let ((toc (plist-get opt-plist :table-of-contents))
>   (author (org-export-apply-macros-in-string
> -  (plist-get opt-plist :author
> +  (plist-get opt-plist :author)))
> + (email (org-export-apply-macros-in-string
> + (plist-get opt-plist :email
>  (concat
>   (if (plist-get opt-plist :time-stamp-file)
>(format-time-string "%% Created %Y-%m-%d %a %H:%M\n"))
> @@ -1300,8 +1302,12 @@ OPT-PLIST is the options plist for current buffer."
>(org-export-latex-fontify-headline title))
>   ;; insert author info
>   (if (plist-get opt-plist :author-info)
> -  (format "\\author{%s}\n"
> -  (org-export-latex-fontify-headline (or author user-full-name)))
> +  (format "\\author{%s%s}\n"
> +  (org-export-latex-fontify-headline (or author user-full-name))
> +  (if (and org-export-email-info email
> +   (string-match "\\S-" email))
> +  (format "\\thanks{%s}" email)
> +""))
> (format "%%\\author{%s}\n"
>  (org-export-latex-fontify-headline (or author user-full-name
>   ;; insert the date
> 

___
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] Allow inclusion of author's email in LaTeX export

2011-01-17 Thread Bastien
Hi Lawrence,

Lawrence Mitchell  writes:

> * org-latex.el (org-export-latex-make-header): Export email in
> author line if `org-export-email-info' is non-nil.

Thanks a lot - I just applied a slightly modified version of your 
patch.

The trick is to use (plist-get opt-plist :email-info) instead of
`org-export-email-info' so that in-buffer options are taken into
account.

Thanks for submitting this!

-- 
 Bastien

___
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] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Sébastien Vauban
Hi Eric,

"Eric Schulte" wrote:
>> I tried to work on a CSV2Ledger, accepting the particular (European) CSV
>> format of my bank:
>>
>> * "Europeanize" the CSV file
>>
>> Here, we have to make several manipulations on the input file [...]. My
>> goal is to make that as a suite of bash commands (=echo | cmd 1 | cmd 2=),
>> tangled in a script file.
>>
>> However, I can't do any work on the input file, the very basic echo command
>> already giving an error:
>>
>> #+begin_src stderr
>> sh: line 3: unexpected EOF while looking for matching `''
>> sh: line 10: syntax error: unexpected end of file
>> #+end_src
>>
>> In this sample, this is due to the apostrophe in the header line ("Montant de
>> l'opération").
>
> I can't reproduce this problem, on my system, I get the following
> correct behavior
>
> #+results: excel-from-bank
> #+begin_example
> Num.ro du compte :;979-9500975-24;Compte Maxi
> Date valeur;R.f.rence de l'op.ration;Description;Montant de 
> l'op.ration;Devise;Date d'op.ration;Compte de contrepartie;Nom de la 
> contrepartie :;Communication 1 :;Communication 2 :
> 04-06-2009;A9F04NT01WK300TG;Virem. 
> internet;420,00;EUR;04-06-2009;799-5900947-23;PAYEE ONE; ; 
> 24-02-2009;A9B24NT012K4018Z;Virem. 
> internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening; 
> 18-05-2008;A8E19NT000S604QI;Virem. 
> internet;-1.000,00;EUR;19-05-2008;799-8068445-18;PAYEE TWO; ; 
> #+end_example
>
> #+begin_src sh :var data=excel-from-bank :results output
> echo "$data"
> #+end_src
>
> #+results:
> : Num.ro du compte :;979-9500975-24;Compte Maxi
> : Date valeur;R.f.rence de l'op.ration;Description;Montant de 
> l'op.ration;Devise;Date d'op.ration;Compte de contrepartie;Nom de la 
> contrepartie :;Communication 1 :;Communication 2 :
> : 04-06-2009;A9F04NT01WK300TG;Virem. 
> internet;420,00;EUR;04-06-2009;799-5900947-23;PAYEE ONE; ; 
> : 24-02-2009;A9B24NT012K4018Z;Virem. 
> internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening; 
> : 18-05-2008;A8E19NT000S604QI;Virem. 
> internet;-1.000,00;EUR;19-05-2008;799-8068445-18;PAYEE TWO; ;
>
> and the sh code block expands to the following (with C-c C-v v) which is
> not affected by commas...

I've no trouble with commas, except that it's not an American formatting for
amounts. Though, I does well have problems, as showed, with the apostrophe...

Previewing does work for me as well:

> #+begin_src sh
>   data=$(cat <   Num.ro du compte :;979-9500975-24;Compte Maxi
>   Date valeur;R.f.rence de l'op.ration;Description;Montant de 
> l'op.ration;Devise;Date d'op.ration;Compte de contrepartie;Nom de la 
> contrepartie :;Communication 1 :;Communication 2 :
>   04-06-2009;A9F04NT01WK300TG;Virem. 
> internet;420,00;EUR;04-06-2009;799-5900947-23;PAYEE ONE; ; 
>   24-02-2009;A9B24NT012K4018Z;Virem. 
> internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening; 
>   18-05-2008;A8E19NT000S604QI;Virem. 
> internet;-1.000,00;EUR;19-05-2008;799-8068445-18;PAYEE TWO; ;
>   BABEL_STRING
>   )
>   echo "$data"
> #+end_src

Evaluation does not.

> Are you on a windows machine?  I'm not sure what else could be different
> about the shell environment on our machines.

Yes, it is on Windows ;-)  Though, with Cygwin bash support... which should
behave as on any Linux...

> note: some of the characters in your email weren't printable when I
> tried to send this with gnus, so they've been replaced with "."s

These are French accentuated letters.

>> Any idea on how to:
>> - circumvent such problem?
>> - or, eventually, do this better?

No idea on any workaround, then?  ;-(

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] Painless integration of source blocks with language

2011-01-17 Thread Sébastien Vauban
Hi Eric,

"Eric Schulte" wrote:
> Sébastien Vauban  writes:
>> "Eric Schulte" wrote:
>>> I've just pushed up a new header argument combination ":comments noweb"
>>> which will wrap all embedded noweb sections in link comments, as
>>> demonstrated in the following example.  Hopefully this should be
>>> sufficient for a complete mapping from a pure code file back to the
>>> original org-mode file.
>>
>> If I understand correctly, this is some sort of enhancement to the ":comments
>> yes" option.
>>
>> If yes, is there a reason to have both values, with subtle differences?
>> Shouldn't we port the behavior of ":comments noweb" to the ":comments yes"
>> value?
>
> Yes, the reason to retain both variants is that in the case of short
> noweb references embedded in a single line, e.g.
>
> #+source: first
> #+begin_src ruby
>   5
> #+end_src
>
> #+begin_src ruby :noweb yes
>   <> + 6
> #+end_src
>
> the yes option would be preferable, as the insertion of comments around
> the noweb reference would result in adding line breaks around the
> reference and possibly breaking new-line sensitive code.

I see. I do second your choice...

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: [Worg] some issues

2011-01-17 Thread Achim Gratz
Matt Lundin  writes:
[...]

Bastien mentioned requesting push access to Worg from you...  I've
actually created an SSH key on repo.or.cz for this a while back (but
never requested push access to Worg), how does this work on the new
Worg?  I keep this question on the orgmode list since the answer will
probably be of interest to other would-be-Worgers.


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

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds


___
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] Blogging from org-mode

2011-01-17 Thread Samuel Wales
On 2011-01-16, Tom Breton (Tehom)  wrote:
> Feel free to play with org2blog/atom, and there's a "mob" user on the repo
> if you feel like contributing.

Sounds great.  However. I am not likely to be able to do much with it,
such as tweaking it.  I don't know if it will work with 22.[1]

IMO ideally, we would have one tool that does everything your solution
does and everything mine does (on my list, such as subtrees, except
perhaps curl and xsltproc), and have it in contrib.  I guess g-client
would go there too by analogy with htmlize.

Then again, I suppose my solution only needs an API call if the
dependencies work.

> Please let me know if you have any trouble obtaining the g-client version
> that supports this.

Cannot go searching and testing now.[1]  But I like the idea of using
Atom very much and I hope your project gets some interest.

Samuel

[1] I would have to try it, which I can almost never do because all
computer use is physically painful.  Most people wouldn't notice the
difference but I find from experience that debugging, backporting,
testing, and installing are even more of a problem than email,
requiring more repetition than predicted and often being fruitless
despite being physically painful .  This is one reason why most of my
contributions to org are ideas not code.  I am very fortunate that
they often get implemented -- I think it's a sign of a really healthy
open source community that I can still contribute with ideas without
having to code.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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: [babel] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Eric Schulte
>>
>> and the sh code block expands to the following (with C-c C-v v) which is
>> not affected by commas...
>
> I've no trouble with commas, except that it's not an American formatting for
> amounts. Though, I does well have problems, as showed, with the apostrophe...
>

Sorry, I mis-typed, as far as I can tell the apostrophe works on my
machine without causing any issues.

>
> Previewing does work for me as well:
>
>> #+begin_src sh
>>   data=$(cat <>   Num.ro du compte :;979-9500975-24;Compte Maxi
>>   Date valeur;R.f.rence de l'op.ration;Description;Montant de
>> l'op.ration;Devise;Date d'op.ration;Compte de contrepartie;Nom de la
>> contrepartie :;Communication 1 :;Communication 2 :
>>   04-06-2009;A9F04NT01WK300TG;Virem. 
>> internet;420,00;EUR;04-06-2009;799-5900947-23;PAYEE ONE; ; 
>>   24-02-2009;A9B24NT012K4018Z;Virem. 
>> internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening; 
>>   18-05-2008;A8E19NT000S604QI;Virem. 
>> internet;-1.000,00;EUR;19-05-2008;799-8068445-18;PAYEE TWO; ;
>>   BABEL_STRING
>>   )
>>   echo "$data"
>> #+end_src
>

if you execute the previewed code block as an independent shell script
on your machine does it throw errors or does it echo correctly?

>
> Evaluation does not.
>
>> Are you on a windows machine?  I'm not sure what else could be different
>> about the shell environment on our machines.
>
> Yes, it is on Windows ;-)  Though, with Cygwin bash support... which should
> behave as on any Linux...
>
>> note: some of the characters in your email weren't printable when I
>> tried to send this with gnus, so they've been replaced with "."s
>
> These are French accentuated letters.
>
>>> Any idea on how to:
>>> - circumvent such problem?
>>> - or, eventually, do this better?
>
> No idea on any workaround, then?  ;-(
>

I can't reproduce the problem locally, and I believe that this is due to
differences in our shell environments rather than Emacs-specific issues,
so it is hard for me to diagnose or propose a solution.

Sorry I can't be of more help -- Eric

>
> Best regards,
>   Seb

___
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] Blogging from org-mode

2011-01-17 Thread Erik Iverson

On 01/17/2011 01:13 PM, Juan Reyero wrote:

On Sun, Jan 16, 2011 at 9:57 PM, Tom Breton (Tehom) mailto:te...@panix.com>> wrote:

Some months back I contributed improvements to org-html.  My intent was to
make it easy to post org files as blog posts.

So this is a sort of delayed announcement.  There are two packages that
post to blogs from org-mode: My org2blog/atom and Puneesh's (punchagan's)
org2blog/wp.  I know there are also blog hosts based on org-mode, but
that's different.  This is pushing org files to a "normal" blog host such
as Blogger (for org2blog/atom) or Wordpress (org2blog/wp)

org2blog/atom lives in the git repo http://repo.or.cz/r/org2blog.git and
org2blog/wp lives in https://github.com/punchagan/org2blog.git

Both respect the normal export options (#+TITLE: etc) but other than that
the approaches are fairly different.

Please tell me if I've missed any other org-based blogging software (other
than the blog hosting software which is a different category).


I wrote org-jekyll a while back to export a blog to jekyll,

http://juanreyero.com/open/org-jekyll/index.html



I also simply use weblogger.el (http://www.emacswiki.org/emacs/WebloggerMode) 
combined with a really easy function defined at 
http://www.randomsample.de/dru5/node/77 to post to blogs including Drupal. 
Weblogger.el is really nice because it lets you also edit existing entries in 
Emacs.  Don't know if all the solutions above do the same.  This method also 
allows you to use different blog systems than Drupal, I believe any that support 
XMLRPC updates, including Blogger, Drupal, Wordpress, ...


___
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] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Achim Gratz
Sébastien Vauban 
writes:
> However, I can't do any work on the input file, the very basic echo command
> already giving an error:

This is because quoting the arguments to echo does not work when your
input contains unescaped quote characters.  I've no idea how exactly
babel tries to get it's arguments to the command, but it looks like it
simply copies text and executes the resulting script?  If it could open
a pipe and send the data through, no quoting would be necessary since
the shell never sees the data.  I'm not sure if that's possible because
I can't find specific documentation on language "sh".

[Note: orgmode online manual links to
 http://orgmode.org/worg/org-contrib/babel/languages/ which is broken.]

> #+begin_src sh :var data=excel-from-bank :results output
> echo "$data"
> #+end_src

So, you're using a un*xoid?  This is your lucky day, since in your case you
should be able to use a here script:

#+begin_src sh :var data=excel-from-bank :results output
echo <+

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


Re: [Orgmode] Re: [Worg] some issues

2011-01-17 Thread Bastien
Achim Gratz  writes:

> Matt Lundin  writes:
> [...]
>
> Bastien mentioned requesting push access to Worg from you...  I've
> actually created an SSH key on repo.or.cz for this a while back (but
> never requested push access to Worg), how does this work on the new
> Worg?  

Worg hasn't been migrated to the new server, yet: pushing from your 
Worg clone should work as usual.

As Jason said, there is a plan to migrate Worg.git to the new server but
it's a bigger move than migrating org-mode.git since there are many more
people involved.  

As everyone can see, I'm still catching up with old emails/requests and
I don't want to migrate Worg before I've found my maintainance "rhythm"!

So please bare with me on this.

Thanks!

> I keep this question on the orgmode list since the answer will
> probably be of interest to other would-be-Worgers.

PS: The process of migrating requires Worgers to send me their public
key: so if would-be-Worgers don't mind to send it twice, they can open
an account on repo.or.cz... otherwise, they can safely submit patches.

-- 
 Bastien

___
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: Worg needs some reorganizing

2011-01-17 Thread Bastien
Achim Gratz  writes:

> Bastien  writes:
>> Wow!  I love this.  My preference goes to Jason's version: both plain
>> simple and colorful.
>
> Please do not use fixed measures in pixels, points, inches or
> centimeters and prescribed font families.  Let this choice reside with
> the user, they know what fonts in which sizes are readable on their
> computer.  Relative font sizes with a 1.2 scaling factor or the symbolic
> fontsizes specified by CSS are more friendly.

I'm by no mean a CSS expert but I agree accessibility should be on top
of our priorities -- please send patches (or fixed/updated) css if you 
can spot at errors that we made!

Thanks,

-- 
 Bastien

___
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] Doors links

2011-01-17 Thread Bastien
Vincent Belaïche  writes:

> Thanks, I will try that ! I think that the trick deserves a forward link
> in the documentation. I made a patch to the doc, attached.

Applied, thanks!

-- 
 Bastien

___
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: [babel] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Eric Schulte
Achim Gratz  writes:

> Sébastien Vauban 
> writes:
>> However, I can't do any work on the input file, the very basic echo command
>> already giving an error:
>
> This is because quoting the arguments to echo does not work when your
> input contains unescaped quote characters.  I've no idea how exactly
> babel tries to get it's arguments to the command, but it looks like it
> simply copies text and executes the resulting script?  If it could open
> a pipe and send the data through, no quoting would be necessary since
> the shell never sees the data.  I'm not sure if that's possible because
> I can't find specific documentation on language "sh".
>
> [Note: orgmode online manual links to
>  http://orgmode.org/worg/org-contrib/babel/languages/ which is broken.]
>

yes, the Worg documentation is in dire need of maintenance, see below
for discussion of how arguments are passed in the sh blocks

>
>> #+begin_src sh :var data=excel-from-bank :results output
>> echo "$data"
>> #+end_src
>
> So, you're using a un*xoid?  This is your lucky day, since in your case you
> should be able to use a here script:
>
> #+begin_src sh :var data=excel-from-bank :results output
> echo < $data
> EOF
> #+end_src
>

here scripts are how Babel sends data through to a shell script, as far
as I know they should have no issues with quotes (or any other
character)

specifically, the following code block

#+results: something
#+begin_example
  something
  and something else
  with apostrophes ' and quotes "
  this should all work...
#+end_example

#+begin_src sh :var data=something
  echo $data
#+end_src

Expands to

#+begin_src sh
  data=$(cat 

[Orgmode] [PATCH] Add new option for ignoring past or future items in the global todo list

2011-01-17 Thread Matt Lundin

* lisp/org-agenda.el: (org-agenda-todo-ignore-deadlines): New option.
  (org-agenda-todo-ignore-scheduled): New option.
  (org-agenda-todo-ignore-timestamp): New option.
  (org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item): Allow user
  to specify custom distance to ignore (future or past).
  (org-agenda-todo-custom-ignore-p): New function.

This patch gives users greater control over which past or future items
they would like to ignore in the global todo list. By setting
org-agenda-todo-ignore-scheduled to 7, for instance, a user can ignore
all items scheduled 7 or more days in the future. Similarly, by
setting org-agenda-todo-ignore-scheduled to -1, a user can ignore all
items that are truly in the past (unlike the 'past setting, which
ignores items scheduled today). Thanks to Paul Sexton for the idea for
this new functionality.
---
 lisp/org-agenda.el |   42 +++---
 1 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 0cd620c..68e781a 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -599,6 +599,14 @@ all  Don't show any entries with a timestamp in the 
global todo list.
  The idea behind this is that by setting a timestamp, you
  have already \"taken care\" of this item.
 
+This variable can also have an integer as a value. If positive (N),
+todos with a timestamp N or more days in the future will be ignored. If
+negative (-N), todos with a timestamp N or more days in the past will be
+ignored. If 0, todos with a timestamp either today or in the future will
+be ignored. For example, a value of -1 will exclude todos with a
+timestamp in the past (yesterday or earlier), while a value of 7 will
+exclude todos with a timestamp a week or more in the future.
+
 See also `org-agenda-todo-ignore-with-date'.
 See also the variable `org-agenda-tags-todo-honor-ignore-options' if you want
 to make his option also apply to the tags-todo list."
@@ -608,7 +616,8 @@ to make his option also apply to the tags-todo list."
  (const :tag "Ignore future timestamp todos" future)
  (const :tag "Ignore past or present timestamp todos" past)
  (const :tag "Ignore all timestamp todos" all)
- (const :tag "Show timestamp todos" nil)))
+ (const :tag "Show timestamp todos" nil)
+ (integer :tag "Ignore if N or more days in past(-) or future(+).")))
 
 (defcustom org-agenda-todo-ignore-scheduled nil
   "Non-nil means, ignore some scheduled TODO items when making TODO list.
@@ -627,6 +636,9 @@ all  Don't show any scheduled entries in the global 
todo list.
 
 tSame as `all', for backward compatibility.
 
+This variable can also have an integer as a value. See
+`org-agenda-todo-ignore-timestamp' for more details.
+
 See also `org-agenda-todo-ignore-with-date'.
 See also the variable `org-agenda-tags-todo-honor-ignore-options' if you want
 to make his option also apply to the tags-todo list."
@@ -637,7 +649,8 @@ to make his option also apply to the tags-todo list."
  (const :tag "Ignore past- or present-scheduled todos" past)
  (const :tag "Ignore all scheduled todos" all)
  (const :tag "Ignore all scheduled todos (compatibility)" t)
- (const :tag "Show scheduled todos" nil)))
+ (const :tag "Show scheduled todos" nil)
+ (integer :tag "Ignore if N or more days in past(-) or future(+).")))
 
 (defcustom org-agenda-todo-ignore-deadlines nil
   "Non-nil means ignore some deadlined TODO items when making TODO list.
@@ -664,6 +677,9 @@ all Ignore all TODO entries that do have a deadline.
 
 t   Same as `near', for backward compatibility.
 
+This variable can also have an integer as a value. See
+`org-agenda-todo-ignore-timestamp' for more details.
+
 See also `org-agenda-todo-ignore-with-date'.
 See also the variable `org-agenda-tags-todo-honor-ignore-options' if you want
 to make his option also apply to the tags-todo list."
@@ -674,7 +690,8 @@ to make his option also apply to the tags-todo list."
  (const :tag "Ignore near deadlines (compatibility)" t)
  (const :tag "Ignore far deadlines" far)
  (const :tag "Ignore all TODOs with a deadlines" all)
- (const :tag "Show all TODOs, even if they have a deadline" nil)))
+ (const :tag "Show all TODOs, even if they have a deadline" nil)
+ (integer :tag "Ignore if N or more days in past(-) or future(+).")))
 
 (defcustom org-agenda-tags-todo-honor-ignore-options nil
   "Non-nil means honor todo-list ...ignore options also in tags-todo search.
@@ -4537,6 +4554,16 @@ the documentation of `org-diary'."
  (org-end-of-subtree 'invisible
 (nreverse ee)))
 
+(defun org-agenda-todo-custom-ignore-p (time n)
+  "Check whether timestamp is farther away then n number of days.
+This function is invoked if `org-agenda-todo-ignore-deadlines',
+`org-agenda-todo-ignore-scheduled' or
+`org-agenda-todo-ignore

Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-17 Thread Jason Dunsmore
Achim Gratz  writes:

> Bastien  writes:
>> Wow!  I love this.  My preference goes to Jason's version: both plain
>> simple and colorful.
>
> Please do not use fixed measures in pixels, points, inches or
> centimeters and prescribed font families.  Let this choice reside with
> the user, they know what fonts in which sizes are readable on their
> computer.  Relative font sizes with a 1.2 scaling factor or the symbolic
> fontsizes specified by CSS are more friendly.
>
>> I also love Eric's expandable table of contents:
>> the one we have for now often clutters the page too much...
>
> +1
>
> I think the unicorn icon should be a bit smaller so that the reserved
> space on top is not so large and it might be a quicklink back to the top
> worg page.  In Jasons version to me the space between list items, table
> rows, etc. looks a bit too large - but that should be easily tuned.

Good suggestions.

I made several unit changes from px to em, removed the line-height
property, and removed Georgia as the default font:

diff --git a/worg.css b/worg.css
index 9742965..ccb732a 100644
--- a/worg.css
+++ b/worg.css
@@ -4,2 +4 @@
-font:14px Georgia,serif;
-line-height:18px;
+font:0.9em serif;
@@ -44 +46 @@
-font-size:30px;
+font-size:2.1em;
@@ -67 +69 @@
-font-size:21px;
+font-size:1.45em;
@@ -80 +82 @@
-font-size:19px;
+font-size:1.3em;
@@ -88 +90 @@
-font-size:17px;
+font-size:1.2em;

In h2, h3, and h4, removing Arial as the font-family and letting the
browser use the default sans font looked ugly.  Is there a more general
way to specify an Arial-like font?

Properties that define how close the content comes to the unicorn image
still have px units because it needs to be an absolute value.

Let me know if this still looks good.

Regards,
Jason

___
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] Blogging from org-mode

2011-01-17 Thread Samuel Wales
On 2011-01-17, Erik Iverson  wrote:
> I also simply use weblogger.el
> (http://www.emacswiki.org/emacs/WebloggerMode)

I made the mistake of trying this, thinking it had no dependencies
other than the other .el file so would be easier.  It looks
potentially useful.

I looked at 2 versions of this, and both had the same version number,
but the code was different.  That's a slightly bad sign.

  http://launchpadlibrarian.net/40758914/weblogger.el
  http://windows-config.googlecode.com/svn/trunk/.emacs_d/weblogger/weblogger.el

Also, there is a compiler warning for obsolete variable, so the code
might be old?

Finally, I couldn't figure out the basics.  Just to confirm, this
takes HTML and posts it?  It does not make this clear.

It would help if we had a table of what each package does.  I hope my
code was clear on what it does.

> combined with a really easy function defined at
> http://www.randomsample.de/dru5/node/77 to post to blogs including Drupal.

What does your really easy function do that weblogger.el does not do?

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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: Worg needs some reorganizing

2011-01-17 Thread Eric Schulte
>
> Let me know if this still looks good.
>

This looks great to me.  The attached version integrates my hidden TOC
style sheet, and I think the TOC looks much better with your headline
styles applied.

The attached worg.css also removes the "line-height:16px;" directive, as
this causes multi-line headlines to overlap themselves.

One last change I would suggest, is that rather than use inline css for
the highlighted source code, we use a css stylesheet by setting the 

  (setq org-export-htmlize-output-type 'css)

Then use a single .css style sheet as done with the "@import(emacs.css)"
in my previous submission.  I'm partial to the emacs.css bundled with my
submission over the current code fontification, but that's just me.

Cheers -- Eric

@media all
{
  body {
font:0.9em serif;
max-width: 95%;
margin: auto;
background-image: url(http://orgmode.org/tmp/org-mode-unicorn.png);
background-repeat: no-repeat;
}
body #content {
  padding-top: 45px;
}
body .title {
  margin-left: 120px;
}
  }

  /* TOC inspired by http://jashkenas.github.com/coffee-script */
  #table-of-contents {
font-size: 10pt;
position: fixed;
right: 0em;
top: 0em;
background: white;
-webkit-box-shadow: 0 0 1em #77;
-moz-box-shadow: 0 0 1em #77;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomleft: 5px;
text-align: right;
/* ensure doesn't flow off the screen when expanded */
max-height: 80%;
overflow: auto; }
#table-of-contents h2 {
  font-size: 10pt;
  max-width: 8em;
  font-weight: normal;
  padding-left: 0.5em;
  padding-left: 0.5em;
  padding-top: 0.05em;
  padding-bottom: 0.05em; }
#table-of-contents #text-table-of-contents {
  display: none;
  text-align: left; }
#table-of-contents:hover #text-table-of-contents {
  display: block;
  padding: 0.5em;
  margin-top: -1.5em; }

  #license {
padding: .3em;
border: 1px solid grey;
background-color: #ee;
  }

  h1 {
font-family:Sans;
font-size:2.1em;
font-weight:bold;
padding:0 0 30px 0;
text-align: center;
  }

/*
  h2:before {
content: "* "
  }

  h3:before {
content: "** "
  }

  h4:before {
content: "*** "
  }
*/

  h2 {
font-family:Arial,sans-serif;
font-size:1.45em;
font-weight:bold;
line-height:16px;
padding:7px 0 0 0;
color: #7C;
  }

  .title {

  }

  h3 {
font-family:Arial,sans-serif;
font-size:1.3em;
font-weight:bold;
margin-left: 0.6em;
color: #00046E;
  }

  h4 {
font-family:Arial,sans-serif;
font-size:1.2em;
font-weight:bold;
margin-left: 1.2em;
color: #00574F;
  }

  a {
text-decoration: none;
  }

  a:visited {
text-decoration: none;
  }

  a:hover {

  }

  .todo {
color: #CA;
  }

  .done {
color: #00;
  }

  .timestamp-kwd {
color: #444;
  }

  .tag {

  }

  li {
margin: .4em;
  }

  table {
border: none;
  }

  td {
border: none;
  }

  th {
border: none;
  }

  code {
font-size: 100%;
  }

  img {
border: none;
  }

  .share img {
opacity: .4;
-moz-opacity: .4;
filter: alpha(opacity=40);
  }

  .share img:hover {
opacity: 1;
-moz-opacity: 1;
filter: alpha(opacity=100);
  }

  /* pre {border: 1px solid #555; */
  /*  background: #EEE; */
  /*  font-size: 9pt; */
  /*  padding: 1em; */
  /* } */

  /* pre { */
  /* color: #e5e5e5; */
  /* background-color: #00; */
  /* padding: 1.4em; */
  /* border: 2px solid grey; */
  /* } */

  pre {
color: black;
background-color: #efefef;
padding: 1.2em;
border: 1px solid #dd;
  }

  .org-info-box {
clear:both;
margin-left:auto;
margin-right:auto;
padding:0.7em;
/* border:1px solid #CCC; */
/* border-radius:10px; */
/* -moz-border-radius:10px; */
  }
  .org-info-box img {
float:left;
margin:0em 0.5em 0em 0em;
  }
  .org-info-box p {
margin:0em;
padding:0em;
  }


  .builtin {
/* font-lock-builtin-face */
color: #f4a460;
  }
  .comment {
/* font-lock-comment-face */
color: #737373;
  }
  .comment-delimiter {
/* font-lock-comment-delimiter-face */
color: #66;
  }
  .constant {
/* font-lock-constant-face */
color: #db7093;
  }
  .doc {
/* font-lock-doc-face */
color: #b3b3b3;
  }
  .function-name {
/* font-lock-function-name-face */
color: #5f9ea0;
  }
  .headline {
/* headline-face */
color: #ff;
background-color: #00;
font-weight: bold;
  }
  .keyword {
/* font-lock-keyword-face */
color: #4682b4;
  }
  .negation-char {
  }
  .regexp-grouping-backslash {
  }
  .regexp-grouping-construct {
  }
  .string {
/* font-lock-string-face */
color: #ccc79a;
  }
  .todo-comment {
/* todo-comment-face */
color: #ff;
background-color: #00;
font-weight: bold;
  }
 

Re: [Orgmode] Blogging from org-mode

2011-01-17 Thread Erik Iverson

Hello,

On 01/17/2011 03:02 PM, Samuel Wales wrote:

On 2011-01-17, Erik Iverson  wrote:

I also simply use weblogger.el
(http://www.emacswiki.org/emacs/WebloggerMode)


I made the mistake of trying this, thinking it had no dependencies
other than the other .el file so would be easier.  It looks
potentially useful.

I looked at 2 versions of this, and both had the same version number,
but the code was different.  That's a slightly bad sign.

   http://launchpadlibrarian.net/40758914/weblogger.el
   
http://windows-config.googlecode.com/svn/trunk/.emacs_d/weblogger/weblogger.el

Also, there is a compiler warning for obsolete variable, so the code
might be old?

Finally, I couldn't figure out the basics.  Just to confirm, this
takes HTML and posts it?  It does not make this clear.


Yes, you can set up a blog by first doing:

M-x weblogger-setup-weblog RET

But there were some quirks when I tried this with Drupal 6. I think I had to 
have at least one post already in the blog before it worked. But after that, I 
was able to weblogger with the function defined in the link below to post to 
Drupal.




combined with a really easy function defined at
http://www.randomsample.de/dru5/node/77 to post to blogs including Drupal.


What does your really easy function do that weblogger.el does not do?


Weblogger just sends the HTML to the blog, and lets you edit existing entries. 
It does not produce the actual HTML.


The function from randomsample.de exports an Org-mode buffer to HTML and 
"massages" the HTML output to be of a form that blogs like. I.e., gets rid of 
the headers.  Weblogger has nothing to do with org-mode per se, it just lets you 
post content to blogs that support XMLRPC.


That's about as far as my knowledge goes, so I hope it helps. This method isn't 
completely clean, but it did work for me with Drupal 6 (but haven't gotten it to 
work yet in Drupal 7...)


As usual, there's more than a few ways to do things, so the more options the 
better in my opinion.


___
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] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Achim Gratz
Achim Gratz  writes:
> #+begin_src sh :var data=excel-from-bank :results output
> echo < $data
> EOF
> #+end_src

Sent too soon: use cat, not echo.  Actually that is redundant, too:

#+begin_src sh :var data=excel-from-bank :results output
cmd1 <+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves


___
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: Worg needs some reorganizing

2011-01-17 Thread Matt Lundin
Hi Jason,

Jason Dunsmore  writes:

> "Eric Schulte"  writes:
>
>> I recall a discussion of holding a competition to select a new css style
>> for Worg (found it here [1]).  I think that such a change could
>> fruitfully be combined with the Worg re-organization.
>
> I'm not a web-designer, but here's my stab at re-designing Worg:
> http://orgmode.org/tmp/worg/
>
> I think a good addition to Worg would be the option to view it with or
> without the javascript section folding.  I personally prefer the entire
> web page to be visible without clicking.  Is there a way to do this I'm
> not aware of?

I agree that we should reconsider the use of folding on Worg (or at
least provide alternate links to non-js views).

To avoid the folding, you can use the following link:

http://orgmode.org/worg/org-faq.html?VIEW=showall

See http://orgmode.org/worg/code/org-info-js/#linking for more details.

However, it still takes a second or two for org-info.js to rearrange the
page.

I do find that as a workaround adding some other (unsupported) string
after VIEW results in a page without javascript.

http://orgmode.org/worg/org-faq.html?VIEW=none

Best,
Matt

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


[Orgmode] Embedded code

2011-01-17 Thread Ido Magal
Hello,

Is it possible to put a block of code in a document such that it gets
evaluated when the document is opened?  For example, I'd like to have
a link-back section in each note.

I'm aware of babel but I neither understand how to make it auto-evaluate on
open nor do i know if
making it compact ( and avoid having code and result blocks ) is possible.
 I see examples where it's used for export but haven't seen one for general
org usage.

Thanks in advance.
___
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] Hyperlink to a string in an external text file

2011-01-17 Thread Steve Hafner
According to the Org manual a link to an external org file can have
the form "file:projects.org::some words" to allow a hyper jump to the
first occurrence of "some words" within another org file. But why
restrict this to org files? It seems this should work with any text
file; and when I try the same thing with a LaTeX file, for example,
"file:file.tex::\label{theorem-B}" where "file.tex" contains
"\label{theorem-B}", it seems to work in the same way as for an
external org file. Is this a feature I can rely on for any arbitrary
text file?


-steve

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


Re: [Orgmode] [babel] Painless integration of source blocks with language

2011-01-17 Thread Seth Burleigh
On Sun, Jan 16, 2011 at 9:31 AM, Eric Schulte wrote:

>
> #+source: wrappable
> #+begin_src emacs-lisp
>  (setq x (+ 4 x))
> #+end_src
>
> #+begin_src emacs-lisp :comments noweb :noweb yes :tangle yes
>  (let ((x 1))
>(message "x=%s" x)
><>
>(message "x=%s" x))
> #+end_src
>
> which tangles out the following emacs-lisp
> #+begin_src emacs-lisp
>  ;; [[file:~/src/babel-dev/scraps.org:
> :*wrap%20noweb%20references%20in%20comments][wrap-noweb-references-in-comments:2]]
>  (let ((x 1))
>(message "x=%s" x)
>;; [[file:~/src/babel-dev/scraps.org:
> :*wrap%20noweb%20references%20in%20comments][wrappable]]
>(setq x (+ 4 x))
>;; wrappable ends here
>(message "x=%s" x))
>  ;; wrap-noweb-references-in-comments:2 ends here
> #+end_src
>
> Cheers -- Eric
>


Cool! Does it yet support detangling? I tried it out and it said i wasnt in
a tangle code.
___
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: Worg needs some reorganizing

2011-01-17 Thread Achim Gratz
Jason Dunsmore  writes:
> I made several unit changes from px to em, removed the line-height
> property, and removed Georgia as the default font:

Well actually, relative font sizing works would be 'larger' and
'smaller', which would take into account what fonts are actually
available.  Specifying the fonts with percentages or em often ends up at
a font size that is not available and must be scaled, which can look
really bad.  But before I make a mess by trying to explain it, search
for:

css relative font sizes -w3schools

I actually don't assign sizes in my own CSS and rely on the default
sizes the browser delivers.  That may be too chancy for you since the
defaults are bad in several older browsers, but it works well enough
with all the modern ones.

> In h2, h3, and h4, removing Arial as the font-family and letting the
> browser use the default sans font looked ugly.  Is there a more
> general way to specify an Arial-like font?

Sans-serif uses whatever the user has specified to be used for this
font.  To me, Arial looks ugly and I'm using a different font there;
I've also replaced serif with the same font because I've yet to find a
website that actually reads better with a serif font.  Finally, I've
also locked my fonts so I don't get overruled by some webdesigners idea
of "nice-looking" and "readable" (which may well be true on their
computer).  :-)

BTW, "sans" is not a generic font family and might actually return a
(pixel?) font installed on the system.  Last but not least, font
families should be quoted and generic families not, e.g.:

font: "Georgia", sans-serif;
font-size: medium; /* absolute specification decided by UA, user preference */



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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves


___
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] How to write special LaTeX symbols

2011-01-17 Thread Bastien
Nick Dokos  writes:

> It works correctly in headlines, but not in running text. I think [fn:1]
> that it is a bug and that the following patch fixes it:

I've tested and applied your patch -- thanks for the fix!

The only problematic situation I can think of is if someone gives this
as an example:

  "C:\Program File\"

... where the string `\"' will not be properly exported; quite a
borderline case I'd say.

Best,

-- 
 Bastien

___
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: Hyperlink to a string in an external text file

2011-01-17 Thread Steve Hafner
Ok, I see that "4.7 Search options in file links" generalizes the info
in "4.3 External links" and includes my case, sorry for the noise.

___
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] Hyperlink to a string in an external text file

2011-01-17 Thread Samuel Wales
A good way to determin this is using capture from the file you want
and look at the link it creates.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Sébastien Vauban
Hi Achim and Eric,

Achim Gratz wrote:
> The script produced by babel should actually look like this:
>
> #+begin_src sh
> data=$(cat <<'BABEL_STRING'
> Num.ro du compte :;979-9500975-24;Compte Maxi
> Date valeur;R.f.rence de l'op.ration;Description;Montant de 
> l'op.ration;Devise;Date d'op.ration;Compte de contrepartie;Nom de la 
> contrepartie :;Communication 1 :;Communication 2 :
> 04-06-2009;A9F04NT01WK300TG;Virem. 
> internet;420,00;EUR;04-06-2009;799-5900947-23;PAYEE ONE; ; 
> 24-02-2009;A9B24NT012K4018Z;Virem. 
> internet;-54,93;EUR;24-02-2009;799-9974005-30;ME;Eigen rekening; 
> 18-05-2008;A8E19NT000S604QI;Virem. 
> internet;-1.000,00;EUR;19-05-2008;799-8068445-18;PAYEE TWO; ;
> BABEL_STRING
> )
> echo "$data"
> #+end_src
>
> That is no indentation and the here-tag should be in quotes (otherwise the
> here-script is subject to shell expansion).

The above, from which I even removed the accentuated characters (from French),
still does not work...

Now, I can imagine it is due to Cygwin, not to Emacs/Org/Babel. Though, that's
a problem in general for the use of sh blocks from Org... under Windows, then.

- Has anyone any experience with this?
- Can some Bash user confirm what I see?
- Can some Windows user confirm this with other Unix-emulation shells (MinGW
  and the like)?

> It's probably possible to do a contrived redirection and not use a variable
> to store the data, but I'm afraid I won't grok this today.

Or maybe using a real file as temporary storage?  Overkill, or simply needed?

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] Painless integration of source blocks with language

2011-01-17 Thread Sébastien Vauban
Hi Seth,

Seth Burleigh wrote:
> On Sun, Jan 16, 2011 at 9:31 AM, Eric Schulte  dir="ltr"> wrote:

Please try using a decent sender, or at least no HTML. I know this cannot be
obvious, though, but look at the results:

> #+source: wrappable
> #+begin_src emacs-lisp
>  .(setq x (+ 4 x))
> #+end_src
>
> #+begin_src emacs-lisp :comments noweb :noweb yes :tangle yes
>  .(let ((x 1))
>  . .(message "x=%s" x)
>  . .<>
>  . .(message "x=%s" x))
> #+end_src
>
> which tangles out the following emacs-lisp
> #+begin_src emacs-lisp
>  .;; 
> [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20in%20comments][wrap-noweb-references-in-comments:2]]
>  .(let ((x 1))
>  . .(message "x=%s" x)
>  . .;; 
> [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20in%20comments][wrappable]]
>  . .(setq x (+ 4 x))
>  . .;; wrappable ends here
>  . .(message "x=%s" x))
>  .;; wrap-noweb-references-in-comments:2 ends here
> #+end_src
>
> Cheers -- Eric
> Cool! Does it yet support detangling? I tried it out and it said 
> i wasnt in a tangle code.

Your cursor must be on a code line, not on a special "comments" line. I've had
the same behavior once. Just move down your cursor one or two lines away...

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: Worg needs some reorganizing

2011-01-17 Thread Jason Dunsmore
Achim Gratz  writes:

> Jason Dunsmore  writes:
>> I made several unit changes from px to em, removed the line-height
>> property, and removed Georgia as the default font:
>
> Well actually, relative font sizing works would be 'larger' and
> 'smaller', which would take into account what fonts are actually
> available.  Specifying the fonts with percentages or em often ends up at
> a font size that is not available and must be scaled, which can look
> really bad.  But before I make a mess by trying to explain it, search
> for:
>
> css relative font sizes -w3schools
>
> I actually don't assign sizes in my own CSS and rely on the default
> sizes the browser delivers.  That may be too chancy for you since the
> defaults are bad in several older browsers, but it works well enough
> with all the modern ones.
>
>> In h2, h3, and h4, removing Arial as the font-family and letting the
>> browser use the default sans font looked ugly.  Is there a more
>> general way to specify an Arial-like font?
>
> Sans-serif uses whatever the user has specified to be used for this
> font.  To me, Arial looks ugly and I'm using a different font there;
> I've also replaced serif with the same font because I've yet to find a
> website that actually reads better with a serif font.  Finally, I've
> also locked my fonts so I don't get overruled by some webdesigners idea
> of "nice-looking" and "readable" (which may well be true on their
> computer).  :-)
>
> BTW, "sans" is not a generic font family and might actually return a
> (pixel?) font installed on the system.  Last but not least, font
> families should be quoted and generic families not, e.g.:
>
> font: "Georgia", sans-serif;
> font-size: medium; /* absolute specification decided by UA, user preference */

Hi Achim,

I've taken all of your advice to heart and created this improved CSS
file:

http://orgmode.org/tmp/worg-improved.css

:) Joking aside, please send me a patch or CSS file with your
suggestions implemented.

Regards,
Jason

___
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] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Achim Gratz
Sébastien Vauban 
writes:
> The above, from which I even removed the accentuated characters (from French),
> still does not work...

That's strange.

> Now, I can imagine it is due to Cygwin, not to Emacs/Org/Babel. Though, that's
> a problem in general for the use of sh blocks from Org... under Windows, then.

I can try tomorrow, I won't start the Windows box today...

> Or maybe using a real file as temporary storage?  Overkill, or simply needed?

Temporary files should work from emacs, but on Windows it is somewhat
troublesome to reliably get rid of them when they're no longer needed.


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

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds


___
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] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Sébastien Vauban
Eric,

"Eric Schulte" wrote:
> if you execute the previewed code block as an independent shell script
> on your machine does it throw errors or does it echo correctly?

On this one: the behavior seen from Org Babel is the same as the one seen when
saving the previewed script as an executable file and launching it from Bash.
No diff.

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: Worg needs some reorganizing

2011-01-17 Thread Achim Gratz
Jason Dunsmore  writes:
> I've taken all of your advice to heart and created this improved CSS
> file:
>
> http://orgmode.org/tmp/worg-improved.css
>
> :) Joking aside, please send me a patch or CSS file with your
> suggestions implemented.

I will take a look tomorrow, can't promise to do a patch right away, but
I'll try to make it soon-ish.  The new CSS files are not on the Worg.git
yet, or are they?


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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves


___
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] Hyperlink to a string in an external text file

2011-01-17 Thread Steve Hafner
On Mon, Jan 17, 2011 at 3:36 PM, Samuel Wales  wrote:
> A good way to determin this is using capture from the file you want
> and look at the link it creates.
>
> --
> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
> I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
> ===
> I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV 
> paper.
>

I assume you are referring to org-store-link, and yes this is helpful.

___
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] Preserve trailing blank lines

2011-01-17 Thread Bastien
Jason Dunsmore  writes:

> I now understand this is a formatting convention issue.  

I'm trying to figure out when this patch is useful.  I understand this
is when `org-blank-before-new-entry' doesn't set heading to t or auto, 
but I don't understand what it the difference the patch introduces then.

Could you send a _visual_ example, with useless empty lines that you
want to get rid off when org-metaup etc ?

Thanks!

-- 
 Bastien

___
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: Worg needs some reorganizing

2011-01-17 Thread Eric Schulte
Achim Gratz  writes:

> Jason Dunsmore  writes:
>> I've taken all of your advice to heart and created this improved CSS
>> file:
>>
>> http://orgmode.org/tmp/worg-improved.css
>>
>> :) Joking aside, please send me a patch or CSS file with your
>> suggestions implemented.
>
> I will take a look tomorrow, can't promise to do a patch right away, but
> I'll try to make it soon-ish.  The new CSS files are not on the Worg.git
> yet, or are they?
>

You can use the version attached to my recent email as your base

http://article.gmane.org/gmane.emacs.orgmode/36243

I think this has the latest of Jason's css file, with my TOC folded in.

Thanks -- Eric

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


Re: [Orgmode] Embedded code

2011-01-17 Thread Eric Schulte
Hi,

This is possible using Babel, the attached org-mode file will execute
its code block every time it is opened.  You can replace the contents of
the code block with any arbitrary elisp you would like to have executed
in the file.

To see this work, save the attached org-mode file to your system, open
the file, answer "y" to allow execution, and then check your messages
buffer for the "I have been run" message to see that the code block has
in fact been evaluated.

Best -- Eric

# -*- eval: (org-babel-execute-buffer) -*-
#+Title: Evaluates code on startup

* contents
* COMMENT statup code
#+begin_src emacs-lisp :results silent
  (message "I have been run")
#+end_src

Ido Magal  writes:

> Hello,
>
> Is it possible to put a block of code in a document such that it gets
> evaluated when the document is opened?  For example, I'd like to have
> a link-back section in each note.
>
> I'm aware of babel but I neither understand how to make it auto-evaluate on
> open nor do i know if
> making it compact ( and avoid having code and result blocks ) is possible.
>  I see examples where it's used for export but haven't seen one for general
> org usage.
>
> Thanks in advance.
> ___
> 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


[Accepted] [Orgmode] How do I include text between a range of line numbers with #INCLUDE

2011-01-17 Thread Bastien Guerry
Patch 529 (http://patchwork.newartisans.com/patch/529/) is now "Accepted".

Maintainer comment: Added some cosmetic changes and a small rewrite of the doc

This relates to the following submission:

http://mid.gmane.org/%3CAANLkTi%3DEBSvP9ukR5LRJQxBk%2BDaBHK4vyM0pvdr%3D9-JR%40mail.gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] How do I include text between a range of line numbers with
>   #INCLUDE
> Date: Sun, 09 Jan 2011 00:28:01 -
> From: Puneeth Chaganti 
> X-Patchwork-Id: 529
> Message-Id: 
> To: Carsten Dominik 
> Cc: Venkatesh Choppella , 
> emacs-orgmode@gnu.org
> 
> Hi Carsten,
> 
> On Sat, Jan 8, 2011 at 11:35 PM, Carsten Dominik
>  wrote:
> > Hi Puneeth,
> >
> > can cou please augment the patch with a propert ChangeLog-like entry, and
> > with documentation for the manual, and then resubmit?
> 
> Here is a patch with a ChangeLog entry and documentation for the
> manual. Please tell me if it looks OK. Also, I hope using
> git-format-patch is the right way to send this page. If not, what is
> the right way?
> 
> Thanks,
> Puneeth
> 
> 
> >From 4a9be5b1a7a19c5d092ed14a86d29ad83122e9a8 Mon Sep 17 00:00:00 2001
> From: Puneeth Chaganti 
> Date: Sun, 9 Jan 2011 00:48:51 +0530
> Subject: [PATCH] Include only specified range of line numbers of a file
> 
> * doc/org.texi (Include files): Document :lines.
> * lisp/org-exp.el (org-export-handle-include-files): Support :lines
> property.
> (org-get-file-contents): New argument lines to include specify a range
> of lines to include.
> 
> On Fri, Jan 7, 2011 at 1:29 PM, Puneeth  wrote:
> > On Fri, Jan 7, 2011 at 10:03 AM, Venkatesh Choppella
> >  wrote:
> >> I would like to include a part of a file (between a given range of
> >> line numbers) instead of the whole file.  Is there a way to do that
> >> in org-mode?
> >
> > It isn't possible to include files using line numbers, as of now.
> > Here's a quick patch that would add this feature.  I have tested it
> > with small files and works fine. Can somebody tell me if it looks
> > good?
> >
> > :lines "5-10"  will include the lines from 5 to 10, 10 excluded.
> > :lines "-10"  will include the lines from 1 to 10, 10 excluded.
> > :lines "5-"  will include the lines from 1 to the end of the file.
> >
> > HTH,
> > Puneeth
> ---
>  doc/org.texi|   11 +++
>  lisp/org-exp.el |   24 
>  2 files changed, 31 insertions(+), 4 deletions(-)
> 
> diff --git a/doc/org.texi b/doc/org.texi
> index e83909d..62f90e9 100644
> --- a/doc/org.texi
> +++ b/doc/org.texi
> @@ -8891,6 +8891,17 @@ use
>  #+INCLUDE: "~/snippets/xx" :prefix1 "   + " :prefix " "
>  @end example
>  
> +You can also include a portion of a file, by specifying a range of line
> +numbers using the @code{:lines} parameter.  The line with the line number
> +equal to the end of the range, will not be included.  The start or/and the
> +end limits of the range, may be omitted to use the obvious defaults.
> +
> +@example
> +#+INCLUDE: "~/.emacs" :lines "5-10"   @r{Include lines 5 to 10, 10 excluded}
> +#+INCLUDE: "~/.emacs" :lines "-10"@r{Include lines 1 to 10, 10 excluded}
> +#+INCLUDE: "~/.emacs" :lines "10-"@r{Include lines from 10 to EOF}
> +@end example
> +
>  @table @kbd
>  @kindex C-c '
>  @item C-c '
> diff --git a/lisp/org-exp.el b/lisp/org-exp.el
> index 3d466fa..ea81386 100644
> --- a/lisp/org-exp.el
> +++ b/lisp/org-exp.el
> @@ -2130,13 +2130,14 @@ TYPE must be a string, any of:
>  (defun org-export-handle-include-files ()
>"Include the contents of include files, with proper formatting."
>(let ((case-fold-search t)
> - params file markup lang start end prefix prefix1 switches all minlevel)
> + params file markup lang start end prefix prefix1 switches all minlevel 
> lines)
>  (goto-char (point-min))
>  (while (re-search-forward "^#\\+INCLUDE:?[ \t]+\\(.*\\)" nil t)
>(setq params (read (concat "(" (match-string 1) ")"))
>   prefix (org-get-and-remove-property 'params :prefix)
>   prefix1 (org-get-and-remove-property 'params :prefix1)
>   minlevel (org-get-and-remove-property 'params :minlevel)
> + lines (org-get-and-remove-property 'params :lines)
>   file (org-symname-or-string (pop params))
>   markup (org-symname-or-string (pop params))
>   lang (and (member markup '("src" "SRC"))
> @@ -2159,7 +2160,7 @@ TYPE must be a string, any of:
> end  (format "#+end_%s" markup
>   (insert (or start ""))
>   (insert (org-get-file-contents (expand-file-name file)
> -prefix prefix1 markup minlevel))
> +prefix prefix1 markup minlevel lines))
>   (or (bolp) (newline))
>   (insert (or end ""
>  all))
> @@ -2176,15 +2177,30 @@ TYPE must be a string, any of:
>   (when intersecti

[Orgmode] Re: [PATCH] Add new option for ignoring past or future items in the global todo list

2011-01-17 Thread Paul Sexton
Matt Lundin  imapmail.org> writes:
[snip]

Thanks Matt! (And it was mostly your idea.)
Paul



___
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] How do I include text between a range of line numbers with #INCLUDE

2011-01-17 Thread Bastien
Hi Puneeth,

Puneeth  writes:

> Here is a patch with a ChangeLog entry and documentation for the
> manual. 

I applied it -- thanks for it!  

I added minor modifications to the code and the documentation.  
You can check them from http://orgmode.org/w/org-mode.git

> Please tell me if it looks OK. Also, I hope using
> git-format-patch is the right way to send this page. If not, what is
> the right way?

It is *one* of the right way.  

For those patches -- as produced with git format-patch and attached to
emails -- I should apply them directly, not using pw (my bad I used pw
this time).

Some people send patches using git send-mail:

  http://www.kernel.org/pub/software/scm/git/docs/git-send-email.html

This way I can safely use pw: the commit summary will be the subject
line, and the commit message will be the ChangeLog entry (that you had
right btw.)

Thanks for your contribution and your efforts!

Best,

-- 
 Bastien

___
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] Stable key assignment for org-fast-tag-selection

2011-01-17 Thread Bastien
Hi Jason,

emacs-orgm...@dunsmor.com writes:

> - Eval (setq org-use-fast-tag-selection t)
> - Eval (setq org-fast-tag-selection-single-key "expert")
> - Create a heading with tags :a1:a2:
> - Create another heading with tags :a1:a2:
> - Type "C-c a", "C-c a", "C-c a", "C-c a"
> - Notice how it changes from a1 to a2

I reproduced this, well spotted.

> Below is a patch to make the character assignment stable, given that all
> of the same tags exist in the file each time it's run.

Thanks for the patch!

I was not able to apply it using the pw utility, so I made the change
myself -- I forgot to do a "git commit --amend --author" tho, sorry!

-- 
 Bastien

___
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: Worg needs some reorganizing

2011-01-17 Thread Matt Lundin
Bastien  writes:

> Jason Dunsmore  writes:
>
>> Option 1: http://orgmode.org/tmp/worg-jason/
>> Option 2: http://orgmode.org/tmp/worg-eric/
>> Option 3: http://orgmode.org/tmp/worg-eric2/
>
> Wow!  I love this.  My preference goes to Jason's version: both plain
> simple and colorful.  I also love Eric's expandable table of contents:
> the one we have for now often clutters the page too much...

Thanks so much, Jason and Eric, for taking the time to put these
stylesheets together! IMO, shifting the "weight" of the page to the
left, as both stylesheets do, makes the pages more and the hierarchical
structure of the org source clearer.

>> How should we move forward with this?  Take a vote?
>
> Matt's call :)
>
> My suggestion would be to go with Jason's css (combined with Eric's
> expandable table of contents) then have Eric's css and the old-worg 
> css available as alternative css.

I like Jason's stylesheet, and have a couple of observations:

1) h3 headers are indented, but the text beneath them is not.
   - See 
http://orgmode.org/tmp/worg-jason/org-tutorials/org-custom-agenda-commands.html#sec-2_1
2) h1 is a little bit off center, perhaps because of the org-mode logo?

I very much like Eric's hidden table of contents. I think it makes it
much easier to get right into the material and avoids some of the
formatting problems associated with a float. 

An aside: I noticed that both stylesheets contain a lot of instructions
that seem to have been created by htmlize.el:

 - Are these automatically generated? If so, might I ask how?

 - Some of the instructions seem superfluous outside of emacs (e.g.,
   flyspell faces). Should the css be trimmed to include only items that
   will be displayed in html?

Thanks again!
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] Re: Worg needs some reorganizing

2011-01-17 Thread Eric Schulte
> 
> An aside: I noticed that both stylesheets contain a lot of instructions
> that seem to have been created by htmlize.el:
>

That is certainly true of the sheets I submitted, although all of the
htmlize generated css is contained in the separate emacs.css and
zenburn-emacs.css sheets imported by the main sheets.

>
>  - Are these automatically generated? If so, might I ask how?
>

Yes, by calling the `org-export-htmlize-generate-css' function.

>
>  - Some of the instructions seem superfluous outside of emacs (e.g.,
>flyspell faces). Should the css be trimmed to include only items that
>will be displayed in html?
>

Agreed, once a final version of the stylesheet is compiled I'll be happy
to scan through the htmlize css and remove such superfluous faces.

Cheers -- Eric

>
> Thanks again!
> 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] Re: Worg needs some reorganizing

2011-01-17 Thread Jeff Horn
Jason seems to be garnering a lot of votes, but Eric's zenburn
emulation makes my eyes happy. If Jason wins out, I suppose I could
always just read Worg in emacs... :D

On Mon, Jan 17, 2011 at 8:34 PM, Matt Lundin  wrote:
> Bastien  writes:
>
>> Jason Dunsmore  writes:
>>
>>> Option 1: http://orgmode.org/tmp/worg-jason/
>>> Option 2: http://orgmode.org/tmp/worg-eric/
>>> Option 3: http://orgmode.org/tmp/worg-eric2/
>>
>> Wow!  I love this.  My preference goes to Jason's version: both plain
>> simple and colorful.  I also love Eric's expandable table of contents:
>> the one we have for now often clutters the page too much...
>
> Thanks so much, Jason and Eric, for taking the time to put these
> stylesheets together! IMO, shifting the "weight" of the page to the
> left, as both stylesheets do, makes the pages more and the hierarchical
> structure of the org source clearer.
>
>>> How should we move forward with this?  Take a vote?
>>
>> Matt's call :)
>>
>> My suggestion would be to go with Jason's css (combined with Eric's
>> expandable table of contents) then have Eric's css and the old-worg
>> css available as alternative css.
>
> I like Jason's stylesheet, and have a couple of observations:
>
> 1) h3 headers are indented, but the text beneath them is not.
>   - See 
> http://orgmode.org/tmp/worg-jason/org-tutorials/org-custom-agenda-commands.html#sec-2_1
> 2) h1 is a little bit off center, perhaps because of the org-mode logo?
>
> I very much like Eric's hidden table of contents. I think it makes it
> much easier to get right into the material and avoids some of the
> formatting problems associated with a float.
>
> An aside: I noticed that both stylesheets contain a lot of instructions
> that seem to have been created by htmlize.el:
>
>  - Are these automatically generated? If so, might I ask how?
>
>  - Some of the instructions seem superfluous outside of emacs (e.g.,
>   flyspell faces). Should the css be trimmed to include only items that
>   will be displayed in html?
>
> Thanks again!
> 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
>



-- 
Jeffrey Horn
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][PATCH] How do I include text between a range of line numbers with #INCLUDE

2011-01-17 Thread Puneeth Chaganti
Hi Bastien

On Tue, Jan 18, 2011 at 6:18 AM, Bastien  wrote:
> Hi Puneeth,
>
> Puneeth  writes:
>
>> Here is a patch with a ChangeLog entry and documentation for the
>> manual.
>
> I applied it -- thanks for it!

Great! Thanks!

>
> I added minor modifications to the code and the documentation.
> You can check them from http://orgmode.org/w/org-mode.git

I have seen them. Thanks for the clean up! :)

>> Please tell me if it looks OK. Also, I hope using
>> git-format-patch is the right way to send this page. If not, what is
>> the right way?
>
> It is *one* of the right way.
>
> For those patches -- as produced with git format-patch and attached to
> emails -- I should apply them directly, not using pw (my bad I used pw
> this time).
>
> Some people send patches using git send-mail:
>
>  http://www.kernel.org/pub/software/scm/git/docs/git-send-email.html
>
> This way I can safely use pw: the commit summary will be the subject
> line, and the commit message will be the ChangeLog entry (that you had
> right btw.)

Ok. Will look into that.

--
Puneeth

___
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] Blogging from org-mode

2011-01-17 Thread Samuel Wales
OK, weblogger seems like it might be worth trying to integrate (not
that the Atom idea is bad -- that also is interesting).

A little disturbing about this
http://lists.nongnu.org/archive/html/emacsweblogs/2010-03/msg00044.html
but I am conservative about bugs.

On 2011-01-17, Erik Iverson  wrote:
> Hello,
>
> On 01/17/2011 03:02 PM, Samuel Wales wrote:
>> On 2011-01-17, Erik Iverson  wrote:
>>> I also simply use weblogger.el
>>> (http://www.emacswiki.org/emacs/WebloggerMode)
>>
>> I made the mistake of trying this, thinking it had no dependencies
>> other than the other .el file so would be easier.  It looks
>> potentially useful.
>>
>> I looked at 2 versions of this, and both had the same version number,
>> but the code was different.  That's a slightly bad sign.
>>
>>http://launchpadlibrarian.net/40758914/weblogger.el
>>
>> http://windows-config.googlecode.com/svn/trunk/.emacs_d/weblogger/weblogger.el
>>
>> Also, there is a compiler warning for obsolete variable, so the code
>> might be old?
>>
>> Finally, I couldn't figure out the basics.  Just to confirm, this
>> takes HTML and posts it?  It does not make this clear.
>
> Yes, you can set up a blog by first doing:
>
>  M-x weblogger-setup-weblog RET
>
> But there were some quirks when I tried this with Drupal 6. I think I had to
> have at least one post already in the blog before it worked. But after that,
> I
> was able to weblogger with the function defined in the link below to post to
> Drupal.
>
>
>>> combined with a really easy function defined at
>>> http://www.randomsample.de/dru5/node/77 to post to blogs including
>>> Drupal.
>>
>> What does your really easy function do that weblogger.el does not do?
>
> Weblogger just sends the HTML to the blog, and lets you edit existing
> entries.
> It does not produce the actual HTML.
>
> The function from randomsample.de exports an Org-mode buffer to HTML and
> "massages" the HTML output to be of a form that blogs like. I.e., gets rid
> of
> the headers.  Weblogger has nothing to do with org-mode per se, it just lets
> you
> post content to blogs that support XMLRPC.
>
> That's about as far as my knowledge goes, so I hope it helps. This method
> isn't
> completely clean, but it did work for me with Drupal 6 (but haven't gotten
> it to
> work yet in Drupal 7...)
>
> As usual, there's more than a few ways to do things, so the more options the
> better in my opinion.
>


-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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: [Worg] some issues

2011-01-17 Thread Matt Lundin
Hi Achim,

Achim Gratz  writes:

> Matt Lundin  writes:
> [...]
>
> Bastien mentioned requesting push access to Worg from you...  I've
> actually created an SSH key on repo.or.cz for this a while back (but
> never requested push access to Worg), how does this work on the new
> Worg?  I keep this question on the orgmode list since the answer will
> probably be of interest to other would-be-Worgers.

If you've already created an ssh key on repo.or.cz, then all you need to
do is email me your user name and I'll grant push access.

As Bastien noted, the repo is still stored on repo.or.cz, so the process
of granting push access has not changed.

Best,
Matt

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


[Orgmode] Re: [babel] Sh problem when echo'ing input data with ' inside

2011-01-17 Thread Sébastien Vauban
Hi Achim,

Achim Gratz wrote:
> Sébastien Vauban  writes:
>> The above, from which I even removed the accentuated characters (from 
>> French),
>> still does not work...
>
> That's strange.
>
>> Now, I can imagine it is due to Cygwin, not to Emacs/Org/Babel. Though, 
>> that's
>> a problem in general for the use of sh blocks from Org... under Windows, 
>> then.
>
> I can try tomorrow, I won't start the Windows box today...

Thanks for trying.

Best regards,
  Seb

-- 
Sébastien Vauban


___
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