Re: [O] Feedback on changes to org-id

2016-09-22 Thread Rasmus
Adam Porter writes: > Aaron Ecay writes: > >> The API has the following two functions already: >> - org-id-find-file-for: id -> file-name >> - org-id-find-id-in-file: id file -> position >> >> Imagine I add to this API org-id-find-marker: id -> marker. Then I >> think we can deprecate (and even

Re: [O] apply attr_html to a whole figure?

2016-09-22 Thread Christian Moe
I don't think Org syntax provides any way to do this at present, but ignore the rest of this message if anyone knows better. Possible workarounds: 1. Wrap your figure in a #+BEGIN_ADDITIONALCLASS...#+END_ADDITIONALCLASS block, to wrap the div.figure in a div.additionalclass. Not exactly what you

Re: [O] [org-src, patch] colored source blocks

2016-09-22 Thread Rasmus
Hi Aaron, Thanks for the feedback. Aaron Ecay writes: > The patch in general LGTM. One comment/question, though: > > 2016ko irailak 21an, Rasmus-ek idatzi zuen: > > [...] > > >> +(defcustom org-src-block-faces nil >> + "Alist of faces to be used for source-block. >> +Each element is a cell of

Re: [O] [patch] more Beamer properties

2016-09-22 Thread Rasmus
Nicolas Goaziou writes: >>> I think >>> >>> #+TITLEGRAPHICS: [[file:link.pdf]] >>> >>> would be cleaner. >> >> I dropped this. One might need to add attributes to the graphic. The >> #+titlegraphics approach wouldn’t allow it. > > Well, wouldn't the following work? > > #+attr_beamer: :attri

Re: [O] Capture Bug?

2016-09-22 Thread Ian Barton
On Wed, Sep 21, 2016 at 10:51:46PM +0200, Nicolas Goaziou wrote: > Hello, > > li...@wilkesley.net writes: > > > commit 5485170263a46fa17db67b0324c4c4e48bcdfe49 > > Author: Nicolas Goaziou > > Date: Fri Jun 24 01:11:49 2016 +0200 > > > > org-capture: Remove forbidden value type from "file" te

Re: [O] apply attr_html to a whole figure?

2016-09-22 Thread Eric Abrahamsen
Matt Price writes: > When exporting images with captions, ox-html currently creates a > strucuture like this: > > > > > Figure 1: "test" > > > (I've tried setting org-html-html5-fancy" to t, but for whatever > reason this doesn't result in the useo f the tag. I tried > with emacs -q with no

Re: [O] How to use org mode shell with ssh?

2016-09-22 Thread Colin Baxter
On Wed, Sep 21 2016, William Denton wrote: > On 22 September 2016, Xi Shen wrote: > >> #+BEGIN_SRC sh :dir /sshx:openwrt:/mnt/sda1 >> ls -al >> #+END_SRC > > Just use ssh, not sshx, and it should work. > > Bill In babel it is now (shell . t). The form (sh . t) is depreciated as from org-mode vers

Re: [O] How to use org mode shell with ssh?

2016-09-22 Thread Xi Shen
Hi, I just tried with: #+BEGIN_SRC shell :dir /ssh:openwrt:/mnt/sda1 ls -al #+END_SRC But still got the same error. I wonder on which end threw me this error. Maybe it is because I am using Emacs on Windows, and some thing is missing? Or maybe it is because the remote system is OpenWRT which has

Re: [O] How to use org mode shell with ssh?

2016-09-22 Thread Xi Shen
Instead of using ssh, I tried with scp. This time I got a different error. #+BEGIN_SRC shell :dir /scp:openwrt:/mnt/sda1 ls -al #+END_SRC The error, I think, is from the remote end. /bin/sh: /bin/zsh: not found Clearly, I am using zsh on my Windows, but my remote OpenWRT system only has ash ins

Re: [O] [PATCH] custom port for postgresql

2016-09-22 Thread Jakob Lombacher
Hi Nicolas, sure, here you go. All the best Jakob 2016-09-17 10:39 GMT+02:00 Nicolas Goaziou : > Hello, > > Jakob Lombacher writes: > > > I changed the dbport as optional argument and added the dbpassword option > > as well. > > I applied your patch with the modifications below: > > - I added

Re: [O] Feedback on changes to org-id

2016-09-22 Thread Adam Porter
Rasmus writes: > I didn't try your package, but from the description it simply allows one > to use the standard Emacs bookmark system, correct? (I’m surprised it > doesn’t work with org files out of the box). Yes, that's right. I was surprised as well, that's why I did it. :) > Such a featur

Re: [O] How to use org mode shell with ssh?

2016-09-22 Thread Nick Dokos
Xi Shen writes: > Instead of using ssh, I tried with scp. This time I got a different error. > > #+BEGIN_SRC shell :dir /scp:openwrt:/mnt/sda1 > ls -al > #+END_SRC > Try opening the file in tramp directly - that should tell you where the error lies: tramp or org? > The error, I think, is from th

Re: [O] How to use org mode shell with ssh?

2016-09-22 Thread David A. Gershman
I'm not familiar with remote execution like this, but are you specifying /zsh/ on the Windows side or is it somehow inherently being assumed for the remote? A quick little hack to try may be to copy the /zsh/ executable on Windows to /ash/ and see if it fools the remote side. On 09/22/2016 07:00

[O] Add org-bookmark-heading to Org proper?

2016-09-22 Thread Adam Porter
As mentioned in <87oa3gs8tc@gmx.us>, some changes to the org-id functions are being proposed. My org-bookmark-heading package uses org-id-find, so if that function changes or is removed, I'd have to change the package for newer Org versions. Given that, now might be a good time to consider me

Re: [O] How to use org mode shell with ssh?

2016-09-22 Thread Nick Dokos
Colin Baxter writes: >> #+BEGIN_SRC shell :dir /scp:openwrt:/mnt/sda1 >> ls -al >> #+END_SRC >> >> The error, I think, is from the remote end. >> >> /bin/sh: /bin/zsh: not found >> >> Clearly, I am using zsh on my Windows, but my remote OpenWRT system only has >> ash installed. Is >> there's wa

Re: [O] Add org-bookmark-heading to Org proper?

2016-09-22 Thread Xebar Saram
I *highly* support this. i use org-bookmark-heading extensivly and its very much part of my base org mode workflow thx best Z On Thu, Sep 22, 2016 at 5:33 PM, Adam Porter wrote: > As mentioned in <87oa3gs8tc@gmx.us>, some changes to the org-id > functions are being proposed. My org-boo

Re: [O] How to use org mode shell with ssh?

2016-09-22 Thread Colin Baxter
On Thu, Sep 22 2016, Xi Shen wrote: > Instead of using ssh, I tried with scp. This time I got a different error. > > #+BEGIN_SRC shell :dir /scp:openwrt:/mnt/sda1 > ls -al > #+END_SRC > > The error, I think, is from the remote end. > > /bin/sh: /bin/zsh: not found > > Clearly, I am using zsh on my

Re: [O] Add org-bookmark-heading to Org proper?

2016-09-22 Thread Kaushal Modi
I have seen mailing list references like the one below a couple of times. But they have never worked for me. Email clients in browser like gmail/inbox treat them as email addresses. So when I click them, I get a compose window with To: email set to "87oa3gs8tc@gmx.us". Do such links work only i

Re: [O] Babel Export - Getting asked for coding system

2016-09-22 Thread Aaron Ecay
Hi David, The way you have this code set up, perl will print a string to its stdout. Emacs will read that string into a buffer, then write it to a file. It would be simpler to write the file directly from perl. Note that this will require specifying the file name twice (in the :file header and

Re: [O] Feedback on changes to org-id

2016-09-22 Thread Aaron Ecay
Hi Adam, 2016ko irailak 22an, Adam Porter-ek idatzi zuen: > > Personally, I wish org-id-find would not be removed, because I use it in > org-bookmark-heading, e.g.: Any change to the API would leave in place a compatibility alias for a significant period of time (at least one major version of Or

Re: [O] XML dump of org file?

2016-09-22 Thread Aaron Ecay
Hi Norman, Have a look at the org-element library, which can produce an sexp representation of the structure of an org document. (In particular the function ‘org-element-parse-buffer’). You’ll need to convert the sexps to XML, but that’s a comparatively minor task. HTH, -- Aaron Ecay

Re: [O] Add org-bookmark-heading to Org proper?

2016-09-22 Thread Aaron Ecay
Hi Adam, The package looks useful, and we ought to have this functionality as part of org. The first question that arises is whether you have completed the copyright assignment process described at : an assignment is necessary for any patc

Re: [O] Add org-bookmark-heading to Org proper?

2016-09-22 Thread Adam Porter
Aaron Ecay writes: > The first question that arises is whether you have > completed the copyright assignment process described at > : an > assignment is necessary for any patches to org-mode core. I was expecting that to be the next quest

Re: [O] Add org-bookmark-heading to Org proper?

2016-09-22 Thread Adam Porter
Kaushal Modi writes: > I have seen mailing list references like the one below a couple of > times. But they have never worked for me. Email clients in browser > like gmail/inbox treat them as email addresses. So when I click them, > I get a compose window with To: email set to "87oa3gs8tc@gmx

Re: [O] Feedback on changes to org-id

2016-09-22 Thread Adam Porter
Aaron Ecay writes: > Any change to the API would leave in place a compatibility alias for a > significant period of time (at least one major version of Org), and > there would be deprecation warnings to encourage package authors to > switch to the new API. So packages like yours would continue t

Re: [O] Babel Export - Getting asked for coding system

2016-09-22 Thread David A. Gershman
Thank you for the explanation. It turns out I did find a work-around which is exactly what you mentioned. The only difference is instead of specifying the file name twice, I was able to get it only once and use the 'file' option to :results: #+BEGIN_SRC perl :results output file :exports resu

Re: [O] XML dump of org file?

2016-09-22 Thread Brett Viren
Aaron Ecay writes: > Have a look at the org-element library, Just to add, there are circular dependencies in this data structure due to ":parent" and potentially some of the ":structure" elements. They obviously need to be broken to avoid infinite loops. Here my hackish attempt to deal with th

Re: [O] Add org-bookmark-heading to Org proper?

2016-09-22 Thread Nicolas Goaziou
Hello, > Given that, now might be a good time to consider merging the package > into Org proper. It seems like something that should be in Org already, > being able to make Emacs bookmarks that point to Org headings. It's > actually just three functions, so not much of a "package" really. > > ht

Re: [O] Dynamic tangle target?

2016-09-22 Thread Grant Rettke
Most things that you can image are also listed here: https://eschulte.github.io/org-scraps/ Awesome reading for Org-Mode Literate Programmers. Sincerely, Grant Rettke On Wed, Sep 21, 2016 at 8:06 PM, Charles C. Berry wrote: > On Wed, 21 Sep 2016, Philip Hudson wrote: > >> AFAICT :tangle takes

Re: [O] working with tables can be quite painful...

2016-09-22 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > I cannot send the actual table I am working on as it relates to grades > for students. I will try to create a similar table with random > entries. You could also try the imperfect (make sure to eyeball the result): (defun scramble-contents () (interactive)

Re: [O] [PATCH] Indicate what happens to CLOCK entries in cloned subtrees

2016-09-22 Thread Nicolas Goaziou
Hello, Samuel Loury writes: > This is a very small documentation patch to explain to the user what > will happen to the CLOCK entries of a cloned subtree. Applied. Thank you. Regards, -- Nicolas Goaziou

Re: [O] How to use org mode shell with ssh?

2016-09-22 Thread Fabrice Popineau
My $0.02 As I'm using Emacs on Windows, with MSYS2+MingW64, I tried this. There is a problem with using bash from a _native_ MingW64 Emacs: bash is a MSYS2 app and Emacs is a MingW64 app. >From emacs, I would have used the plink protocol, so that's what I did. And I got this message in the *Org-B

Re: [O] apply attr_html to a whole figure?

2016-09-22 Thread Matt Price
On Thu, Sep 22, 2016 at 3:09 AM, Christian Moe wrote: > > I don't think Org syntax provides any way to do this at present, but > ignore the rest of this message if anyone knows better. > > Possible workarounds: > > 1. Wrap your figure in a #+BEGIN_ADDITIONALCLASS...#+END_ADDITIONALCLASS > block,

Re: [O] apply attr_html to a whole figure?

2016-09-22 Thread Matt Price
On Thu, Sep 22, 2016 at 5:50 AM, Eric Abrahamsen wrote: > Matt Price writes: > > > When exporting images with captions, ox-html currently creates a > > strucuture like this: > > > > > > > > > > Figure 1: "test" > > > > > > (I've tried setting org-html-html5-fancy" to t, but for whatever > >

[O] Turn off #+BEGIN_EXAMPLE conversions?

2016-09-22 Thread David A. Gershman
Hello, I have some text in an EXAMPLE block but on HTML export '<' and '>' are converted to their '&' equivalents. Is there a way to turn this off on a per-instance basis? For example, I have: #+BEGIN_EXAMPLE T = X + Y1 #+END_EXAMPLE and I'd like the '1' to be subscript. But when I write:

Re: [O] [PATCH] custom port for postgresql

2016-09-22 Thread Nicolas Goaziou
Hello, Jakob Lombacher writes: > Hi Nicolas, > > sure, here you go. Applied. Thank you. Regards, -- Nicolas Goaziou

Re: [O] [PATCH] Fix the call to `org-expiry-handler-function'

2016-09-22 Thread Nicolas Goaziou
Hello, Samuel Loury writes: > `org-expiry-handler-function' is meant to be a variable containing the symbol > of > a function to be called. > > Therefore, calling (funcall 'org-expiry-handler-function) results in a > void function error while (funcall org-expiry-handler-function) > correctly ca

Re: [O] Feedback on changes to org-id

2016-09-22 Thread Nicolas Goaziou
Hello, Aaron Ecay writes: > 2016ko irailak 3an, Nicolas Goaziou-ek idatzi zuen: > >> Please don't make that change. A marker is pointless if the file is not >> currently associated to any buffer. In that case (file-name . postition) >> cons cell is a valuable return value. > > The API has the fo

Re: [O] [patch] more Beamer properties

2016-09-22 Thread Nicolas Goaziou
Hello, Rasmus writes: > Nicolas Goaziou writes: >> Per above, would the following be cleaner? >> >> #+attr_beamer: :short shortdate >> >> #+date: longdate >> >> Ditto for title, institute, author... > Looks good, but how do I get the element representation of a parsed > keyword in the :op

[O] Bug with behavior of point in cycle commands?

2016-09-22 Thread Adam Porter
I came across this discussion today: http://emacs.stackexchange.com/questions/27210/how-to-prevent-org-global-cycle-glitch It seems like a bug to me, because the visual position of the point does not match its actual position. Shouldn't the cycle commands adjust the point to match where it appea

Re: [O] Add org-bookmark-heading to Org proper?

2016-09-22 Thread Adam Porter
Nicolas Goaziou writes: Hi Nicholas, > I think Org could benefit from a shrunk version of this library, i.e., > `org-bookmark-make-record' and `org-bookmark-jump'. > > However I'm not convinced about `org-bookmark-jump-indirect' since this > variable complicates code and the same effect can be a

Re: [O] Turn off #+BEGIN_EXAMPLE conversions?

2016-09-22 Thread Eric S Fraga
On Thursday, 22 Sep 2016 at 21:56, David A. Gershman wrote: > Is there a way/option to disable this conversion for that specific > block? Ex: > > #+BEGIN_EXAMPLE :nointerpolation > T = X + Y1 > #+END_EXAMPLE Maybe you could write the HTML directly using #+BEGIN_EXPORT HTML ... #+END_EXPORT --