Re: [Orgmode] Bug: Agenda's `Goto Today' doesn't in Day view [7.4]

2011-01-18 Thread peter . frings

On 14 Jan 2011, at 13:30, Carsten Dominik wrote:

 On Jan 2, 2011, at 5:23 PM, David Maus wrote:
 
 At Thu, 23 Dec 2010 09:21:56 +0100,
 peter.fri...@agfa.com wrote:
 
 'Goto Today' seems to go to the first day of the week instead of the
 current day when the agenda is in Day view.
 
  Is this still a problem?  I don't seem to be able to reproduce this problem.


Julien Danjou's patch 544 for the 'jumping to a date' problem indeed fixes this 
problem as well.


[1] http://patchwork.newartisans.com/patch/544/

Thanks,
Peter.
___
Emacs-orgmode 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-18 Thread Bastien
Jeff Horn jrhorn...@gmail.com writes:

 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

Or use Eric zenburn-like css by selecting it as an alternative
stylesheet in Firefox : View - Page Style - [select stylesheet].

I don't know how to make this choice persistent from Firefox and I 
don't know if this feature is available for other browsers, but it
is certainly worth having several stylesheet available.

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] Bug: Agenda's `Goto Today' doesn't in Day view [7.4]

2011-01-18 Thread Bastien
Hi Peter,

peter.fri...@agfa.com writes:

  Is this still a problem?  I don't seem to be able to reproduce this problem.

 Julien Danjou's patch 544 for the 'jumping to a date' problem indeed
 fixes this problem as well.

Yes, I tested and applied this patch, it's in the latest version now.

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] Embedded code

2011-01-18 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/18/2011 12:48 AM, Eric Schulte wrote:
 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.

This is indeed very useful (e.g. if I open an R script, to open an R
session and source the file).

But it seems that all code blocks are evaluated on loading. Is there a
way of only executing a specific code block?

Cheers,

Rainer
 
 Best -- Eric
 
 
 
 
 
 Ido Magal i...@idomagal.com 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


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk01VKwACgkQoYgNqgF2egqGpQCfV+cIwibbFNGENpeem101fxy2
DQkAnRx825iX2QP/B9wl/M5xYa61yqQV
=1BSa
-END 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] [bug] Must declare value as string in org-agenda-custom-commands easy customize interface

2011-01-18 Thread Bastien
Hi Jeff,

Jeff Horn jrhorn...@gmail.com writes:

 On Sun, Jan 16, 2011 at 5:43 AM, David Maus dm...@ictsoc.de wrote:
 From my understanding this is correct.  The dialog allows you to set
 an arbitrary symbol to an arbitrary value, i.e. not limited to another
 symbol (e.g. 'all).  Thus a sexp is required and the single quote in
 front of the symbol all is the short hand notation of (quote all).

 Thanks for your reply, David. 

Yes, David is right, in the case demonstrated by your screenshot, the
customize interface asks for the sexp 'all -- not just all, since
the value of the variable is indeed 'all -- not all :) 

 If this is the case, shouldn't this be a
 dropdown menu with sexp as an option for entering your own symbols?

I'm not sure what you mean.

Defining local settings lets you pick up a local setting from a list
(defined in org-agenda-custom-commands-local-options).  When selecting
the last choice Any variable, it lets you define a variable that is
*not* in this list (there are so many of them available!)  -- such a 
variable asks for a sexp.

 It's just a minor gripe, and one for which I would submit a patch if I
 knew enough elisp.

Maybe I misunderstood what you ask...  please rephrase if necessary :)

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] Produce a pdf outline using the latex outline package of the notes in org file

2011-01-18 Thread Bastien
Hi Julius,

Julius Gamanyi julius...@gmail.com writes:

 On and off reader and first time poster.

Welcome on the list!

 I previously used the latex outline package and added a few
 modifications to get the output I liked. I added the changes to an old
 stable version of org-mode (org-6.33f), which worked nicely.
 The code is on github: https://github.com/juliusgb/emacs-org-tex-outline

 I'd like to add the changes to the current development version. 

Please send a patch to the development version with the change you
propose, many people follow the development version and will be happy 
to test your code.

 Another question: must all the contributions be stored in the contrib
 directory?

Only useful ones.  

 I added the org-latex-outline.el in the lisp directory because all the
 other output formats, which depended on org-exp.el, org-install.el were
 in the lisp directory. The org-latex-outline.el also depends on
 org-latex.el and I wanted to avoid the sorrow of parting them.

We can have contributions in contrib/ that depend on code in lisp/,
requiring core librairies from the contributed package is standard
practice - even for exporters (see contrib/lisp/org2rem.el).

 Maybe there's a better setup that I can use. I'm all ears.

Please let us know about your code!  

 In addition, I've already signed the appropriate papers with FSF.

Which will certainly ease things.

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


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

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

Sébastien Vauban wrote:
 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)?

I asked the question on the Cygwin mailing list, and got an answer from Tobias
Schlottke, telling me to use the 'plain old' syntax (=`...`= instead of
=$(...)=):

#+begin_src sh
data=`cat EOF
...
EOF
`
echo $data
#+end_src

and... it indeed works!

Can we move to that syntax?

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-18 Thread Bastien
Thanks all for the work on worg.css -- I'm excited to see this happen!

I'm putting Sebastian explicitely into the loop: I remember Sebastian
worked on org.css (and maybe worg.css?) to make sure the spacing between
HTML headings was okay for folding/unfolding through org-info-js.  Maybe
this is something that should be taken care of with the new worg.css.

Cheers,

-- 
 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] org-agenda-show-current-time-in-grid and automatic refresh

2011-01-18 Thread Carsten Dominik

Hi,

I believe this is superseded by the hack in org-hacks.org, so I have  
marked this patch off on the patchwork server.


- Carsten

On Jan 12, 2011, at 8:19 AM, Suvayu Ali wrote:


Hi Kiwon,

On Wed, 12 Jan 2011 12:23:48 +0900
Kiwon Um um.ki...@gmail.com wrote:


Dear org users,

The recent function for showing current time in agenda view is quite
cool. I have a question about it. When the agenda view is being  
shown,
is there any way to refresh it automatically so that makes the  
current

time line always recent?



I have thought about that, I even worked up a small minor mode for  
that

(attached). But it doesn't seem to work very well. It updates only the
first time but fails subsequently. I am still a lisp newbie. If  
someone

could guide me, I could give it another try.

Right now it only updates if any of the agenda file buffers change  
but I
would also like to put a timer. Then if no agenda files have been  
edited

in a while (say 5 mins) the agenda buffer is refreshed anyway. But I
don't know how to do that. Any suggestions would be welcome.


Thanks.



Thanks


--
Kiwon Um


--
Suvayu

Open source is the future. It sets us free.
0001-Implement-org-agenda-refresh-mode-minor- 
mode.patch___

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

2011-01-18 Thread Julien Danjou
On Tue, Jan 18 2011, Carsten Dominik wrote:

 Otherwise, if would continue to use whatever value you set with your
 latest view change and keep this until you change it again.


 So what was your issue with this part?

My issue is that I use a default value of 14 days (you know I'm weird).
If I change the current span by pressing `d', `w', `m', I've only one
way to go back to my default 14 days view: close the agenda and reopen
it.


[…]

 So there you have your command to go back to the default
 span.

Yes, but:

 If you think we do need an extra command for this, you
 could do that under the v dispatcher in the agenda.
 Maybe v SPACE?

This is exactly what I meant! :-)
I'd like to not to have to do `C-a a' once again to reset my view.

Here's a patch for that.
From f48b89a683f9ff36d164b20c1df44ca6e6aefd7e Mon Sep 17 00:00:00 2001
From: Julien Danjou jul...@danjou.info
Date: Tue, 18 Jan 2011 10:59:13 +0100
Subject: [PATCH] org-agenda: add a binding to reset the view

* org-agenda.el (org-agenda-reset-view): New function.
(org-agenda-view-mode-dispatch): Bind space to org-agenda-reset-view.

