[O] Connecting to Org ELPA via an HTTP proxy from Emacs 25 and older

2018-03-14 Thread Keshav Kini
Hi, This mail is about the Org ELPA repository, not Org itself. Please let me know if I've mailed the wrong list. Inside my corporate network, I must connect to external hosts such as orgmode.org via an HTTP proxy. Most programs on my machine are able to access both HTTP and HTTPS URLs through

Re: [O] buffer-file-name in [* Org src *] buffers

2018-03-14 Thread Nicolas Goaziou
Hello, Clément Pit-Claudel writes: > 1. Set buffer-offer-save to 'always; this guarantees that C-x s will ask > about the edit buffer. > 2. Add an entry to kill-buffer-query-functions. For example, with-editor > (used by magit) does this: >(add-hook 'kill-buffer-query-functions >

Re: [O] org mode error "pdf wasn't produced"

2018-03-14 Thread John Kitchin
that probably means run: pip install pygments at a command line, assuming you have a working Python installation. If not, you can either get one, or don't use minted for syntax highlighting. John --- Professor John Kitchin Doherty Hall A207F Department of Chemica

Re: [O] org mode error "pdf wasn't produced"

2018-03-14 Thread Dereje Tefera
I saw that there is one error: "! Package minted Error: You must have `pygmentize' installed to use this package." but when I try to install from the package list says no match. and a warning: "Package inputenc Warning: inputenc package ignored with utf8 based engines." Do you think it woul

Re: [O] Structured links to headings with endless depth

