[Orgmode] Re: default browser - SOLVED

2010-02-28 Thread Richard Riley
Henri-Paul Indiogine hindiog...@gmail.com writes:

 Matt Lundin m...@imapmail.org writes:
 (setq browse-url-browser-function (quote browse-url-generic))
 (setq browse-url-generic-program firefox)

 (setq browse-url-browser-function 'browse-url-firefox)
 (setq browse-url-firefox-new-window-is-tab t)

 The second setting ensures that links are opened in new tabs if firefox
 is running.

 How about clicking on a URL in org-mode or other text file and having
 w3m pop-up?

 Thanks,

Customize browse-url-browser-function.

http://www.emacswiki.org/emacs/BrowseUrl



___
Emacs-orgmode 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] clock entries export to calendar?

2010-02-28 Thread Ryan E
Hello All,

I was wondering if it is possible to configure the Org mode iCalendar export
to include CLOCK entries. I'd like my clock entries to show up as
appointments in my calendar application (iCal in this case). I can't seem to
find a way to do it in the docs or faq. Is this possible with Org mode
(without writing a lot of elisp - my elisp skills are lacking)?

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


[Orgmode] latex export problem in HEAD

2010-02-28 Thread Erik Butz
Hi all,

I am getting an error when exporting to latex in the latest version in
the repository if checkboxes are included in the document.
the error is:
! LaTeX Error: Command \Box not provided in base LaTeX2e.

which can then be cured by including
\usepackage{latexsym}

in the tex document. Is this a common problem or only related to my
personal setup?

Cheers,

Erik


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


[Orgmode] Re: Org-Mode for Nexus One?

2010-02-28 Thread Matt Lundin
Hi Dennis,

Dennis Groves dennis.gro...@gmail.com writes:

 Hello fellow org-mode users and Carsten,

 Since 2008 I have used org-mode to manage my work and life, and likely
 in the most rudimentary ways compared to many of you, especially
 considering the features of org-mode...

 Recently, I have recently procured a google android nexus-one phone
 and would love to see something like the mobileorg for nexus; does
 anybody else have a similar interest?

You might want to check out the recent thread announcing an alpha Mobile
Org for Android, as well as the link to the source on github.

 - http://article.gmane.org/gmane.emacs.orgmode/22614
 - http://wiki.github.com/matburt/mobileorg-android/

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] Export latex source blocks as HTML

2010-02-28 Thread Thomas S. Dye


On Feb 27, 2010, at 6:47 PM, Nick Dokos wrote:


Thomas S. Dye t...@tsdye.com wrote:


Aloha all,

Exporting this file to html gives me a source code block for bibtex  
but not for latex.


* Test export
#+BEGIN_SRC latex
 No export with latex
#+END_SRC

#+BEGIN_SRC bibtex
 Export OK with bibtex
#+END_SRC

Does anyone else see this?  Any idea what I might have messed up?   
Files that used to export perfectly have all lost their latex  
source code blocks in

HTML output.



Tom,

I just put the above in a file and exported it to html. I get the
attached html file (which, afaict, contains both latex and bibtex src
blocks, in contrast to what you get). This is with Org-mode version
6.34trans (release_6.34c.103.g8625e).

HTH,
Nick

tomdye.orgtomdye.html


Thanks Nick,

My results are due to org-babel.  The recently augmented support for  
LaTeX sets the default to :exports results, when the org-mode  
publishing process wants :exports code.  I was aware of the change but  
not prepared to understand all its ramifications.


All the best,
Tom


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


[Orgmode] Re: plotting when x-axis has non-numeric data

2010-02-28 Thread henry atting
On Sa, Feb 27 2010, henry atting wrote:

 I have a table which I am plotting longly, it looks like this:

 #+PLOT: title:expenses ind:1  type:2d with:lines 
 #+PLOT:  set:yrange [0:] labels:(month expenses average) 
 | month   |   two |three|
 |++-|
 | November| 500   | 500 |
 | December| 500   | 500 |
 | January | 600   | 500 |
 | February| 400   | 500 |

 Thus far it was no problem that the x-axis contains non-numeric data.
 Now gnuplot stops with this error message:

 gnuplot plot '/tmp/org-plot18686CtJ' using 1:3:xticlabel(1) with lines title 
 'H-index'
