Re: [O] [PATCH] ob-shell

2014-08-13 Thread Alan Schmitt
On 2014-08-04 21:48, Achim Gratz writes: > Alan Schmitt writes: >> Has this been applied? I'm still seeing a failing test for ob-shell. >> >> 1 unexpected results: >>FAILED ob-shell/bash-uses-assoc-arrays > > That's to be expected if you use a v

Re: [O] remapping C-c ' to another key

2014-07-30 Thread Alan Schmitt
On 2014-07-29 19:23, Thorsten Jolitz writes: > Alan Schmitt writes: > >> Hello, >> >> I'm trying to remap ~C-c '~ to ~ '~ and I'm having some >> trouble. More specifically, I'm able to initiate the editing part using >> a global bi

Re: [O] [RFC] Add commmand for wrapping sexp/region in src-blocks to Org?

2014-07-30 Thread Alan Schmitt
Hi Thorsten, On 2014-07-29 17:36, Thorsten Jolitz writes: > I often missed the following command for wrapping existing content into > src-blocks in the past, besides knowing about > `org-babel-demarcate-block' and easy template insertion. Would it make > sense to add it to Org-mode? I find this

[O] remapping C-c ' to another key

2014-07-29 Thread Alan Schmitt
Hello, I'm trying to remap ~C-c '~ to ~ '~ and I'm having some trouble. More specifically, I'm able to initiate the editing part using a global binding to `org-edit-special', but I don't know how to bind the same key to `org-edit-src-exit' when I'm editing a source block. As I suspect I will also

Re: [O] open file link in dired?

2014-07-28 Thread Alan Schmitt
Hi Bastien, On 2013-01-04 17:33, Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> Thank you, this would work nicely. However I don't know how to specify, >> when I open the file, which link-type to use. Would I need to modify the >> link itself from

Re: [O] [PATCH] ob-shell

2014-07-24 Thread Alan Schmitt
Hello, On 2014-06-22 14:50, Eric Schulte writes: > If this maintains existing functionality, please go ahead and apply it. Has this been applied? I'm still seeing a failing test for ob-shell. 1 unexpected results: FAILED ob-shell/bash-uses-assoc-arrays Best, Alan -- OpenPGP Key ID : 04

Re: [O] org-mime-org-buffer-htmlize sending hangs ...

2014-07-22 Thread Alan Schmitt
On 2014-07-21 19:45, Peter Davis writes: > Alas, despite years of emacs abuse, I have not managed to master even > the rudiments of emacs lisp, and don't even know how to edebug. To get you started, you could try the following. - set up two emacs frames - in one frame, do a "M-x describe-functi

Re: [O] outorg edition of mails and drafts

2014-07-22 Thread Alan Schmitt
On 2014-07-21 11:32, Thorsten Jolitz writes: > These message-drafts are really redundant and a bit annoying, but I have > no idea about the inner workings of gnus and doing > > , > | C-h f gnus-draft- TAB > | C-h v gnus-draft- TAB > ` > > did not enlighten me any further. So I will ask

[O] outorg edition of mails and drafts

2014-07-21 Thread Alan Schmitt
Hello, When I edit a mail using outorg, it leaves behind a mail in my draft folder (from "nobody" with subject "(none)" and with the text the contents of the org buffer, including the "* --text follows this line--" heading). Is there a way to avoid having this draft left behind? Thanks, Alan PS

Re: [O] cache problem, with ECM

2014-07-17 Thread Alan Schmitt
On 2014-07-17 16:43, Nicolas Goaziou writes: > This should be fixed. Thank you for reporting it. I confirm it works. Thanks a lot! Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 pgpQ5yvO04f9s.pgp Description: PGP signature

Re: [O] emails written in Org Mode

2014-07-15 Thread Alan Schmitt
On 2014-07-15 02:57, Thorsten Jolitz writes: > Hadn't have the time to try Gnorb, but the combination of gnus&org is > definitely interesting for me. I highly recommend this library. I haven't scratched the surface, but one great "aha" moment was when I was reading in email in gnus and saw a mes

Re: [O] cache problem, with ECM

2014-07-11 Thread Alan Schmitt
On 2014-07-11 11:34, Daniel Clemente writes: >> >> As a quick follow-up, I can get rid of the cache corruption by not using >> the log book (I set '(setq org-log-into-drawer nil)'). If others are >> seeing such cache corruption, this might be a temporary workaround. >> > I also am seeing many

