[O] Ruby babel src block does not run some code

2016-04-10 Thread numbch...@gmail.com
For example, I have a ruby src block like this: ``` #+BEGIN_SRC ruby module A CREF = "*** CREF in module A" end module A module B puts CREF end end #+END_SRC ``` And press `[C-c C-c]` to execute, get this error: ``` #+BEGIN_EXAMPLE -:3: module definition in method body

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Eric Abrahamsen
Ramon Diaz-Uriarte writes: > Dear Eric, > > On Sun, 10-04-2016, at 15:17, Eric Abrahamsen wrote: >> Eric S Fraga writes: >> >> >> I installed the eww-lnum package right away, as that provides the main >> functionality I liked from

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Eric Abrahamsen
Richard Lawrence writes: > Eric Abrahamsen writes: > >> I installed the eww-lnum package right away, as that provides the main >> functionality I liked from Conkeror: hit a key, and pick a link to do >> something with. Rather strangely,

Re: [O] Promote/demote an Active Region

2016-04-10 Thread Ron Mitchell
Nicolas, Upgraded to org 8.3.4, made no difference. But I have just now realised what the problem is! I have been using org-demote-subtree, not org-demote , Meta-Shift-Right, not Meta-Right. And org-demote does indeed work on an active region for me. I suppose you could argue that

Re: [O] [BUG] Failure to run sh source block

2016-04-10 Thread Ken Mankoff
On 2016-04-10 at 16:44, Christian Moe wrote: > I've hit a couple of odd problems after updating to Emacs 24.5 and Org > 8.3.4 (freshly pulled). > > Trying to run a simple shell source block, e.g. > > #+begin_src sh > pwd > #+end_src > > fails with this error: > >

[O] [BUG] Capture template table line specification

2016-04-10 Thread Christian Moe
Hi again, Another odd problems after updating to Emacs 24.5 and Org 8.3.4: I have a capture template that puts the captured info into a table line before the second horizontal line of the table. Capture fails with this message: Capture template `x': Invalid table line specification "II-1"

[O] [BUG] Failure to run sh source block

2016-04-10 Thread Christian Moe
I've hit a couple of odd problems after updating to Emacs 24.5 and Org 8.3.4 (freshly pulled). Trying to run a simple shell source block, e.g. #+begin_src sh pwd #+end_src fails with this error: org-babel-variable-assignments:sh: Symbol's function definition is void: org-babel-get-header

Re: [O] Promote/demote an Active Region

2016-04-10 Thread Nicolas Goaziou
Hello, Ron Mitchell writes: > When I do Meta-Shift-Right on your example (with, as in yours, the > region set to the first two lines): > > * H1 > ** H11 > * H2 > > I get > > * H1 > *** H11 > * H2 > > It's not a problem with key binding, because I get the same result if

[O] Exporting a new markup

2016-04-10 Thread fredtantini
Hi everyone, I need your help. Prior to version 8.3.* I used a custom marker () to export keyboard shortcut in html (that is to kbd tags). What I have done is, in ox-org.el or org-element.el, every time there was a function with "bold" or "code", I copied/pasted the function and modified it to

Re: [O] Promote/demote an Active Region

2016-04-10 Thread Ron Mitchell
Hi Nicolas, Thanks, that's interesting. When I do Meta-Shift-Right on your example (with, as in yours, the region set to the first two lines): * H1 ** H11 * H2 I get * H1 *** H11 * H2 It's not a problem with key binding, because I get the same result if I execute the command

Re: [O] latex preview in latex block

2016-04-10 Thread Jeremie Juste
Nicolas Goaziou writes: > Hello, > > Jérémie Juste writes: > >> Is it possible to activate the latex preview in org-mode within in latex >> bloc? > > It isn't possible out of the box. Org doesn't look at the contents of > src blocks, which are

[O] [OT] A new web browser‽

2016-04-10 Thread Jeremie Juste
For my part I use IceCat. They have made a lot of progress recently if you are hesitating. As for key bindings the closest options to emacs I have found is firemacs: http://www.mew.org/~kazu/proj/firemacs/en/ Best regards, Jeremie

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Ramon Diaz-Uriarte
Dear Eric, On Sun, 10-04-2016, at 15:17, Eric Abrahamsen wrote: > Eric S Fraga writes: > > > I installed the eww-lnum package right away, as that provides the main > functionality I liked from Conkeror: hit a key, and pick a link to do > something

Re: [O] the role of org-odt-preferred-output-format etc

2016-04-10 Thread Uwe Brauer
>>> "Ken" == Ken Mankoff writes: > On 2016-04-10 at 11:52, Uwe Brauer wrote: >> Thanks that works, as far as the setq are concerned, what is use-package >> supposed to do, in my GNU emacs 25 I cannot find it. >

Re: [O] the role of org-odt-preferred-output-format etc

