[O] PATCH -- ox-latex.el . sideways figure in latex export

2014-04-04 Thread Greg Tucker-Kellogg
This is a tiny patch to support a “:float sidewaysfigure” option in LaTeX 
backend export

---
 lisp/ox-latex.el | 5 +
 1 file changed, 5 insertions(+)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index d65c975..c05ffb6 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1801,6 +1801,7 @@ used as a communication channel."
 (float (let ((float (plist-get attr :float)))
  (cond ((and (not float) (plist-member attr :float)) nil)
((string= float "wrap") 'wrap)
+   ((string= float "sidewaysfigure") 'sidewaysfigure)
((string= float "multicolumn") 'multicolumn)
((or float
 (org-element-property :caption parent)
@@ -1876,6 +1877,10 @@ used as a communication channel."
 \\centering
 %s%s
 %s\\end{wrapfigure}" placement comment-include image-code caption))
+  (sidewaysfigure (format "\\begin{sidewaysfigure}%s
+\\centering
+%s%s
+%s\\end{sidewaysfigure}" placement comment-include image-code caption))
   (multicolumn (format "\\begin{figure*}%s
 \\centering
 %s%s
-- 
1.8.4.3


Re: [O] (org-insert-headline '(4)) should insert new headline before point

2014-04-04 Thread Grant Rettke
They are working on the next release right now so things might be quiet.
Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
gret...@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Fri, Apr 4, 2014 at 10:01 PM, York Zhao  wrote:
> Any one?
>
> On Thu, Apr 3, 2014 at 6:59 PM, York Zhao  wrote:
>> Hi list,
>>
>> (org-insert-headline '(4)) used to insert new heading before point. But this 
>> had
>> broken recently. According to the docstring, this command inserts new
>> heading at the end of the parent subtree  ONLY if two universal prefix
>> arguments is given, not one. Here's the reproducer:
>>
>> --8<---cut here---start->8---
>> emacs -Q -L path/to/org-mode/lisp/ --eval \
>> "(let ((buf (get-buffer-create \"test-org\")))
>> (with-current-buffer buf
>> (org-mode)
>> (insert \"* headline 1\")
>> (goto-char (line-beginning-position))
>> (org-insert-heading '(4)))
>> (switch-to-buffer buf))"
>> --8<---cut here---end--->8---
>>
>> Thanks
>



[O] Tangling Bernt Hansen's Org-Mode.Org file..?

2014-04-04 Thread David Masterson
Not sure whether this is expected or if I've setup org-mode
incorrectly...

I've installed a full version of Cygwin on a Windows 8.1 system.  I'm,
therefore, using Emacs 24.3 but I've added the org-mode 8.2.5h package.
After putting (package-initialize) near the beginning of my .emacs and
setting up an after-init-hook to require both org-install and
org-compat, the proper version shows up in org-version and everything
looks okay.

I then pulled down Bernt Hansen's Org-Mode.org file (amazing piece of
work!!) and ran C-c C-v C-t on it to "tangle it" (is that the right
verb?).  The first time I did this, I get an error about
"org-with-silent-modifications" being an invalid function (from
org-refresh-category-properties).  However, immediately doing the C-c
C-v C-t again correctly tangles the file and produces the expected
Org-Mode.el file.

Did I mis-setup org-mode??

-- 
David Masterson




[O] Images not showing up in PDF output

2014-04-04 Thread Mark S.
Hello,

I was able to export a subtree as PDF, but the images don't show up. The images 
do export in HTML, and I can see that there is LaTeX code for it. It looks like 
this:

  \includegraphics[width=10em]{./Periodicals.org_20140402_202538_4928DjL.png}

Are there settings or additional add-ons that I need to produce the images?

Thank you,
Mark

Using MikTeX 2.9 under Windows XP with Org-mode 7.5



Re: [O] What are most users worldview of org-mode's data model?

2014-04-04 Thread Nick Dokos
Grant Rettke  writes:

> Hi,
>
> Starting at org-mode files for a while and skimming over WORG it
> jumped out at me that
> org-mode really looks at its documents like a tree data structure. It
> doesn't force that
> worldview upon you, it just makes your life so much easier by help you
> to utilize it in Emacs.
>
> Questions:
>
> 1. Anyone else look at it this way?

Yes, everybody. In fact, org-mode *does* force you to view your document
as a tree and that's one of the most common complaints: people want to
have a piece of a section, followed by a subsection, and then pop up
again with another piece of the original section - org-mode does not let
you do that.

> 2. Are there any brokering functions between the org file and a SEXP?
 
org-element.el

> It would be nice to work
> with that since Emacs-Lisp already handles them fine.
>

-- 
Nick




Re: [O] emphasis borders, double quotes, and export

2014-04-04 Thread Nick Dokos
Nicolas Goaziou  writes:

> Hello,
>
> Nick Dokos  writes:
>
>> The custom-set-variables trick should be enough IIUC. org-emphasis-alist
>> has a :set 'org-set-emph-re i in its property list, so org-set-emph-re
>> gets called to reinitialize everything.
>
> But `org-set-emph-re' is insufficient at the moment, because it only
> updates `org-emph-re', not parts of the parser relying on
> `org-emphasis-regexp-components' (namely `org-element--object-regexp').
>

Ah, thanks! Didn't know about that.

-- 
Nick




Re: [O] (org-insert-headline '(4)) should insert new headline before point

2014-04-04 Thread York Zhao
Any one?

On Thu, Apr 3, 2014 at 6:59 PM, York Zhao  wrote:
> Hi list,
>
> (org-insert-headline '(4)) used to insert new heading before point. But this 
> had
> broken recently. According to the docstring, this command inserts new
> heading at the end of the parent subtree  ONLY if two universal prefix
> arguments is given, not one. Here's the reproducer:
>
> --8<---cut here---start->8---
> emacs -Q -L path/to/org-mode/lisp/ --eval \
> "(let ((buf (get-buffer-create \"test-org\")))
> (with-current-buffer buf
> (org-mode)
> (insert \"* headline 1\")
> (goto-char (line-beginning-position))
> (org-insert-heading '(4)))
> (switch-to-buffer buf))"
> --8<---cut here---end--->8---
>
> Thanks



[O] How to simply move footnotes from one org document to another?

2014-04-04 Thread Grant Rettke
Hi,

Context: migrating some contents from one org document into another.
This is kind of
a re-factoring thing where none of it will be reused.

Goal: Easily copy and paste sections of text along with footnote
references into the new document,
and in doing so, add the contents of the previous document to the new
document, and let org
deal with the new footnote names.

As I write this, I realize that it isn't so simple. I'm just looking
for a place to start in terms of what
is already present and how you deal with it currently.

Regards,

Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
gret...@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



[O] [babell] How to report generated files and generation time from org-babel-tangle?

2014-04-04 Thread Grant Rettke
Hi,

My goal is to report what files were generated (tangled) and how long
it take for each of them
when calling org-babel-tangle. Basically I just want to know what got
generated, or not generated,
and how long it took. Sometimes I screw-up my system and suddenly
tangling takes 2x long, so I
want to avoid that.

My approach will be to dig into the source.

I was just wondering how you folks address that too?

Regards,

Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
gret...@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



[O] What are most users worldview of org-mode's data model?

2014-04-04 Thread Grant Rettke
Hi,

Starting at org-mode files for a while and skimming over WORG it
jumped out at me that
org-mode really looks at its documents like a tree data structure. It
doesn't force that
worldview upon you, it just makes your life so much easier by help you
to utilize it in Emacs.

Questions:

1. Anyone else look at it this way?
2. Are there any brokering functions between the org file and a SEXP?
It would be nice to work
with that since Emacs-Lisp already handles them fine.

Regards,

Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
gret...@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



[O] Source code to check URLs in an org mode document?

2014-04-04 Thread Grant Rettke
Hi,

One of my documents has ~200 HTML links in the footnotes.

Wondering how folks check the links?

My goal is that:
1. Each footnote with a URL is evaluated
2. They are evaluated to determine whether the URL is valid
3. Check whether or not the page exists
4. Add some indicate in the footnote that it was found not to be up on
some date.

This might require some custom coding, no?

Regards,

Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
gret...@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



Re: [O] use # instead of * to signal different levels of headlines? is it possible?

2014-04-04 Thread Isaac
Thorsten Jolitz  gmail.com> 
writes:

> 
> Josiah Schwab  gmail.com> 
writes:
> 
> > On Apr 4, 2014, at 3:34 PM, isaac wrote:
> >
> >> As a heavy user of orgmode, I am 
wondering if it's possible to use #
> >> instead
> >> of * to signal the level of outline in 
orgmode?
> >
> > No.  See
> > http://orgmode.org/worg/org-
faq.html#sec-8-12
> 
> Yes. Use outshine.el with outcommented 
Org-mode headers. Here is an
> example: 
> 

Thanks! This solves it


>







Re: [O] use # instead of * to signal different levels of headlines? is it possible?

2014-04-04 Thread Thorsten Jolitz
Josiah Schwab  writes:

> On Apr 4, 2014, at 3:34 PM, isaac wrote:
>
>> As a heavy user of orgmode, I am wondering if it's possible to use #
>> instead
>> of * to signal the level of outline in orgmode?
>
> No.  See
> http://orgmode.org/worg/org-faq.html#sec-8-12

Yes. Use outshine.el with outcommented Org-mode headers. Here is an
example: 

#+begin_src R
## * my-sources.R --- my R Source file
##   :PROPERTIES:
##   :copyright: my_name
##   :copyright-years: 2013
##   :version:  0.9
##   :created:  21-01-2013
##   :licence:  GPL 2 or later (free software)
##   :licence-url: http://www.gnu.org/licenses/
##   :author:   my_name
##   :author_email: my_email AT gamil DOT com
##   :inspiration: foo bar
##   :keywords: foo bar
##   :END:

## ** Commentary

## Geometry Object Model from "OGC OpenGIS Simple Features Specification for
## SQL" Revision. 1.1 [...]

## ** Changes

## | author  | version | date|
## |-+-+-|
## | my_name | 0.9 | <2013-06-05 Mi> |

## * code
## ** My first R Function

## simple example function from the manual
twosam <- function(y1, y2) {
 n1  <- length(y1); n2  <- length(y2)
 yb1 <- mean(y1);   yb2 <- mean(y2)
 s1  <- var(y1);s2  <- var(y2)
 s <- ((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2)
 tst <- (yb1 - yb2)/sqrt(s*(1/n1 + 1/n2))
 tst
   }

## ** My second R Function

## another simple example function from the manual
bslash <- function(X, y) {
   X <- qr(X)
   qr.coef(X, y)
 }

## my-sources.R ends here
#+end_src

For editing the property-drawer of the first headline in full Org-mode,
use outorg.el. 

This is how the *outorg-edit-buffer* looks after doing C-u M-# M-#
(outorg-edit-as-org) on the first headline (to convert and edit only the
subtree at point, use M-# M-#):

,--
| * my-sources.R --- my R Source file
|   :PROPERTIES:
|   :copyright: my_name
|   :copyright-years: 2013
|   :version:  0.9
|   :created:  21-01-2013
|   :licence:  GPL 2 or later (free software)
|   :licence-url: http://www.gnu.org/licenses/
|   :author:   my_name
|   :author_email: my_email AT gamil DOT com
|   :inspiration: foo bar
|   :keywords: foo bar
|   :END:
| 
| ** Commentary
| 
| Geometry Object Model from "OGC OpenGIS Simple Features Specification for
| SQL" Revision. 1.1 [...]
| 
| ** Changes
| 
| | author  | version | date|
| |-+-+-|
| | my_name | 0.9 | <2013-06-05 Mi> |
| 
| * code
| ** My first R Function
| 
| simple example function from the manual
| #+begin_example
| twosam <- function(y1, y2) {
|  n1  <- length(y1); n2  <- length(y2)
|  yb1 <- mean(y1);   yb2 <- mean(y2)
|  s1  <- var(y1);s2  <- var(y2)
|  s <- ((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2)
|  tst <- (yb1 - yb2)/sqrt(s*(1/n1 + 1/n2))
|  tst
|}
| #+end_example
| 
| ** My second R Function
| 
| another simple example function from the manual
| #+begin_example
| bslash <- function(X, y) {
|X <- qr(X)
|qr.coef(X, y)
|  }
| #+end_example
| 
| my-sources.R ends here
`--

[ups, I see a bug ... sources should be wrapped into #+begin_src R blocks]

For headline (1-8) and many many keyword searches in ESS/R use
navi-mode.el, here is the summary of the keyword searches:

,--
| [KEY] : [SEARCH]
| 
| a : ALL
| f : FUN
| v : VAR
| x : OBJ
| b : DB
| X : objects
| Y : methods
| R : inout
| C : datacreation
| [ : slicing
| A : varconversion
| I : varinfo
| W : dataselection
| M : math
| ] : matrices
| O : advdataprocessing
| _ : strings
| : : datestimes
| P : plotting
| L : lowlevelplotting
| T : trellisgraphics
| ~ : modelfitting
| S : statistics
| D : distributions
| { : programming
| = : assignment
| U : environment
`--

You can combine headline and keyword searches like this:

,--
| C-3 D
`--

shows headlines up to level 3 and R-keywords related to distributions.

-- 
cheers,
Thorsten




Re: [O] use # instead of * to signal different levels of headlines? is it possible?

2014-04-04 Thread Josiah Schwab

On Apr 4, 2014, at 3:34 PM, isaac wrote:

> As a heavy user of orgmode, I am wondering if it's possible to use # instead 
> of * to signal the level of outline in orgmode?

No.  See
http://orgmode.org/worg/org-faq.html#sec-8-12

Josiah


[O] use # instead of * to signal different levels of headlines? is it possible?

2014-04-04 Thread isaac
Hello,

As a heavy user of orgmode, I am wondering if it's possible to use # instead 
of * to signal the level of outline in orgmode?

I am guessing maybe there's an easy configuration that we can change the 
character used from "*" to "#"?

if that's the case, then I can just start to use this setup in orgmode to 
write my R code, integrated with outlines - comments (or python code, or ruby 
code)

Thanks!

Isaac




Re: [O] emphasis borders, double quotes, and export

2014-04-04 Thread Nicolas Goaziou
Hello,

Nick Dokos  writes:

> The custom-set-variables trick should be enough IIUC. org-emphasis-alist
> has a :set 'org-set-emph-re i in its property list, so org-set-emph-re
> gets called to reinitialize everything.

But `org-set-emph-re' is insufficient at the moment, because it only
updates `org-emph-re', not parts of the parser relying on
`org-emphasis-regexp-components' (namely `org-element--object-regexp').


Regards,

-- 
Nicolas Goaziou



Re: [O] How to export drawer?

2014-04-04 Thread Marcin Antczak

Nicolas Goaziou writes:

> Marcin Antczak  writes:
>
>> Yes. I want to hard-code these drawers and ignore them in default
>> export.
>
> OK, I get it. You want to move some drawers (relatively to the flow of
> the document) and ignore others.
>

Exactly.

I want to append LOGBOOK and CLOCKTABLE to task headline while any other
drawer should go to content as usual.

>> In this way I could attach HTML code with CLOCKTABLE drawer to headline.
>> Unfortunately as I mentioned before I don't know how to achieve this
>> without recursion. My code returns all CLOCKTABLE drawers in child
>> tasks.
>>
>> org-element-map has optional argument 'no-recursion' but I don't know
>> how to set it up properly.
>
> You can set it to `headline', like you did, but you must skip the
> current headline or `org-element-map' will never enter it:
>
>   (org-element-map (org-element-contents headline) 'drawer #'identity
>   info nil 'headline)


AWESOME!

Thank you very, very much.
Now I need to understand this code. But it works!


Regards,

--
Marcin



Re: [O] emphasis borders, double quotes, and export

2014-04-04 Thread Nick Dokos
Nicolas Goaziou  writes:

> Hello,
>
> Alan Schmitt  writes:
>
>> I'm afraid it broke again (it was fixed for a while, but I recently
>> updated org and it's now broken).
>>
>> ECM:
>>
>> exp_init.el:
>> (add-to-list 'load-path "/Users/schmitta/projets/org-mode/lisp")
>>
>> (require 'org)
>> (require 'ox-html)
>>
>> (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
>> (custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
>
> You need to reload Org after modifying `org-emphasis-regexp-components'.
>

The custom-set-variables trick should be enough IIUC. org-emphasis-alist
has a :set 'org-set-emph-re i in its property list, so org-set-emph-re
gets called to reinitialize everything.

Nick






Re: [O] How to export drawer?

2014-04-04 Thread Nicolas Goaziou
Marcin Antczak  writes:

> Yes. I want to hard-code these drawers and ignore them in default
> export.

OK, I get it. You want to move some drawers (relatively to the flow of
the document) and ignore others.

> Anyway thing is that I want to export drawer with specific name while
> I'm in org-html-headline function.
>
> (defun org-html-headline (headline contents info)
>   "Transcode a HEADLINE element from Org to HTML.
> CONTENTS holds the contents of the headline.  INFO is a plist
> holding contextual information."
>   ;; Empty contents?
>   (setq contents (or contents ""))
>   (let* ((numberedp (org-export-numbered-headline-p headline info))
>  (level (org-export-get-relative-level headline info))
>
>  And here I wan't to add:
>
>  (clocktable (and (plist-get info :with-drawers)
>   (let* ((drawers (org-element-map headline 'drawer 'identity 
> info nil 'headline)))
> (mapconcat (lambda (d)
>  (when (string= (org-element-property 
> :drawer-name d) "CLOCKTABLE")
>(org-export-data-with-backend d 'html 
> info)))
>drawers ""
>
>
> In this way I could attach HTML code with CLOCKTABLE drawer to headline.
> Unfortunately as I mentioned before I don't know how to achieve this
> without recursion. My code returns all CLOCKTABLE drawers in child
> tasks.
>
> org-element-map has optional argument 'no-recursion' but I don't know
> how to set it up properly.

You can set it to `headline', like you did, but you must skip the
current headline or `org-element-map' will never enter it:

  (org-element-map (org-element-contents headline) 'drawer #'identity info nil 
'headline)


Regards,

-- 
Nicolas Goaziou



Re: [O] PATCH -- allow user to set minted style

2014-04-04 Thread Michael Weylandt
On Apr 4, 2014, at 16:24, Nicolas Goaziou  wrote:

> Michael Weylandt  writes:
> 
>> - The minted style isn't passed as a package option so I'm not sure
>> how org-latex-packages-alist helps.
> 
> You can add a string at the end of `org-latex-packages-alist' that will
> be inserted in the header.
> 

Didn't know that -- thanks! Perhaps the docstring could include that. 

> Anyway, since there is no reliable way to detect if a package will be
> required at Org level, this patch cannot work properly.

Not sure I follow: I'm piggy-backing on the same condition Org uses to 
determine whether to insert \minted blocks for source code. 

> 
> Note that you can also write a filter that will insert
> "\usemintedstyle..." when "\usepackage{minted}" is detected in the
> output.
> 

Indeed; I've done that just now. 

For anyone who wants it: 

(defun org-latex-minted-style-filter (contents backend info)
(if (string-match "\\usepackage{minted}" contents)
(replace-regexp-in-string "usepackage{minted}"
(format "usepackage{minted}usemintedstyle{%s}" 
org-latex-minted-default-style) contents)))

(add-to-list 'org-export-filter-final-output-functions 
'org-latex-minted-style-filter)

Anyways, even if the idea is rejected thanks for taking a look and for all your 
work on Org Mode. 

> 
> Regards,
> 
> -- 
> Nicolas Goaziou



Re: [O] How to export drawer?

2014-04-04 Thread Marcin Antczak

Nicolas Goaziou writes:

> Hello,
>
> Marcin Antczak  writes:
>
>> I would like to export some org to html with custom backend based on
>> 'html.
>>
>> What I need is to override function org-html-headline from ox-html.el
>
> OK. But this isn't related to drawers, is it? If you want to alter
> drawers export, you need to override `org-html-drawer' too.

Unfortunately you misunderstood me.

What I want to do is to override drawers export to exclude some
predefined drawers. Let's say: LOGBOOK and CLOCKTABLE.

Then I want to attach these drawers to headline(!)
This is why I want to add a piece of code to return drawer in org-html-headline.

>
>> I just want to export drawer with some specific name. For example
>> LOGBOOK or CLOCKTABLE.
>
> You can set `org-export-with-drawers'. You can also hard-code the list
> into `org-mybackend-drawer':
>
>   (defun org-mybackend-drawer (drawer contents info)
> (when (member-ignore-case (org-element-property :drawer-name drawer)
>   '("LOGBOOK" "CLOCKTABLE"))
>   (org-export-data-with-backend drawer 'html info)))

Yes. I want to hard-code these drawers and ignore them in default export.

Anyway thing is that I want to export drawer with specific name while
I'm in org-html-headline function.

(defun org-html-headline (headline contents info)
  "Transcode a HEADLINE element from Org to HTML.
CONTENTS holds the contents of the headline.  INFO is a plist
holding contextual information."
  ;; Empty contents?
  (setq contents (or contents ""))
  (let* ((numberedp (org-export-numbered-headline-p headline info))
 (level (org-export-get-relative-level headline info))

 And here I wan't to add:

 (clocktable (and (plist-get info :with-drawers)
  (let* ((drawers (org-element-map headline 'drawer 'identity 
info nil 'headline)))
(mapconcat (lambda (d)
 (when (string= (org-element-property 
:drawer-name d) "CLOCKTABLE")
   (org-export-data-with-backend d 'html info)))
   drawers ""


In this way I could attach HTML code with CLOCKTABLE drawer to headline.
Unfortunately as I mentioned before I don't know how to achieve this
without recursion. My code returns all CLOCKTABLE drawers in child
tasks.

org-element-map has optional argument 'no-recursion' but I don't know
how to set it up properly.


Regards,

--
Marcin



Re: [O] PATCH -- allow user to set minted style

2014-04-04 Thread Nicolas Goaziou
Michael Weylandt  writes:

> - The minted style isn't passed as a package option so I'm not sure
> how org-latex-packages-alist helps.

You can add a string at the end of `org-latex-packages-alist' that will
be inserted in the header.

> - Yes, I have been putting it in the headers of my custom classes, but
> it has to follow \usepackage{minted} or I get a LaTeX error, so I wind
> up loading minted even when not using it. Having it as a variable also
> makes it easier to change the style.

I don't think it matters much to load minted even if you don't use it.
Even if it did, you could always define classes with and without minted.
It's a bit troublesome, though, so I suggest to
use #+LATEX_HEADER_EXTRA: instead.

> -Yes, #+LATEX_HEADER_EXTRA works but there's still the problem of
> failing if you don't use minted for that particular export.

If you don't use minted for a particular export, you don't write
#+LATEX_HEADER_EXTRA: \usemintedstyle{name} in the first place.

> I think the right analogy if with hyperref/hypersetup, which does have
> support of this style in Org.

Unlike to minted, hyperref is not really optional, as it belongs to
`org-latex-default-packages-alist'. OTOH, minted may not even be
available on the machine. So there's no reason to show the same level of
support.

Anyway, since there is no reliable way to detect if a package will be
required at Org level, this patch cannot work properly.

Note that you can also write a filter that will insert
"\usemintedstyle..." when "\usepackage{minted}" is detected in the
output.


Regards,

-- 
Nicolas Goaziou



Re: [O] PATCH -- allow user to set minted style

2014-04-04 Thread Michael Weylandt


On Apr 4, 2014, at 14:46, Nicolas Goaziou  wrote:

> Hello,
> 
> Michael Weylandt  writes:
> 
>> This requires a different mechanism than org-latex-minted-options
>> since it's a global/preamble option.
> 
> Since it's a global/preamble option, you can include it in your header,
> buffer wise, or with `org-latex-classes', or with
> `org-latex-packages-alist'...

Taking the choices in reverse:

- The minted style isn't passed as a package option so I'm not sure how 
org-latex-packages-alist helps.
 
- Yes, I have been putting it in the headers of my custom classes, but it has 
to follow \usepackage{minted} or I get a LaTeX error, so I wind up loading 
minted even when not using it. Having it as a variable also makes it easier to 
change the style. 

-I'm not sure what you mean by bufferwise

-Yes, #+LATEX_HEADER_EXTRA works but there's still the problem of failing if 
you don't use minted for that particular export.

I think the right analogy if with hyperref/hypersetup, which does have support 
of this style in Org. 

Michael


Re: [O] How to export drawer?

2014-04-04 Thread Nicolas Goaziou
Hello,

Marcin Antczak  writes:

> I would like to export some org to html with custom backend based on
> 'html.
>
> What I need is to override function org-html-headline from ox-html.el

OK. But this isn't related to drawers, is it? If you want to alter
drawers export, you need to override `org-html-drawer' too.

> I just want to export drawer with some specific name. For example
> LOGBOOK or CLOCKTABLE.

You can set `org-export-with-drawers'. You can also hard-code the list
into `org-mybackend-drawer':

  (defun org-mybackend-drawer (drawer contents info)
(when (member-ignore-case (org-element-property :drawer-name drawer)
  '("LOGBOOK" "CLOCKTABLE"))
  (org-export-data-with-backend drawer 'html info)))

Of course, you need to install this function in your custom back-end:

  (org-export-define-derived-backend 'mybackend 'html
...
:translate-alist '(...
   (drawer . org-mybackend-drawer)
   ...)
...)


Regards,

-- 
Nicolas Goaziou



Re: [O] emphasis borders, double quotes, and export

2014-04-04 Thread Nicolas Goaziou
Hello,

Alan Schmitt  writes:

> I'm afraid it broke again (it was fixed for a while, but I recently
> updated org and it's now broken).
>
> ECM:
>
> exp_init.el:
> (add-to-list 'load-path "/Users/schmitta/projets/org-mode/lisp")
>
> (require 'org)
> (require 'ox-html)
>
> (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
> (custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))

You need to reload Org after modifying `org-emphasis-regexp-components'.


Regards,

-- 
Nicolas Goaziou



Re: [O] radio links in middle of words.

2014-04-04 Thread Nicolas Goaziou
Hello,

Daniel Clemente  writes:

>   „Related thread“: http://comments.gmane.org/gmane.emacs.orgmode/82923
>
>   I don't see in there any argument to have midword links, it's
>   presented as a consequence of other patch.

I didn't say there was an argument there. I just pointed out that your
report was a known fact and that it was discussed elsewhere.

>  I have notes about programs I tried, like <<>>, <<>> or
> <<>>, <<>>, <<>> vs <<>> vs <<>>, 3-letter stock
> tickers, … so now I'm seeing blue links everywhere in the middle of
> words. I can get used to it, but it's ugly and not useful.

I can understand that.

> Can't we break at non-letters? Not at non-„word-constituents“, but at
> non-letters. If emacs doesn't provide that concept, better build it.

I don't know. Could you define precisely that concept?


Regards,

-- 
Nicolas Goaziou



[O] Clocktable for this week starting at Sunday

2014-04-04 Thread Torben Hoffmann
Hi,

I have to report my time sheets with weeks starting Sunday.

I have tried all selections of :wstart in this specification:

#+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives  :weekstart 7
:block thisweek :step day :fileskip0 :narrow 20!

but it starts on Monday every time.

I am fetching org-mode with el-get like this:

   (:name org-mode
  :type git
  :url "git://orgmode.org/org-mode.git")

So I assume that it is the lastest and greatest I am using.

Cheers,
Torben

-- 
http://www.linkedin.com/in/torbenhoffmann
@LeHoff


Re: [O] PATCH -- allow user to set minted style

2014-04-04 Thread Nicolas Goaziou
Hello,

Michael Weylandt  writes:

> Here's a small patch which allows the user to set the Minted
> highlighting style for latex export.

Thank you for the patch.

> This requires a different mechanism than org-latex-minted-options
> since it's a global/preamble option. 

Since it's a global/preamble option, you can include it in your header,
buffer wise, or with `org-latex-classes', or with
`org-latex-packages-alist'...

I don't think this variable is needed in this case.


Regards,

-- 
Nicolas Goaziou



Re: [O] BBDB and Org

2014-04-04 Thread Aric Gregson
Eric Abrahamsen  writes:

> Ah, check the variable bbdb-read-only then -- it's for precisely this
> situation.

Exactly what I was looking for! Thank you.

Aric




Re: [O] So many reading on gmane?

2014-04-04 Thread J. David Boyd
Sebastien Vauban  writes:

> J. David Boyd wrote:
>> Nick Dokos  writes:
>>> jdavidb...@adboyd.com (J. David Boyd) writes:
 Rainer M Krug  writes:

> This seems very strange - but it is the fact that gmane seems to be not
> available the reason why this list is so quiet today

 I was on gmane yesterday.  What time was it not available for you?
>>>
>>> On Wednesday.
>>
>> Maybe it was a regional kind of thing.  I was off and on all day on Wednesday
>> (Central Western Florida), and had no problems of any kind.
>
> I don't think it's a question of server being down. It simply, as I also
> observe it sometimes, that posts received by email aren't always
> available on the Gmane interface at the same time.
>
> It happens like if no post was made for hours, and then, suddenly, all
> of them appear on the newsgroup as well.
>
> Best regards,
>   Seb

Oh, I understand.  I've seen that myself, sometimes.

Dave




[O] PATCH -- allow user to set minted style

2014-04-04 Thread Michael Weylandt
Here's a small patch which allows the user to set the Minted highlighting style 
for latex export. 

This requires a different mechanism than org-latex-minted-options since it's a 
global/preamble option. 

Apologies for the badly formatted patch. I'm not at my own computer and wanted 
to give Bastien a chance to include it in 8.2.6. I do not have FSF papers 
signed but I believe this falls under the TINYCHANGE rule. 

Patch applies against a6485af3. 

Michael

--- ox-latex.el.orij2014-04-04 10:45:17.530492000 -0400
+++ ox-latex.el2014-04-04 10:51:42.447567000 -0400
@@ -751,6 +751,18 @@
  (string :tag "Minted option name ")
  (string :tag "Minted option value"

+(defcustom org-latex-minted-default-style "default"
+  "The default minted style used; will be inserted in a
+ \\usemintedstyle{} block if org-latex-listings is set to
+ 'minted. A list of available styles can be obtained with:
+
+ pygmentize -L styles"
+  :group 'org-export-latex
+  :type '(repeat
+  (list
+   (symbol :tag "Minted style name")
+   (symbol :tag "Minted style value"
+
(defvar org-latex-custom-lang-environments nil
  "Alist mapping languages to language-specific LaTeX environments.

@@ -1126,6 +1138,9 @@
  (or (plist-get info :description) "")
  (if (not (plist-get info :with-creator)) ""
(plist-get info :creator
+ ;; Using minted formatting style
+ (when (eq org-latex-listings 'minted)
+   (format "\\usemintedstyle{%s}"))
 ;; Document start.
 "\\begin{document}\n\n"
 ;; Title command.





Re: [O] So many reading on gmane?

2014-04-04 Thread Sebastien Vauban
J. David Boyd wrote:
> Nick Dokos  writes:
>> jdavidb...@adboyd.com (J. David Boyd) writes:
>>> Rainer M Krug  writes:
>>>
 This seems very strange - but it is the fact that gmane seems to be not
 available the reason why this list is so quiet today
>>>
>>> I was on gmane yesterday.  What time was it not available for you?
>>
>> On Wednesday.
>
> Maybe it was a regional kind of thing.  I was off and on all day on Wednesday
> (Central Western Florida), and had no problems of any kind.

I don't think it's a question of server being down. It simply, as I also
observe it sometimes, that posts received by email aren't always
available on the Gmane interface at the same time.

It happens like if no post was made for hours, and then, suddenly, all
of them appear on the newsgroup as well.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Prepare release 8.2.6

2014-04-04 Thread Michael Weylandt


On Apr 3, 2014, at 2:37, Bastien  wrote:

> Hi all,
> 
> I'll try to fix a few remaining bugs in maint this afternoon
> then release 8.2.6 so that we can merge it into Emacs emacs-24
> branch, the pretest is scheduled to happen as soon as possible.
> 
> If you have important bugs you want us to look at, now is the
> time to point at them.

A few more minor things from my .emacs:

1) In ox-latex.el, add a `downcase` around the definition of mint-lang in 
org-latex-inline-src-block and the sexp `(or (cadr (assq (intern lang) 
org-latex-minted-langs)) lang)` in org-latex-src-block to respect minted's 
convention of putting all language names in lowercase. 

2) Add a key binding C-c C-v k for org-babel-remove result in ob-keys.el. 
(Discussed on list but I can't find the reference)

I actually wrap it so C-u C-c C-v k calls 

(org-babel-map-src-blocks nil (org-babel-remove-result))

> 
> Thanks,
> 
> -- 
> Bastien
> 
> 



Re: [O] radio links in middle of words.

2014-04-04 Thread Daniel Clemente
El Wed, 02 Apr 2014 18:57:13 +0200 Nicolas Goaziou va escriure:
> 
> > ** Languages
> > *** <<>> language
> > *** <<>>
> > *** etc.
> > Etc. ← should the C in etc be highlighted as a link to „C“? Now it is and 
> > it's a bit annoying. This is new behaviour.
> 
> Indeed, this is expected. The patch you pointed out allows mid-word
> radio-targets. See related thread for more information.
> 
  „Related thread“: http://comments.gmane.org/gmane.emacs.orgmode/82923

  I don't see in there any argument to have midword links, it's presented as a 
consequence of other patch.

  I'm a heavy user of <<>> to mark concepts' definitions, they are 
much more useful than <> or [[these]]. I have notes about programs I 
tried, like <<>>, <<>> or <<>>, <<>>, <<>> vs <<>> vs 
<<>>, 3-letter stock tickers, … so now I'm seeing blue links everywhere 
in the middle of words. I can get used to it, but it's ugly and not useful.

  I only need links surrounded by non-letters, like:
#+BEGIN_EXAMPLE
  <<>>
  organization ← certainly I'm not using the letter 'a' as a separator. I don't 
want link.
  org:mode ← ':' is a non-letter, so it's a separator. I want link
  orgもmode ← what's も? Let's simply say it's a letter, so no separator. No 
link, ok.
  org'mode ← is ' a letter? Ask people, I think most say no. So: with link.

  <<>> (oh, a non-letter inside. Ok)
  o'clocking ← no, I'm not using 'i' as a separator. No link.
  "o'clock" ← is " a letter? No. So: with link
#+END_EXAMPLE

  The only use case I see is using radio links to mark the root of a word so 
that the inflected words are also highlighted, e.g. <<

Re: [O] So many reading on gmane?

2014-04-04 Thread Nick Dokos
jdavidb...@adboyd.com (J. David Boyd) writes:

> Rainer M Krug  writes:
>
>> This seems very strange - but it is the fact that gmane seems to be not
>> available the reason why this list is so quiet today
>>
>> Rainer
>
> I was on gmane yesterday.  What time was it not available for you?
>

On Wednesday.
-- 
Nick




Re: [O] So many reading on gmane?

2014-04-04 Thread J. David Boyd
Nick Dokos  writes:

> jdavidb...@adboyd.com (J. David Boyd) writes:
>
>> Rainer M Krug  writes:
>>
>>> This seems very strange - but it is the fact that gmane seems to be not
>>> available the reason why this list is so quiet today
>>>
>>> Rainer
>>
>> I was on gmane yesterday.  What time was it not available for you?
>>
>
> On Wednesday.

Maybe it was a regional kind of thing.  I was off and on all day on Wednesday
(Central Western Florida), and had no problems of any kind.




Re: [O] So many reading on gmane?

2014-04-04 Thread J. David Boyd
Rainer M Krug  writes:

> This seems very strange - but it is the fact that gmane seems to be not
> available the reason why this list is so quiet today
>
> Rainer

I was on gmane yesterday.  What time was it not available for you?

Dave




Re: [O] emphasis borders, double quotes, and export

2014-04-04 Thread Alan Schmitt
Hello Nicolas,

Nicolas Goaziou  writes:

> Hello,
>
> Alan Schmitt  writes:
>
>> Looking a little deeper into this, it seems to be a regression. I had
>> files with things like ~'a list~ that exported correctly a couple weeks
>> ago that no longer export correctly.
>
> This should be fixed. Thank you.

I'm afraid it broke again (it was fixed for a while, but I recently
updated org and it's now broken).

ECM:

exp_init.el:
--8<---cut here---start->8---
(add-to-list 'load-path "/Users/schmitta/projets/org-mode/lisp")

(require 'org)
(require 'ox-html)

(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
(custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
--8<---cut here---end--->8---

bugquote.org:
--8<---cut here---start->8---
This is a string: ~"Nil"~.

This as another string: ~'a list~.
--8<---cut here---end--->8---

Then run:
  emacs --batch -Q -l exp_init.el bugquote.org -f org-html-export-to-html

The resulting html shows the '~'.

Thanks,

Alan



Re: [O] Org is awesome

2014-04-04 Thread Allen S. Rout
On 03/22/2014 03:52 AM, Bastien wrote:

> 
>> ORG IS AWESOME.
> 
> Tell it to the world with a blog entry :)


I searched worg for 'colophon' ('cite' of course had lots of hits..)

It might be nice if there were something analogous to

http://astrostatistics.psu.edu/su07/R/html/utils/html/citation.html

for those authors who felt like providing pointers.  This 'reproducable
research' thing is picking up steam.  Stylized citations for the
production systems couldn't but help.

"Yeah, Allen, why don't you write one?"   Koff.  OK, here's a stab,
riffing on the R citation() function.  Please consider this a bikeshed
at which to briefly aim your paint cannons.


---

 To cite org-mode in publications use:

  Free Software Foundation, Inc. (2004 - 2014) org-mode: Outline-based
  notes management and organizer.  http://orgmode.org/

A BibTeX entry for LaTeX users is

  @Manual{,
title = {org-mode: Outline-based notes management and organizer.},
author = {{Carsten Dominik et. alia}},
organization = {Free Software Foundation, Inc.},
address = {51 Franklin Street, Fifth Floor; Boston, MA 02110-1301},
year = {2014},
url = {http://orgmode.org/},
  }

---




Re: [O] So many reading on gmane?

2014-04-04 Thread Allen S. Rout
On 04/03/2014 08:49 AM, Rainer M Krug wrote:
> This seems very strange - but it is the fact that gmane seems to be not
> available the reason why this list is so quiet today
> 

USENET uber alles; bevor alles; schließlich;  überhaupt.  ;)

- Allen S. Rout
- Nein, ich spreche kein Deutsch






Re: [O] Using Emacs Org-mode on a server with ssh on an iPad

2014-04-04 Thread Ian Barton

On 02/04/14 14:10, Pere Quintana Seguí wrote:

As I mentioned in a previous message, I recently bought an iPad.

I'm considering the possibility to not use Mobileorg and use Emacs on a
server (Digital Ocean) with an ssh client and a bluetooth keyboard.

Is anyone using Emacs and org-mode this way regularly? Which ssh client
are you using? Which bluetooth keyboard?



I don't have an iPad but on my Chromebook I use the Chrome browser with 
the Secure Shell plugin. This supports password based and public key 
authentication. A quick Google shows that you can install Chrome on an iPad.


For a bluetooth keyboard I use this one: 
http://www.amazon.co.uk/gp/product/B004R6S42Y/ref=wms_ohs_product?ie=UTF8&psc=1


Ian.





Re: [O] Prepare release 8.2.6

2014-04-04 Thread Michael Weylandt


On Apr 3, 2014, at 2:37, Bastien  wrote:

> Hi all,
> 
> I'll try to fix a few remaining bugs in maint this afternoon
> then release 8.2.6 so that we can merge it into Emacs emacs-24
> branch, the pretest is scheduled to happen as soon as possible.
> 
> If you have important bugs you want us to look at, now is the
> time to point at them.

Hi Bastien,

Two small usability issues you may want to take a look at:

1) Tell Emacs not to break inline source blocks when filling paragraphs:

http://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg01310.html

2) Allow =, +, and ; to be entered into org-insert-link. The list of character 
is org-link-escape-chars seems to be unnecessarily defensive and results in bad 
links being entered into documents (and then exported). 

http://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00990.html

Michael

> 
> Thanks,
> 
> -- 
> Bastien
> 
> 


Re: [O] Feature Request. org-bibtex-tags-are-keywords inherit tags

2014-04-04 Thread Leonard Randall
Hi,
I apologize, for the last short post. The keybinding for new headline in
org-mode sends an email in gmail. Let us try this again.

Right now when you run org-bibtex with org-bibtex-tags-are-keywords
set to true, only the tags assigned directly to the headline are
converted. So, for instance, if I run org bibtex on a file set up like
this.
#+-EXAMPLE
* Journal articles on Authortity:auth:
** Kant's Mature View of Legal Authority:Kant:
:PROPERTIES:
(bib info here)
:END:
#+---END-EXAMPLE--

The .bib file that is exported only inherits the second tag `:Kant:'
Having tag inheritance would be very useful for organizing large
bibliographies. This would give people the convenience of managing and
organizing the files in org-mode, but still allow them to use some of
the convenient features of gui based bibtex browsers. It would also
allow people to share their bibliographies, along with their tags with
colleagues who have not yet been converted to using org-mode.

This relevant behavior is controlled by the function
org-bibtex-headline in org-bibtex.el. I can change the behavior on
my machine by changing `org-get-local-tags-at' to `org-get-tags-at'
in my local version of org-bibtex.el. This of course does not fix
the bug I mentioned last week. (Bug: Error with org-bibtex export with tags
when using custom
bibtypes
)However the cases where the original
org-bibtex works this function works as well. Of course not everyone
would want this on all of the time. However it seems like it would not be
too hard to make a variable such as `org-bibtex-tags-are-keywords-inherit'
and modify `org-bibtex-headline' so that you can toggle tag inheritance.
Unfortunately, my knowledge of lisp is particularly rudimentary so I can't
offer to do it myself.
Let me know what you think
Thanks so much,
Leonard



On Fri, Apr 4, 2014 at 11:43 AM, Leonard Randall <
leonard.a.rand...@gmail.com> wrote:

> Hi,
> Right now when you run org-bibtex with org-bibtex-tags-are-keywords set to
> true, only the tags assigned directly to the headline are converted. So for
> instance if run org bibtex on a file set up like this.
> * Authority  :auth:
> ** Kant's Views on authority :Kant:
> :properties:
> (bibliography info here)
> :end:
> This behavior is controlled by the function org-bibtex-headline in
> org-bibtex.el. I can change the behavior on my machine by changing
> `org-get-local-tags-at' to `org-get-tags-at' in
>


Re: [O] A file with 'org-mode rot'?

2014-04-04 Thread Eric S Fraga
On Friday,  4 Apr 2014 at 10:11, Eric S Fraga wrote:

[...]

> However, I see no performance hits when working in large org files with
> many headings and levels but little in the way tables or src blocks.

Actually, I need to take this back.  I upgraded org to the most recent
git version this morning and everything slowed down dramatically.  I
reset to the version

:  git checkout f57b2d71414fe195ee98ffb2531fa1423e8d70bf

which was from Monday (31 March) and things are fast again.

Looking at the log, I notice some changes to the caching mechanism in
org and changes to org-element.el.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-876-gf57b2d



[O] Feature Request. org-bibtex-tags-are-keywords inherit tags

2014-04-04 Thread Leonard Randall
Hi,
Right now when you run org-bibtex with org-bibtex-tags-are-keywords set to
true, only the tags assigned directly to the headline are converted. So for
instance if run org bibtex on a file set up like this.
* Authority  :auth:
** Kant's Views on authority :Kant:
:properties:
(bibliography info here)
:end:
This behavior is controlled by the function org-bibtex-headline in
org-bibtex.el. I can change the behavior on my machine by changing
`org-get-local-tags-at' to `org-get-tags-at' in


Re: [O] Using Emacs Org-mode on a server with ssh on an iPad

2014-04-04 Thread Eric S Fraga
On Wednesday,  2 Apr 2014 at 14:10, Pere Quintana Seguí wrote:
> As I mentioned in a previous message, I recently bought an iPad.
>
> I'm considering the possibility to not use Mobileorg and use Emacs on a
> server (Digital Ocean) with an ssh client and a bluetooth keyboard.
>
> Is anyone using Emacs and org-mode this way regularly? Which ssh client
> are you using? Which bluetooth keyboard?

I have done this in the past, not from any iXXX product but from a Nokia
N900 which has a keyboard so I cannot answer your specific questions.

However, the one recommendation I would make is that, if you can, you
should run emacs within screen or byobu on the host so that
disconnections keep the emacs instance running.  I found it quite useful
to have that emacs running continuously while I was out and about.

Now I simply carry an OpenPandora palmtop running emacs 24 and org with
me at all times!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-881-g957177



Re: [O] So many reading on gmane?

2014-04-04 Thread Eric S Fraga
On Thursday,  3 Apr 2014 at 13:49, Rainer M Krug wrote:
> This seems very strange - but it is the fact that gmane seems to be not
> available the reason why this list is so quiet today

I was working yesterday ;-)

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-881-g957177



[O] How to export drawer?

2014-04-04 Thread Marcin Antczak

Hi List,

I got a problem which is blocker for me and this is why I have to ask
here for help.

I would like to export some org to html with custom backend based on
'html.

What I need is to override function org-html-headline from ox-html.el

I just want to export drawer with some specific name. For example
LOGBOOK or CLOCKTABLE.

So, I got this piece of code

#+BEGIN_SRC el
(let* (clocktable (and (plist-get info :with-drawers)
  (let* ((drawers (org-element-map headline 'drawer 'identity 
info nil 'headline)))
(mapconcat (lambda (d)
 (when (string= (org-element-property 
:drawer-name d) "CLOCKTABLE")
   (org-export-data-with-backend d 'html info)))
   drawers "")
#+END_SRC

And this does what I need well not exactly.

This code returns drawer in html format.
Unfortunately it returns drawers recursively.

If my org file is flat then everything is ok.

If my org file is like this:

#+BEGIN_SRC
* TODO  No clocktable here
  Task with no clocktable
** TODO First clocktable
   :CLOCKTABLE:
   CLOCK: [2014-04-04 pią 02:45]--[2014-04-04 pią 02:45] =>  0:00
   CLOCK: [2014-04-04 pią 02:45]--[2014-04-04 pią 02:45] =>  0:00
   :END:
   Placeholder
*** DONE First SUB clocktable
:CLOCKTABLE:
CLOCK: [2014-04-04 pią 02:45]--[2014-04-04 pią 05:45] =>  3:00
:END:
Sub clocktable here
** TODO Second clocktable
   :CLOCKTABLE:
   CLOCK: [2014-04-04 pią 02:45]--[2014-04-04 pią 03:45] =>  1:00
   :END:
   Second clocktable
#+END_SRC

Then in my task "No clocktable here " I can see all CLOCKTABLES from
children tasks.

Could someone help me to disable this recursion properly?


Cheers,
Marcin



Re: [O] A file with 'org-mode rot'?

2014-04-04 Thread Eric S Fraga
Hello,

My experience is that there is some correlation between the number of
src blocks and/or tables and performance.  I haven't done any analysis
but I do find that emacs lags when attempting to navigate some of my
large org files with many tables and src blocks.

However, I see no performance hits when working in large org files with
many headings and levels but little in the way tables or src blocks.

You may wish to try changing the values of some of the fontification
variables, such as

,[ C-h v org-src-fontify-natively RET ]
| org-src-fontify-natively is a variable defined in `org.el'.
| Its value is t
| 
| Documentation:
| When non-nil, fontify code in code blocks.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 24.4 of Emacs.
`

if you do have src blocks in your large files.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org 
release_8.2.5h-842-gad16ef.dirty-git



Re: [O] Prepare release 8.2.6

2014-04-04 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
> I'll try to fix a few remaining bugs in maint this afternoon then
> release 8.2.6 so that we can merge it into Emacs emacs-24 branch, the
> pretest is scheduled to happen as soon as possible.
>
> If you have important bugs you want us to look at, now is the time to
> point at them.

As already mentioned before, I'd advocate trying to solve the following
2 bugs before merging back into Emacs:

- #16440: Some colors of the theme aren't respected in latest Emacs
- #15298: Background color lost when highlighting a string

As well, I don't know whether this is an Org or an Emacs problem, but
I can crash Emacs 24.3.50.1 (r114715, for the sake of completeness)
quite easily when capturing an Org item. Reported to Emacs as bug
#16780.

I retested it this morning with an up-to-date Org. Note that the same
capture process does not crash on the current Emacs I do use (Emacs
24.4.50.1, r116906 of 2014-03-30)... But would it crash for Org users in
the wild (using different Emacs versions)?

Thanks,
  Seb

-- 
Sebastien Vauban




Re: [O] tangle call lines

2014-04-04 Thread Sebastien Vauban
Andreas Leha wrote:
> how do I go about to tangle a subtree full of call lines into a specific
> file?  Of course, tangling is not execution and call lines are meant for
> execution, but in a scripting language (this is all about R code) the
> two are not too different.
>
> Basically, I would love to see the code, that gets executed by
> 'org-babel-execute-subtree' to be saved to a given file.

Could you restate your objectives if I did not understand?  What do you
wanna save in a file: code, or code + results?

If the former, what about using Noweb syntax (<> or even
<>)?

Best regards,
  Seb

-- 
Sebastien Vauban