Re: [O] emails written in Org Mode

2014-07-11 Thread Alan Schmitt
Hello Thorsten, On 2014-07-10 15:27, Thorsten Jolitz writes: > Looks like the hooks are not set. Here (again) my configuration from > init.el: > > , > | (add-hook 'emacs-lisp-mode-hook 'outline-minor-mode) > | (add-hook 'message-mode-hook 'outline-minor-mode) > | ;; more hooks for other maj

Re: [O] cache problem, with ECM

2014-07-10 Thread Alan Schmitt
On 2014-07-09 10:11, Alan Schmitt writes: > Hello, > > I noticed this morning, after updating org-mode to the latest version, > that I would get an error with a trace related to a cache even if a just > started emacs. It took me a while to get down to an ECM, but here it is. As

Re: [O] ~C-c '~ not code

2014-07-10 Thread Alan Schmitt
On 2014-07-08 11:36, Axel Kielhorn writes: > Hello, > > I'm writing a manual and I found the following problem: > > ~C-c '~ is not recognized as code. The following You should probably remove the quote from the list of boundary items in org-emphasis-regexp-components. This is what I have in my i

Re: [O] emails written in Org Mode

2014-07-10 Thread Alan Schmitt
Hello, On 2014-07-09 09:49, Thorsten Jolitz writes: > Yes, I use Gnus and thus write my mails in message-mode. > > My setup is the standard outshine.el + outorg.el setup, since it works > out-of-the-box with message-mode, given you follow the installation > description. I've given this a try,

[O] cache problem, with ECM

2014-07-09 Thread Alan Schmitt
Hello, I noticed this morning, after updating org-mode to the latest version, that I would get an error with a trace related to a cache even if a just started emacs. It took me a while to get down to an ECM, but here it is. The init file used: --8<---cut here---start

Re: [O] babel evaluation of python and utf-8

2014-07-04 Thread Alan Schmitt
On 2014-06-26 18:07, Daniel Clemente writes: >> >> #+BEGIN_SRC python :prefix # -*- coding: utf-8 -*- :results output >> print(u'é') >> #+END_SRC >> > > I also see the same problem here. Even if you include # -*- coding: utf-8 > -*-as the first line. > > Shouldn't org-babel already be us

Re: [O] still seeing semi-regular lockups

2014-06-30 Thread Alan Schmitt
On 2014-06-30 03:43, York Zhao writes: > I know that doesn't help much except for confirming the problem other people > was > suffering. Sorry for the rant. I was too busy and too frustrated. > > By the way, what does ECM stands for? Exemple Complet Minimal (French for minimal complete example)

Re: [O] still seeing semi-regular lockups

2014-06-27 Thread Alan Schmitt
I've also just been bitten by this bug, as I was doing my weekly review. I'll try to see if I can write an ECM, but for the record this is what I was doing: I was in an agenda view sorted by the value of a LAST_REVIEW property, and I was repeatedly calling this function on the entries of the view:

Re: [O] org-ref in action

2014-06-26 Thread Alan Schmitt
On 2014-06-26 20:44, Matt Lundin writes: > Alan Schmitt writes: > >> On 2014-06-26 16:39, Matt Lundin writes: >> >>> By contrast, ox-bibtex.el runs citations through bibtex2html, which is >>> pretty much limited to the "old-fashioned" bi

Re: [O] org-ref in action