2016-04-10 Thread Ken Mankoff
On 2016-04-10 at 11:52, Uwe Brauer wrote: > Thanks that works, as far as the setq are concerned, what is use-package > supposed to do, in my GNU emacs 25 I cannot find it. https://github.com/jwiegley/use-package It is a replacement for (require) that takes care of installing

Re: [O] the role of org-odt-preferred-output-format etc

2016-04-10 Thread Uwe Brauer
>>> "Ken" == Ken Mankoff writes: > I convert to DOC with the following on OS X: > (use-package ox-odt > :ensure nil > :config (progn > (setq org-odt-preferred-output-format "doc") > (setq org-odt-convert-processes >

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Christopher Allan Webber
Marcin Borkowski writes: > https://vivaldi.com/ > > Did anyone hear about it? Any thoughts/experiences? "Taking notes > while browsing" seems to be something close to org-capture, no? > Keyboard-driven might mean either vim-like or emacs-like bindings, or > (hopefully) configurable ones. I,

[O] [OT] Emacs on Android

2016-04-10 Thread Scott Randby
Since there have been discussions on this list about using Org on an Android phone, I thought some might be interested in this: http://endlessparentheses.com/running-emacs-on-android.html Scott Randby sran...@gmail.com http://srandby.org/ PGP key ID: 0xF2D38A63 Key server:

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Richard Lawrence
Eric Abrahamsen writes: > I installed the eww-lnum package right away, as that provides the main > functionality I liked from Conkeror: hit a key, and pick a link to do > something with. Rather strangely, the KeySnail plugin for Firefox seems > to do everything *but*

Re: [O] the role of org-odt-preferred-output-format etc

2016-04-10 Thread Ken Mankoff
I convert to DOC with the following on OS X: (use-package ox-odt :ensure nil :config (progn (setq org-odt-preferred-output-format "doc") (setq org-odt-convert-processes '(("LibreOffice" "/path/to/LibreOffice.app/Contents/MacOS/soffice --headless

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Eric S Fraga
On Sunday, 10 Apr 2016 at 13:17, Eric Abrahamsen wrote: > I installed the eww-lnum package right away, as that provides the main Thanks for the pointer! Excellent addition to eww. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33

Re: [O] the role of org-odt-preferred-output-format etc

2016-04-10 Thread Uwe Brauer
>>> "Eric" == Eric Abrahamsen writes: > Uwe Brauer writes: >> Hello >> >> Maybe I misunderstood the manual >> http://orgmode.org/manual/Extending-ODT-export.html >> and >>

Re: [O] the role of org-odt-preferred-output-format etc

2016-04-10 Thread Eric Abrahamsen
Uwe Brauer writes: > Hello > > Maybe I misunderstood the manual > http://orgmode.org/manual/Extending-ODT-export.html > and > http://orgmode.org/manual/Configuring-a-document-converter.html#Configuring-a-document-converter > > I can successfully convert a org file to odt, but

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Eric Abrahamsen
Eric S Fraga writes: > On Sunday, 10 Apr 2016 at 02:42, Eric Abrahamsen wrote: >> Ahem... What I meant to say is that I haven't spent the time to figure >> out a quick, intuitive way to say "open *this* link in eww... now open >> *this* link in my external browser", etc. That

[O] org-readme-convert-to-markdown, or org-md-export-as-markdown in the export menu

2016-04-10 Thread Uwe Brauer
Hello How can I one or both of the above functions in the standard org export menu? thanks Uwe Brauer

[O] org-readme-changelog-to-readme?

2016-04-10 Thread Uwe Brauer
Hello Maybe I misunderstood the function org-readme-changelog-to-readme: I thought I fire it up in a ChangeLog buffer and a README.org file is generated, but that seems not to be the case. What do I miss? Uwe Brauer

[O] the role of org-odt-preferred-output-format etc

2016-04-10 Thread Uwe Brauer
Hello Maybe I misunderstood the manual http://orgmode.org/manual/Extending-ODT-export.html and http://orgmode.org/manual/Configuring-a-document-converter.html#Configuring-a-document-converter I can successfully convert a org file to odt, but sometimes I need it to be directly in doc format.

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Eric S Fraga
On Sunday, 10 Apr 2016 at 11:53, Sauli Heinola wrote: > I mostly use eww's `eww-browse-with-external-browser'-command, bound to > the &-key by default. The external browser is specified by the > `shr-external-browser'-variable. Ah, very helpful. Thanks. Works well. -- : Eric S Fraga

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Sauli Heinola
* Eric S Fraga : > My typical use is that eww is the default for any link I run into in > emacs. If the page visited is not appropriate, I simply hit w > (eww-copy-page-url), switch to Firefox and open the page ("o C-v RET" in > vimperator...). I mostly use eww's

Re: [O] importing tasks from .ics

2016-04-10 Thread Eric S Fraga
On Saturday, 9 Apr 2016 at 19:03, Victor A.Stoichita wrote: > I still have one major issue though: importing tasks from ics to > org. The awk script referenced here [1] works fine for calendar events > [VEVENT] but doesn’t seem to parse tasks [VTODO]. Does anyone know > another script that does

Re: [O] [OT] A new web browser‽

2016-04-10 Thread Eric S Fraga
On Sunday, 10 Apr 2016 at 02:42, Eric Abrahamsen wrote: > Ahem... What I meant to say is that I haven't spent the time to figure > out a quick, intuitive way to say "open *this* link in eww... now open > *this* link in my external browser", etc. That was all. My typical use is that eww is the

Re: [O] export to odt is not per default in the export menu

2016-04-10 Thread Christian Moe
>>> FWIW, I also think this would be a good thing to load by default. >> >> Done. > > Thanks very much, Nicolas! +1! Yours, Christian

[O] org-mode -> latex

2016-04-10 Thread Sharon Kimble
For a long time I've wanted to write in org-mode and export it to latex, but I've never been successful until now. So here is a yasnippet that allows you to do it - --8<---cut here---start->8--- # -*- mode: snippet -*- # name: org2latex # key: org2latex # --

[O] Generate custom org-agenda

2016-04-10 Thread Karl Voit
Hi! org-agenda-list generates my default agenda. I can generate it via Elisp via org-agenda-list. What about a different agenda I already defined with org-agenda-custom-commands? Am I able to generate it via Elisp as well? The agenda dispatcher generates my custom agenda of choice via «n». Is

Re: [O] export to odt is not per default in the export menu

2016-04-10 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >>> This question pops up fairly often. I suggest that ODT should be >>> provided out of the box. It is clearly in demand. It meets the needs of >>> a whole segment of users that need

Re: [O] export to odt is not per default in the export menu

2016-04-10 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: >> This question pops up fairly often. I suggest that ODT should be >> provided out of the box. It is clearly in demand. It meets the needs of >> a whole segment of users that need to work with office software. Sure, >> nothing prevents

Re: [O] [PATCH] expose nrepl's timeout setting in ob-clojure.el

2016-04-10 Thread Nicolas Goaziou
Hello, Thank you for the update. Frederick Giasson writes: > +(defcustom org-babel-clojure-sync-nrepl-timeout 10 > + "Timeout value, in seconds, of a Clojure sync call. > + If the value is nil, timeout is disabled." > + :type 'integer > + :group 'org-babel) Some

Re: [O] [PATCH] org-attach: Use relative path for git annex

2016-04-10 Thread Nicolas Goaziou
Hello, Erik Hetzner writes: > I don’t believe it was ever applied, nor was it superseded by another. This > was > to fix a problem with testing older versions of git-annex. I believe David > remove git-annex on the buildbot, which stopped it from failing, because it > was > not

Re: [O] a patch to ob-lisp.el

2016-04-10 Thread Nicolas Goaziou
Hello, "numbch...@gmail.com" writes: > Oh, right. I should attach it. Applied, with a few fixes. Thank you. Regards, -- Nicolas Goaziou

Re: [O] Fxporting a new markup

2016-04-10 Thread fredtantini
Thanks! I don't know if it was right in front of me or if I didn't look at the right files, but as it was indicated in the commit and in org-element.el: > ;; Creating a new type of object requires to alter > ;; `org-element--object-regexp' and `org-element--object-lex', add the > ;; new type in

Re: [O] ox-texinfo: add support for NONODE element property

2016-04-10 Thread Nicolas Goaziou
Hello, Jonas Bernoulli writes: > In the Magit manual I usually use separate nodes for sections and > subsections, but in a few cases a section's children should be part > of the section's node. > > I accomplished that by adding an additional element property NONODE > and

Re: [O] ox-texinfo: non-numbered links to numbered sections

2016-04-10 Thread Nicolas Goaziou
Hello, Jonas Bernoulli writes: > Currently "#+OPTIONS: num:N" not only affects whether sections are > numbered, it also controls whether links to numbered sections look > like > > See *note 5.2.3: Section hooks. > > or > > See *note Section hooks: Section hooks. > > in the

Re: [O] Promote/demote an Active Region

2016-04-10 Thread Nicolas Goaziou
Hello, Ron Mitchell writes: > In "2.5 Structure Editing" the org info manual says > > "When there is an active region (Transient Mark mode), promotion and > demotion work on all headlines in the region." > > That doesn't work for me. Only the line at point is pro- or de-

Re: [O] latex preview in latex block

2016-04-10 Thread Nicolas Goaziou
Hello, Jérémie Juste writes: > Is it possible to activate the latex preview in org-mode within in latex > bloc? It isn't possible out of the box. Org doesn't look at the contents of src blocks, which are supposed to be written in a foreign language. However, you can