warning: Skipping data file with no valid points
   x range is invalid

 When I try to plot the table 'Citas' from this tutorial [1] I get the
 same error message. 

 henry

 ___

 [1] http://orgmode.org/worg/org-tutorials/org-plot.php

Okay, I see; for some reason the following statement is not more valid:

,[ From: http://orgmode.org/worg/org-tutorials/org-plot.php ]
| Org-plot can also produce histograms from 2d data, plot the following
| table. Notice that the column specified as ind contains textual
| non-numeric data, when this is the case org-plot will use the data as
| labels for the x-axis using the gnuplot xticlabels() function.
`

As far as I see, you have to do it with org-babel now, which works just
as well for me.

henry

-- 
http://literaturlatenight.de



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


[Orgmode] [patch] Correction for the manual (chapter 13.1.4)

2010-02-28 Thread David Maus

While wrapping my head around a set of publishing functions to create
atom and rss feeds I noticed an incorrect description in the manual.
In chapter 13.1.4 in reads:

,
| :publishing-function
|
| Function executing the publication of a file. This may also be a list
| of functions, which will all be called in turn.
|
| [...]
|
| The function must accept two arguments: a property list containing at
| least a :publishing-directory property, and the name of the file to be
| published. It should take the specified file, make the necessary
| transformation (if any) and place the result into the destination
| folder.
`

But the publishing function must accept /three/ arguments: The third
one is the specific publishing directory for the source file.

Attached patch corrects the information in the manual.

Regards
 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com


0001-Fix-description-of-mandatory-parameters-of-publishin.patch
Description: Binary data


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


[Orgmode] [wish] pass project plist to preparation and completion function

2010-02-28 Thread David Maus

Urgency: Low

A publishing project can define a preparation and a completion
function to prepare and finalize the export.  Currently both functions
that can be supplied in `org-publish-project-alist' are called without
any arguments.

I'm currently trying to write exporter functions that create an atom
or rss feed based on org files.  To create /one/ feed for /multiple/
input files it is necessary to open and close the feed in a
preparation and finalizing function.

The :preparation-function should write the feed's header (xml
declaration, information on the feed itself) and the finalizing
function should close the xml.  To achive this both functions have to
know which output file they have to operate on.

For me it seems best if both functions get the property list of the
publishing project in question passed as argument.

The urgency for this is low because my personal milestone is the basic
function of publishing one feed for one input file.

 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com


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


[Orgmode] org-babel-load-file can't use properties drawers ?

2010-02-28 Thread Julien Fantin
I've been using this init file to load my org-mode-contained emacs
configuration  :

;;; init.el --- Where all the magic begins
;;
;; This file loads both
;; - Org-mode : http://orgmode.org/ and
;; - Org-babel:
http://orgmode.org/worg/org-contrib/babel/org-babel.php#library-of-babel
;;
;; It then loads the rest of our Emacs initialization from Emacs lisp
;; embedded in literate Org-mode files.
;; Load up Org Mode and Org Babel for elisp embedded in Org Mode files
(setq dotfiles-dir (file-name-directory (or (buffer-file-name)
load-file-name)))

(let* ((org-dir (expand-file-name
 lisp (expand-file-name
 org-mode (expand-file-name
elisp dotfiles-dir
   (org-contrib-dir (expand-file-name
 lisp (expand-file-name
 contrib (expand-file-name
.. org-dir
   (load-path (append (list org-dir org-contrib-dir)
  (or load-path nil
  ;; load up Org-mode and Org-babel
  (require 'org-install)
  (require 'org-babel-init)
  (require 'org-babel-emacs-lisp))
;; load up all literate org-mode files in this directory
(mapc 'org-babel-load-file (directory-files dotfiles-dir t \\.org$))
;;; init.el ends here


It's been working nicely until I tried to clean things up by setting some
commonly used variables  in properties drawers, and access them from
emacs-lisp src blocks.

The following illustrates my intent, and will behave as expected with
org-babel-execute-buffer, but fails when it is loaded by org-babel-load-file
:

* Configuration
:PROPERTIES:
:ELISP-DIR:~/emacs.d/elisp/
:END:

** Load Path
#+begin_src emacs-lisp
(add-to-list 'load-path (org-entry-get nil ELISP-DIR t))
#+end_src

From my understanding, orb-babel-load-file tangles then loads the file,
losing the variables in the process.

I've been using this function to get the expected behaviour, but the default
somewhat breaks expectations, don't you think ?
 (defun
ba/org-babel-load-file (file) (with-temp-buffer
(insert-file-contents
file) (org-mode) (org-babel-execute-buffer)))

Or, is there a cleaner way to achieve this ?

Regards,
julien
___
Emacs-orgmode 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] Problem with table sums

2010-02-28 Thread Dan Davison
Carsten Dominik carsten.domi...@gmail.com writes:

 :-)  I should have known.  These days, babel is the answer to most
 questions ... :-)

Well, that wasn't the conclusion I meant to be drawn -- I thought the
pure org solution was best here! (at least for simple summation)

Dan


 - Carste

 On Feb 24, 2010, at 4:40 PM, Dan Davison wrote:

 Carsten Dominik carsten.domi...@gmail.com writes:

 On Feb 23, 2010, at 11:08 PM, Sébastien Vauban wrote:
 [...]
 Though, I need to re-use some of the intermediate computations for
 another
 summary table. Therefore, I add names to some cells:

  #+TBLNAME: etape1
  |   | Étape 1   | p.j | EUR HTVA|
  |---+---+-+-|
  |   | Prestations   | 100 | 4.00|
  | ^ |   | pj  | Prestations |
  |   | Frais annexes | | 1280.00 |
  | ^ |   | | FraisAnnexes|
  |   | Gestion du projet | | 3200.00 |
  | ^ |   | | GestionDuProjet |
  |   | Licence   | | 8000.00 |
  | ^ |   | | Licence |
  |---+---+-+-|
  |   | Total | | 4.00|
  | ^ |   | | Total   |
  #+TBLFM: @2...@2$3*400.00;%.2f::@4...@2$4*0.08*0.40;%.
 2f::@6...@2$4*0.08;%.2f::@8...@2$4*0.20;%.2f::@10$4=vsum(@-...@-ii);
 %.2f

 Now, the total is wrong: it's the value of the first cell... Like if
 the `^'
 prefix was simply dropped... and total limited to the first real
 figure.

 Any reason for this phenomenon?  Or workaround (other than
 describing every
 cell to be summed)?

 Well, the reason is that the parser probably stops at the first text
 when summing, it tries to add Prestations.

 I am afraid there is not good work-around for this.

 Hi Seb,

 Well, I was going to suggest using org-babel. After playing around
 for a
 while, I ended up reading the org manual on table formulas and coming
 back to a pure org solution.

 My simplest solution is almost straight out of the manual (which makes
 me worry that I've missed the point of the question?):

 #+TBLFM:@10$4='(apply '+ '(@-...@-ii));N

 But seeing as I've got them, I may as well post my org-babel
 solutions.

 Here's the first set of org-babel solutions, which are just like the
 first solution, but use blocks to do the computation:

 #+TBLFM:@10$4='(sbe my-sum-LANG (n (@-...@-ii)));N

 where LANG is whatever language you want to compute the sum in:

 #+function: my-sum-elisp(n)
 #+begin_src emacs-lisp
 (apply '+ n)
 #+end_src

 #+function: my-sum-R(n)
 #+begin_src R
 sum(n)
 #+end_src

 #+function: my-sum-python(n)
 #+begin_src python
 return sum(n)
 #+end_src


 The second set of org-babel solutions use org-babel to do the table
 indexing. This was before I realised that I could use the @-...@-ii
 and
 ;N syntax in conjunction with the org-babel sbe macro. So these ones
 have to deal with separating the numeric entries from the character
 strings.

 #+TBLFM:@10$4='(sbe my-tab-sum-LANG);%.2f

 #+function: my-tab-sum-elisp
 #+begin_src emacs-lisp :var tab=etape1[2:9,3]
 (apply '+ (remq nil (mapcar (lambda (row) (if (numberp (car row))
 (car row))) tab)))
 #+end_src

 #+function: my-tab-sum-R
 #+begin_src R :var tab=etape1[2:9,3]
 sum(as.numeric(tab[[1]]), na.rm=TRUE)
 #+end_src

 #+function: my-tab-sum-python
 #+begin_src python :var tab=etape1[2:9,3]
 flatten = lambda(lizt): sum(lizt, [])
 return sum(filter(lambda x: isinstance(x, float), flatten(tab)))
 #+end_src


 Dan



 - Carsten


 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

 - 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

 - Carsten





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


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