2014-06-26 Thread Alan Schmitt
On 2014-06-26 16:39, Matt Lundin writes: > By contrast, ox-bibtex.el runs citations through bibtex2html, which is > pretty much limited to the "old-fashioned" bibtex formats. What would be required for bibtex2html to take biblatex input? I thought the backend format was similar or the same (as y

Re: [O] babel evaluation of python and utf-8

2014-06-26 Thread Alan Schmitt
On 2014-06-26 09:35, Alan Schmitt writes: > #+BEGIN_SRC python :prefix # -*- coding: utf-8 -*- :results output > print(u'∀') > #+END_SRC I see that somewhere the email did not get through, the character above is a "forall" character. I have the same problem with

Re: [O] /some 'text'/

2014-06-26 Thread Alan Schmitt
On 2014-06-26 03:38, Alan L Tyree writes: > I have the following expression in my manuscript: > > /Caltex Oil (Aust) Pty Ltd v The Dredge 'Willemstad'/ [1976] HCA 65 > > I want the /.../ part to be italicised on export, but (of course) it isn't. > > The variable org-emphasis-regexp-components was

[O] babel evaluation of python and utf-8

2014-06-26 Thread Alan Schmitt
Hello, I'm having trouble with the babel evaluation of python blocks containing utf-8 encoded characters (which is the encoding of my org file). I tried the approach suggested in this message https://lists.gnu.org/archive/html/emacs-orgmode/2010-12/msg00086.html in the following block #+BEGIN_SR

Re: [O] passing the contents of a block as an escaped string

2014-06-26 Thread Alan Schmitt
Hello Charles, On 2014-06-24 18:37, Charles Berry writes: > , > | #+NAME: prin-block > | #+BEGIN_SRC emacs-lisp :var a="abc" > | (defun foo (blk) > | (save-excursion > | (org-babel-goto-named-src-block blk) > | (nth 1 (org-babel-get-src-block-info 'light > | > | #+EN

[O] passing the contents of a block as an escaped string

2014-06-23 Thread Alan Schmitt
Hello, I'm trying to write some filters from Pygments, and to record what I'm doing and make my life simpler, I'm doing it in an orgmode buffer. In that buffer, I have the code I want to highlight in a source block, and the python code for the Pygments extension in another block. I'm trying to fin

Re: [O] org-weather for openweathermap.org

2014-06-16 Thread Alan Schmitt
On 2014-06-16 10:04, Rüdiger Sonderfeld writes: > Hi, > > On Saturday 14 June 2014 15:11:21 Chris Raschl wrote: >> recently I wanted to add a weather forecast to my org-agenda. I found >> org-google-weather, but this package is obsolete since 2012, because the >> API is not available any more. S

Re: [O] small patch to org-mac-link (grab selected messages in Mail.app)

2014-06-07 Thread Alan Schmitt
On 2014-06-06 16:58, Anthony Lander writes: > Hi Alan, > > Thanks for the patch. It looks OK to me - can you please go ahead and > apply it to the file? Also, feel free to add your name to the > contributor list at the top of the file. Done and pushed. Best, Alan

[O] small patch to org-mac-link (grab selected messages in Mail.app)

2014-06-04 Thread Alan Schmitt
if they are there, but I don't think it's needed (I don't see how they could occur there). Best, Alan >From 17dfd1cbee7355016c04f8ae09e102813651db86 Mon Sep 17 00:00:00 2001 From: Alan Schmitt Date: Wed, 4 Jun 2014 11:47:09 +0200 Subject: [PATCH] org-mac-link.el: Tweak A

Re: [O] babel and computing a number of months

2014-06-02 Thread Alan Schmitt
On 2014-06-02 10:13, Alexis writes: > Alan Schmitt writes: > >> I need to work with dates for some code/scripts I'm writing in a >> document making heavy usage of source blocks and babel evaluation. The >> good news is that I have access to many programming langu

[O] babel and computing a number of months

2014-06-02 Thread Alan Schmitt
Hello, I need to work with dates for some code/scripts I'm writing in a document making heavy usage of source blocks and babel evaluation. The good news is that I have access to many programming languages, so the bad news is I don't know which one to choose. The problem I want to solve is the foll

Re: [O] [FR] Archive subtree with parent structure

2014-05-29 Thread Alan Schmitt
On 2014-05-28 21:39, Bastien writes: > Hi Florian, > > Florian Lindner writes: > >> If I also archive AB after that, it gets inserted in the structure which >> is now identical to the structure we started with. > > FR noted, thanks. I'm curious to see if people would really find this > a good o

Re: [O] org-review-schedule

2014-05-21 Thread Alan Schmitt
Hi Bastien, On 2014-05-21 14:08, Bastien writes: >> Thank you for the opportunity. I've been getting spoiled by the use of >> github (to track issues, and to have documentation at the same place >> than the code). I'm wondering if there is a way to have the code both on >> github and in the cont

Re: [O] org-review-schedule

2014-05-20 Thread Alan Schmitt
Hi Bastien, On 2014-05-15 12:07, Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> I need to learn how to do this. In the meantime, I've put the code on >> github: https://github.com/brabalan/org-review > > Since the big secret plan to move contrib

Re: [O] [ANN] Gnorb: Glue code between Gnus, Org, and BBDB

2014-05-10 Thread Alan Schmitt
On 2014-05-10 18:36, Eric Abrahamsen writes: > Right now (this code hasn't been pushed yet), the GNORB_MSG_IDS property > is used in the *other* direction: when you receive a message that might > be relevant to a TODO (ie the second of the three mail functions I > mentioned), the GNORB_MSG_IDS pr

Re: [O] [ANN] Gnorb: Glue code between Gnus, Org, and BBDB

2014-05-10 Thread Alan Schmitt
On 2014-05-10 12:32, Eric Abrahamsen writes: > Alan Schmitt writes: > >> I usually avoid putting links in my tasks. For instance, the task >> I generated from your email to the list looks like this: >> >> TODO Reply to this when I will have tried gnorb

Re: [O] Can org-mode 8 be used together with ergoemacs?

2014-05-09 Thread Alan Schmitt
On 2014-05-09 15:14, "Martin Beck" writes: > I recently stumbled upon ergoemacs (http://ergoemacs.org/ ) and as I'm > quite new to emacss, it would not be too late (I suppose) to re-learn > the keystrokes. > As I am typing a lot, I'm concerned about RSI and I wonder: > does it make sense to use e

Re: [O] [ANN] Gnorb: Glue code between Gnus, Org, and BBDB

2014-05-09 Thread Alan Schmitt
Hello Eric, On 2014-05-07 03:23, Eric Abrahamsen writes: > I've spent the past couple weeks organizing various bits of code into a > proper package, called Gnorb, which I'm billing as "Glue code between > Gnus, Org, and BBDB". The main point is to reduce friction between these > three packages,

[O] Profiling capture input

2014-04-30 Thread Alan Schmitt
Hello, I must have changed something in my configuration recently, since I'm noticing some lag when I type in an org capture window. I would like to figure out what slows things down, but I have no idea where to start. Is there a way of profiling what is going on as I type in that window, to find

Re: [O] Is OrgMode really GTD compliant?

2014-04-29 Thread Alan Schmitt
On 2014-04-29 15:31, Bastien writes: > Hi Samuel, > > Samuel Loury writes: > >> In that case, OBJECT is not the current buffer but a string called >> 'a'. Thus, IIUC, it makes no sense to use OBJECT=a and >> POSITION=(point-min). > > Indeed. It should be 0 in this case, thanks for spotting this

Re: [O] Is OrgMode really GTD compliant?

2014-04-29 Thread Alan Schmitt
Hi Samuel, On 2014-04-29 12:30, Samuel Loury writes: > Hi, > Alan Schmitt writes: > >> On 2014-04-28 19:18, Rene writes: >> I have not defined an Energy property, but I recently played with date >> properties (and a user defined sorting function). If it's help

Re: [O] Is OrgMode really GTD compliant?

2014-04-28 Thread Alan Schmitt
Hi, On 2014-04-28 19:18, Rene writes: > I'm not used to defining new properties in orgmode. I'll try to define an > "Energy" property as well as functions like "org-agenda-cmp-user-defined" in > order to correctly use "org-agenda-sorting-strategy", unless someone has > already done so... I hav

Re: [O] org-babel pass data between blocks

2014-04-28 Thread Alan Schmitt
On 2014-04-28 14:41, Marvin Doyley writes: > Dear All, > > Is there way to pass data between blocks in org-babel. For example lets say > have two blocks > > > #+begin_src python > from pylab import * > # Simple carrier > t=linspace(0,1,100); > fc=100; > Ac =1; > C=Ac*cos(2*pi*t); > > #+end_src >

Re: [O] org-review-schedule

2014-04-28 Thread Alan Schmitt
Hi Alexander, On 2014-04-28 09:20, AW writes: > Am Sonntag, 27. April 2014, 10:09:35 schrieb Alan Schmitt: >> On 2014-04-25 10:02, Nicolas Goaziou writes: >> > Alan Schmitt writes: >> >> I guess I should have asked: who decides what goes in contrib? >>

Re: [O] org-review-schedule

2014-04-27 Thread Alan Schmitt
On 2014-04-25 10:02, Nicolas Goaziou writes: > Alan Schmitt writes: > >> I guess I should have asked: who decides what goes in contrib? > > The Org maintainer. Another option is to turn it into an ELPA package. I need to learn how to do this. In the meantime, I've put th

Re: [O] org-review-schedule

2014-04-27 Thread Alan Schmitt
On 2014-04-26 14:25, Nicolas Goaziou writes: > Thorsten Jolitz writes: > >> the answer is in the quote already: >> >> ,- >> | Since return value matters, I suggest to use ... >> `- > > Exactly. I use `when' i

Re: [O] org-review-schedule

2014-04-26 Thread Alan Schmitt
Hi Nicolas, I've changed all of these, and I will keep testing it over the next few days. I have one question remaining, though. On 2014-04-25 08:51, Nicolas Goaziou writes: >> (if (time-less-p nt (current-time)) nt) > > This is a matter of taste, but I find one-armed `if' a bit con

Re: [O] org-review-schedule

2014-04-25 Thread Alan Schmitt
Hi Nicolas, Thanks a lot for these very helpful comments. I'll take them into account. I have a couple questions of my own now. On 2014-04-25 08:51, Nicolas Goaziou writes: >> I would like to propose to add this to the contrib directory, but >> I don't know the procedure to submit this code. >

Re: [O] org-review-schedule

2014-04-24 Thread Alan Schmitt
Hi Bastien, On 2014-04-19 10:14, Bastien writes: > Hi Alan, > > thanks for sharing -- some comments: > > - you need to update the copyright of the file; I changed the date. As I signed the FSF paper, do I need to change the name as well and put mine? > - example code in section 3 of the header

Re: [O] How do I chain babel blocks with arguments?

2014-04-22 Thread Alan Schmitt
Hi Eric, On 2014-04-22 13:30, Eric Schulte writes: > Sorry, that's because the "x" should be "z". See the following. > > #+name: z > : "bar" > #+name: test3 > #+begin_src emacs-lisp :var x="foo" > x > #+end_src > > #+RESULTS: test3 > : foo > > #+name:test4 > #+begin_src emacs-lisp :var y=test3(

Re: [O] How do I chain babel blocks with arguments?

2014-04-22 Thread Alan Schmitt
Hi Eric, On 2014-04-20 03:41, Eric Schulte writes: >> --8<---cut here---start->8--- >> #+name: z >> : "bar" >> #+name: test3 >> #+begin_src emacs-lisp :var x="foo" >> x >> #+end_src >> >> #+name:test4 >> #+begin_src emacs-lisp :var y=test1(x=z) >> y >> #+end_s

Re: [O] org-review-schedule

2014-04-19 Thread Alan Schmitt
Hi Bastien, Thanks a lot for these, I'll look into them. I have a couple questions in the meantime. On 2014-04-19 10:14, Bastien writes: > - maybe you can use "naked" timestamps like 2014-04-19 sam. > instead of inactive ones, this way using "[" in the agenda > will not create false positiv

[O] org-review-schedule

2014-04-18 Thread Alan Schmitt
Hello, I've just finished writing a little bit of code that allows the scheduling of reviews. The basic idea is that every task that is supposed to be reviewed has a LAST_REVIEW property (a date when the task / project was last reviewed), and optionally a REVIEW_DELAY property (with a configurable

Re: [O] How do I define `org-agenda-cmp-user-defined'?

2014-04-18 Thread Alan Schmitt
On 2014-04-18 15:21, Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> More precisely, given this: >> >> ,- >> | (defun org-review-schedule-compare (a b) >>

Re: [O] using org-babel-trim in org-sbe?

2014-04-18 Thread Alan Schmitt
On 2014-04-18 15:17, Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> #+TBLFM: $2='(org-sbe spending (c (concat "\"" $1 "\"")))::$3='(org-sbe >> spending (c (concat "\"" (org-babel-trim $1) "\"&quo

Re: [O] Weaving a budget with Org & ledger

2014-04-18 Thread Alan Schmitt
Hi, On 2014-02-21 05:59, Erik Hetzner writes: > Users of ledger and Org may be interested in this tutorial on how I > manage an envelope style budget with those two excellent tools. > > http://orgmode.org/worg/org-tutorials/weaving-a-budget.html Thanks to this nice description, I migrated my

[O] How do I define `org-agenda-cmp-user-defined'?

2014-04-18 Thread Alan Schmitt
Hello, I'm working on a way to schedule reviews of projects, and I would like to have them ordered by age in an agenda view. It seems that I want to write my own `org-agenda-cmp-user-defined' function to do so. Unfortunately I cannot find an example of such a function. More precisely, given this:

Re: [O] (OT) How to follow a mailing list with very high activity (like this one here)?

2014-04-18 Thread Alan Schmitt
On 2014-04-17 17:30, Eric S Fraga writes: >> During the last years, I'be become a real org-mode fan and I want to stay >> current and be active in the great org-mode community. >> I've subscribed to the orgmode mailinglist about 1,5 years ago and so I have >> > 17.500 mails in my inbox. > > There

Re: [O] Request for worg page -- escaping questions

2014-04-18 Thread Alan Schmitt
Hi Rustom, On 2014-04-18 05:21, Rustom Mody writes: > What I would like is a graphic -- an automata-diagram made perhaps by > dot. Can that easily/conveniently go up onto worg? I don't know how worg's export is configured, but something like this may work ... --8<---cut here---

Re: [O] How do I chain babel blocks with arguments?

2014-04-18 Thread Alan Schmitt
Hi Eric, On 2014-04-17 07:42, Eric Schulte writes: > Alan Schmitt writes: > >> How can I execute block `test1' from block `test2' by passing an >> argument that is one from test2? >> > > #+name: z > : bar > #+name: test1 > #+begin_src emacs-l

Re: [O] problem with call lines with post block that are not exported (elpa org)

2014-04-17 Thread Alan Schmitt
On 2014-04-17 15:51, Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> My questions are: >> - is there a bug in the ELPA version of org mode? > > most probably. > >> - is there a workaround? We tried ":exports results" instead of >>

Re: [O] How do I chain babel blocks with arguments?

2014-04-17 Thread Alan Schmitt
On 2014-04-17 12:24, Thorsten Jolitz writes: > Alan Schmitt writes: > >>> #+name:test2 >>> #+begin_src emacs-lisp :var z="bar" >>> (let ((y (org-sbe test1 (x (intern z) >>> y) >>> #+end_src >> >> Thank you for t

Re: [O] How do I chain babel blocks with arguments?

2014-04-17 Thread Alan Schmitt
Hello Charles, On 2014-04-16 22:49, Charles Berry writes: >> I have several babel blocks that each work well, but I'm now trying to >> chain them to build some bigger functionality out of them. I'm having >> trouble finding out how to pass arguments between blocks. Here is >> a small example: >>

Re: [O] Chaining strings between babel blocks: why so many '\'?

2014-04-16 Thread Alan Schmitt
On 2014-04-16 17:37, Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> I see you are the author of ob-dot.el. Should I push the attached >> patch? > > I applied the patch in the master branch, so that Eric can revert it > without too much trouble if need

[O] How do I chain babel blocks with arguments?

2014-04-16 Thread Alan Schmitt
Hello, I have several babel blocks that each work well, but I'm now trying to chain them to build some bigger functionality out of them. I'm having trouble finding out how to pass arguments between blocks. Here is a small example: --8<---cut here---start->8---

Re: [O] tiny patch for org-expiry

2014-04-14 Thread Alan Schmitt
On 2014-04-13 00:11, Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> I'm trying to write some code to schedule reviews of projects, and I'm >> basing it on org-expiry. I found a couple of tiny bugs with it, which >> may be fixed with this patc

[O] tiny patch for org-expiry

2014-04-12 Thread Alan Schmitt
Hello, I'm trying to write some code to schedule reviews of projects, and I'm basing it on org-expiry. I found a couple of tiny bugs with it, which may be fixed with this patch. Best, Alan >From f38fe30c5c6115d33755a1c9f052cb01d1434d79 Mon Sep 17 00:00:00 2001 From: Alan Schmitt

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

2014-04-07 Thread Alan Schmitt
Nicolas Goaziou writes: > Alan Schmitt writes: > >> Thanks, I'm aware this works. I was trying not to manually set some >> default values so that, if default changes, I would benefit from the >> change. But from what I understand there is not really a choice here &

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

2014-04-06 Thread Alan Schmitt
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> I assume the problem is that I want to change only one field of >> `org-emphasis-regexp-components' but it's not possible to do so because >> it's not defined before org is loaded. &g

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

2014-04-06 Thread Alan Schmitt
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> Thank you for the suggestion. How can I do that? Add an "(org-reload)" >> in my async init file? Is there a more efficient way than loading org, >> setting the variable, and immediately

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

2014-04-05 Thread Alan Schmitt
Hi Nicolas, 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 &#

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 correct

[O] using org-babel-trim in org-sbe?

2014-04-03 Thread Alan Schmitt
Hello, I noticed a call to org-sbe failed because there were some extra spaces present in one argument. I tried to clean them up before calling the code block, but instead I'm getting literally what I'm writing. Here is an example: --8<---cut here---start->8---

Re: [O] Prepare release 8.2.6

2014-04-03 Thread Alan Schmitt
Hi Bastien, Bastien writes: > Hi all, > > I'll spend a few hours this afternoon chasing the last > bugs in maint for Org 8.2.6. This release will then be > merged into the emacs-24 branch, which first pretest is > to be released very soon now. > > If you have outstanding bugs, please point at t

Re: [O] Computing the value of some cells of a table using a named code block

2014-04-02 Thread Alan Schmitt
Hi Michael, Michael Brand writes: > When there is no named source block involved I use just > > | Category | Budget | Spending | > |--++--| > | Food | 1000 | Food | > | Rent | 1000 | Rent | > #+TBLFM: $3 = '(org-trim (shell-command-to-string (concat "e

[O] Computing the value of some cells of a table using a named code block

2014-04-02 Thread Alan Schmitt
Hello, I have a table that summarizes my monthly budget, and I would like to add a column where I compute my actual spending. I can get this information using a shell script, but I don't know how to integrate it in the table. Here is a contrived example: --8<---cut here---

[O] problem with call lines with post block that are not exported (elpa org)

2014-04-01 Thread Alan Schmitt
Hello, I'm writing a paper with some colleagues for a conference, and we've just stumbled on a strange bug. My colleague is using org from elpa, and is having the problem, whereas I'm compiling using a very current org version and everything works for me. The problem is as follows. Given this or

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Alan Schmitt
Nicolas Goaziou writes: > Alan Schmitt writes: > > +(mapcar #'org-babel-trim (reverse raw))) > + (raw (org-babel-trim clean)) > + (result-params (cdr (assoc :result-params params))) > + (parsed > + (string-mat

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Alan Schmitt
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> Should I push this patch? > > Nitpick: it is better to remove the dangling parenthesis prior to > this. Thanks. I'm sorry, but I don't see a dangling parenthesis. Where is it? Thanks, Alan

Re: [O] Chaining strings between babel blocks: why so many '\'?

2014-03-29 Thread Alan Schmitt
Hi Eric, I see you are the author of ob-dot.el. Should I push the attached patch? Thanks, Alan >From c6437e8b7132d95ca432b0690bf65ede6e248567 Mon Sep 17 00:00:00 2001 From: Alan Schmitt Date: Thu, 27 Mar 2014 13:35:31 +0100 Subject: [PATCH] ob-dot.el: Substitute variables literally * lisp

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Alan Schmitt
Hello, Alan Schmitt writes: > Hello, > > Here is a patch that allows for the output of ocaml babel blocks to be > captured. It also makes the parsing of the resulting value more robust: > results of type "string list" are now converted to a table, for > instance. &g

Re: [O] ignoreheading in LaTeX export

2014-03-29 Thread Alan Schmitt
Hi Rasmus, Rasmus writes: > This is why you would want to use a filter rather than a hook > (i.e. you only want to retain the Org structure when exporting). > Here's a slightly modified version of the filter I use. Thank you for this suggestion. I went back to my original problem (how to neatl

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

2014-03-28 Thread Alan Schmitt
Alan Schmitt writes: > Hello, > > I have removed the single and double quote characters from my > configuration of the emphasis borders: > > #+begin_src emacs-lisp > (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,") > (custom-set-variables `(org-e

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

2014-03-28 Thread Alan Schmitt
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. > > Th

[O] emphasis borders, double quotes, and export

2014-03-28 Thread Alan Schmitt
Hello, I have removed the single and double quote characters from my configuration of the emphasis borders: #+begin_src emacs-lisp (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,") (custom-set-variables `(org-emphasis-alist ',org-emphasis-alist)) #+end_src However, the latex export

Re: [O] recent changes in COMMENT and tangling?

2014-03-27 Thread Alan Schmitt
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> Have there been recent changes regarding the "COMMENT" keyword and >> tangling? I just saw some blocks whose grand parent is a comment being >> tangled in my configuration file. > &g

[O] recent changes in COMMENT and tangling?

2014-03-27 Thread Alan Schmitt
Hello, Have there been recent changes regarding the "COMMENT" keyword and tangling? I just saw some blocks whose grand parent is a comment being tangled in my configuration file. Here is an ECM. If you `org-babel-load-file' this file: --8<---cut here---start->

Re: [O] ignoreheading in LaTeX export

2014-03-27 Thread Alan Schmitt
Nicolas Goaziou writes: > I suggest to use the dedicated MATCH argument for `org-map-entries': > > (defun as/delete-ignored-heading (backend) > "Remove every headline with a tag `ignoreheading' in the > current buffer. BACKEND is the export back-end being used, as > a symbol." >

Re: [O] Chaining strings between babel blocks: why so many '\'?

2014-03-27 Thread Alan Schmitt
Hello Nicolas, Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> I've been playing with block chaining to generate some dot file then to >> export then as images. I had a little trouble finding the number of '\' >> I need to put in fron

Re: [O] ignoreheading in LaTeX export

2014-03-27 Thread Alan Schmitt
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> I need to ignore a heading during a LaTeX export (I don't want the >> "section" command to be generated, but I need the text to be included; >> the heading is there because the previous

[O] ignoreheading in LaTeX export

2014-03-27 Thread Alan Schmitt
Hello, I need to ignore a heading during a LaTeX export (I don't want the "section" command to be generated, but I need the text to be included; the heading is there because the previous one is tagged with "export"). I found this solution: https://stackoverflow.com/questions/10295177/is-there-an-

Re: [O] Better way to specify the latex documentclass of an exported file without changing my configuration?

2014-03-26 Thread Alan Schmitt
Hello Tom, t...@tsdye.com (Thomas S. Dye) writes: > Alan Schmitt writes: > >> I usually export in offline mode, so I can keep editing while the export >> is going on. > > If you and your colleagues export asynchronously, then the document > class (and other environmen

[O] Chaining strings between babel blocks: why so many '\'?

2014-03-26 Thread Alan Schmitt
Hello, I've been playing with block chaining to generate some dot file then to export then as images. I had a little trouble finding the number of '\' I need to put in front of a quote if I want the quote to be quoted. Here is a way to make it work: --8<---cut here---start

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-26 Thread Alan Schmitt
, Alan >From bcc2fc7ae0e4d099481af229a79b06ae9a160f14 Mon Sep 17 00:00:00 2001 From: Alan Schmitt Date: Wed, 26 Mar 2014 22:23:53 +0100 Subject: [PATCH] ob-ocaml.el: Clean up babel evaluation of ocaml blocks * ob-ocaml.el (org-babel-execute:ocaml): Capture the output, type, and value when eva

Re: [O] Better way to specify the latex documentclass of an exported file without changing my configuration?

2014-03-26 Thread Alan Schmitt
Nicolas Goaziou writes: > Alan Schmitt writes: > >> It is in a :noexport: section already. Here is a quick test. >> >> Exporting >> >> * Test :noexport: >> >> #+begin_src sh >> echo "date 1" >> ~/tmp/results >> ech

Re: [O] Better way to specify the latex documentclass of an exported file without changing my configuration?

2014-03-26 Thread Alan Schmitt
Hello Nicolas, Nicolas Goaziou writes: >> My questions are: >> - is there a way to do this without an emacs-lisp block? > > Yes there is, with a BIND keyword, e.g.: > > #+BIND: org-latex-classes (("article" "\\documentclass{llncs}" > ("\\section{%s}" . "\\section*{%s}"))) > > Though you need

Re: [O] Better way to specify the latex documentclass of an exported file without changing my configuration?

2014-03-26 Thread Alan Schmitt
Hello Fabrice, Fabrice Niessen writes: > You could have a look at Orgmk [1], a suite of shell scripts I wrote > with the following goals in mind: > > - to be more productive, by running the export only when the source Org > files are updated. > > - *to share some common Emacs and Org configura

Re: [O] Better way to specify the latex documentclass of an exported file without changing my configuration?

2014-03-26 Thread Alan Schmitt
Feng Shu writes: > Alan Schmitt writes: > >> Hello, >> >> I'm collaborating on a paper with some colleagues, and I convinced them >> to use org-mode. I'm trying to make sure the paper is as self-contained >> as possible (I don't want them to h

[O] Better way to specify the latex documentclass of an exported file without changing my configuration?

2014-03-26 Thread Alan Schmitt
Hello, I'm collaborating on a paper with some colleagues, and I convinced them to use org-mode. I'm trying to make sure the paper is as self-contained as possible (I don't want them to have to change their emacs configuration file). To change the documentclass name of the exported article, I added

<    1   2   3   4   5   6   7   8   9   10   >