[O] templating with Org?

2015-08-07 Thread Eric Abrahamsen
Exporting org files and subtrees is awfully flexible, given all the possible customizations, but for a long while I've occasionally felt the need to come at the "export" process from the other direction: instead of customizing the export appearance of a series of headings, instead starting with a c

Re: [O] latest org from Elpa error: Invalid function: org-babel-header-args-safe-fn

2015-08-07 Thread Xebar Saram
Hi Ista i did do a byte compiling but that didnt help. i got this message when i did byte compile Compiling no file at Sat Aug 8 07:06:30 2015 Leaving directory `/home/zeltak/.emacs.d/elpa/ace-isearch-20150807.1803' Compiling file /home/zeltak/.emacs.d/elpa/org-20150805/ob-R.el at Sat Aug 8 07:

Re: [O] Change in ox export for #+DATE keywords

2015-08-07 Thread Peter Salazar
As I mentioned, I'm getting that same error, not just with #+DATE but also with #+TITLE, #+AUTHOR, etc. Any one of these is sufficient to break export for me. On Fri, Aug 7, 2015 at 3:59 PM, Alex Bennée wrote: > Hi, > > I've been using org-mode as a source for my presentations but exporting > br

Re: [O] [OFF TOPIC] almost giving up on emacs email..looking for advice?

2015-08-07 Thread Peter Salazar
I also just installed notmuch, in addition to mu4e, and so far I quite like notmuch. The interface so far is a little more intuitive (with mu4e, for instance, I kept getting tripped up hitting "r" to reply to a message and finding that it's bound to something else). I did get offlineimap working,

[O] wrong type argument listp... org-element-set-contents

2015-08-07 Thread Peter Salazar
I'm getting a strange error whenever I try to export an org file, and I'm not sure how to track down the cause. It seemed to start when I upgraded to org 8.3.1, but it's hard to tell because this is the first time I've exported anything in a week or so. The error says: (wrong-type-argument listp #

Re: [O] fontenc makes pdf non-searchable

2015-08-07 Thread Martin Leduc
Hi Bastien, thanks a lot for your response but I finally solved the issue by installing the package cm-super. Cheers, Martin > From: b...@gnu.org > To: mart...@hotmail.com > CC: emacs-orgmode@gnu.org > Subject: Re: fontenc makes pdf non-searchable > Date: Wed, 5 Aug 2015 02:00:52 +0200 > > Hi M

Re: [O] Beamer environment properties highlighting and shortcut

2015-08-07 Thread John Hendy
On Fri, Aug 7, 2015 at 6:56 PM, Suvayu Ali wrote: > On Fri, Aug 07, 2015 at 05:40:55PM -0500, John Hendy wrote: >> >> It states that =C-c C-b= will prompt for beamer specific headlines; >> this does not appear to work with the new ox-beamer export engine. I >> see the command is =org-beamer-select

Re: [O] 8.3 hangs

2015-08-07 Thread Samuel Wales
thanks, suvayu, how do i use this org element minor mode? i get hangs quite frequently, for example when sorting in the outline buffer.

Re: [O] Beamer environment properties highlighting and shortcut

2015-08-07 Thread Suvayu Ali
On Fri, Aug 07, 2015 at 05:40:55PM -0500, John Hendy wrote: > > It states that =C-c C-b= will prompt for beamer specific headlines; > this does not appear to work with the new ox-beamer export engine. I > see the command is =org-beamer-select-environment=. Did this get > mapped to something else n

[O] Beamer environment properties highlighting and shortcut

2015-08-07 Thread John Hendy
Hello, I'm making the first beamer presentation in a while in which I've used columns, and had to refresh myself on the syntax. I originally referred to the original (legacy) beamer docs here simply due to it being the first hit on my google search: - http://orgmode.org/worg/exporters/beamer/tuto

Re: [O] comment trees in 8.3

2015-08-07 Thread Samuel Wales
On 8/7/15, Nicolas Goaziou wrote: > Samuel Wales writes: >> should (get-text-property (point-at-bol) :org-comment) be nil on a >> commented headline? > > Yes, once `org-agenda-prepare-buffers' has been called. ok, then i don't understand the code. (i thought that was how it determined whether i

Re: [O] comment trees in 8.3

2015-08-07 Thread Samuel Wales
On 8/7/15, Nicolas Goaziou wrote: > Samuel Wales writes: >> should (get-text-property (point-at-bol) :org-comment) be nil on a >> commented headline? > > Yes, once `org-agenda-prepare-buffers' has been called. then i didn't understand the code. (i thought that was how it determined whether it w

Re: [O] [bug] canonical context not work in 8.3

2015-08-07 Thread Samuel Wales
thank you. i compiled it and tried it. it seems improved, to maybe 2.5s. - command-execute 17977 99% - call-interactively 17977 99% - org-agenda-switch-to16144 88

[O] Change in ox export for #+DATE keywords

2015-08-07 Thread Alex Bennée
Hi, I've been using org-mode as a source for my presentations but exporting broke today following an ELPA update. It seems the line: #+DATE: KVM Forum 2015 Is no longer acceptable. I think this changed as of: ae9db17482a183e5613428c3abf1c691f86b4ac0 I'm not quite sure what the new "parse" is e

Re: [O] latest org from Elpa error: Invalid function: org-babel-header-args-safe-fn

2015-08-07 Thread Ista Zahn
We discussed this already in another thread[0]. The upshot was run "M-x byte-compile-file" on ob-R.el. Best, Ista [0] https://www.mail-archive.com/emacs-orgmode@gnu.org/msg98762.html On Fri, Aug 7, 2015 at 12:47 PM, Xebar Saram wrote: > > Thx for the response Bastien > > i removed (require 'org-

Re: [O] eval source blocks in a subtree when opening file

2015-08-07 Thread Cook, Malcolm
> > On Tue, 4 Aug 2015, Tamas Papp wrote: > > > >> I would like to do the following: whenever I open the file in Emacs, > >> I would like to eval all the source blocks under the heading Setup. > >> > >> I have found org-babel-execute-subtree, but I cannot figure out how > >> to call it on the

Re: [O] Exporting multiple images in a float (LaTeX)

2015-08-07 Thread Suvayu Ali
On Fri, Aug 07, 2015 at 05:19:18PM +0100, Eric S Fraga wrote: > On Friday, 7 Aug 2015 at 16:23, Rasmus wrote: > > [...] > > > I guess there would also be no loss from actually inserting a "%" after > > \includegraphics[·]{·} in ox-latex. > > Except that then the suggestion I just made would not

Re: [O] Exporting multiple images in a float (LaTeX)

2015-08-07 Thread Suvayu Ali
On Fri, Aug 07, 2015 at 04:23:48PM +0200, Rasmus wrote: > Suvayu Ali writes: > > On Fri, Aug 07, 2015 at 02:28:58PM +0100, Eric S Fraga wrote: > >> On Friday, 7 Aug 2015 at 06:24, Suvayu Ali wrote: > >> > >> > This is very nice, thank you! I think this will do it for me. I have a > >> > small

Re: [O] latest org from Elpa error: Invalid function: org-babel-header-args-safe-fn

2015-08-07 Thread Xebar Saram
Thx for the response Bastien i removed (require 'org-install) from my init.el file (correct?) and restarted emacs but get the same error Invalid function: org-babel-header-args-safe-fn i also tried now to downgrade to previous version from 3/8/15 and the error is gone so its 100% reproducible wi

Re: [O] Showing Property in headline; generating table from properties; exporting table to CSV

2015-08-07 Thread Pip Cet
I hesitate to share this code (it's not very pretty right now), but I have been working on two ideas that I think combine to solve problems like this in a nicer (and lazier) fashion than the current approach: headline properties and reverse inheritance. Headline properties are simply about setting

Re: [O] Exporting multiple images in a float (LaTeX)

2015-08-07 Thread Eric S Fraga
On Friday, 7 Aug 2015 at 16:23, Rasmus wrote: [...] > I guess there would also be no loss from actually inserting a "%" after > \includegraphics[·]{·} in ox-latex. Except that then the suggestion I just made would not work and would in fact be quite confusing as the second figure would be lost

Re: [O] latest org from Elpa error: Invalid function: org-babel-header-args-safe-fn

2015-08-07 Thread Bastien
Hi Xebar, try removing (require 'org-install), it is not needed since long. -- Bastien

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-07 Thread Kaushal
Aha.. I am using a custom postamble for html: (setq org-html-postamble t) ; default value = 'auto (setq org-html-postamble-format `(("en" ,(concat "Exported using " ;; "%c" is replaced with `org-html-creat

Re: [O] kill contents of a headline, but retain properties

2015-08-07 Thread Rasmus
Matt Price writes: > can you just provide a skeletal example so I understand better wha that > means? thanks so much! There's an example in the manual. Here's another example: In org: #+begin: thanks :pretext "We have received valuable comments from" #+end: The function: (defun

Re: [O] latest org from Elpa error: Invalid function: org-babel-header-args-safe-fn

2015-08-07 Thread Xebar Saram
Hi Bastien As requested here is a config just with only the base the orgmode section (~ 10% of full config) note- the original file is a org mode file which is converted to a .el file: https://paste.xinu.at/Gr3KF/ i also use a simple init file (my config is in orgmode format) https://paste.xinu

Re: [O] Exporting multiple images in a float (LaTeX)

2015-08-07 Thread Rasmus
Suvayu Ali writes: > On Fri, Aug 07, 2015 at 02:28:58PM +0100, Eric S Fraga wrote: >> On Friday, 7 Aug 2015 at 06:24, Suvayu Ali wrote: >> > >> [...] >> >> > This is very nice, thank you! I think this will do it for me. I have a >> > small question, is there a better way to add a % after the

Re: [O] kill contents of a headline, but retain properties

2015-08-07 Thread Matt Price
On Fri, Aug 7, 2015 at 9:01 AM, Nicolas Goaziou wrote: > Hello, > > Matt Price writes: > > > I have a headline like this: > > > > * Gradebook > > :PROPERTIES: > > :CUSTOM_ID: gradebook > > :END: > > > > some content etc etc etc. > > > > I would like to be able to replace the contents of that hea

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-07 Thread Suvayu Ali
On Fri, Aug 07, 2015 at 10:01:42AM -0400, Kaushal wrote: > @Fabrice Thanks for sharing your examples! > > @Suvayu I tried removing #+DATE: line.. but with that I don't see the date > stamp in html exports. The advantage of {{{time(FORMAT)}}} is that I can > also control the formatting of the date-

Re: [O] latest org from Elpa error: Invalid function: org-babel-header-args-safe-fn

2015-08-07 Thread Bastien Guerry
Xebar Saram writes: > just updated org today and now i get this error on startup: > > Invalid function: org-babel-header-args-safe-fn > > is this related to the new release? Can you reproduce the problem with a minimal configuration and share this minimal configuration? -- Bastien

Re: [O] Exporting multiple images in a float (LaTeX)

2015-08-07 Thread Suvayu Ali
On Fri, Aug 07, 2015 at 02:28:58PM +0100, Eric S Fraga wrote: > On Friday, 7 Aug 2015 at 06:24, Suvayu Ali wrote: > > [...] > > > This is very nice, thank you! I think this will do it for me. I have a > > small question, is there a better way to add a % after the first image > > in the above c

Re: [O] eval source blocks in a subtree when opening file

2015-08-07 Thread Tamas Papp
On Tue, Aug 04 2015, Charles C. Berry wrote: > On Tue, 4 Aug 2015, Tamas Papp wrote: > >> I would like to do the following: whenever I open the file in Emacs, I would >> like to eval all the source blocks under the heading Setup. >> >> I have found org-babel-execute-subtree, but I cannot figure

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-07 Thread Kaushal
@Fabrice Thanks for sharing your examples! @Suvayu I tried removing #+DATE: line.. but with that I don't see the date stamp in html exports. The advantage of {{{time(FORMAT)}}} is that I can also control the formatting of the date-time stamp. -- Kaushal Modi On Fri, Aug 7, 2015 at 4:53 AM, Nico

Re: [O] hook on link creation

2015-08-07 Thread John Kitchin
you could do something like this: http://kitchingroup.cheme.cmu.edu/blog/2015/07/09/Acronym-minor-mode-for-Emacs/ or this http://kitchingroup.cheme.cmu.edu/blog/2015/06/22/Clickable-org-contacts-in-text-files/ with tooltips. It isn't clear to me why you would want it to appear when you type it. Y

Re: [O] show number of sub headers in top level header (alternative to statistics cookie?)

2015-08-07 Thread John Kitchin
nothing automatic that I know of. Xebar Saram writes: > Hi > > I was wondering if there was an option in org to show number of sub headers > in top level header. i know there is statistics cookies but that's not > automatic? > > best > > Z -- Professor John Kitchin Doherty Hall A207F Department

Re: [O] ox-latex doesn't export with `\newminted`.

2015-08-07 Thread Zack Piper
On Fri, Aug 07, 2015 at 03:22:32PM +0200, Rasmus wrote: > Zack Piper writes: > > > Apparently ox-latex doesn't add `\newminted` to languages that I wish > > to use. > > > > This is required to use: > > > > \begin{common-lispcode} > > (format t "test") > > \end{common-lispcode} > > > >

Re: [O] ox-latex doesn't export with `\newminted`.

2015-08-07 Thread Nicolas Goaziou
Hello, Zack Piper writes: > Apparently ox-latex doesn't add `\newminted` to languages that I wish > to use. > > This is required to use: > > \begin{common-lispcode} > (format t "test") > \end{common-lispcode} > > That being the `${LANG}code` environment, which Org-mode uses for my >

Re: [O] Exporting multiple images in a float (LaTeX)

2015-08-07 Thread Eric S Fraga
On Friday, 7 Aug 2015 at 06:24, Suvayu Ali wrote: [...] > This is very nice, thank you! I think this will do it for me. I have a > small question, is there a better way to add a % after the first image > in the above case other than adding a snippet? > > #+begin_figure > #+attr_latex: :wid

Re: [O] ox-latex doesn't export with `\newminted`.

2015-08-07 Thread Rasmus
Zack Piper writes: > Apparently ox-latex doesn't add `\newminted` to languages that I wish > to use. > > This is required to use: > > \begin{common-lispcode} > (format t "test") > \end{common-lispcode} > > That being the `${LANG}code` environment, which Org-mode uses for my > entire d

[O] ox-latex doesn't export with `\newminted`.

2015-08-07 Thread Zack Piper
Apparently ox-latex doesn't add `\newminted` to languages that I wish to use. This is required to use: \begin{common-lispcode} (format t "test") \end{common-lispcode} That being the `${LANG}code` environment, which Org-mode uses for my entire document. https://github.com/gpoore/mint

Re: [O] kill contents of a headline, but retain properties

2015-08-07 Thread Nicolas Goaziou
Hello, Matt Price writes: > I have a headline like this: > > * Gradebook > :PROPERTIES: > :CUSTOM_ID: gradebook > :END: > > some content etc etc etc. > > I would like to be able to replace the contents of that headline > automatically, but retain the properties. (org-link-search "[[#gradebook

[O] latest org from Elpa error: Invalid function: org-babel-header-args-safe-fn

2015-08-07 Thread Xebar Saram
Hi just updated org today and now i get this error on startup: Invalid function: org-babel-header-args-safe-fn is this related to the new release? best Z

Re: [O] C-c * is undefined

2015-08-07 Thread Sebastien Vauban
Hello Nicolas, > Sebastien Vauban writes: > >> I've noticed (for a couple of weeks) that I now get "C-c * is undefined" >> when trying to recalculate an Org table [1]. >> >> Has it somehow been removed? > > I don't think so, and I cannot reproduce it with a quick test. Do you > have an ECM? Blush

[O] kill contents of a headline, but retain properties

2015-08-07 Thread Matt Price
Hi, I have a headline like this: * Gradebook :PROPERTIES: :CUSTOM_ID: gradebook :END: some content etc etc etc. I would like to be able to replace the contents of that headline automatically, but retain the properties. Howeve,r if for some reason the properites drawer is there I don't want to

Re: [O] C-c * is undefined

2015-08-07 Thread Nicolas Goaziou
Hello, Sebastien Vauban writes: > I've noticed (for a couple of weeks) that I now get "C-c * is undefined" > when trying to recalculate an Org table [1]. > > Has it somehow been removed? I don't think so, and I cannot reproduce it with a quick test. Do you have an ECM? Regards, -- Nicolas

[O] C-c * is undefined

2015-08-07 Thread Sebastien Vauban
Hello, I've noticed (for a couple of weeks) that I now get "C-c * is undefined" when trying to recalculate an Org table [1]. Has it somehow been removed? Current configuration: - GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-25 on KAEL - Org-mode version 8.3.1 (release_8.3.1-14-gac29de) B

Re: [O] org-html-use-unicode-chars breaks source code blocks

2015-08-07 Thread Rasmus
Nicolas Goaziou writes: >> OK. I added it to plain-text as well. What is an example of a plain-text >> that would need beautification? > > To tell the truth, I don't know why we need beautification in the first > place. Bastien introduced it, so he may be able to answer. To this extend; me nei

Re: [O] org-html-use-unicode-chars breaks source code blocks

2015-08-07 Thread Nicolas Goaziou
> OK. I added it to plain-text as well. What is an example of a plain-text > that would need beautification? To tell the truth, I don't know why we need beautification in the first place. Bastien introduced it, so he may be able to answer. > Should we apply it to snippets as well? In the spiri

Re: [O] org-html-use-unicode-chars breaks source code blocks

2015-08-07 Thread Rasmus
Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> Vladimir Alexiev writes: >> >>> I've set org-html-use-unicode-chars since I want ox-html to leave IRIs as >>> IRIs. >>> But this has another undesired effect: it breaks references in code, >>> since it doesn't escape the brackets. >> >>

Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?

2015-08-07 Thread Nicolas Goaziou
Hello, Thomas S. Dye writes: > A second patch is attached. Thank you. > From cb30697627afacc8950ef85b839f47d48371f39b Mon Sep 17 00:00:00 2001 > From: tsdye > Date: Thu, 6 Aug 2015 12:08:34 -1000 > Subject: [PATCH 2/2] More date and time macro edits I think the commit message is confusing ("

Re: [O] [bug] canonical context not work in 8.3

2015-08-07 Thread Nicolas Goaziou
Samuel Wales writes: > thank you for fixing. > > canonical is always what i want, except for occur-tree. > > i did profiler-start then went to org file a few times to average out > the results. did i use the correct profiler? You did. > > command-execute

Re: [O] Org-mode 8.3.1 bugs report

2015-08-07 Thread Michael Strey
On Do, 2015-08-06, Lei Zhe wrote: [...] > 2. When I call org-drill, some entries can not be shown. Only blank > buffer shows up. I'm having the same problem here since about 4 weeks. It seems to occur randomly without relation to the entries. Pressing e for “edit”, moving point some lines up o

Re: [O] comment trees in 8.3

2015-08-07 Thread Nicolas Goaziou
Samuel Wales writes: > should (get-text-property (point-at-bol) :org-comment) be nil on a > commented headline? Yes, once `org-agenda-prepare-buffers' has been called. Regards,

[O] show number of sub headers in top level header (alternative to statistics cookie?)

2015-08-07 Thread Xebar Saram
Hi I was wondering if there was an option in org to show number of sub headers in top level header. i know there is statistics cookies but that's not automatic? best Z