Re: [Orgmode] Re: plotting when x-axis has non-numeric data

2010-02-28 Thread Eric Schulte
Hi Henry,

Thanks for bringing up this bug.

While for any serious plotting I would certainly recommend using
Org-babel over org-plot, org-plot should still function correctly.  I've
just pushed up a fix to the bug you described, so your previous table
should work once again.

Thanks -- Eric

henry atting nsmp...@online.de writes:

 On Sa, Feb 27 2010, henry atting wrote:

 I have a table which I am plotting longly, it looks like this:

 #+PLOT: title:expenses ind:1  type:2d with:lines 
 #+PLOT:  set:yrange [0:] labels:(month expenses average) 
 | month   |   two |three|
 |++-|
 | November| 500   | 500 |
 | December| 500   | 500 |
 | January | 600   | 500 |
 | February| 400   | 500 |

 Thus far it was no problem that the x-axis contains non-numeric data.
 Now gnuplot stops with this error message:

 gnuplot plot '/tmp/org-plot18686CtJ' using 1:3:xticlabel(1) with lines 
 title 'H-index'
warning: Skipping data file with no valid points
   x range is invalid

 When I try to plot the table 'Citas' from this tutorial [1] I get the
 same error message. 

 henry

 ___

 [1] http://orgmode.org/worg/org-tutorials/org-plot.php

 Okay, I see; for some reason the following statement is not more valid:

 ,[ From: http://orgmode.org/worg/org-tutorials/org-plot.php ]
 | Org-plot can also produce histograms from 2d data, plot the following
 | table. Notice that the column specified as ind contains textual
 | non-numeric data, when this is the case org-plot will use the data as
 | labels for the x-axis using the gnuplot xticlabels() function.
 `

 As far as I see, you have to do it with org-babel now, which works just
 as well for me.

 henry


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


[Orgmode] Bug with section numbers due to EXAMPLE block

2010-02-28 Thread Daniel Clemente

  Hi, I found an HTML export bug with org-mode 6.34c-140-g44c8 and older. I 
used:


* only one section
#+BEGIN_EXAMPLE:
  
  We need:
  ,* pears
  ,* lettuce
  ,* watermelons
  
  Very important!
#+END_EXAMPLE:


  And the outputed table of contents had this code:


div id=text-table-of-contents
ul
lia href=#sec-11 only one section /a/li
lia href=#sec-22 pears/a/li
lia href=#sec-33 lettuce/a/li
lia href=#sec-44 watermelons/a/li
/ul
/div


  This is wrong because the asterisks inside the example don't represent 
headers. There should be only one header.

  It does not happen with QUOTE or VERSE or SRC or CENTER! Only with EXAMPLE!


  I found this related code in org-export-replace-src-segments-and-examples:

#+BEGIN_SRC lisp
;; Free up the protected lines
(goto-char (point-min))
(while (re-search-forward ^, nil t)
  (if (or (equal lang org)
  (save-match-data
(looking-at \\([*#]\\|[ \t]*#\\+\\
  (replace-match ))
  (end-of-line 1))
#+END_SRC

(looking-at \\([*#]\\|[ \t]*#\\+\\)) is true and therefore the , is removed 
and the asterisks are free.

  Maybe that block should be marked as „this is not org syntax“, or the section 
numbers should be computed before evaluating example blocks.


  Greetings
Daniel


___
Emacs-orgmode 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] enhancement request: include check-boxes in Shift-arrow cycling on lists

2010-02-28 Thread Livin Stephen Sharma
I think this would be a useful in daily use: to be able to easily convert a 
list [whether numbers or bullets] into a list of  - [ ] foo check-box items.
 FWIW, I use regex'es to achieve this for now.

Livin Stephen Sharma





___
Emacs-orgmode 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] Emacs in a Term and Org

2010-02-28 Thread Richard Riley

More often than not I run emacsclient in rxvt under Tmux (a Screen
replacement). As a result (and inconveniently) a lot of common key
sequences dont work properly - generally involving shift/control/alt and
arrow and function keys. Most of the time it doesn't matter as there is
always a work around. 

In org-mode the only real headache this gives me are the calendar
commands for scheduling which involve the arrow keys. e.g S-left/right
for sliding a date a day or two. Currently I can use +4d for example
instead of 4 x S-right, however not always convenient - Currently I need
to bring up an X frame pretty much only for org scheduling.

I was wondering if anyone here has devised a consistent key map not including
these modern fangled arrow keys ;)  ? 

In the mini buffer we cant use the standard calendar keys (which would
be nice) since its a freetype field and these calendar UI keys are the
standard emacs editline commands (C-f C-b etc).

I did wonder about a solution I could try to implement which would be to
have a setting, default to nil, which would default any date edit input
to the calendar UI only and you can then enter the actual editline ui
for entering a time or relative date by hitting something like @ which
has no current calendar binding and then you can have the default
currently defined behaviour.

Possibly I've overlooked other options / solutions but the arrow keys are
pretty inconvenient in layout for me in addition to not working
correctly in conjunction with S/C in many Term implementations.

Possibly its just a urxvt/tmux solution I need : but the whole termcap
/term and emacs issue is a nest of vipers ;)

Ideas and pointers very welcome.



___
Emacs-orgmode 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] enhancement request: include check-boxes in Shift-arrow cycling on lists

2010-02-28 Thread David Maus
Livin Stephen Sharma wrote: 

 I think this would be a useful in daily use: to be able to easily
 convert a list [whether numbers or bullets] into a list of  - [ ]
 foo check-box items.  FWIW, I use regex'es to achieve this for now.

Turning plain list items into checkboxes is already possible:

,
| C-c C-x C-b
| 
| Toggle checkbox status or (with prefix arg) checkbox presence at point. With 
double prefix argument, set it to ‘[-]’, which i s considered to be an 
intermediate state.
| 
|   * If there is an active region, toggle the first checkbox in the
| region and set all remaining boxes to the same status as the
| first. With a prefix arg, add or remove the checkbox for all items
| in the region.
| 
|   * If the cursor is in a headline, toggle checkboxes in the region
| between this headline and the next (so not the entire subtree).
| 
|   * If there is no active region, just toggle the checkbox at point.
`
(Manual, Chp. 5.6)

HTH
 -- David
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com


pgpkDXTK8BMWs.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] enhancement request: include check-boxes in Shift-arrow cycling on lists