2018-03-14 Thread ST
On Wed, 2018-03-14 at 19:32 +0100, Nicolas Goaziou wrote: > ST writes: > > > Why [[file.org::#1:2:1]] is nicer than [file.org::1:2:1]]? > > Because you can write something more meaningful than "1:2:1" when using > a CUSTOM_ID. > > >> - it translates nicely to "id" tag in HTML. > > > > You can g

Re: [O] Structured links to headings with endless depth

2018-03-14 Thread Nicolas Goaziou
ST writes: > Why [[file.org::#1:2:1]] is nicer than [file.org::1:2:1]]? Because you can write something more meaningful than "1:2:1" when using a CUSTOM_ID. >> - it translates nicely to "id" tag in HTML. > > You can generate the "id" tag in HTML like this 1-2-1 (if HTML dislikes > 1:2:1 tag) C

Re: [O] Link abbreviations: include abbreviation table and linkwords with spaces

2018-03-14 Thread ST
On Wed, 2018-03-14 at 15:02 +0100, Nicolas Goaziou wrote: > Hello, > > ST writes: > > > Why should this not be parse-able? Cut #+LINK: from the beginning, URL > > (last token) from the end, and the rest will be "link word", even with > > (several) spaces in between... > > Can we be sure so-call

Re: [O] org mode error "pdf wasn't produced"

2018-03-14 Thread Eric S Fraga
On Wednesday, 14 Mar 2018 at 11:39, Dereje Tefera wrote: > Dear John and R Jain, > > I have done all required installation for the Latex and it worked for a > couple of times but it then crashes. This is the error message I am > getting while trying to export to Latex PDF or Beamer. I really appre

[O] problem exporting: "You need to specify a :file parameter"

2018-03-14 Thread Eric S Fraga
Hello all again, The continuing cautionary tale: this is what happens when trying to update old-ish documents using org. Price to be paid for a continually developing system (which is a good think generally)... I am getting an error when trying to export a largish document, as noted in the subje

Re: [O] Structured links to headings with endless depth

2018-03-14 Thread ST
On Wed, 2018-03-14 at 14:26 +0100, Nicolas Goaziou wrote: > Hello, > > > I think this kind of linking is useful for many general cases. Christian > > has expressed concerns that such links are easily breakable which is > > true but only for documents that are in draft phase (or those which are > >

Re: [O] Structured links to headings with endless depth

2018-03-14 Thread ST
On Wed, 2018-03-14 at 07:15 -0700, John Kitchin wrote: > I don't think this should be in org-mode, it is still too fragile in > many ways. > > > For example, what if you have a colon in your headlines, e.g. "A > chapter about Romans 15:13". That will will mess up the suggested > approach that s

[O] cautionary tale: avoid creating/using a macro called "title"

2018-03-14 Thread Eric S Fraga
Dear all, I have, until now, used a macro #+macro title The title of the document to be subsequently used in the actual #+title line, as in #+title: @@latex:...@@ {{{title}}} @@latex:...@@ (LaTeX details not important, I think.) but this now leads to a recursive evaluation of the line whe

Re: [O] org mode error "pdf wasn't produced"

2018-03-14 Thread Dereje Tefera
Dear John and R Jain, I have done all required installation for the Latex and it worked for a couple of times but it then crashes. This is the error message I am getting while trying to export to Latex PDF or Beamer. I really appreciate your cooperation but I completely if you are busy. Debugg

Re: [O] [PATCH 1/3] ob-table: Fix org-sbe's handling of quotes in arguments

2018-03-14 Thread Vladimir Panteleev
On 2018-03-14 15:00, Nicolas Goaziou wrote: Vladimir Panteleev writes: I wrote about this in the cover letter too. $"foo" and $ "foo" are both the same thing. Just to make it clear: I read the cover letter. My confusion doesn't come from the fact I may not have read it. In that case, I need

Re: [O] [PATCH] ob-clojure-literate.el need to improve the toggle way

2018-03-14 Thread Nicolas Goaziou
Hello, stardiviner writes: > I need to updated my ob-clojure-literate.el toggle functions. > > From fa02d9ceb892626aa37a911d85d9074353b56bdf Mon Sep 17 00:00:00 2001 > From: stardiviner > Date: Wed, 14 Mar 2018 16:13:05 +0800 > Subject: [PATCH 1/2] * ob-clojure-literate.el (ob-clojure-literate-

Re: [O] [PATCH 1/3] ob-table: Fix org-sbe's handling of quotes in arguments

2018-03-14 Thread Nicolas Goaziou
Vladimir Panteleev writes: > I wrote about this in the cover letter too. $"foo" and $ "foo" are > both the same thing. Just to make it clear: I read the cover letter. My confusion doesn't come from the fact I may not have read it. > In both cases, they are two distinct lisp tokens. > The way $

Re: [O] Structured links to headings with endless depth

2018-03-14 Thread Nicolas Goaziou
Hello, > I think this kind of linking is useful for many general cases. Christian > has expressed concerns that such links are easily breakable which is > true but only for documents that are in draft phase (or those which are > supposed to be restructured on regular basis - like ToDo lists). Howe

Re: [O] buffer-file-name in [* Org src *] buffers

2018-03-14 Thread Clément Pit-Claudel
Hi Nicolas, > The explanation is here: > > > > AFAIU, this was needed so that Emacs would warn when closing a remote > editing buffer with C-x k. This feature doesn't appear to be functional > at the moment, tho. Sorry for

Re: [O] Structured links to headings with endless depth

2018-03-14 Thread John Kitchin
I don't think this should be in org-mode, it is still too fragile in many ways. For example, what if you have a colon in your headlines, e.g. "A chapter about Romans 15:13". That will will mess up the suggested approach that splits on ":". What if you have duplicate headlines in a hierarchy, how

Re: [O] [PATCH 1/3] ob-table: Fix org-sbe's handling of quotes in arguments

2018-03-14 Thread Vladimir Panteleev
Hi, On 2018-03-14 13:49, Nicolas Goaziou wrote: Vladimir Panteleev writes: I agree that it is strange. I mentioned it (and its strangeness) in the cover-letter. The documentation of org-sbe describes it as well. AFAICT, it doesn't. "org-sbe" describes a dollar _prefix_, but yours stands on i

Re: [O] Link abbreviations: include abbreviation table and linkwords with spaces

2018-03-14 Thread Nicolas Goaziou
Hello, ST writes: > Why should this not be parse-able? Cut #+LINK: from the beginning, URL > (last token) from the end, and the rest will be "link word", even with > (several) spaces in between... Can we be sure so-called URL part will never contain a space? You put a constraint either on the l

Re: [O] Export to LaTeX buffer

2018-03-14 Thread Nicolas Goaziou
"Hoffmann, Jobst" writes: > make: Org mode version 9.1.7 (release_9.1.7-516-gbc7b24.dirty => ^ > /usr/share/emacs/site-lisp/org) Could your local changes interfere with the export process? > I'm quite desperated, do you have an ide

Re: [O] org alters output of bash code blocks when run with :session

2018-03-14 Thread Nicolas Goaziou
Hello, Tyler Smith writes: > I can't see any straightforward way to modify ob-shell sessions > without also changing regular shell-mode. So I wonder if the easiest > way to address this would be to create a new mode derived from > shell-mode, ('ob-shell-mode')? That would give us a way to modify

Re: [O] [PATCH 1/3] ob-table: Fix org-sbe's handling of quotes in arguments

2018-03-14 Thread Nicolas Goaziou
Hello, Vladimir Panteleev writes: > I agree that it is strange. I mentioned it (and its strangeness) in > the cover-letter. The documentation of org-sbe describes it as well. AFAICT, it doesn't. "org-sbe" describes a dollar _prefix_, but yours stands on its own. It prefixes nothing. Also, it se

Re: [O] [PATCH] ob-sql.el: Improve Oracle connection and usage for ob-sql.

2018-03-14 Thread Nicolas Goaziou
Hello, pierre.techouey...@free.fr (Pierre Téchoueyres) writes: > Nicolas Goaziou writes: >> ... >> Otherwise, it looks good. Would you mind adding an entry in ORG-NEWS >> about it? > Hello Nicolas, > > What dou you think about the attached patch ? It looks good. I added two spaces at the end o

Re: [O] Agenda bug

2018-03-14 Thread Robert Horn
Nicolas Goaziou writes: > Could you provide an ECM? I tried to set `org-agenda-files' to a file > containing the three lines above, and launched an agenda view, without > error. So, what are the steps required to exhibit a failure? Apologies. It's an org version problem on my end. There is no

[O] [ANN] ob-elvish: org-babel support for Elvish code

2018-03-14 Thread Diego Zamboni
Hi, I'm happy to announce my ob-elvish package which allows running Elvish shell code (https://elvish.io/) from within an org-mode buffer using org-babel. If you want to take a look: https://github.com/zzamboni/ob-elvish It's not on ELPA yet, I will submit it soon. Feedback welcome! --Diego

Re: [O] Structured links to headings with endless depth

2018-03-14 Thread ST
John, thank you for this solution! I posted this question also here: https://emacs.stackexchange.com/q/39384/18760 So if you wish, you may add your solution also there. Somebody there, posted also a possible solution however the syntax is pretty heavy: [[org-heading:/path/to/file.org::*1:2:1]]

[O] [PATCH] ob-clojure-literate.el need to improve the toggle way

2018-03-14 Thread stardiviner
I need to updated my ob-clojure-literate.el toggle functions. >From fa02d9ceb892626aa37a911d85d9074353b56bdf Mon Sep 17 00:00:00 2001 From: stardiviner Date: Wed, 14 Mar 2018 16:13:05 +0800 Subject: [PATCH 1/2] * ob-clojure-literate.el (ob-clojure-literate-enable, ob-clojure-literate-disable)

Re: [O] Structured links to headings with endless depth

2018-03-14 Thread Michael Brand
Hi John On Wed, Mar 14, 2018 at 4:49 AM, John Kitchin wrote: > (defun xpath-follow (path) Thank you for this solution. I plan to adapt it to match the link path only to a portion of a headline branch by ignoring the higher and lower levels not given in the link path for my use case: ,(arbit