[O] Bug: R source block list export not working properly [7.8.11]

2012-09-25 Thread Greg Tucker-Kellogg
I reported this on the mailing list as a question, but it appears to be an
actual bug, so I thought I should file it formally.  The following MWE
shows the problem when trying to export an R character vector:

#+begin_src R :exports results :results value list
c("x","y","z")
#+end_src

#+RESULTS:
- ("x")
- ("y")
- ("z")

This is clearly not what is wanted, more or less ever.  What works,
instead, requires R manipulation of the results, of the form:

#+BEGIN_SRC R :exports results :results output raw
a <- c("x","y","z")
cat(paste("-", a), sep="\n")
#+END_SRC

#+RESULTS:
- x
- y
- z


Emacs  : GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2012-08-27 on bob.porkrind.org
Package: Org-mode version 7.8.11



Re: [O] Publishing using the new exporter

2012-09-25 Thread Robert Klein

On 09/24/2012 07:27 PM, Robert Klein wrote:

On 09/24/2012 12:25 PM, Nicolas Goaziou wrote:

Hello,

Robert Klein  writes:


I'm trying to use the new exporter for publishing a project.

For some reason all .org files get exported to zero length .html
files.


Did you (require 'org-e-html) first?


Regards,



Thanks, this helps.

This is a bit curious for me.  I compiled org-mode with
ORG_ADD_CONTRIB = org-e-* org-md org-export
in local.mk and simple eporting (instead of publishing) using org-e-
export-html-to-html worked with only
 (require 'org-install)
in my .emacs.

Anyway, I can export now, though the new exporter doesn't seem to honor
the :html-preamble and :html-postamble variables in the project alist
yet.  (I set them both to a function name, e.g.
 :html-preamble s2-preamble
with s2-preamble defined as:

#+begin_src elisp
(defun s2-preamble ()
   (org-get-file-contents "~/Documents/org/s2/html/preamble.html"))
#+end_src


So, org-get-file-contents is a function from the old exporter, but I
didn't see any reason why it shouldn't.


Another issue I encountered, when publishing(!) to pdf, the resulting
pdfs didn't have any images.  This is probably caused by the images
beind created in :base-directory and the pdf being created in
:publishing-directory (there may be more to this; I think at one time I
already hat images in :publishing-directory). Note, images are created
using plantuml source in the .org-files.  Works Ok with the HTML
exporter, images are created by the PDF exporter also but not included
in the resulting PDF.

Best regards
Robert




Hi,

when the :html-preamble function is just:
#+begin_src elisp
(defun s2-preamble ()
  "alpha-mark")
#+end_src

the text "alpha-mark" also doesn't get inserted, though simply setting
#+begin_src elisp
:html-preamble "alpha-mark"
#+end_src
works.


If i set :html-preable to either s2-preamble or 's2-preamble nothing 
gets inserted.


I studied the code in org-e-html (excerpt below), but i don't see what I 
did wrong.


#+begin_src elisp :file contrib/lisp/org-e-html.el :firstline 1329
(defun org-e-html-preamble (info)
  (when (plist-get info :html-preamble)
(let* ((title (org-export-data (plist-get info :title) info))
   (date (org-e-html-format-date info))
   (author (org-export-data (plist-get info :author) info))
   (email (plist-get info :email))
   (html-pre-real-contents
(cond
 ((functionp (plist-get info :html-preamble))
  (with-temp-buffer
(funcall (plist-get info :html-preamble))
(buffer-string)))
#+end_src


Thanks for any help

Robert




Re: [O] new exporter: exporting subtree as beamer

2012-09-25 Thread Andreas Leha
Nicolas Goaziou  writes:

> Hello,
>
> Andreas Leha  writes:
>
 [ test_beamer.org ]
  * Test Beamer
:PROPERTIES:
:EXPORT_LaTeX_CLASS: beamer
:EXPORT_LaTeX_CLASS_OPTIONS: [presentation]
:EXPORT_FILE_NAME: presentation.pdf
:COLUMNS:  %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) 
 %4BEAMER_col(Col) %8BEAMER_opt(Opt)
:BEAMER_col_ALL: 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
:END:
  
  ** First Slide
 :B_frame:
 :PROPERTIES:
 :BEAMER_env: frame
 :END:
 - first bullet
 
>>
>> One more thing, though.  The "EXPORT_FILE_NAME" is ignored at my side.
>
> You mean that, when you export "* Test Beamer" sub-tree, produced file
> isn't called "presentation.pdf"? That's strange. I cannot reproduce it.

Yes, that's what I meant.  But I am not able to reproduce it either, any
more.  Sorry for the noise.

Thanks for checking, anyway.

Regards,
Andreas





Re: [O] Emacs lisp code export difference between `org-export-region-as-html' and `org-export-as-html'

2012-09-25 Thread Bastien
Hi,

thorne  writes:

> On Mon, Sep 24, 2012 at 3:53 PM, thorne  wrote:
>>  (defun render-one (file)
>>(with-temp-buffer
>>  (insert-file file)
>>  (org-export-as-html nil nil nil 'string t)))
>
> Well, I still don't know why it behaves the way I've described, but it
> works the way I want if instead of the above function, I use:
>
> (defun render-one (file)
>   (save-excursion
> (let ((buffer (set-buffer (find-file file
>   (setq rtn (org-export-as-html nil nil nil 'string t))
>   (kill-buffer buffer)
>   rtn)))
>
> -- using find-file and messing with the buffer stuff by hand, instead
> of using `with-temp-buffer' and `insert-file', which later strikes me
> as neater, and possibly faster (I am using it in batch to process
> multiple files) but the other way works, so that's fine.  Thanks.

Just out of curiosity, did it work for you the way I suggested?

find-file will load the appropriate mode, hence no need for (org-mode)
in your latest function.  

-- 
 Bastien



Re: [O] [PATCH] Lookup functions, take two

2012-09-25 Thread Dominik, Carsten
Hi Bastien,

since you copied me, I guess you want my comment?

I think this is very useful functionality and I would vote for putting it into 
the core.

The documentation should be kept as compact as possible, I think without an 
example, just describe the functionality. Maybe Jarmo can write a little 
tutorial for Worg and document it there more extensively?

- Carsten

On 25.9.2012, at 03:49, Bastien wrote:

> Hi Jarmo,
> 
> thanks for the explanations -- I should I've read your doc patch 
> more closely. 
> 
> It is a nice spreadsheet utility function but my feeling is that
> having it in Org's core does not really fit, as it introduces
> functions where we usually have references.  Functions are fine
> for users to add, though, that's the whole point of allowing
> Elisp in table formulas.
> 
> Maybe I'm too conservative on this one.  I will wait for other
> users' insight -- especially Carsten, who can better decide what
> fits and what does not in this area.
> 
> Thanks,
> 
> -- 
> Bastien




Re: [O] Breadcrumbs?

2012-09-25 Thread Sebastien Vauban
Hi,

Anthony Lander wrote:
> On 12-Sep-24, at 5:36 PM, Ken Williams wrote:
>
>> Has anyone ever tried implementing a “breadcrumbs”-type feature in org-mode?
>> By that I mean something that would quickly tell you the headings up the
>> whole path to the root, to quickly orient yourself when you’re deep within a
>> document. I was originally thinking of something always-present shown at the
>> top of the frame, but maybe it would be better as something shown on demand
>> in the minibuffer, possibly making it taller while shown.
>
> You can bind this to a speed command.

SPC in column 0 does already do that, doesn't it?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [PATCH] Give possibility to start gnus with gnus-no-server

2012-09-25 Thread Bastien
Hi Jarmo,

Jarmo Hurri  writes:

> You probably mean
>
> (defalias 'gnus 'gnus-no-server)

Er.. yes.

> which, to my ashtonishment, did not do it. I don't know why. It did not
> matter whether I defined the alias before or after requiring org.

This looks like a Gnus bug.  Please report it to the Gnus developers.

> It is also possible for a user to run both gnus and gnus-no-server
> (e.g., the latter when there is no connection to the news server).

Okay.  I've pushed a slightly edited version of your patch, please 
check the ChangeLog here:

  http://orgmode.org/w/org-mode.git?p=org-mode.git;a=commit;h=1086895

Thanks,

-- 
 Bastien



Re: [O] [PATCH] Lookup functions, take two

2012-09-25 Thread Bastien
Hi Carsten,

"Dominik, Carsten"  writes:

> since you copied me, I guess you want my comment?

yes, sorry for requesting this implicitely.

> I think this is very useful functionality and I would vote for putting
> it into the core.

Okay, thanks.

> The documentation should be kept as compact as possible, I think without an
> example, just describe the functionality. Maybe Jarmo can write a little
> tutorial for Worg and document it there more extensively?

Jarmo, would you be okay reworking the patch with these directions?  
(We have some time before your assignment papers get processed by the 
FSF, so please take your time for this.)

Having a new node in the manual is fine -- the node can later evolve
and document other utility functions.

Also be careful about this typographic convention: the Elisp manuals
use two whitespaces for ending sentences.

A tutorial for Worg would indeed be nice: please send me your public 
key and I will give you write access to Worg.

Thanks!

-- 
 Bastien



Re: [O] [PATCH] Lookup functions, take two

2012-09-25 Thread Bastien
Jarmo Hurri  writes:

> So if it does not fit the core, where should I add it so that the users
> will still find it? I think that in general it is a very good idea to
> have powerful tables in org. Right?

Right :)

> Many users in the land of spreadsheet programs have gotten used to these
> functions.  You have had at least one explicit request for this feature:
>
> http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01227.html

Indeed, thanks again for contributing this.

PS: My über-cautious attitude was more because I'm not using such
functionalities.

-- 
 Bastien



Re: [O] Breadcrumbs?

2012-09-25 Thread Bastien


"Sebastien Vauban"
 writes:

>> You can bind this to a speed command.
>
> SPC in column 0 does already do that, doesn't it?

Yes.

-- 
 Bastien




Re: [O] Feature request: setq org-agenda-follow-indirect 'parent

2012-09-25 Thread Nicolas Girard
>>>
>>> In this example, in order to work on, or even decide anything about
>>> "Todo item 1", chances are that I'd also need to see the contents of
>>> the "References" and "Notes" items ; so the tree I'd need to see in
>>> the indirect buffer should have the *parent* of "Todo item 1" as root,
>>> instead of "Todo item 1" itself.
>
> C-u 1 C-c C-x b
>
> in Todo item 1 should do.
>

Hi, Bastien,

thanks for your reply.

Indeed, "C-u -1 C-c C-x b" is what I'm looking for.
So, in a nutshell, I wish that, using the agenda with follow-mode on,
hitting  or  would trigger (org-tree-to-indirect-buffer -1).

-- 
Nicolas



Re: [O] Publishing using the new exporter

2012-09-25 Thread Nicolas Goaziou
Hello,

Robert Klein  writes:

> If i set :html-preable to either s2-preamble or 's2-preamble nothing 
> gets inserted.
>
> I studied the code in org-e-html (excerpt below), but i don't see what I 
> did wrong.
>
> #+begin_src elisp :file contrib/lisp/org-e-html.el :firstline 1329
> (defun org-e-html-preamble (info)
>(when (plist-get info :html-preamble)
>  (let* ((title (org-export-data (plist-get info :title) info))
>  (date (org-e-html-format-date info))
>  (author (org-export-data (plist-get info :author) info))
>  (email (plist-get info :email))
>  (html-pre-real-contents
>   (cond
>((functionp (plist-get info :html-preamble))
> (with-temp-buffer
>   (funcall (plist-get info :html-preamble))
>   (buffer-string)))
> #+end_src

That's because the code expects the function to write to a buffer
instead of simply returning a string, which is wrong IMO.

The condition should simply be:

  ((functionp (plist-get info :html-preamble))
   (funcall (plist-get info :html-preamble)))

I will change this in a few hours unless someone beats me to it.


Regards,

-- 
Nicolas Goaziou



Re: [O] [org-e-beamer-export-to-pdf] Slide with two columns?

2012-09-25 Thread Myles English

Nicolas Goaziou writes:

> You can have a look at the following example:
>
> --8<---cut here---start->8---
> #+TITLE: Two columns
> #+LaTeX_CLASS: beamer
> #+BEAMER_THEME: Rochester [height=20pt]
> #+BEAMER_COLOR_THEME: spruce
>
> * Frame title
>
>   Some text before
>
> ** Column without title
> :BMCOL:
>:PROPERTIES:
>:BEAMER_col: 0.5
>:END:
>
>Some text
>
> ** Alert block in another column  
> :B_alertblock:BMCOL:
>:PROPERTIES:
>:BEAMER_env: alertblock
>:BEAMER_col: 0.5
>:END:
>
>Alert !
>
> ** Quit column env with an ignoreheading 
> :B_ignoreheading:
>:PROPERTIES:
>:BEAMER_env: ignoreheading
>:END:
>
>You also quit column env with any other block type as long as there
>is no BEAMER\under{}col property in the headline.
> --8<---cut here---end--->8---

That works great.

Thanks,

Myles



[O] [org-e-beamer-export-] Feature request: obey org-inlinetask-export

2012-09-25 Thread Myles English

Hi,

It would be nice to be able to exclude inline tasks from (the new)
beamer export using:

#+BEGIN_SRC elisp
(setq org-inlinetask-export nil)
#+END_SRC

After that, it would also be nice to be able to toggle the var using an
#+OPTION.

Thanks,

Myles



Re: [O] Breadcrumbs?

2012-09-25 Thread Sebastien Vauban
Bastien,

Bastien wrote:
> "Sebastien Vauban" writes:
>>> You can bind this to a speed command.
>>
>> SPC in column 0 does already do that, doesn't it?
>
> Yes.

And here a small extension to your function, in order to add a more visible
color to the displayed path:

#+begin_src emacs-lisp
(add-hook 'org-mode-hook
  (lambda() (add-to-list 'mode-line-format
 '(:eval (org-propertize
  (org-display-outline-path nil t t)
 'face 'mode-line-emphasis
 'help-echo "Outline path")) t)))
#+end_src

Could we imagine the displayed outline path to be separated by " / " instead
of by "/", that is:

"Tasks / Add color to modeline / Check function org-propertize"

instead of:

"Tasks/Add color to modeline/Check function org-propertize"?

That way, it would as well be equivalent to what's displayed by helm-imenu.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [org-e-beamer-export-] Feature request: obey org-inlinetask-export

2012-09-25 Thread Sebastien Vauban
Hi Myles,

"Myles English" wrote:
> It would be nice to be able to exclude inline tasks from (the new)
> beamer export using:
>
> #+BEGIN_SRC elisp
> (setq org-inlinetask-export nil)
> #+END_SRC
>
> After that, it would also be nice to be able to toggle the var using an
> #+OPTION.

+1 for the last request, even if you can always tag them with `:noexport:'.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Creating Gantt charts by Exporting to TaskJuggler 3.3.0

2012-09-25 Thread Christian Egli
Buddy Butterfly  writes:

> thanks for info. I will give this a try when I'll find the time.
> At the moment, because of the scrambled handling of task_ids it
> is not really usable.

What exactly is the problem with the handling of task_ids?

Thanks
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




Re: [O] [org-e-beamer-export-] Feature request: obey org-inlinetask-export

2012-09-25 Thread Myles English

Hi Seb,

Sebastien Vauban writes:

> Hi Myles,
>
> "Myles English" wrote:
>> It would be nice to be able to exclude inline tasks from (the new)
>> beamer export using:
>>
>> #+BEGIN_SRC elisp
>> (setq org-inlinetask-export nil)
>> #+END_SRC
>>
>> After that, it would also be nice to be able to toggle the var using an
>> #+OPTION.
>
> +1 for the last request, even if you can always tag them with
> `:noexport:'.

Tagging an inline task with :noexport: does not prevent it from being
exported for me.  Does it really work with you or are you talking about
normal heading tasks?

Myles



Re: [O] Creating Gantt charts by Exporting to TaskJuggler 3.3.0

2012-09-25 Thread Christian Egli
Yann Hodique  writes:

> At the moment I'm kinda contemplating doing a major rewrite of the TJ
> exporter to use the org-export framework

That might be a good idea. The currect tj exporter doesn't use any of
the exporting framework. OTOH it is not really a classic exporter in the
sense that it exports the content. Instead it uses the headlines as
nodes and exports those using some conventions. If this can be handled
with the new exporter then sure go for it.

Thanks
Christian
-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




[O] [org-e-beamer-export-to-latex] howto put intra-frame latex?

2012-09-25 Thread Myles English

Hello again,

Does anyone have a solution to this?  I am attempting to give one slide
only a background image.

I can set the background image but can't unset it because the latex
directive needs to come after the \end{frame} of the slide with the
background and before the \begin{frame} of the slide without the
background.  Like so (this works):

#+begin_latex
\section{Start the slides}
\label{sec-1}
\setbeamertemplate{background canvas}%
  {\ThisULCornerWallPaper{1}%
{/home/myles/me_on_a_horse.jpg}}


\begin{frame}[label=sec-1-1]{A slide}
first slide content
\end{frame}

\setbeamertemplate{background canvas}{\ClearWallPaper}

\begin{frame}[label=sec-1-2]{Another slide}
more content here

\end{frame}
#+end_latex


However when the org example at the end of this mail is exported, I get
this (i.e. the \ClearWallPaper is before the \end{frame}, and it needs
to be after):


#+begin_latex
%[snip]
\begin{frame}[label=sec-1-2]{Another slide}
more content here

\setbeamertemplate{background canvas}{\ClearWallPaper}
\end{frame}
%[snip]
#+end_latex


And finally, the example:

// BEGIN tests.org //

#+STARTUP: indent
#+TITLE: Tests
#+AUTHOR:Me
#+EMAIL: m...@here.com
#+DATE:  Wednesday September 26^th 2012
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+latex_header: \usepackage{wallpaper}
#+BEAMER_THEME: default
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) 
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
#+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:t tasks:nil pri:nil tags:t
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:

* Start the slides
#+begin_latex
  \setbeamertemplate{background canvas}%
{\ThisULCornerWallPaper{1}%
  {/home/myles/me_on_a_horse.jpg}}
#+end_latex


** A slide

first slide content


** Another slide

more content here

#+begin_latex
\setbeamertemplate{background canvas}{\ClearWallPaper}
#+end_latex

** Last slide

Content on the last slide


// END tests.org //


Freestyling a bit: I am wondering if the use case is a bit like that for
inline tasks; for something that doesn't fully belong in the tree structure,
that is more file-local in scope, but still needs to know it's position in the
file.

Thanks,

Myles



Re: [O] [PATCH v3 00/11] Taskjuggler exporter improvements

2012-09-25 Thread Christian Egli

Hi Yann

Bastien  writes:

> I have now applied those patches to master.

I guess we should update the tutorial on worg
(http://orgmode.org/worg/org-tutorials/org-taskjuggler.html). Would you
have time to have a stab at this?

Thanks
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




Re: [O] [org-e-beamer-export-to-latex] howto put intra-frame latex?

2012-09-25 Thread Suvayu Ali
On Tue, Sep 25, 2012 at 02:59:55PM +0100, Myles English wrote:
> 
> Hello again,
> 
> Does anyone have a solution to this?  I am attempting to give one slide
> only a background image.
> 
> I can set the background image but can't unset it because the latex
> directive needs to come after the \end{frame} of the slide with the
> background and before the \begin{frame} of the slide without the
> background.  Like so (this works):

Doesn't ignoreheading work?

** dummy frame :B_ignoreheading:
   :PROPERTIES:
   :BEAMER_env: ignoreheading
   :END:

\LaTeX command outside frame

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Erroneous "No such file or directory" with babel and remote dir

2012-09-25 Thread Loris Bennett
Bastien  writes:

> Hi Loris,
>
> "Loris Bennett"  writes:
>
>> I have updated from 7.8.something to 7.9.1 and evaluating the following
>> source block:
>>
>> ,--
>> | #+header: :cache no :eval query
>> | #+name: sacct-output
>> | #+begin_src sh  :exports both :dir /root@xx:
>> | module load shared slurm
>> | sacct -d -S 2011-11-01 | grep JOB_TERMINATED | cut -d ' ' -f 4,23 | grep 
>> -v ' 0$'
>> | #+end_src
>> `--
>>
>> used to work, but now produces the error:
>
> Can you try to bisect and find the bad commit (or a set of 
> suspicious ones)?
>
> Thanks,

How do I avoid the mixed installation problem when testing with a clone
of the org repository?  My version is 

,
| Org-mode version 7.9.1 (release_7.9.1-git @ mixed installation!
| /usr/local/share/emacs/site-lisp/ and
| /home/loris/git/org-mode.git/lisp/)
`

Loris
-- 
no sig is good sig







Re: [O] [org-e-beamer-export-to-latex] howto put intra-frame latex?

2012-09-25 Thread Myles English

Well reading the manual/src helped, of course, and I have altered the
example below if any one else is wondering.

Because I have H:2 in the #+OPTIONS line, a level 1 heading does not
make a frame and can be used sneak in some latex.


Myles English writes:

> Does anyone have a solution to this?  I am attempting to give one slide
> only a background image.
>
> I can set the background image but can't unset it because the latex
> directive needs to come after the \end{frame} of the slide with the
> background and before the \begin{frame} of the slide without the
> background.

[snip]

> // BEGIN tests.org //
>
> #+STARTUP: indent
> #+TITLE: Tests
> #+AUTHOR:Me
> #+EMAIL: m...@here.com
> #+DATE:  Wednesday September 26^th 2012
> #+DESCRIPTION:
> #+KEYWORDS:
> #+LANGUAGE:  en
> #+LaTeX_CLASS: beamer
> #+LaTeX_CLASS_OPTIONS: [presentation]
> #+latex_header: \usepackage{wallpaper}
> #+BEAMER_THEME: default
> #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) 
> %8BEAMER_opt(Opt)
> #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
> #+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
> #+OPTIONS:   TeX:t LaTeX:t skip:nil d:t tasks:nil pri:nil tags:t
> #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
> path:http://orgmode.org/org-info.js
> #+EXPORT_SELECT_TAGS: export
> #+EXPORT_EXCLUDE_TAGS: noexport
> #+LINK_UP:   
> #+LINK_HOME: 
> #+XSLT:
>
> * Start the slides
> #+begin_latex
>   \setbeamertemplate{background canvas}%
> {\ThisULCornerWallPaper{1}%
>   {/home/myles/me_on_a_horse.jpg}}
> #+end_latex
>
>
> ** A slide
>
> first slide content

* Ignored   :B_ignoreheading:
:PROPERTIES:
:BEAMER_env: ignoreheading
:END:
#+begin_latex
\setbeamertemplate{background canvas}{\ClearWallPaper}
#+end_latex


* Resume:B_ignoreheading:
:PROPERTIES:
:BEAMER_env: ignoreheading
:END:

>
> ** Another slide
>
> more content here
>
> #+begin_latex
> \setbeamertemplate{background canvas}{\ClearWallPaper}
> #+end_latex
>
> ** Last slide
>
> Content on the last slide
>
>
> // END tests.org //


Myles



Re: [O] [org-e-beamer-export-to-latex] howto put intra-frame latex?

2012-09-25 Thread Myles English


Hi Suvayu,

Suvayu Ali writes:

> On Tue, Sep 25, 2012 at 02:59:55PM +0100, Myles English wrote:
>> 
>> Hello again,
>> 
>> Does anyone have a solution to this?  I am attempting to give one slide
>> only a background image.
>> 
>> I can set the background image but can't unset it because the latex
>> directive needs to come after the \end{frame} of the slide with the
>> background and before the \begin{frame} of the slide without the
>> background.  Like so (this works):
>
> Doesn't ignoreheading work?
>
> ** dummy frame :B_ignoreheading:
>:PROPERTIES:
>:BEAMER_env: ignoreheading
>:END:
>
> \LaTeX command outside frame

Ah yes it does that is much tidier than my answer.

Thanks,

Myles

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




Re: [O] Breadcrumbs?

2012-09-25 Thread Nick Dokos
Sebastien Vauban  wrote:

> Hi,
> 
> Anthony Lander wrote:
> > On 12-Sep-24, at 5:36 PM, Ken Williams wrote:
> >
> >> Has anyone ever tried implementing a “breadcrumbs”-type feature in 
> >> org-mode?
> >> By that I mean something that would quickly tell you the headings up the
> >> whole path to the root, to quickly orient yourself when you’re deep within 
> >> a
> >> document. I was originally thinking of something always-present shown at 
> >> the
> >> top of the frame, but maybe it would be better as something shown on demand
> >> in the minibuffer, possibly making it taller while shown.
> >
> > You can bind this to a speed command.
> 
> SPC in column 0 does already do that, doesn't it?
> 

Not here, I'm afraid: SPC in column 0 (both on headlines and not on headlines)
is bound to org-self-insert-command and just inserts a space.

Nick



Re: [O] Breadcrumbs?

2012-09-25 Thread Memnon Anon
Bastien  writes:

> Indeed!  I've updated `org-display-outline-path' so that it can return a
> string:
>
>   (org-display-outline-path nil t t)
>
> So you can now hook it like this:
>
> (add-hook 'org-mode-hook
>   (lambda() (add-to-list 'mode-line-format
>  '(:eval (org-display-outline-path nil t t)) 
> t)))

Interesting.

But my modeline is already fairly crowded and headlines can be rather long.

I am currently trying this:

--8<---cut here---start->8---

(add-hook 'org-mode-hook
  (lambda() (setq header-line-format
 '(:eval (org-display-outline-path nil t t)

--8<---cut here---end--->8---

Memnon




Re: [O] Breadcrumbs?

2012-09-25 Thread Bastien


"Sebastien Vauban"
 writes:

> Could we imagine the displayed outline path to be separated by " / " instead
> of by "/", that is:

>From current master, try this out:

(org-display-outline-path nil t " - ")

HTH,

-- 
 Bastien




Re: [O] Bug: R source block list export not working properly [7.8.11]

2012-09-25 Thread Thomas S. Dye
Greg Tucker-Kellogg  writes:

> I reported this on the mailing list as a question, but it appears to be an
> actual bug, so I thought I should file it formally.  The following MWE
> shows the problem when trying to export an R character vector:
>
> #+begin_src R :exports results :results value list
> c("x","y","z")
> #+end_src
>
> #+RESULTS:
> - ("x")
> - ("y")
> - ("z")
>
> This is clearly not what is wanted, more or less ever.  What works,
> instead, requires R manipulation of the results, of the form:
>
> #+BEGIN_SRC R :exports results :results output raw
> a <- c("x","y","z")
> cat(paste("-", a), sep="\n")
> #+END_SRC
>
> #+RESULTS:
> - x
> - y
> - z
>
>
> Emacs  : GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
> of 2012-08-27 on bob.porkrind.org
> Package: Org-mode version 7.8.11

Hi Greg,

The problem is that no one is maintaining ob-r.el.  The author, Dan
Davison, has moved on to other things.

Eric Schulte will apply patches to ob-r.el.  Perhaps you could suggest a
patch that would fix this behavior?

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



[O] agenda timeline filtered by date range

2012-09-25 Thread Johan Sandblom

Hello.

Since a year or so I am using org-mode ever more intensively. Among 
other things, I use it to track my training in pediatric medicine. I 
keep a sort of combined diary and planner of events, courses and work 
schedules in a file called arbete.org, which tracks the four years since 
I started until as far into the future as there are concrete plans. 
Sometimes I like to discuss my progress with someone, and then I usually 
make an html export of the timeline in this file. The timeline is 
becoming rather long, but I do not feel it would make sense to divide it 
into several files since it is a logical compartment of life for me.


Is it possible to limit the timeline (or perhaps a custom agenda view) 
to a specific date range, for instance a year or "the fall of 2011"? I 
have searched the manual and FAQs but have found nothing that addresses 
this. Perhaps this reflects my misuse of org-mode, but on the other hand 
it does seem a useful feature (which probably means it exists but 
somehow eludes me).


Thank you for any help,

Johan Sandblom

--
Johan Sandblom, MD PhD
m +46735521477
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
--Bertrand Russell



Re: [O] Erroneous "No such file or directory" with babel and remote dir

2012-09-25 Thread Memnon Anon
"Loris Bennett"  writes:

> How do I avoid the mixed installation problem when testing with a clone
> of the org repository? 

,[ http://orgmode.org/worg/org-faq.html#mixed-install ]
| Among the most common reasons is Orgmode gets loaded before the
| load-path variable is updated to include the installation directory of
| the latest Orgmode. To avoid issues like this, it is recommended that
| the load path is updated very early on in your init file. 
`
 
hth 
Memnon




[O] bug#9536: 24.0.50; org-capture do not work together org-crypt.el

2012-09-25 Thread Bastien
Hi Guilherme,

Guilherme Gondim  writes:

> I would use `org-capture' to add a entry in a subtree encrypted using
> `org-encrypt'.
>
> `org-capture' currently do not identify and decrypt a encrypted subtree
> before save the entry.

This is now fixed in Org's git repository.

It will be part of Org 7.9.2.

Thanks,

-- 
 Bastien





[O] bug#9536: 24.0.50; org-capture do not work together org-crypt.el

2012-09-25 Thread Guilherme Gondim

Bastien writes:

> Hi Guilherme,
>
> Guilherme Gondim  writes:
>
>> I would use `org-capture' to add a entry in a subtree encrypted using
>> `org-encrypt'.
>>
>> `org-capture' currently do not identify and decrypt a encrypted subtree
>> before save the entry.
>
> This is now fixed in Org's git repository.
>
> It will be part of Org 7.9.2.
>
> Thanks,

Thank you!

-- 
Guilherme Gondim (semente)





Re: [O] orgmode + evernote, anyone using it? Use cases?

2012-09-25 Thread Eden Cardim
> "Marcelo" == Marcelo de Moraes Serpa  writes:

Marcelo> Hello everyone, As much as I love orgmode, I can't deny
Marcelo> that Evernote looks slick. I would not replace org by
Marcelo> Evernote per se, but Evernote does have more polished
Marcelo> capture tools than orgmode has. Just the simple fact that
Marcelo> you can drag and drop anything to an Evernote note, and
Marcelo> it will automatically store/display it accordingly is
Marcelo> great.

Dragging is what bothers me. I practically live inside emacs and
pressing one key to capture stuff is about 5 times faster than doing
it by dragging, that is, if the app I want to capture from happens to
be on the same desktop. I have grown a habit of capturing absolutely
everything, which is eased by the fact that I redirect everything I
can to IRC or my mailbox, which gives me a very efficient note-taking
and communication system. I also have the capability of capturing
links to stuff on a remote system (which Evernote can't do). Also,
Evernote has no integrated calendar, which really hurts, in org I can
capture and add a scheduled/deadline timestamp to the item which
effectively implements GTD's recommendation of "using the item itself
as a reminder". The only useful thing I've ever done with Evernote is
take advantage of the OCR search, which means I can capture physical
things fast with the smartphone and find them later via search, like
bookmarking a page from a physical book or capturing a business card.

-- 
 tetris is so unrealistic




Re: [O] orgmode + evernote, anyone using it? Use cases?

2012-09-25 Thread Marcelo de Moraes Serpa
You make some very good points, Eden.

Dragging is what bothers me.


I used to use Emacs for a lot of other stuff before, but decided to be more
pragmatic and enjoy apps outside it as well. I don't currently live inside
Emacs (in fact, I've ended up switching to MacVim for most of my coding
tasks, but that was before Evil was available, and I might take the time to
switch my env to Emacs again someday, now that there is a decent Vim
emulation layer), and I use other OSX apps. OSX is very graphical. Being
able to quickly drag and drop items in an Emacs org buffer would be a plus,
and would also be helpful to less technically-savvy/more graphically
oriented people willing to use org.

I have grown a habit of capturing absolutely
> everything, which is eased by the fact that I redirect everything I
> can to IRC or my mailbox, which gives me a very efficient note-taking
> and communication system


That sounds *very* interesting. Would you mind sharing a bit more about
your system? I'm specially curious about the capture tools you're using
(IRC?).

I also have the capability of capturing
> links to stuff on a remote system (which Evernote can't do).


Good point.

The only useful thing I've ever done with Evernote is
> take advantage of the OCR search, which means I can capture physical
> things fast with the smartphone and find them later via search


True. That's a very useful Evernote capture feature, very convenient when
you just don't feel like writing.

Now, I agree orgmode has the edge, specially for the geekier audience, but
Evernote has some great capture tools, tools that could be ported to org
(food for thought) or used in conjunction.

Cheers!

- Marcelo.

On Tue, Sep 25, 2012 at 10:59 AM, Eden Cardim  wrote:

> > "Marcelo" == Marcelo de Moraes Serpa  writes:
>
> Marcelo> Hello everyone, As much as I love orgmode, I can't deny
> Marcelo> that Evernote looks slick. I would not replace org by
> Marcelo> Evernote per se, but Evernote does have more polished
> Marcelo> capture tools than orgmode has. Just the simple fact that
> Marcelo> you can drag and drop anything to an Evernote note, and
> Marcelo> it will automatically store/display it accordingly is
> Marcelo> great.
>
> Dragging is what bothers me. I practically live inside emacs and
> pressing one key to capture stuff is about 5 times faster than doing
> it by dragging, that is, if the app I want to capture from happens to
> be on the same desktop. I have grown a habit of capturing absolutely
> everything, which is eased by the fact that I redirect everything I
> can to IRC or my mailbox, which gives me a very efficient note-taking
> and communication system. I also have the capability of capturing
> links to stuff on a remote system (which Evernote can't do). Also,
> Evernote has no integrated calendar, which really hurts, in org I can
> capture and add a scheduled/deadline timestamp to the item which
> effectively implements GTD's recommendation of "using the item itself
> as a reminder". The only useful thing I've ever done with Evernote is
> take advantage of the OCR search, which means I can capture physical
> things fast with the smartphone and find them later via search, like
> bookmarking a page from a physical book or capturing a business card.
>
> --
>  tetris is so unrealistic
>
>
>


Re: [O] Breadcrumbs?

2012-09-25 Thread Ken Williams
Very nice, thanks.  I like to see the top-level heading too, so I removed the 
(rest ...) call near the beginning.

  -Ken

From: Anthony Lander [mailto:anth...@landerfamily.ca]
Sent: Monday, September 24, 2012 7:45 PM
To: Ken Williams
Cc: emacs-orgmode@gnu.org
Subject: Re: [O] Breadcrumbs?

Hi Ken,

You can bind this to a speed command. It will show you the path to the current 
headline (less the first heading) in the echo area, and will also copy it to 
the kill ring. This is the functionality I need, but it would be easy to modify 
to do what you want.

(defun org-copy-outline-path-less-root-to-kill-ring (&optional a b)
  "Copy the current outline path, less the first node, to the
kill ring, and echo to the echo area."
  (interactive "P")
  (let* ((bfn (buffer-file-name (buffer-base-buffer)))
 (case-fold-search nil)
 (path (rest (org-get-outline-path
(setq path (append path
   (save-excursion
 (org-back-to-heading t)
 (if (looking-at org-complex-heading-regexp)
 (list (match-string 4))
(let ((formatted-path (org-format-outline-path
   path
   (1- (frame-width)
  (kill-new formatted-path)
  (message "%s" formatted-path

Hope this helps,

 -Anthony



CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. Any 
unauthorized review, use, disclosure or distribution of any kind is strictly 
prohibited. If you are not the intended recipient, please contact the sender 
via reply e-mail and destroy all copies of the original message. Thank you.


Re: [O] Breadcrumbs?

2012-09-25 Thread Bastien


Hi Nick,

Nick Dokos  writes:

> I must have missed some context: where does SPC in column 0 run
> org-display-outline-path?

If you have (setq org-use-speed-commands t)

HTH,

-- 
 Bastien




Re: [O] auto-fill non-op, fill-paragraph error

2012-09-25 Thread Jörn Gersdorf
Hi Bastien,

thank you - the bug is resolved as of release_7.9.1-337-g4512f8.

Best regards,
Jörn

On Tue, Sep 25, 2012 at 3:32 PM, Bastien  wrote:

> Hi Jörn,
>
> Jörn Gersdorf  writes:
>
> > No problem, I see that it's quite interesting after the "@" ;-) since
> > I'm running emacs under cygwin
> >
> > Org-mode version 7.9.1 (release_7.9.1-62-gb61ff1 @ /c/Documents and
> > Settings/myself/My Documents/.emacs.d/vendor/org-mode/lisp/)
>
> Okay -- it's now 337 commits *after* 7.9.1 so maybe this has been fixed
> since commit 62 after 7.9.1.
>
> ("release_7.9.1-62-gb61ff1" say you are on commit 62 after 7.9.1.)
>
> Please pull again and let us know.
>
> Also please reply to the whole mailing list, this can be useful to
> others.
>
> Thanks,
>
> --
>  Bastien
>


[O] org-date-toggle-inactive

2012-09-25 Thread Johan Sandblom
I wrote the following which allows me ctrl-c-ctrl-c on a date in an org 
file and thereby toggle the inactive state of the date. I find it useful 
when applying to courses that I am later [not] admitted to. Perhaps it 
is useful to someone else. Perhaps also there are obvious improvements 
to the code. Lastly, perhaps there is a better place to submit such 
snippets. I appreciate feedback.


Regards, Johan

(setq org-date-regexp
  "[\\[<][0-9]\\{4\\}-[0-9][0-9]-[0-9][0-9] [[:alpha:]]\\{2,3\\} 
?.*?[]>]")


(defun org-at-date-p ()
  "Am I inside an org date?"
  (interactive)
  (save-excursion
(if (looking-at org-date-regexp)
t
  (if (> (skip-chars-backward "-[:alnum:]: ") -40)
  (let ((left (- (point) 1)))
(progn
  (search-backward-regexp "[\\[<]" left t)
(if (looking-at org-date-regexp)
t)))

(defun org-date-toggle-inactive ()
  (interactive)
  (if (org-at-date-p)
  (save-excursion
(progn
  (search-backward-regexp "[\\[<]")
  (if (string-equal "<" (match-string 0))
  (replace-match "[")
(replace-match "<"))
  (search-forward-regexp "[]>]")
  (if (string-equal ">" (match-string 0))
  (replace-match "]")
(replace-match ">"))
  t))
nil))

(add-hook 'org-ctrl-c-ctrl-c-hook
  'org-date-toggle-inactive)


--
Johan Sandblom, MD PhD
m +46735521477
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
--Bertrand Russell



Re: [O] org-date-toggle-inactive

2012-09-25 Thread Jonathan Leech-Pepin
Hello Johan,

On 25 September 2012 14:09, Johan Sandblom  wrote:

> I wrote the following which allows me ctrl-c-ctrl-c on a date in an org
> file and thereby toggle the inactive state of the date. I find it useful
> when applying to courses that I am later [not] admitted to. Perhaps it is
> useful to someone else. Perhaps also there are obvious improvements to the
> code. Lastly, perhaps there is a better place to submit such snippets. I
> appreciate feedback.
>
> Regards, Johan
>
> (setq org-date-regexp
>   "[\\[<][0-9]\\{4\\}-[0-9][0-9]**-[0-9][0-9] [[:alpha:]]\\{2,3\\}
> ?.*?[]>]")
>
> (defun org-at-date-p ()
>   "Am I inside an org date?"
>   (interactive)
>   (save-excursion
> (if (looking-at org-date-regexp)
> t
>   (if (> (skip-chars-backward "-[:alnum:]: ") -40)
>   (let ((left (- (point) 1)))
> (progn
>   (search-backward-regexp "[\\[<]" left t)
> (if (looking-at org-date-regexp)
> t)))
>
> (defun org-date-toggle-inactive ()
>   (interactive)
>   (if (org-at-date-p)
>   (save-excursion
> (progn
>   (search-backward-regexp "[\\[<]")
>   (if (string-equal "<" (match-string 0))
>   (replace-match "[")
> (replace-match "<"))
>   (search-forward-regexp "[]>]")
>   (if (string-equal ">" (match-string 0))
>   (replace-match "]")
> (replace-match ">"))
>   t))
> nil))
>
> (add-hook 'org-ctrl-c-ctrl-c-hook
>   'org-date-toggle-inactive)
>

You should be able to just use =org-toggle-timestamp-type=
instead of your snippet.  It performs the check and will toggle
back and forth between active and inactive timestamps.

(add-hook 'org-ctrl-c-ctrl-c-hook
  'org-toggle-timestamp-type)


>
> --
> Johan Sandblom, MD PhD
> m +46735521477
> What is wanted is not the will to believe, but the
> will to find out, which is the exact opposite
> --Bertrand Russell
>
>
Regards,

--
Jon


Re: [O] orgmode + evernote, anyone using it? Use cases?

2012-09-25 Thread Eden Cardim
> "Marcelo" == Marcelo de Moraes Serpa  writes:
Marcelo> I used to use Emacs for a lot of other stuff before, but
Marcelo> decided to be more pragmatic and enjoy apps outside it as
Marcelo> well.

"Using apps outside" isn't synonymous with "being pragmatic". Having
everything inside a single app (emacs) helps a lot. I can immediately
use it on another system with minimal fuss. I don't have to memorize a
new set of shortcuts every time I incorporate a new tool. I do use
tools that prove to be more effective, when they are (one of these is
omnigraffle, which I fire up via an org mode link), the problem is
that it's hard to match the speed of a well-trained emacs geek with a
set of GUI-based apps that weren't designed to work together.

Marcelo> [...]
Marcelo>  OSX is very graphical.

Which sucks, IMO.

Marcelo> Being able to quickly drag and drop items in an Emacs org
Marcelo> buffer would be a plus, and would also be helpful to less
Marcelo> technically-savvy/more graphically oriented people
Marcelo> willing to use org.

I don't think org will ever be used by people who are non-tech-savvy
or graphically oriented, it wasn't designed for that, it's designed
for tweak-freak geeks.

Marcelo> That sounds *very* interesting. Would you mind sharing a
Marcelo> bit more about your system? I'm specially curious about
Marcelo> the capture tools you're using (IRC?).

Basically, I use bitlbee which is an IRC gateway to
jabber/msn/twitter. I use ERC to connect to bitlbee and several IRC
networks. At one point I had a function that display todos according
to who was online, then I moved to a less reactive workflow and
stopped using it. I use the reqall app to capture things by voice and
there's a reqall jabber bot that messages me, then all I need to do is
capture stuff from inside the chat buffer (see org-capture-templates).

I use gnus for both mail and news, from there, I launch firefox if I
have to. I have lots of repetitive "status check" todos on my agenda,
which have links in them, such as:

[[elisp:(message-mail "f...@bar.com" "status check")]].

These take an average of 5 seconds each to send out, not 30 seconds
were I to do it via the GUI (I know because I time everything via org)
and quickly get bored of it because it's too slow. My invoices are
also done via an elisp function which exports my clocktable, previews,
attaches it to an email and leaves me inside a the mail buffer where I
only need to type a custom message body. There's also wiki pages I
need to update where I can just link via elisp and have them open in
mediawiki-mode with a template already filled in. Same for mailing
conversation logs, replying to tech support mail with code via babel,
etc.

Links are the basis for decent planning, I spend half of my day in
planning mode where I write links for everything I'm gonna do while
I'm in "cranking mode". When I switch over to cranking mode, I just
open whatever the task is linking to (like source code, an email, a
document, a web article, etc.) and that's enough to switch my brain
over to the context of that task and I can just get to work.

There's just no combination of OSX apps that give me the same type of
power. I'd have to reduce the pace of my life if I didn't use
org-mode.

Marcelo> True. That's a very useful Evernote capture feature, very
Marcelo> convenient when you just don't feel like writing.

I have no problem with writing, but sometimes I don't have writing
tools with me, but I always have my phone. Also, getting rid of
physical items helps clean up your lifestyle in general. My house used
to be filled up with bits and scraps of paper, business cards, ad
folders, etc. Now while I still have some paper, there's a lot less of
it to manage.

Marcelo> Now, I agree orgmode has the edge, specially for the
Marcelo> geekier audience, but Evernote has some great capture
Marcelo> tools, tools that could be ported to org (food for
Marcelo> thought) or used in conjunction.

Like what? I haven't seen anything useful besides the "photograph a
note" feature. The rest of it is just shortcut keys and I don't
consider DND to be useful for capturing, it's just too slow and
tedious. Capturing has to be as quick as pushing a button on a camera,
otherwise you stop doing it.

-- 
 tetris is so unrealistic




Re: [O] Differences between MobileOrg and MobileOrgNG

2012-09-25 Thread Henning Weiss
Hi,

On Wed, Sep 19, 2012 at 12:53 AM,  wrote:

> Henning Weiss wrote:
>
> >> On Mon, Sep 17, 2012 at 9:20 PM, Robert Eckl wrote:
>
> >> If i Push the org-files under Windows with MobileOrg the different
> >> org-files are not synced, but with MobileOrgNG they are. If i push the
> >> org-files under Mac OS, the org-files are synced even with MobileOrg.
>
> > This sounds like a known bug with org-mode on Windows, as it does not
> > generate a complete checksum file. See the discussion here. It seems
> > that changing from sha1sum.exe to md5sum.exe for the generation of the
> > checksum file fixes that issue.
>
> Thank you very much for the hint. Changing sha1sum.exe to md5sum.exe did
> not change anything for me, but changing from Gnuwin sha1sum/md5sum to
> the one from ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe seems to fix
> the issue for me.
>

Does that mean that the default checksum generation utility of cygwin that
is used by org-mode is broken? Will upgrading cygwin to a newer version fix
this, or did you need to change your setup?


> I hope, other issues are fixed too. Sometimes org-mobile-push crashes
> because of IIRC unexpected hashes. If I remove the related
> agenda-file(s), do the push, and then add the files to the agenda-files
> the push sometimes is succesfull. I have no idea, how to fix it.
>

Could you try to produce a minimal setup that produces this problem? I'm
sure more people on windows have this problem. I would at least like to
post a workaround for this issue on the mobileorg-android web page.

Henning


Re: [O] [org-e-beamer-export-] Feature request: obey org-inlinetask-export

2012-09-25 Thread Nicolas Goaziou
Hello,

"Myles English"  writes:

> It would be nice to be able to exclude inline tasks from (the new)
> beamer export using:
>
> #+BEGIN_SRC elisp
> (setq org-inlinetask-export nil)
> #+END_SRC

`org-inlinetask-export' support is dropped on purpose in the new
exporter: org-export.el should be the central place to decide what is or
isn't exported.

> After that, it would also be nice to be able to toggle the var using an
> #+OPTION.

The problem is that inlinetasks are not always loaded. In that case, an
"#+OPTION: itask:t" doesn't make much sense.

Though, with filters, you can ignore all inlinetasks for a given
back-end (or all back-ends):

#+begin_src emacs-lisp
(defun my-ignore-inlinetasks (inlinetask backend info)
  (and (memq backend '(e-latex e-beamer)) ""))

(add-to-list 'org-export-filter-inlinetask-functions 'my-ignore-inlinetasks)
#+end_src


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] Lookup functions, take two

2012-09-25 Thread Achim Gratz
Jarmo Hurri writes:
> Also made org-table.el (require 'cl) in general, not only compile time,
> because there was a warning of it being required at runtime, but there
> is still a warning at compile time. Seemed like a reasonable thing to
> do, although given the discussion on possible namespace clashes on the
> net makes me doubt the approach. It seems GNU does not like CL. I can
> implement a new function corresponding to CL's "position" if you find it
> necessary.

Using cl at runtime is a no-no for GNU Emacs and you are actually only
using cl-seq.  You could use the new cl-lib starting with Emacs 24.3,
but that's a no-no for backwards compatibility.  So we would need a
compatibility definition.  Since these functions were autoloaded in all
emacs versions, a defalias to the correct function depending on version
might be good enough, if not Org would have to re-implement the part you
need.  You could ask on the Emacs devel list if that'd be OK.


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

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Erroneous "No such file or directory" with babel and remote dir

2012-09-25 Thread Achim Gratz
Loris Bennett writes:
> How do I avoid the mixed installation problem when testing with a clone
> of the org repository?  My version is 
>
> ,
> | Org-mode version 7.9.1 (release_7.9.1-git @ mixed installation!
> | /usr/local/share/emacs/site-lisp/ and
> | /home/loris/git/org-mode.git/lisp/)
> `

Assuming that you've set up the load-path correctly, this should correct
itself when you do a

make autoloads

in the Git working tree.


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

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs




Re: [O] Breadcrumbs?

2012-09-25 Thread François Pinard
"Sebastien Vauban"
 writes:

> SPC in column 0 does already do that, doesn't it?

Wow!  I did not know that!  Thanks! :-)

François



Re: [O] Publishing using the new exporter

2012-09-25 Thread Nicolas Goaziou
Hello,

Robert Klein  writes:

> when the :html-preamble function is just:
> #+begin_src elisp
> (defun s2-preamble ()
>"alpha-mark")
> #+end_src
>
> the text "alpha-mark" also doesn't get inserted, though simply setting
> #+begin_src elisp
>  :html-preamble "alpha-mark"
> #+end_src
> works.
>
>
> If i set :html-preable to either s2-preamble or 's2-preamble nothing 
> gets inserted.

It should be fixed now. Note that a preamble function require one
argument: a plist containing export options.


Regards,

-- 
Nicolas Goaziou



Re: [O] org-date-toggle-inactive

2012-09-25 Thread Bastien
Jonathan Leech-Pepin  writes:

> You should be able to just use =org-toggle-timestamp-type=
> instead of your snippet.  It performs the check and will toggle
> back and forth between active and inactive timestamps.
>
> (add-hook 'org-ctrl-c-ctrl-c-hook
>   'org-toggle-timestamp-type)
>  

Or simply M- on the angle/bracket of the time-stamp.

-- 
 Bastien



[O] Table export and alignment

2012-09-25 Thread Erich Neuwirth
Section 3.2 of the manual describes the use of '' '' and 'c' for 
overruling the alignment of columns.
Should it be  instead of c?
And In noticed that these tags are respected by html export,
but not by LaTeX export.
Will LaTeX export learn this?




Re: [O] Table export and alignment

2012-09-25 Thread Bastien
Hi Erich,

Erich Neuwirth  writes:

> Section 3.2 of the manual describes the use of '' '' and 'c' for 
> overruling the alignment of columns.
> Should it be  instead of c?

Fixed, thanks.

> And In noticed that these tags are respected by html export,
> but not by LaTeX export.
> Will LaTeX export learn this?

The new LaTeX exporter already learned it.

-- 
 Bastien



Re: [O] [PATCH] Lookup functions, take two

2012-09-25 Thread Bastien
Achim Gratz  writes:

> You could ask on the Emacs devel list if that'd be OK.

I suggest using this code:

(defun org-lookup (val s-list r-list lastp &optional predicate)
  "Look for VAL in S-LIST and return the corresponding element in R-LIST.
If LASTP, ignore all matching VAL in SEARCH-LIST except the last one.
If PREDICATE is not nil, use this instead of `equal' to match VAL."
  (let ((p (or predicate 'equal)) (c 0) r)
(nth (dolist (i search-list r) (setq c (1+ c))
 (if (and (funcall p val i) (or lastp (not r)))
 (setq r (1- c
 return-list)))

(defun org-lookup-first (val s-list r-list &optional predicate)
  "Look for VAL in S-LIST and return the corresponding element in R-LIST.
If PREDICATE is not nil, use this instead of `equal' to match VAL."
  (org-lookup val s-list r-list nil predicate))

(defun org-lookup-last (val s-list r-list &optional predicate)
  "Look for VAL in S-LIST and return the corresponding element in R-LIST.
If PREDICATE is not nil, use this instead of `equal' to match VAL."
  (org-lookup val s-list r-list t predicate))

;; (org-lookup-first 2 '(1 2 3 2) '(A B C D E)) => B
;; (org-lookup-last 2 '(1 2 3 2) '(A B C D E))  => D

No `cl-position' anymore.

Less dense and elegant, of course, but more explicit.  Users will be
able to check the docstring of org-lookup-first/last, which I think is
good for functions that we advertize in the manual.

Jarmo, would you be okay if I commit this?

Then you can commit a <20 lines patch for the documentation :)  
Or you commit the code (19 lines!) and I commit the doc patch,
as you want!

Thanks,

-- 
 Bastien



[O] Turn off orgmode link syntax in babel src blocks

2012-09-25 Thread John Hendy
I have a babel block containing a bash script using double square
brackets. This gets converted to an org-mode style link.
Copying/pasting will still work fine, but the appearance is still a
bit bothersome. Is there a way to turn off link
fontification/transformation when inside a babel block?

Minimal example:

#+begin_src sh

if [[ -e /dev/sdb1 ]] ; then

#+end_src


Thanks,
John



[O] Help! problem with org-capture-templates

2012-09-25 Thread Bill Day
release_7.9.1-348-gea7baa emacs 24.2.1

When trying to apply a capture template, org-mode gives the error
void-function org-at-encypted-entry-p

Org templates:


(setq org-capture-templates
  (quote (("t" "todo" entry (file "~/git/org-mode/org/refile.org")
   "* TODO %^{Task} %^G %? Added: %U\n%a\n  %i" :clock-in t
:clock-resume t)
  ("n" "note" entry (file+headline "~/git/org-mode/org/
refile.org" "")
   "* %? :NOTE:\n%U\n%a\n  %i" :clock-in t :clock-resume t)
  ("j" "Journal" entry (file+datetree "~/git/org-mode/org/
diary.org")
   "* %?\n%U\n  %i" :clock-in t :clock-resume t)
  ("w" "org-protocol" entry (file "~/git/org-mode/org/refile.org
")
   "* TODO Review %c\n%U\n  %i" :immediate-finish t)
  ("p" "Phone call" entry (file "~/git/org-mode/org/refile.org")
   "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
  ("h" "Habit" entry (file "~/git/org-mode/org/refile.org")
"* NEXT %?\n%U\n%a\nSCHEDULED: %t
.+1d/3d\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n
%i"

Error:


Debugger entered--Lisp error: (void-function org-at-encrypted-entry-p)
  org-at-encrypted-entry-p()
  org-capture-set-target-location()
  org-capture(nil)
  call-interactively(org-capture nil nil)

Messages:

Debug on Error enabled globally
Template key:
OVERVIEW
Restoring clock data
Loading /home/billday/.emacs.d/org-clock-save.el (source)...done
OVERVIEW
Loading vc-git...done
OVERVIEW
Entering debugger...




-- 
Bill Day
williamson@gmail.com


[O] bug#9536: bug#9536: 24.0.50; org-capture do not work together org-crypt.el

2012-09-25 Thread Mike McLean

On Sep 25, 2012, at 10:33 AM, Bastien  wrote:

> Hi Guilherme,
> 
> Guilherme Gondim  writes:
> 
>> I would use `org-capture' to add a entry in a subtree encrypted using
>> `org-encrypt'.
>> 
>> `org-capture' currently do not identify and decrypt a encrypted subtree
>> before save the entry.
> 
> This is now fixed in Org's git repository.
> 
> It will be part of Org 7.9.2.

I don't use org-crypt. After updating Org to this patch level, I get the 
following error on every attempt to capture.

org-capture-set-target-location: Symbol's function definition is void: 
org-at-encrypted-entry-p







Re: [O] Bug: R source block list export not working properly [7.8.11]

2012-09-25 Thread Greg Tucker-Kellogg
Hi Tom,

I didn't realize.  Thanks for the info; I'll look into it.

Greg


On Sep 25, 2012, at 11:28 PM, Thomas S. Dye wrote:

> Hi Greg,
> 
> The problem is that no one is maintaining ob-r.el.  The author, Dan
> Davison, has moved on to other things.
> 
> Eric Schulte will apply patches to ob-r.el.  Perhaps you could suggest a
> patch that would fix this behavior?
> 
> All the best,
> Tom
> 
> -- 
> Thomas S. Dye
> http://www.tsdye.com




[O] Bug?: Table spreadsheet: Inactive dates

2012-09-25 Thread Daniel E . Doherty

All,

I notice that in a table, I can use active timestamps, do arithmetic
with them, and get meaningful results.  However, if I use inactive
timestamps, I get different results.  I prefer the way active timestamps
work, since I can easily do date arithmetic with them.

The problem with active timestamps is that they pollute the agenda.
Imagine a table with 100 rows of timestammps, all the same date.

* Tables with dates
** Active timestamps
| Begin  | End| Days |
|++--|
| <2012-09-24 Mon>   | <2012-09-25 Tue>   |1 |
| <2012-09-25 Tue 17:50> | <2012-09-25 Tue 19:37> | 0.074305 |
#+TBLFM: $3=@$2-@$1

** Inactive timestamps
| Begin  | End| Days |
|++--|
| [2012-09-24 Mon]   | [2012-09-25 Tue]   | [-1, Tue - Mon]  |
| [2012-09-25 Tue 17:50] | [2012-09-25 Tue 19:37] | [0, 0, 321:1850] |
#+TBLFM: $3=@$2-@$1

It seems to me that they ought to behave the same, but I would normally
want inactiv timestamps when doing calculations.

Regards,

Dan



Re: [O] Help! problem with org-capture-templates

2012-09-25 Thread Nick Dokos
Bill Day  wrote:

> release_7.9.1-348-gea7baa emacs 24.2.1
> ... 
> Error:
> 
> Debugger entered--Lisp error: (void-function org-at-encrypted-entry-p)
>   org-at-encrypted-entry-p()
>   org-capture-set-target-location()
>   org-capture(nil)
>   call-interactively(org-capture nil nil)
> 

Probably a missing autoload - as a temporary workaround, add

(require 'org-crypt)

to your .emacs, after the point where you load org.

Nick



Re: [O] Help! problem with org-capture-templates

2012-09-25 Thread Bill Day
Thanks for your reply.  I tried that and I got this:

When done with this frame, type C-x 5 0
Template key:
OVERVIEW
Restoring clock data
Loading /home/billday/.emacs.d/org-clock-save.el (source)...done
OVERVIEW
Loading vc-git...done
OVERVIEW [3 times]
byte-code: Before first headline at position 1 in buffer refile.org

On Tue, Sep 25, 2012 at 10:13 PM, Nick Dokos  wrote:

> Bill Day  wrote:
>
> > release_7.9.1-348-gea7baa emacs 24.2.1
> > ...
> > Error:
> >
> > Debugger entered--Lisp error: (void-function org-at-encrypted-entry-p)
> >   org-at-encrypted-entry-p()
> >   org-capture-set-target-location()
> >   org-capture(nil)
> >   call-interactively(org-capture nil nil)
> >
>
> Probably a missing autoload - as a temporary workaround, add
>
> (require 'org-crypt)
>
> to your .emacs, after the point where you load org.
>
> Nick
>



-- 
Bill Day
williamson@gmail.com


[O] bug#9536: bug#9536: 24.0.50; org-capture do not work together org-crypt.el

2012-09-25 Thread Bastien
Hi Mike,

Mike McLean  writes:

> I don't use org-crypt. After updating Org to this patch level, I get
> the following error on every attempt to capture.
>
> org-capture-set-target-location: Symbol's function definition is void:
> org-at-encrypted-entry-p

Fixed, thanks.

-- 
 Bastien





Re: [O] Help! problem with org-capture-templates

2012-09-25 Thread Bastien
Hi Bill,

Bill Day  writes:

> Thanks for your reply.  I tried that and I got this:
>
> When done with this frame, type C-x 5 0
> Template key:
> OVERVIEW
> Restoring clock data
> Loading /home/billday/.emacs.d/org-clock-save.el (source)...done
> OVERVIEW
> Loading vc-git...done
> OVERVIEW [3 times]
> byte-code: Before first headline at position 1 in buffer refile.org

This should now be fixed, thanks.

-- 
 Bastien



Re: [O] org-date-toggle-inactive

2012-09-25 Thread Bastien
Bastien  writes:

> Or simply M- on the angle/bracket of the time-stamp.

Er.. that's S- of course.

-- 
 Bastien



Re: [O] Erroneous "No such file or directory" with babel and remote dir

2012-09-25 Thread Loris Bennett
Achim Gratz  writes:

> Loris Bennett writes:
>> How do I avoid the mixed installation problem when testing with a clone
>> of the org repository?  My version is 
>>
>> ,
>> | Org-mode version 7.9.1 (release_7.9.1-git @ mixed installation!
>> | /usr/local/share/emacs/site-lisp/ and
>> | /home/loris/git/org-mode.git/lisp/)
>> `
>
> Assuming that you've set up the load-path correctly, this should correct
> itself when you do a
>
> make autoloads
>
> in the Git working tree.
>
>
> Regards,
> Achim.

Thanks, Achim, that worked.  But what exactly does it do?

Cheers,

Loris

-- 
no sig is good sig