2010-02-28 Thread Livin Stephen Sharma
I just tried this and found it to work well enough for my requirements.
Thanks for the information [and for the Manual-reference], David.

Livin Stephen Sharma



On Mar 01, 2010, at 12:59:27 , David Maus wrote:

 Livin Stephen Sharma wrote: 
 
 I think this would be a useful in daily use: to be able to easily
 convert a list [whether numbers or bullets] into a list of  - [ ]
 foo check-box items.  FWIW, I use regex'es to achieve this for now.
 
 Turning plain list items into checkboxes is already possible:
 
 ,
 | C-c C-x C-b
 | 
 | Toggle checkbox status or (with prefix arg) checkbox presence at point. 
 With double prefix argument, set it to ‘[-]’, which i s considered to be an 
 intermediate state.
 | 
 |   * If there is an active region, toggle the first checkbox in the
 | region and set all remaining boxes to the same status as the
 | first. With a prefix arg, add or remove the checkbox for all items
 | in the region.
 | 
 |   * If the cursor is in a headline, toggle checkboxes in the region
 | between this headline and the next (so not the entire subtree).
 | 
 |   * If there is no active region, just toggle the checkbox at point.
 `
 (Manual, Chp. 5.6)
 
 HTH
 -- David
 -- 
 OpenPGP... 0x99ADB83B5A4478E6
 Jabber dmj...@jabber.org
 Email. maus.da...@gmail.com



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