Signed-off-by: Julien Danjou jul...@danjou.info
---
 lisp/org-agenda.el |7 ++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 241ed30..138165f 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6157,11 +6157,12 @@ With prefix ARG, go backward that many times the current span.
 (defun org-agenda-view-mode-dispatch ()
   Call one of the view mode commands.
   (interactive)
-  (message View: [d]ay [w]eek [m]onth [y]ear [q]uit/abort
+  (message View: [d]ay [w]eek [m]onth [y]ear[space]reset[q]uit/abort
   time[G]rid [[]inactive [f]ollow [l]og [L]og-all   [E]ntryText
   [a]rch-trees   [A]rch-filesclock[R]eport   include[D]iary)
   (let ((a (read-char-exclusive)))
 (case a
+  (?  (call-interactively 'org-agenda-reset-view))
   (?d (call-interactively 'org-agenda-day-view))
   (?w (call-interactively 'org-agenda-week-view))
   (?m (call-interactively 'org-agenda-month-view))
@@ -6183,6 +6184,10 @@ With prefix ARG, go backward that many times the current span.
   (?q (message Abort))
   (otherwise (error Invalid key )
 
+(defun org-agenda-reset-view ()
+  Switch to default view for agenda.
+  (interactive)
+  (org-agenda-change-time-span (or org-agenda-ndays org-agenda-span)))
 (defun org-agenda-day-view (optional day-of-year)
   Switch to daily view for agenda.
 With argument DAY-OF-YEAR, switch to that day of the year.
-- 
1.7.2.3


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


pgpf4Fbko23Vy.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-18 Thread Carsten Dominik


On Jan 18, 2011, at 11:00 AM, Julien Danjou wrote:


On Tue, Jan 18 2011, Carsten Dominik wrote:


Otherwise, if would continue to use whatever value you set with your
latest view change and keep this until you change it again.


So what was your issue with this part?


My issue is that I use a default value of 14 days (you know I'm  
weird).

If I change the current span by pressing `d', `w', `m', I've only one
way to go back to my default 14 days view: close the agenda and reopen
it.


[…]


So there you have your command to go back to the default
span.


Yes, but:


If you think we do need an extra command for this, you
could do that under the v dispatcher in the agenda.
Maybe v SPACE?


This is exactly what I meant! :-)
I'd like to not to have to do `C-a a' once again to reset my view.

Here's a patch for that.


I applied the patch, with minor modifications and added documentation.
Thanks.

- Carsten


From f48b89a683f9ff36d164b20c1df44ca6e6aefd7e Mon Sep 17 00:00:00 2001
From: Julien Danjou jul...@danjou.info
Date: Tue, 18 Jan 2011 10:59:13 +0100
Subject: [PATCH] org-agenda: add a binding to reset the view

* org-agenda.el (org-agenda-reset-view): New function.
(org-agenda-view-mode-dispatch): Bind space to org-agenda-reset-view.

Signed-off-by: Julien Danjou jul...@danjou.info
---
lisp/org-agenda.el |7 ++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 241ed30..138165f 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6157,11 +6157,12 @@ With prefix ARG, go backward that many times  
the current span.

(defun org-agenda-view-mode-dispatch ()
  Call one of the view mode commands.
  (interactive)
-  (message View: [d]ay [w]eek [m]onth  
[y]ear [q]uit/abort
+  (message View: [d]ay [w]eek [m]onth [y]ear[space]reset 
[q]uit/abort
  time[G]rid [[]inactive [f]ollow [l]og [L]og-all
[E]ntryText

  [a]rch-trees   [A]rch-filesclock[R]eport   include[D]iary)
  (let ((a (read-char-exclusive)))
(case a
+  (?  (call-interactively 'org-agenda-reset-view))
  (?d (call-interactively 'org-agenda-day-view))
  (?w (call-interactively 'org-agenda-week-view))
  (?m (call-interactively 'org-agenda-month-view))
@@ -6183,6 +6184,10 @@ With prefix ARG, go backward that many times  
the current span.

  (?q (message Abort))
  (otherwise (error Invalid key )

+(defun org-agenda-reset-view ()
+  Switch to default view for agenda.
+  (interactive)
+  (org-agenda-change-time-span (or org-agenda-ndays org-agenda- 
span)))

(defun org-agenda-day-view (optional day-of-year)
  Switch to daily view for agenda.
With argument DAY-OF-YEAR, switch to that day of the year.
--
1.7.2.3


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


- 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] Produce a pdf outline using the latex outline package of the notes in org file

2011-01-18 Thread Julius Gamanyi
Hi Bastien,

Lately, it's been hectic at work. I'm hoping to get some free time in the
next 2 days to send the patches.

Thanks,

Julius


On 18 January 2011 09:17, Bastien bastien.gue...@wikimedia.fr wrote:

 Hi Julius,

 Julius Gamanyi julius...@gmail.com writes:

  On and off reader and first time poster.

 Welcome on the list!

  I previously used the latex outline package and added a few
  modifications to get the output I liked. I added the changes to an old
  stable version of org-mode (org-6.33f), which worked nicely.
  The code is on github: https://github.com/juliusgb/emacs-org-tex-outline
 
  I'd like to add the changes to the current development version.

 Please send a patch to the development version with the change you
 propose, many people follow the development version and will be happy
 to test your code.

  Another question: must all the contributions be stored in the contrib
  directory?

 Only useful ones.

  I added the org-latex-outline.el in the lisp directory because all the
  other output formats, which depended on org-exp.el, org-install.el were
  in the lisp directory. The org-latex-outline.el also depends on
  org-latex.el and I wanted to avoid the sorrow of parting them.

 We can have contributions in contrib/ that depend on code in lisp/,
 requiring core librairies from the contributed package is standard
 practice - even for exporters (see contrib/lisp/org2rem.el).

  Maybe there's a better setup that I can use. I'm all ears.

 Please let us know about your code!

  In addition, I've already signed the appropriate papers with FSF.

 Which will certainly ease things.

 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


[Orgmode] Embedded code

2011-01-18 Thread Ido Magal
Hello,

Is it possible to put 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 separate code and result blocks ) is
possible.

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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-18 Thread Matt Lundin
Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 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

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

Could we perhaps go ahead and put the new stylesheets on Worg along with
alternate stylesheet links in the publishing preamble? That way we could
begin to tweak the stylesheets as a community and test them on the
fly. (It would also save Jason the work of having to publish to tmp
directories.) Others would then be free to add their own
stylesheets---though I suppose that adding alternate stylesheet links
will require access to the publishing options on the server.

Once we've decided on a default, we could then adjust the preamble
accordingly and clean up the alternates.

Best,
Matt

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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 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

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

There's a Firefox add-on that will give you configurable per-site user
CSS:
https://addons.mozilla.org/en-US/firefox/addon/stylish/

Looks like most browsers have a feature for this.

Opera:
http://my.opera.com/community/forums/topic.dml?id=109574

Chrome:
https://chrome.google.com/extensions/detail/fjnbnpbmkenffdnngjfgmeleoegfcffe
http://www.google.com/support/forum/p/Chrome/thread?tid=1fa0dd079dbdc2ffhl=en
http://code.google.com/p/chromium/issues/detail?id=2393

Safari:
http://hetima.com/safari/stand-e.html

And there's something in the CSS 2.1 spec about allowing users to attach
style sheets that I don't fully understand.
http://www.w3.org/TR/CSS21/

___
Emacs-orgmode 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] Info file org does not exist

2011-01-18 Thread Nathan Neff
Hello,

I apologize if this is a very simple question, but I'm using the
latest org-mode and
just switched to a Debian based distro.

I'm able to run make  sudo make install in the org-mode source directory, but
when I go to Emacs, I don't see the Org-mode documentation when I use C-h i.

When I run M-x org-info, I get the message Info file org does not exist.

I looked through the Makefile for org, and found several interesting targets:

install-info

and

install-info-debian

I installed the texinfo package, then tried running:

sudo make install-info

I get this message:
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments

I tried running:

sudo make install-info-debian

And I get the same message as above.

Any ideas?  I'm running Crunchbang Linux, which is Debian-based.

Thanks,
--Nate

___
Emacs-orgmode 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: Info file org does not exist

2011-01-18 Thread Nathan Neff
That's odd, so I ran make  sudo make install, then restarted emacs,
and now it can find the org-info.

Oh well -- I guess one of the steps below worked!  Issue resolved.

--Nate

On Tue, Jan 18, 2011 at 9:25 AM, Nathan Neff nathan.n...@gmail.com wrote:
 Hello,

 I apologize if this is a very simple question, but I'm using the
 latest org-mode and
 just switched to a Debian based distro.

 I'm able to run make  sudo make install in the org-mode source directory, 
 but
 when I go to Emacs, I don't see the Org-mode documentation when I use C-h i.

 When I run M-x org-info, I get the message Info file org does not exist.

 I looked through the Makefile for org, and found several interesting targets:

 install-info

 and

 install-info-debian

 I installed the texinfo package, then tried running:

 sudo make install-info

 I get this message:
 This is not dpkg install-info anymore, but GNU install-info
 See the man page for ginstall-info for command line arguments

 I tried running:

 sudo make install-info-debian

 And I get the same message as above.

 Any ideas?  I'm running Crunchbang Linux, which is Debian-based.

 Thanks,
 --Nate


___
Emacs-orgmode 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-18 Thread Jason Dunsmore
Matt Lundin m...@imapmail.org writes:

 Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 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

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

 Could we perhaps go ahead and put the new stylesheets on Worg along with
 alternate stylesheet links in the publishing preamble?

That's okay with me.  I just uploaded the latest stylesheet with Eric's
collapsed TOC integrated in:
http://orgmode.org/tmp/worg.css

You can see it in action at:
http://orgmode.org/tmp/worg/

___
Emacs-orgmode 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-18 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

 Thanks all for the work on worg.css -- I'm excited to see this happen!

 I'm putting Sebastian explicitely into the loop: I remember Sebastian
 worked on org.css (and maybe worg.css?) to make sure the spacing between
 HTML headings was okay for folding/unfolding through org-info-js.  Maybe
 this is something that should be taken care of with the new worg.css.

My starting point was the old worg.css file.  I noticed there was
excessive space between sections.  When I removed the following two
lines:

--8---cut here---start-8---
/* Add more spacing between section. Padding, so that folding with 
org-info.js works as expected. */
padding-bottom:2em;
--8---cut here---end---8---

It fixed the problem with excessive spacing.  Removing it didn't cause
an issue with the javascript-folded pages that I could see.

___
Emacs-orgmode 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-18 Thread Nick Dokos
Jason Dunsmore emacs-orgm...@dunsmor.com wrote:

 ...
 That's okay with me.  I just uploaded the latest stylesheet with Eric's
 collapsed TOC integrated in:
 http://orgmode.org/tmp/worg.css
 
 You can see it in action at:
 http://orgmode.org/tmp/worg/
 

I haven't been able to see Eric's TOC in action yet (w/Firefox 3.0.19 on
Ubuntu 8.10): I looked at the screenshots Eric posted, but I see nothing
in the upper RH corner. Are there any prerequisites? I'll try more
recent FF on more recent Ubuntu and perhaps some other browsers/distros
as well, but if anybody has any ideas, I'd appreciate them.

Thanks,
Nick

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


Re: [Orgmode] Info file org does not exist

2011-01-18 Thread Nick Dokos
Nathan Neff nathan.n...@gmail.com wrote:

 
 I apologize if this is a very simple question, but I'm using the
 latest org-mode and
 just switched to a Debian based distro.
 
 I'm able to run make  sudo make install in the org-mode source directory, 
 but
 when I go to Emacs, I don't see the Org-mode documentation when I use C-h i.
 
 When I run M-x org-info, I get the message Info file org does not exist.
 
 I looked through the Makefile for org, and found several interesting targets:
 
 install-info
 
 and
 
 install-info-debian
 
 I installed the texinfo package, then tried running:
 
 sudo make install-info
 
 I get this message:
 This is not dpkg install-info anymore, but GNU install-info
 See the man page for ginstall-info for command line arguments
 
 I tried running:
 
 sudo make install-info-debian
 
 And I get the same message as above.
 
 Any ideas?  I'm running Crunchbang Linux, which is Debian-based.
 

No ideas about the problem but I do have a solution that might work for you
and bypass most of the problems. I don't install org at all: I just add
the appropriate paths (/path/to/org/lisp and /path/to/org/contrib/lisp) to
load-path. Similarly, I don't install the info file: I just added the
appropriate path to INFOPATH (which is set in my .profile, which is sourced
by some gdm startup script, so its settings are valid by the time my emacs
is started - YMMV). In summary:

o Set in .profile:

  INFOPATH=/path/to/org/doc:$INFOPATH
  export INFOPATH

o In the org git directory, after every git pull:

  make info


HTH,
Nick


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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Nick Dokos nicholas.do...@hp.com writes:

 Jason Dunsmore emacs-orgm...@dunsmor.com wrote:

 ...
 That's okay with me.  I just uploaded the latest stylesheet with Eric's
 collapsed TOC integrated in:
 http://orgmode.org/tmp/worg.css
 
 You can see it in action at:
 http://orgmode.org/tmp/worg/
 

 I haven't been able to see Eric's TOC in action yet (w/Firefox 3.0.19 on
 Ubuntu 8.10): I looked at the screenshots Eric posted, but I see nothing
 in the upper RH corner. Are there any prerequisites? I'll try more
 recent FF on more recent Ubuntu and perhaps some other browsers/distros
 as well, but if anybody has any ideas, I'd appreciate them.

The front page doesn't have a TOC.  You can see it here:
http://orgmode.org/tmp/worg/org-dependencies.html

Hit C-S-r to reload without using the cache if you still don't see it.

___
Emacs-orgmode 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] Produce a pdf outline using the latex outline package of the notes in org file

2011-01-18 Thread Bastien
Hi Julius,

Julius Gamanyi julius...@gmail.com writes:

 Lately, it's been hectic at work. I'm hoping to get some free time in
 the next 2 days to send the patches.

Thanks for the feedback, take your time.

Good luck,

-- 
 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-18 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:

 I'm partial to the emacs.css bundled with my
 submission over the current code fontification, but that's just me.

I put your pre style in place:
http://orgmode.org/tmp/worg.css

___
Emacs-orgmode 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-18 Thread Nick Dokos
Jason Dunsmore emacs-orgm...@dunsmor.com wrote:


 The front page doesn't have a TOC.  You can see it here:
 http://orgmode.org/tmp/worg/org-dependencies.html
 

OK - I can see it on this page.

Thanks,
Nick

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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-18 Thread Eric Schulte

 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.


While we're fixing things, are there any objections to making the
publishing change recommended above?  It should significantly reduce the
size of pages which contain a large amount of source code, and will make
it easier to adjust the fontification inside of code blocks.

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

2011-01-18 Thread Eric Schulte
Matt Lundin m...@imapmail.org writes:

 Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 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

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

 Could we perhaps go ahead and put the new stylesheets on Worg along with
 alternate stylesheet links in the publishing preamble? That way we could
 begin to tweak the stylesheets as a community and test them on the
 fly. (It would also save Jason the work of having to publish to tmp
 directories.) Others would then be free to add their own
 stylesheets---though I suppose that adding alternate stylesheet links
 will require access to the publishing options on the server.

 Once we've decided on a default, we could then adjust the preamble
 accordingly and clean up the alternates.


This sounds like a great approach to me.  I'm convinced that there are
other Org-mode users with much more sophisticated knowledge of CSS who
may improve our initial efforts in time.

One other alternative that comes to mind--while we're making impositions
on Jason's kindness :)--is that it would be nice to have an alternate
version of Worg published side-by-side with the original, only instead
of publishing each page using org-publish-as-html, it could publish each
page using only htmlize.  That way we could show off how nice Org-mode
syntax can be when viewed from inside of Emacs, and users could see a
side-by-side between the plain-text and html versions.  An example of
this approach done successfully is Dan's Babel example at
http://www.stats.ox.ac.uk/~davison/software/org-babel/drift.org.html

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

2011-01-18 Thread Eric Schulte

 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.


Is there a consensus on removing Javascript folding from *all* pages on
Worg.  I think this would be an improvement both for the readability and
stylistic coherence of the site.

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-18 Thread Eric Schulte
Rainer M Krug r.m.k...@gmail.com writes:

 On 01/18/2011 12:48 AM, Eric Schulte wrote:
 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.

 This is indeed very useful (e.g. if I open an R script, to open an R
 session and source the file).

 But it seems that all code blocks are evaluated on loading. Is there a
 way of only executing a specific code block?


Yes, replace the 

# -*- eval: (org-babel-execute-buffer) -*-

with

# -*- eval: (save-excursion (org-babel-goto-named-src-block NAME) 
(org-babel-execute-src-block)) -*-

where NAME is replaced with the name of the code block to execute.

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

2011-01-18 Thread Eric Schulte

 I asked the question on the Cygwin mailing list, and got an answer from Tobias
 Schlottke, telling me to use the 'plain old' syntax (=`...`= instead of
 =$(...)=):

 #+begin_src sh
 data=`cat EOF
 ...
 EOF
 `
 echo $data
 #+end_src

 and... it indeed works!

 Can we move to that syntax?


I just made this customizable, after a git pull the following elisp code
will use that syntax on your system.

#+begin_src emacs-lisp
  (setq org-babel-sh-var-quote-fmt `cat 'BABEL_TABLE'\n%s\nBABEL_TABLE\n`)
#+end_src

Best -- Eric

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


Re: [Orgmode] Embedded code

2011-01-18 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/18/2011 05:16 PM, Eric Schulte wrote:
 Rainer M Krug r.m.k...@gmail.com writes:
 
 On 01/18/2011 12:48 AM, Eric Schulte wrote:
 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.

 This is indeed very useful (e.g. if I open an R script, to open an R
 session and source the file).

 But it seems that all code blocks are evaluated on loading. Is there a
 way of only executing a specific code block?

 
 Yes, replace the 
 
 # -*- eval: (org-babel-execute-buffer) -*-
 
 with
 
 # -*- eval: (save-excursion (org-babel-goto-named-src-block NAME) 
 (org-babel-execute-src-block)) -*-
 
 where NAME is replaced with the name of the code block to execute.

Thanks - sounds perfect.

Cheers,

Rainer

 
 Cheers -- Eric


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk01w4kACgkQoYgNqgF2egpHFACfaspSlVeXg9oQ6Dr5zJIsEN1z
zT0An2UoPkOi6GiQcmZfzKiFTbQgrCex
=eICm
-END 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: Worg needs some reorganizing

2011-01-18 Thread Jeff Horn
On Tue, Jan 18, 2011 at 3:39 AM, Bastien bastien.gue...@wikimedia.fr wrote:
 Jeff Horn jrhorn...@gmail.com writes:

 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

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

I've seen some sites with alternate style sheets built into the page.
Usually a drop down menu in the upper right corner of the page to
select and load a stylesheet.

I'm not sure how it is implemented, but I suspect it's javascript,
since the new stylesheet is loaded automatically, without a refresh,
when the user clicks it.

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


[Orgmode] Footnotes in table?

2011-01-18 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I have to add some footnotes in a table. I remember from LaTeX, that I
used a minipage for that, but don't get it to work in org.

Could somebody provide an example, how I can add the footnotes in a table?

The table is a longtable, and might have to be rescaled to fit on a page
or smaller font size used.

Thanks,

Rainer


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk01xQEACgkQoYgNqgF2egqv4ACeNxYG7QUm42/zA0J46eFIGfPG
RvEAnAuwqOrxPr4q7ObsWpBtxKBmzWmO
=J1Ve
-END 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: Worg needs some reorganizing

2011-01-18 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:


 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.


 Is there a consensus on removing Javascript folding from *all* pages on
 Worg.  I think this would be an improvement both for the readability and
 stylistic coherence of the site.

I am in favor of removing the javascript folding from all Worg pages.
It would improve the consistency and experience of browsing Worg.

___
Emacs-orgmode 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-18 Thread Jeff Horn
On Tue, Jan 18, 2011 at 11:13 AM, Eric Schulte schulte.e...@gmail.com wrote:
 Is there a consensus on removing Javascript folding from *all* pages on
 Worg.  I think this would be an improvement both for the readability and
 stylistic coherence of the site.

+1 from me. Also, is the custom worg search box well-liked (pressing
s on a page)? Why not just create a custom google search restricted
to the org subdirectory (I don't know if subdirectories are possible)
and add the search box on each page?

If you can't restrict to subdirectory, we could just point a CNAME
redirect from orgmode.org/worg/ to worg.orgmode.org and use a
google custom search for that subdomain.

Jeff

-- 
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] Embedded code

2011-01-18 Thread Ido Magal
Eric,

thanks.  This is great.

Couple of followups:

1. Is it possible to avoid the confirmations on every file load?
2. Is it possible to manipulate or reference the results so that they're not
bound to a RESULTS block.  I'm finding all of the blocks of orgmode
distracting and I'm trying to avoid and eliminate them as much as possible.
 I'm not used to it and they really impedes the readability of my notes.
 Ideally my notes would look something like this:

* note 1
* note 2

* Back-links to this note:
(backlinks-function)
* All notes tagged with /foo/
(tagged-with( foo ))
* All notes tagged with /bar/
(tagged-with( bar ))

Is this possible?

Thanks again.  Cheers.


On Tue, Jan 18, 2011 at 08:16, Eric Schulte schulte.e...@gmail.com wrote:

 Rainer M Krug r.m.k...@gmail.com writes:

  On 01/18/2011 12:48 AM, Eric Schulte wrote:
  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.
 
  This is indeed very useful (e.g. if I open an R script, to open an R
  session and source the file).
 
  But it seems that all code blocks are evaluated on loading. Is there a
  way of only executing a specific code block?
 

 Yes, replace the

 # -*- eval: (org-babel-execute-buffer) -*-

 with

 # -*- eval: (save-excursion (org-babel-goto-named-src-block NAME)
 (org-babel-execute-src-block)) -*-

 where NAME is replaced with the name of the code block to execute.

 Cheers -- Eric

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


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

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

Eric Schulte wrote:
 I asked the question on the Cygwin mailing list, and got an answer from 
 Tobias
 Schlottke, telling me to use the 'plain old' syntax (=`...`= instead of
 =$(...)=):

 #+begin_src sh
 data=`cat EOF
 ...
 EOF
 `
 echo $data
 #+end_src

 and... it indeed works!

 Can we move to that syntax?

 I just made this customizable, after a git pull the following elisp code
 will use that syntax on your system.

 #+begin_src emacs-lisp
   (setq org-babel-sh-var-quote-fmt `cat 'BABEL_TABLE'\n%s\nBABEL_TABLE\n`)
 #+end_src

That's, indeed, better than what I had in mind, as it now is customizable...
... and, of course, that does the trick!

Thanks a lot for your prompt fix.

BTW, I would, though, advice to make this the default, as it should be fully
functional under any Linux, and then would be directly usable by any user on
Windows/Cygwin, without having to wonder why sh code blocks don't work the way
they should.

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] org-add-link-type

2011-01-18 Thread Thomas S. Dye

Aloha Bastien,

Thanks for looking at this.  The problem isn't that the description is  
being protected from conversion, it is that it is there at all.  The  
link in the example lacks a description and the documentation says  
that in this case desc will be nil, so it was a surprise to find a  
value being passed instead.


In the example code (and desc) is supposed to evaluate false if the  
link lacks a description.  However, it never evaluates to false.


I'm using the following code now, which tests for both the documented  
and actual behavior when a description is absent from the link.


#+source: define-citet-link
#+begin_src emacs-lisp :results silent
  (org-add-link-type
   citet 'ebib
   (lambda (path desc format)
 (cond
  ((eq format 'latex)
   (if (or (not desc) (equal 0 (search citet: desc)))
 (format \\citet{%s} path)
 (format \\citet[%s]{%s} desc path)
)
#+end_src

All the best,
Tom


On Jan 17, 2011, at 8:35 AM, Bastien wrote:


Hi Thomas,

Thomas S. Dye t...@tsdye.com 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: [babel] Painless integration of source blocks with language

2011-01-18 Thread Seth Burleigh
 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...


 Are you saying you have succesfully detangled noweb embedded code? If so,
ill have to take a look at the code to see where the bug is. It doesn't work
no matter where i place my cursor. My tangled output is also different -

;; [[file:~/Desktop/test.org][/home/seth/Desktop/test\.org:2]]

(let ((x 1))
  (message x=%s x)
  ;; [[file:~/Desktop/test.org][wrappable]]
  (setq x (+ 4 x))
  ;; wrappable ends here
  (message x=%s x))

;; /home/seth/Desktop/test\.org:2 ends here


Notice that detangling works if there is no noweb being used.
___
Emacs-orgmode 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-18 Thread Seth Burleigh


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



Not to get off on a tanget, but im using gmail. Looks perfect in my gmail
account - i guess your email doesnt support html markup? I just reply to
all, and it automatically does the markup. I guess ill have to learn how to
disable it:)
___
Emacs-orgmode 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-18 Thread Achim Gratz
Sébastien Vauban wxhgmqzgw...@spammotel.com
writes:
 I asked the question on the Cygwin mailing list, and got an answer from Tobias
 Schlottke, telling me to use the 'plain old' syntax (=`...`= instead of
 =$(...)=):

I can confirm.  This is really bad, since now you'd have to escape
backticks in the data coming from emacs.  Do you have a link to the
discussion, provided there is a web-mirror of the mailing list
someplace?  I'm a bit out of my waters here since mostly I'm using tcsh,
but it appears that dash on cygwin (not ash, even though dash is just a
symlink to ash) does the right thing.  It is also vastly smaller than
bash, so you might just use it for babel scripting.

 Can we move to that syntax?

For the reason above this would not be safe without more changes to
babel and backticks are actively discouraged to use in new scripts by
just about any shell introduction/ FAQ for years now.  Eric has
implemented a workaround and the problem deserves to be documented,
though.


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


Re: [Orgmode] Embedded code

2011-01-18 Thread Nick Dokos
Ido Magal i...@idomagal.com wrote:

 
 1. Is it possible to avoid the confirmations on every file load?
 

Yes: check out the variable safe-local-variable-values (and the related
safe-local-eval-forms) for the general emacs-level nagging mechanism and
the variable org-confirm-babel-evaluate for the babel-specific one.

I had already set the latter to nil so when I tried out Eric's solution,
I got the first nag, together with an invitation to type y, no or ! to
resp.  apply, ignore, or apply and save for future sessions. I typed !
and it saved the setting in my customization file. No more nags.[fn:1]

Nick

Footnotes:
[fn:1] I'd have expected it to modify safe-local-eval-forms, but it
modified safe-local-variable-values instead. Regardless, it seems to
work fine.

___
Emacs-orgmode 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-18 Thread Seth Burleigh
ok, so im not sure how you got it working, but heres the problem in
the code (i think).

We start with the tangled output
--
;; [[file:~/Desktop/test.org][/home/seth/Desktop/test\.org:2]]

(let ((x 1))
  (message x=%s x)
  ;; [[file:~/Desktop/test.org][wrappable]]
  (setq x (+ 4 x))
  ;; wrappable ends here
  (message x=%s x))
;; before org-babel-detangle calls org-babel-tangle-jump-to-org, it
is at this point
;; /home/seth/Desktop/test\.org:2 ends here
--

The code jumps to the point marked above (notice any comment with ;;
is just my markup)
So, lets go to the relevant portion of org-babel-tangle-jump-to-org.

--
(defun org-babel-tangle-jump-to-org ()
  Jump from a tangled code file to the related Org-mode file.
  (interactive)
  (let ((mid (point))
start end done
target-buffer target-char link path block-name body)
(save-window-excursion
  (save-excursion
(while (and (re-search-backward org-bracket-link-analytic-regexp nil t)
(not ; ever wider searches until matching block comments
 (and (setq start (point-at-eol))
  (setq link (match-string 0))
  (setq path (match-string 3))
  (setq block-name (match-string 5))
  (save-excursion
(save-match-data
  (re-search-forward
   (concat   (regexp-quote block-name)
ends here) nil t)
  (setq end (point-at-bol
;;(message start %s mid %s end %s start mid end)
(unless (and start ( start mid) ( mid end))
  (error (format not in tangled code %s %s %s  start mid end)))
---


notice that mid is set to the point commented previously. Then it
searches backward for org-bracket-link-analytic-regexp , and it finds
;; [[file:~/Desktop/test.org][wrappable]]. Then it searches forward
and matches ;; wrappable ends here. So, start and end encompass the
inner block, but the mid point is in the outside block. Therefore, it
fails with the error message

(unless (and start ( start mid) ( mid end))
  (error (format not in tangled code %s %s %s  start mid end)))

___
Emacs-orgmode 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-18 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:

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

 Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 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

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

 Could we perhaps go ahead and put the new stylesheets on Worg along with
 alternate stylesheet links in the publishing preamble? That way we could
 begin to tweak the stylesheets as a community and test them on the
 fly. (It would also save Jason the work of having to publish to tmp
 directories.) Others would then be free to add their own
 stylesheets---though I suppose that adding alternate stylesheet links
 will require access to the publishing options on the server.

 Once we've decided on a default, we could then adjust the preamble
 accordingly and clean up the alternates.


 This sounds like a great approach to me.  I'm convinced that there are
 other Org-mode users with much more sophisticated knowledge of CSS who
 may improve our initial efforts in time.

 One other alternative that comes to mind--while we're making impositions
 on Jason's kindness :)--is that it would be nice to have an alternate
 version of Worg published side-by-side with the original, only instead
 of publishing each page using org-publish-as-html, it could publish each
 page using only htmlize.  That way we could show off how nice Org-mode
 syntax can be when viewed from inside of Emacs, and users could see a
 side-by-side between the plain-text and html versions.  An example of
 this approach done successfully is Dan's Babel example at
 http://www.stats.ox.ac.uk/~davison/software/org-babel/drift.org.html

That sounds like a good idea.  Do you know exactly how to do this?

I added the following to org-publish-project-alist:

--8---cut here---start-8---
(worg-htmlize
 :base-directory ~/git/Worg/
 :base-extension org
 :html-extension org.html
 :publishing-directory /var/www/orgmode.org/worg/
 :recursive t
 :htmlized-source t
 :publishing-function htmlize)
--8---cut here---end---8---

But when I run:

--8---cut here---start-8---
(defun publish-worg-htmlize nil
   Publish Worg.
   (interactive)
   (add-hook 'org-publish-after-export-hook 'worg-fix-symbol-table)
   (let ((org-format-latex-signal-error nil)
 (org-startup-folded nil))
 (org-publish-project worg-htmlize)))
--8---cut here---end---8---

I get the error Symbol's function definition is void: publish-htmlize.
I made sure to (require 'htmlize).

___
Emacs-orgmode 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-18 Thread Jason Dunsmore
Eric Schulte schulte.e...@gmail.com writes:


 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.


 While we're fixing things, are there any objections to making the
 publishing change recommended above?  It should significantly reduce the
 size of pages which contain a large amount of source code, and will make
 it easier to adjust the fontification inside of code blocks.

I agree that org-export-htmlize-output-type should be set to 'css.

___
Emacs-orgmode 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-18 Thread Jeff Horn
On Tue, Jan 18, 2011 at 1:50 PM, Jason Dunsmore
emacs-orgm...@dunsmor.com wrote:
 I get the error Symbol's function definition is void: publish-htmlize.
 I made sure to (require 'htmlize).

I believe the function `org-publish-org-to-org` calls htmlize. Make
sure to (require 'org-publish).

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

2011-01-18 Thread Jason Dunsmore
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

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


 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.


 Is there a consensus on removing Javascript folding from *all* pages on
 Worg.  I think this would be an improvement both for the readability and
 stylistic coherence of the site.

 I am in favor of removing the javascript folding from all Worg pages.
 It would improve the consistency and experience of browsing Worg.

I made a version of the FAQ without the javascript folding:

http://orgmode.org/tmp/worg/org-faq-nojs.html
http://orgmode.org/tmp/worg/org-faq.html

It like it better, but it's still a bit unwieldy.  Maybe the FAQ just
needs to be reorganized.  See how Wikipedia does it:

http://en.wikipedia.org/wiki/Wikipedia:FAQ
http://en.wikipedia.org/wiki/Wikipedia:FAQ_Index

Matt or Bastien, do you have an opinion on reorganizing the FAQ?

___
Emacs-orgmode 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-18 Thread Jason Dunsmore
Matt Lundin m...@imapmail.org writes:

 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

Yes, that was intentional.  I wanted to keep the column width constant.

 2) h1 is a little bit off center, perhaps because of the org-mode logo?

I fixed this.

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

2011-01-18 Thread Bastien
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 While we're fixing things, are there any objections to making the
 publishing change recommended above?  It should significantly reduce the
 size of pages which contain a large amount of source code, and will make
 it easier to adjust the fontification inside of code blocks.

 I agree that org-export-htmlize-output-type should be set to 'css.

Done, 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-18 Thread Bastien
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 I made a version of the FAQ without the javascript folding:

 http://orgmode.org/tmp/worg/org-faq-nojs.html
 http://orgmode.org/tmp/worg/org-faq.html

Thanks.  Nitpicking: I'd prefer paragraphs to be indented to the right
(so that headines are always left from the text)  But just a matter of
taste, of course.

 It like it better, but it's still a bit unwieldy.  Maybe the FAQ just
 needs to be reorganized.  See how Wikipedia does it:

 http://en.wikipedia.org/wiki/Wikipedia:FAQ
 http://en.wikipedia.org/wiki/Wikipedia:FAQ_Index

 Matt or Bastien, do you have an opinion on reorganizing the FAQ?

I don't have a strong opinion about this: splitting the FAQ into
org-faq-*.org comes to my mind, but it's a big task.  org-info-js, 
while not optimal for *every* page on Worg, was doing a good job 
on the FAQ.  

-- 
 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-18 Thread Bastien
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 I added the following to org-publish-project-alist:

 (worg-htmlize
  :base-directory ~/git/Worg/
  :base-extension org
  :html-extension org.html
  :publishing-directory /var/www/orgmode.org/worg/
  :recursive t
  :htmlized-source t
  :publishing-function htmlize)

You need to use this instead :

   :publishing-function org-publish-org-to-org

I've done this.  See this page: 

  http://orgmode.org/worg/index.org.html

You cannot click on links though...

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

2011-01-18 Thread Bastien
Hi Seth,

Seth Burleigh wbur...@gmail.com writes:

 Not to get off on a tanget, but im using gmail. Looks perfect in my
 gmail account - i guess your email doesnt support html markup? I just
 reply to all, and it automatically does the markup. I guess ill have
 to learn how to disable it:)

Easy enough: there is an option in gmail to send mail in plain text.

Especially useful if you want to send patches!

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


[Orgmode] Re: org-store-link in gnus error

2011-01-18 Thread William Brody
I didn't.  That fixed it.  Thanks.


On Jan 15, 2011, at 1:16 PM, Jambunathan K wrote:

 
 Is gnus module loaded?
 
 M-x customize-variable org-modules
 
 Jambunathan K.
 
 
 Buck Brody buckbr...@gmail.com writes:
 
 When using C-cl to to store a link in GNUS i am getting cannot link
 to a buffer which is not visiting a file.  I am new to GNUS and
 perhaps this is related to an incorrect GNUS setup rather than any
 sort of org problem.  Regardless, any help would be appreciated.
 
 Buck
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


Re: [Orgmode] Embedded code

2011-01-18 Thread Eric Schulte
 
 2. Is it possible to manipulate or reference the results so that they're not
 bound to a RESULTS block.  I'm finding all of the blocks of orgmode
 distracting and I'm trying to avoid and eliminate them as much as possible.
  I'm not used to it and they really impedes the readability of my notes.

Yes, you can change the look of the results of code blocks, see the
results header argument for more information.
http://orgmode.org/manual/results.html

___
Emacs-orgmode 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-18 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

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

 I made a version of the FAQ without the javascript folding:

 http://orgmode.org/tmp/worg/org-faq-nojs.html
 http://orgmode.org/tmp/worg/org-faq.html

 Thanks.  Nitpicking: I'd prefer paragraphs to be indented to the right
 (so that headines are always left from the text)  But just a matter of
 taste, of course.

I implemented this.  Example:
http://orgmode.org/tmp/worg-jason/org-dependencies.html

The variable column widths don't look bad like I thought they would.

 It like it better, but it's still a bit unwieldy.  Maybe the FAQ just
 needs to be reorganized.  See how Wikipedia does it:

 http://en.wikipedia.org/wiki/Wikipedia:FAQ
 http://en.wikipedia.org/wiki/Wikipedia:FAQ_Index

 Matt or Bastien, do you have an opinion on reorganizing the FAQ?

 I don't have a strong opinion about this: splitting the FAQ into
 org-faq-*.org comes to my mind, but it's a big task.  org-info-js, 
 while not optimal for *every* page on Worg, was doing a good job 
 on the FAQ.

Sometimes I come across one of those huge javascript-folded pages via a
Google search.  When I visit the page, I'm unable to find the content on
the page that I'm looking for because the browser search function
doesn't work.

Example: 
http://www.google.com/search?q=Why+aren't+items+disappearing+from+my+agenda+once+they+are+marked+done

Most people would go to the next Google result.  I usually end up
searching the HTML source.  I guess you could switch to Emacs and search
Worg, but I don't usually do that and Org-mode newbies certainly would
not do that.

I'd be happy to help reorganize the FAQ.  I think it would be a big help
to Org-mode noobs to be able to easily find information on Worg via
search engines.  Let me know how I can help.

___
Emacs-orgmode 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-18 Thread Nick Dokos
Jason Dunsmore emacs-orgm...@dunsmor.com wrote:

  I don't have a strong opinion about this: splitting the FAQ into
  org-faq-*.org comes to my mind, but it's a big task.  org-info-js, 
  while not optimal for *every* page on Worg, was doing a good job 
  on the FAQ.
 
 Sometimes I come across one of those huge javascript-folded pages via a
 Google search.  When I visit the page, I'm unable to find the content on
 the page that I'm looking for because the browser search function
 doesn't work.
 
 Example: 
 http://www.google.com/search?q=Why+aren't+items+disappearing+from+my+agenda+once+they+are+marked+done
 
 Most people would go to the next Google result.  I usually end up
 searching the HTML source.  I guess you could switch to Emacs and search
 Worg, but I don't usually do that and Org-mode newbies certainly would
 not do that.
 

It may be a matter of documentation: there is not enough information
when you visit the page to know what to do next - and at least in
my case, the HELP/Toggle View links are invisible to begin with. If I
click on Welcome, then I get a little help, plus the links become
visible and life is much better: that points you to the search
or occur facility (press s or o), so there is no need to search the
HTML.

HTH,
Nick




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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-18 Thread Eric Schulte
 I don't have a strong opinion about this: splitting the FAQ into
 org-faq-*.org comes to my mind, but it's a big task.  org-info-js, 
 while not optimal for *every* page on Worg, was doing a good job 
 on the FAQ.  

I'd lean towards keep the FAQ as one large flat html file to encourage
text searching in the browser, although this may be personal preference.

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

2011-01-18 Thread Jason Dunsmore
Matt Lundin m...@imapmail.org writes:

 Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 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

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

 Could we perhaps go ahead and put the new stylesheets on Worg along with
 alternate stylesheet links in the publishing preamble? That way we could
 begin to tweak the stylesheets as a community and test them on the
 fly. (It would also save Jason the work of having to publish to tmp
 directories.) Others would then be free to add their own
 stylesheets---though I suppose that adding alternate stylesheet links
 will require access to the publishing options on the server.

The new stylesheet is in place now.

Eric,

Looks like there's a conflict with new TOC and the org-people page:

http://orgmode.org/worg/org-people.html

Can it be fixed?

___
Emacs-orgmode 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-18 Thread Bernt Hansen
Bastien bastien.gue...@wikimedia.fr writes:

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

 I added the following to org-publish-project-alist:

 (worg-htmlize
  :base-directory ~/git/Worg/
  :base-extension org
  :html-extension org.html
  :publishing-directory /var/www/orgmode.org/worg/
  :recursive t
  :htmlized-source t
  :publishing-function htmlize)

 You need to use this instead :

:publishing-function org-publish-org-to-org

 I've done this.  See this page: 

   http://orgmode.org/worg/index.org.html

 You cannot click on links though...

and I use this :)

:publishing-function (org-publish-org-to-html 
org-publish-org-to-org)
:plain-source t
:htmlized-source t

on

http://doc.norang.ca/org-mode.html,
http://doc.norang.ca/org-mode.org.html, and 
http://doc.norang.ca/org-mode.org

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

2011-01-18 Thread Eric Schulte
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

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

 Bastien bastien.gue...@wikimedia.fr writes:

 Jeff Horn jrhorn...@gmail.com writes:

 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

 Or use Eric zenburn-like css by selecting it as an alternative
 stylesheet in Firefox : View - Page Style - [select stylesheet].

 I don't know how to make this choice persistent from Firefox and I 
 don't know if this feature is available for other browsers, but it
 is certainly worth having several stylesheet available.

 Could we perhaps go ahead and put the new stylesheets on Worg along with
 alternate stylesheet links in the publishing preamble? That way we could
 begin to tweak the stylesheets as a community and test them on the
 fly. (It would also save Jason the work of having to publish to tmp
 directories.) Others would then be free to add their own
 stylesheets---though I suppose that adding alternate stylesheet links
 will require access to the publishing options on the server.

 The new stylesheet is in place now.

 Eric,

 Looks like there's a conflict with new TOC and the org-people page:

 http://orgmode.org/worg/org-people.html

 Can it be fixed?

I just pushed up a fix to the Worg repo.

Best -- Eric

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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-18 Thread Bastien
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 The new stylesheet is in place now.

Great, thanks all for this effort!

Jason, correct me if I'm wrong, I think you copied worg.css directly on
the server.  So I put it in the Worg.git repo and then publised Worg
again.

So changes to worg.css can happen from the repo (unless Matt and Jason
think it's best to have worg.css on the server *only*.)

I changed the background of code chunks to black - please revert this 
if you find it too agressive/unreadable.   I really dislike the fake
white we had as the background for black-on-white code chunks...

-- 
 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-18 Thread Eric Schulte
 I changed the background of code chunks to black - please revert this 
 if you find it too agressive/unreadable.   I really dislike the fake
 white we had as the background for black-on-white code chunks...

I just replaced the black with a slightly softer dark-gray, please feel
free to revert.  Should we set the *.org.html pages to use the same
color scheme as the code blocks?

Thanks to everyone for helping in this transition, I think it is a big
improvement.

Cheers -- Eric

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


[Orgmode] Re: Worg needs some reorganizing

2011-01-18 Thread Bastien
Bernt Hansen be...@norang.ca writes:

 and I use this :)

 :publishing-function (org-publish-org-to-html 
 org-publish-org-to-org)
 :plain-source t
 :htmlized-source t

Cool.  I setup this on the server (except the :plain-source t).

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-18 Thread Matt Lundin
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 I made a version of the FAQ without the javascript folding:

 http://orgmode.org/tmp/worg/org-faq-nojs.html
 http://orgmode.org/tmp/worg/org-faq.html

 It like it better, but it's still a bit unwieldy.  Maybe the FAQ just
 needs to be reorganized.  See how Wikipedia does it:

 http://en.wikipedia.org/wiki/Wikipedia:FAQ
 http://en.wikipedia.org/wiki/Wikipedia:FAQ_Index

 Matt or Bastien, do you have an opinion on reorganizing the FAQ?

I reorganized the FAQ into categories a year or so ago; it's remarkable
to consider how much the document has grown (thanks to the community!)
since then.

I believe it is helpful to have the entire FAQ on one page, though I'd
agree could use some pruning. My plan is to move some the longer
entries to documentation pages of their own, leaving behind a brief
answer along with a link to more detailed documentation.

I'd like to get rid of the javascript folding on the FAQ. I've found
that on slower computers it can take a few seconds for the entire page
to fold, while artifacts of entries flash briefly on the screen.

On this one page, I think we need a simple (non-js) table-of-contents.
Is there a way to override the hidden toc for this page only? 

I'll also see if I can work up a local export hook to add a Back to
top link for each entry.

Thanks.
Matt

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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-18 Thread Matt Lundin
Bastien bastien.gue...@wikimedia.fr writes:

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

 I added the following to org-publish-project-alist:

 (worg-htmlize
  :base-directory ~/git/Worg/
  :base-extension org
  :html-extension org.html
  :publishing-directory /var/www/orgmode.org/worg/
  :recursive t
  :htmlized-source t
  :publishing-function htmlize)

 You need to use this instead :

:publishing-function org-publish-org-to-org

 I've done this.  See this page: 

   http://orgmode.org/worg/index.org.html

 You cannot click on links though...

Sounds like its time to add a feature to org-publish-org-to-org. :)

- 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-18 Thread Bastien
Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 There's a Firefox add-on that will give you configurable per-site user
 CSS:
 https://addons.mozilla.org/en-US/firefox/addon/stylish/

I installed this but AFAIK it doesn't help managing alternative
stylesheets as defined by the headers of the HTML page itself...

Thanks for the link though, worth exploring.

-- 
 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-18 Thread Jeff Horn
On Tue, Jan 18, 2011 at 5:42 PM, Eric Schulte schulte.e...@gmail.com wrote:
 I don't have a strong opinion about this: splitting the FAQ into
 org-faq-*.org comes to my mind, but it's a big task.  org-info-js,
 while not optimal for *every* page on Worg, was doing a good job
 on the FAQ.

 I'd lean towards keep the FAQ as one large flat html file to encourage
 text searching in the browser, although this may be personal preference.

I agree. I often navigate the online org monolithic manual using text
search. The TOC sidebar helps a great deal for navigating, and it's
nice to have anchor links to share a particular section with someone.

The case could be made that Google search makes flat/nested FAQs
fairly equal. That's why I'm in favor of Google site search instead of
the s searching currently available. That's how I navigate most
sites when looking for something in particular.

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


[Orgmode] [BABEL] Tangling to a hierarchy of files?

2011-01-18 Thread Christopher Maier
I've been experimenting with literate programming using Org mode recently and am
really enjoying it.  I am trying to figure out the best way to create a nested
hierarchy of tangled files from a single Org file, and am not sure the best way
to go about it.

I know that, for example, this block, when tangled, will produce a file
foo.clj in the same directory as my Org file... so far so good.

#+begin_src clojure :tangle foo.clj
  (ns foo)
  
  (defn my-inc [x]
(+ x 1))
#+end_src

However, I would like to be able to do something like this:

#+begin_src clojure :tangle src/foo.clj
  (ns foo)
  
  (defn my-inc [x]
(+ x 1))
#+end_src

(I'm trying to automatically generate a Leiningen project for Clojure, if that
helps any.)

If I tangle an Org file that contains a block like this, and I haven't already
created a src directory, then I get an error (Opening output file: No such
file or directory...).

I could create a shell script block in my file that will create whatever
directory hierarchy I need, but it looks like I'd have to manually execute that
prior to tangling my source code.  I've seen some examples on the mailing list
using Emacs Lisp code blocks to set up a custom org-babel-pre-tangle-hook, but
it still seems that there's a manual execution step required.

Is there a better (maybe already built-in?) way to achieve this?  Ideally, I'd
eventually like to set things up so that I could invoke a single function that
would create the file hierarchy, tangle the files, generate documentation, and
then run tests and other build-related stuff.  Is that possible without leaving
Org?

Thanks in advance for any help.




___
Emacs-orgmode 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] wrong sequence?

2011-01-18 Thread Samuel Wales
Why does the second command get called before the first command for me?

(defun alpha-test-org-note ()
  (interactive)
  (org-add-note)
  (org-copy-subtree))

Emacs 22, recent org.

Thanks.

___
Emacs-orgmode 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: wrong sequence?

2011-01-18 Thread Samuel Wales
Post command hook, I see.

How to work around that?

___
Emacs-orgmode 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] Tangling to a hierarchy of files?

2011-01-18 Thread Charles C. Berry

On Wed, 19 Jan 2011, Christopher Maier wrote:


I've been experimenting with literate programming using Org mode recently and am
really enjoying it.  I am trying to figure out the best way to create a nested
hierarchy of tangled files from a single Org file, and am not sure the best way
to go about it.

I know that, for example, this block, when tangled, will produce a file
foo.clj in the same directory as my Org file... so far so good.

#+begin_src clojure :tangle foo.clj
 (ns foo)

 (defn my-inc [x]
   (+ x 1))
#+end_src

However, I would like to be able to do something like this:

#+begin_src clojure :tangle src/foo.clj
 (ns foo)

 (defn my-inc [x]
   (+ x 1))
#+end_src

(I'm trying to automatically generate a Leiningen project for Clojure, if that
helps any.)

If I tangle an Org file that contains a block like this, and I haven't already
created a src directory, then I get an error (Opening output file: No such
file or directory...).

I could create a shell script block in my file that will create whatever
directory hierarchy I need, but it looks like I'd have to manually execute that
prior to tangling my source code.  I've seen some examples on the mailing list
using Emacs Lisp code blocks to set up a custom org-babel-pre-tangle-hook, but
it still seems that there's a manual execution step required.



Maybe a file that starts something like this would work for you:


,
| # -*- eval: (make-directory src .) -*-
| #+Title: Evaluates code on startup
| 
| * contents

`

On opening, a 'src' directory is created if it doesn't already exist.



Is there a better (maybe already built-in?) way to achieve this?  Ideally, I'd
eventually like to set things up so that I could invoke a single function that
would create the file hierarchy, tangle the files, generate documentation, and
then run tests and other build-related stuff.  Is that possible without leaving
Org?


An emacs-lisp src block to do all those things, perhaps?

HTH,

Chuck



Thanks in advance for any help.




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



Charles C. BerryDept of Family/Preventive Medicine
cbe...@tajo.ucsd.eduUC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901



___
Emacs-orgmode 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-18 Thread Ido Magal
Excellent.

Now that I see that it's possible, I'm struggling to find sufficient
examples to help me understand how to go about writing the bits of lisp that
would allow to me create useful blocks of org-mode code, such as a
back-links block or a list of links to entries of a certain tag.  I'm
lisp-illiterate but I was expecting that if it was possible then someone had
already done it and that I could cut and paste my way to success.

Do these examples exist?  Does anyone use babel to extend the functionality
of the note organizing aspect of org-mode?  All of the babel examples I've
found relate to manipulating content for export as opposed to enhancing
organizational utility.

Cheers and thanks again.


On Tue, Jan 18, 2011 at 12:42, Eric Schulte schulte.e...@gmail.com wrote:

 
  2. Is it possible to manipulate or reference the results so that they're
 not
  bound to a RESULTS block.  I'm finding all of the blocks of orgmode
  distracting and I'm trying to avoid and eliminate them as much as
 possible.
   I'm not used to it and they really impedes the readability of my notes.

 Yes, you can change the look of the results of code blocks, see the
 results header argument for more information.
 http://orgmode.org/manual/results.html

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


[Orgmode] Org-beamer problems

2011-01-18 Thread Bill Moran
I've been trying to follow the various tutorials on the web 
to do beamer in org-mode. I've used beamer, latex and emacs 
for many years but am finding that none of the examples on 
the web work totally s intended in my attempts to use
org-mode with beamer. 

I have copied verbatim several examples such as from here:

http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html#sec-4_1

When I run  them I get the following problems - plus others 
I will go into later if necessary:

1. The title page does not have a title - just the date. 
When I check the latex file created from the org file I 
notice that a \maketitle command occurs outside a frame environment 
- whereas in beamer I normally use \titlepage inside a frame
environment to create the titlepage. 

2. \alert command does not work - even with the additions to .emacs 
suggested here:
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg21507.html
(And there are no errors in running the .emacs file) 
Always the @ symbol appears in the latex created from org as @. 

I wonder whether there is some configuration I am missing. 
Other aspects of the slides are normal - bullets and 
frametitles specifically. 




___
Emacs-orgmode 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] Tangling to a hierarchy of files?

2011-01-18 Thread Eric Schulte
Charles C. Berry cbe...@tajo.ucsd.edu writes:

 On Wed, 19 Jan 2011, Christopher Maier wrote:

 I've been experimenting with literate programming using Org mode recently 
 and am
 really enjoying it.  I am trying to figure out the best way to create a 
 nested
 hierarchy of tangled files from a single Org file, and am not sure the best 
 way
 to go about it.

 I know that, for example, this block, when tangled, will produce a file
 foo.clj in the same directory as my Org file... so far so good.

 #+begin_src clojure :tangle foo.clj
  (ns foo)

  (defn my-inc [x]
(+ x 1))
 #+end_src

 However, I would like to be able to do something like this:

 #+begin_src clojure :tangle src/foo.clj
  (ns foo)

  (defn my-inc [x]
(+ x 1))
 #+end_src


In addition to the solution Charles posted, it is possible to put
arbitrary elisp forms into header arguments, so the following
alternative to your block above will create the directory (if it doesn't
already exist) whenever the block is tangled or evaluated.

#+begin_src clojure :tangle (prog1 src/foo.clj (make-directory src .))
  (ns foo)
  
  (defn my-inc [x]
(+ x 1))
#+end_src

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

2011-01-18 Thread Eric Schulte
Hi Seth,

You are correct, while the tangling works, the detangling still needs to
be updated to take into account the fact that there may now be nested
sections of tangled code -- which it doesn't currently.  Hopefully this
wont be too large of a code change...

Seth Burleigh wbur...@gmail.com writes:

 ok, so im not sure how you got it working, but heres the problem in
 the code (i think).

 We start with the tangled output
 --
 ;; [[file:~/Desktop/test.org][/home/seth/Desktop/test\.org:2]]

 (let ((x 1))
   (message x=%s x)
   ;; [[file:~/Desktop/test.org][wrappable]]
   (setq x (+ 4 x))
   ;; wrappable ends here
   (message x=%s x))
 ;; before org-babel-detangle calls org-babel-tangle-jump-to-org, it
 is at this point
 ;; /home/seth/Desktop/test\.org:2 ends here
 --

 The code jumps to the point marked above (notice any comment with ;;
 is just my markup)
 So, lets go to the relevant portion of org-babel-tangle-jump-to-org.

 --
 (defun org-babel-tangle-jump-to-org ()
   Jump from a tangled code file to the related Org-mode file.
   (interactive)
   (let ((mid (point))
   start end done
 target-buffer target-char link path block-name body)
 (save-window-excursion
   (save-excursion
   (while (and (re-search-backward org-bracket-link-analytic-regexp nil t)
   (not ; ever wider searches until matching block comments
(and (setq start (point-at-eol))
 (setq link (match-string 0))
 (setq path (match-string 3))
 (setq block-name (match-string 5))
 (save-excursion
   (save-match-data
 (re-search-forward
  (concat   (regexp-quote block-name)
   ends here) nil t)
 (setq end (point-at-bol
   ;;(message start %s mid %s end %s start mid end)
   (unless (and start ( start mid) ( mid end))
 (error (format not in tangled code %s %s %s  start mid end)))
 ---


 notice that mid is set to the point commented previously. Then it
 searches backward for org-bracket-link-analytic-regexp , and it finds
 ;; [[file:~/Desktop/test.org][wrappable]]. Then it searches forward
 and matches ;; wrappable ends here. So, start and end encompass the
 inner block, but the mid point is in the outside block. Therefore, it
 fails with the error message

 (unless (and start ( start mid) ( mid end))
 (error (format not in tangled code %s %s %s  start mid end)))

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