Re: [O] Clicking on URL does convert some special characters
At Wed, 07 Sep 2011 16:01:48 +0530, Jambunathan K wrote: Hello, I just realized a diff in behavior between 3 URL entered in the Org buffer with slight differences: - http://web.com/file.php?name=Reppath=%2FPROJ%2FSomeFile.txt This one is correctly exported, but when clicking on it from the Org buffer, the URL opened in the browser is http://web.com/file.php?name=Reppath=%252FPROJ%252FSomeFile.txt, ^^ ^^ hence path not found error. - [[http://web.com/file.php?name=Reppath=%2FPROJ%2FSomeFile.txt]] Works OK in Org and in exported HTML file. - [[http://web.com/file.php?name=Reppath=%2FPROJ%2FSomeFile.txt][Description]] Idem. 2. When the Org buffer is exported to html or odt , In org-html-handle-links | (setq path (save-match-data (org-link-unescape == |(match-string 3 line | (setq type (cond | ((match-end 2) (match-string 2 line)) | ((save-match-data | (or (file-name-absolute-p path) | (string-match ^\\.\\.?/ path))) |file) | (t internal))) | (setq path (org-extract-attributes (org-link-unescape path))) == ` link unescape happens twice. Asymmetry due to One link escape + two link unescape asymmetry creates problem on export. Based on historical research, the second org-link-unescape can be removed. The fact that attributes can be entered at C-c C-l prompt is largely documented and so the second call to org-link-unescape can largely be removed. The three issues (plain links, enter link via C-c C-l, and double-unescape) are not related in a strict sense. I just pushed: - a fix for `org-open-at-point' and plain links; problem was, that in contrast to bracket links the plain link was not unescaped when read from buffer - removed the second `org-link-unescape' in `org-html-handle-links'; PATH is already unescaped, does not change between first and third `setq' and should always be escaped only once. Attached patch is for org-lparse.el. The inconsistency C-c C-l vs. copy'n'paste vs. manually entering a link is under further review. The base problem is, that we (a) need to escape certain characters for Org mode (i.e. square brackets) (b) need to treat links in a Org buffer either as escaped -or- as unescaped; you can't always tell the difference from the string alone (e.g. %25 could be the escaped percent sign or the unescaped sequence %25) (c) don't know if the user enters or pastes a escaped or unescaped link; if the user manually enters a link with the sequence %5B and we later read that link, we can't tell if it is a bracket escaped by us or a percent escaped bracket in the original link Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de From 66f09f4608dae272a0eac432dd097a00f632f1d6 Mon Sep 17 00:00:00 2001 From: David Maus dm...@ictsoc.de Date: Sun, 11 Sep 2011 16:57:01 +0200 Subject: [PATCH] Remove unecessary link unescape * org-lparse.el (org-lparse-format-org-link): Remove unecessary link unescape. --- contrib/lisp/org-lparse.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/lisp/org-lparse.el b/contrib/lisp/org-lparse.el index 39d9403..a36b0d7 100755 --- a/contrib/lisp/org-lparse.el +++ b/contrib/lisp/org-lparse.el @@ -199,7 +199,7 @@ OPT-PLIST is the export options list. (string-match ^\\.\\.?/ path))) file) (t internal))) - (setq path (org-extract-attributes (org-link-unescape path))) + (setq path (org-extract-attributes path)) (setq attr (get-text-property 0 'org-attributes path)) (setq desc1 (if (match-end 5) (match-string 5 line)) desc2 (if (match-end 2) (concat type : path) path) -- 1.7.2.5 pgpCGmiLOJSAy.pgp Description: PGP signature
[O] Showing remaining time in agenda mode
Hi all, I have been using Org-Mode with great success over the last year (or so). There is a number of items that I need to handle, and I am reading through the code to try to figure out how to do the various items. However, recently I switched to using 7.7, which disabled a feature I use (but it seems to just be a matter of setting it up again) but also seem to have a lot of additions that I need. Beginning of each week, I plan the coming week using the agenda mode to sort out tasks over the week. To do this efficiently, I have been looking at Effort for each task and the summary for the day, and when the default column view for the agenda showed Effort and Clock, this worked quite well if you manage to complete the tasks during a week. However, quite often I run across tasks that I cannot easily split into smaller tasks and which take more than a week to complete (even though the tasks themselves might be small, I can just spend a few hours each week on them), which forces me to make the math in the head to distribute the right amount for each day. Now, the default column view changed with 7.7, so I have no idea on how to set up the agenda column view to show the following: * Each task line should show Item, Effort, Clock, and Clock - Effort * Each day line should show the summary of (at least) the Effort and the Clock - Effort Does anybody know how to set this up, or do I need to go digging the code? Best wishes, Mats Kindahl
Re: [O] Dimming ancestors in the agenda (relevant to indenting nested TODOs in agenda views)
On Sun, Sep 11 2011, Samuel Wales wrote: Eric, I'm starting with the easiest use-case: attaching a level text property to each TODO. I'm trying to do this for TODOs produced by This might or might not solve all your needs, but one option for finding ancestors is to simply grab the olpath for each agenda line. Then you can compare pathname components. For example /a/b is an ancestor of /a/b/c/d/e. Thanks for keeping an eye on this! I had moved from calculating level to calculating path, and that looks like it will solve the basic issue. Now I'm fiddling with edge cases, and distinguishing todo blocks from agenda blocks in custom views, and… and… Getting close though! E
Re: [O] Org-mode using enumerate properties to export to LaTeX
Søren Mikkelsen sorenaamikkel...@gmail.com writes: [...] Yes, it works perfectly when I export it into latex (and thank you for that). Just wondering if it was possible to do something similar within org-mode; a enumerate list with a prefix, e.g.: R1. One R2. Two Ah, now I understand. The answer is no and I imagine it would be difficult to define a regular expression to match such cases without catching all kinds of lines that were not intended to be lists (e.g. the last word in a sentence that happens to end up at the start of the line...). However, latex does allow you to manually over-ride any item label/number by simply specifying your own in square brackets. e.g. - [R1] one - [R2] two Org passes these through to the latex properly so this should do what you want but obviously you won't have any automated procedure for generating these labels. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.275.gf1fc)
Re: [O] Showing remaining time in agenda mode
Mats Kindahl mats.kind...@oracle.com writes: Hi all, I have been using Org-Mode with great success over the last year (or so). There is a number of items that I need to handle, and I am reading through the code to try to figure out how to do the various items. However, recently I switched to using 7.7, which disabled a feature I use (but it seems to just be a matter of setting it up again) but also seem to have a lot of additions that I need. Beginning of each week, I plan the coming week using the agenda mode to sort out tasks over the week. To do this efficiently, I have been looking at Effort for each task and the summary for the day, and when the default column view for the agenda showed Effort and Clock, this worked quite well if you manage to complete the tasks during a week. However, quite often I run across tasks that I cannot easily split into smaller tasks and which take more than a week to complete (even though the tasks themselves might be small, I can just spend a few hours each week on them), which forces me to make the math in the head to distribute the right amount for each day. Now, the default column view changed with 7.7, so I have no idea on how to set up the agenda column view to show the following: * Each task line should show Item, Effort, Clock, and Clock - Effort * Each day line should show the summary of (at least) the Effort and the Clock - Effort Does anybody know how to set this up, or do I need to go digging the code? Best wishes, Mats Kindahl Hi Mats, Try customizing org-columns-default-format. Regards, Bernt
Re: [O] Showing remaining time in agenda mode
On 09/12/2011 01:14 PM, Bernt Hansen wrote: Mats Kindahl mats.kind...@oracle.com writes: Hi all, I have been using Org-Mode with great success over the last year (or so). There is a number of items that I need to handle, and I am reading through the code to try to figure out how to do the various items. However, recently I switched to using 7.7, which disabled a feature I use (but it seems to just be a matter of setting it up again) but also seem to have a lot of additions that I need. Beginning of each week, I plan the coming week using the agenda mode to sort out tasks over the week. To do this efficiently, I have been looking at Effort for each task and the summary for the day, and when the default column view for the agenda showed Effort and Clock, this worked quite well if you manage to complete the tasks during a week. However, quite often I run across tasks that I cannot easily split into smaller tasks and which take more than a week to complete (even though the tasks themselves might be small, I can just spend a few hours each week on them), which forces me to make the math in the head to distribute the right amount for each day. Now, the default column view changed with 7.7, so I have no idea on how to set up the agenda column view to show the following: * Each task line should show Item, Effort, Clock, and Clock - Effort * Each day line should show the summary of (at least) the Effort and the Clock - Effort Does anybody know how to set this up, or do I need to go digging the code? Best wishes, Mats Kindahl Hi Mats, Try customizing org-columns-default-format. Thanks Bernt, But how to define different formats for tasks and days and how to define the format for Clock - Effort? /Matz
Re: [O] [babel] VC-Log does not run correctly
Hi Eric and all, Eric Schulte wrote: When calling =C-c C-e b= on this buffer, I get asked by Emacs: Buffer has a running process; kill it? (yes or no) - If I don't say anything, the export process is just hanging in the blue... - If I say yes, the export process really begins, but there is no vc log inserted where I expect it. - Exactly the same (as if I say yes) happens if I say no: export goes on, but no vc log! What could go wrong here? * Org Source #+source: vc-log #+headers: :var limit=-1 #+headers: :var buf=(buffer-name (current-buffer)) #+begin_src emacs-lisp :exports none ;; Most of this code is copied from vc.el vc-print-log (require 'vc) (when (vc-find-backend-function (vc-backend (buffer-file-name (get-buffer buf))) 'print-log) (let ((limit -1) (vc-fileset nil) (backend nil) (files nil)) (with-current-buffer (get-buffer buf) (setq vc-fileset (vc-deduce-fileset t)) ; FIXME: Why t? --Stef (setq backend (car vc-fileset)) (setq files (cadr vc-fileset))) (with-temp-buffer (let ((status (vc-call-backend backend 'print-log files (current-buffer (when (and (processp status) ; Make sure status is a process (= 0 (process-exit-status status))) ; which has not terminated (while (not (eq 'exit (process-status status))) (sit-for 1 t))) (buffer-string) #+end_src Off the top of my head I would recommend Thanks for this clear TODO list, which has giving me some interesting returns... first running the vc-log code block interactively to see how it behaves, As previously said, that worked OK. then possibly expanding the code block with C-c C-v v, The values in the preamble of the expanded block do look OK (see next section). copying the results to your scratch buffer, evaluating the resulting elisp with edebug (C-M-x with a prefix argument), which will then allow you to step through the code execution statement by statement. Did this on the following contents in the scratch buffer: #+begin_src emacs-lisp (let ((buf (quote ecm-vc-log.txt)) (limit (quote -1))) ;; Most of this code is copied from vc.el vc-print-log (require 'vc) (when (vc-find-backend-function (vc-backend (buffer-file-name (get-buffer buf))) 'print-log) (let ((limit -1) (vc-fileset nil) (backend nil) (files nil)) (with-current-buffer (get-buffer buf) (setq vc-fileset (vc-deduce-fileset t)) ; FIXME: Why t? --Stef (setq backend (car vc-fileset)) (setq files (cadr vc-fileset))) (with-temp-buffer (let ((status (vc-call-backend backend 'print-log files (current-buffer (when (and (processp status) ; Make sure status is a process (= 0 (process-exit-status status))) ; which has not terminated (while (not (eq 'exit (process-status status))) (sit-for 1 t))) (buffer-string)) #+end_src ... and it works OK as well. I mean: when I trace the code manually (with SPC), I do get the correct (thus, full) log history printed in the echo area, when I arrive at the last lines of this block's execution. All the vars were as well correctly resolved: - backend is SVN - file is a full path to the right location - etc. So, there is a difference between: - executing this code in the scratch buffer, step by step, versus - executing it in a #+call line However, these instructions helped me a lot. For example, I've observed that, in the scratch buffer, C-x C-e doesn't run in the intended way: I also have the question arising, about the running process. And this is somehow related to the process returning something, or being still alive. ...Here begins my point of incompetence... But, by playing around, I've managed to fix the code so that it now works OK in my Org buffer. Working code: #+source: vc-log #+headers: :var limit=-1 #+headers: :var buf=(buffer-name (current-buffer)) #+begin_src emacs-lisp :exports none ;; Most of this code is copied from vc.el vc-print-log (require 'vc) (when (vc-find-backend-function (vc-backend (buffer-file-name (get-buffer buf))) 'print-log) (let ((limit -1) (vc-fileset nil) (backend nil) (files nil)) (with-current-buffer (get-buffer buf) (setq vc-fileset (vc-deduce-fileset t)) ; FIXME: Why t? --Stef (setq backend (car vc-fileset)) (setq files (cadr vc-fileset))) (with-temp-buffer (let ((status (vc-call-backend backend 'print-log files (current-buffer (when (and t ; (processp status) ; Make sure status is a process ;; (= 0 (process-exit-status status)) ; which has not terminated ) ;; (while (not (eq
[O] Org, latex and asymptote in a math project
Greetings! Been exploring org, done some examples, and even bought the t-shirt because I was so impressed. In addition to using org to keep my personal faq and notes, I am currently evaluating the use of org in a major math writing project that will stretch over several years. My standard math tools are latex, asymptote, R and maxima, and I see org as a great opportunity to integrate these. The overall plan is to do the work in org and then export as both pdf and html. To this end I did a quick test in which I came up with a few ideas and questions. It has been many years since I have done any serious Lisp programming, but in the long run I might be able to implement the ideas if they would be acceptable. 1. If I have understood correctly, in order for an asymptote image to be included as an inline image, one has to specify a file name at the beginning of the code block, as in #+CAPTION: A test caption. #+begin_src asymptote :file foo.pdf size (1cm, 0); filldraw (unitsquare, red); #+end_src It would be convenient if the user would not need to specify a (unique) invented file name for the inline image. Instead, in the case of an exported pdf, as an end user I would like for asymptote to generate a unique temporary pdf image file, which would be removed after the pdf corresponding to the complete document was complete. The case of exported html is not as clear to me yet; my current guess is that I would like the system to automatically generate a uniquely named image file (preferably an svg image, but not sure which browsers support these) which would then be inline included into the html page. Do these ideas get any support? What would be the best way to denote this kind of behaviour? A new option for #begin_src asymptote, e.g., #begin_src asymptote :autoinline? Or perhaps #begin_src asymptote :autofile? 2. At least for me, _by far_ the most common way of referring to a floating element (table or figure) is immediately before or after the latex code that defines the float. For this, having to generate a unique label for the float has always been an overkill, and I have wanted a way to just refer to the previous or next float in the document. In org this could mean something like specifying #+AUTOLABEL and then some way of referring to the labels of the next and previous float (regardless of whether they would be automatically generated labels or standard named labels). Any support for this? Any ideas regarding the syntax? 3. It seems that currently inline images generated by asymptote are included in the resulting latex file with a default size width=.9\linewidth. I prefer them to be included in their original size. To achieve this I first tried to define (setq org-export-latex-image-default-option ) This did not help: in the resulting latex file, the size was now defined as width=.7\textwidth, which seems to come from org-latex.el. Finally I obtained the wanted behaviour by artificially defining the option to some value that does not cause any harm; in my case (setq org-export-latex-image-default-option keepaspectratio=true) Like I said, this is artificial. Is there a more natural way to achieve the desired result, that is, inclusion of images in their original size? Would it be ok if the code were changed so that setting (setq org-export-latex-image-default-option ) would override the width=.7\textwidth coming from org-latex.el? 4. Let us say that in the math document there would be questions with corresponding answers and solutions. An answer would be just the result, while the solution would show the steps needed to obtain the result. In the org document I would like to write the question, the corresponding answer and the solution in one place, one after the other, while in the exported pdf / html I would like the answers and solutions to be at the end of the document, numbered according to the numbers of the questions. How could I achieve this? I use this opportunity to thank the people behind org-mode for developing a brilliant system. -- Jarmo Hurri
[O] Bug? Non org timestamp in a todo is interpreted as timestamp in agenda view
Hi all Having a todo like this: INARBEIT Test 2011/06/10 00:00:00 SCHEDULED: 2011-09-12 Mo results in this agenda entry: ADMIN: 0:00..Scheduled: INARBEIT Test 2011/06/10 :00 The time stamp 2011/06/10 00:00:00, neither an active nor an inactive org timestamp, because neither nor [] is used, is interpreted as time stamp and used strangely in the agenda entry, showing up as if the entry was clocked at 0:00 o'clock. This looks like unintended behaviour!? Best, Rainer
Re: [O] Org, latex and asymptote in a math project
Jarmo Hurri jarmo.hu...@syk.fi writes: Hi, Jarmo, 1. If I have understood correctly, in order for an asymptote image to be included as an inline image, one has to specify a file name at the beginning of the code block, as in #+CAPTION: A test caption. #+begin_src asymptote :file foo.pdf size (1cm, 0); filldraw (unitsquare, red); #+end_src It would be convenient if the user would not need to specify a (unique) invented file name for the inline image. can't you use the link facility? 1. open dired 2. go over the name of the file you need 3. C-c l [the path/namefile is saved in the kill ring] 4. back to the buffer you're editing 5. C-c C-l store the link then you may find worth reading the section of the manual: Images in export - #+CAPTION:The black-body emission of the disk around HR 4049 #+LABEL: fig:SED-HR4049 #+ATTR_LaTeX: width=5cm,angle=90 [[./img/sed-hr4049.pdf]] #+ATTR_LaTeX: width=0.38\textwidth wrap placement={r}{0.4\textwidth} [[./img/hst.png]] 2. At least for me, _by far_ the most common way of referring to a floating element (table or figure) is immediately before or after the latex code that defines the float. For this, having to generate a unique label for the float has always been an overkill, and I have wanted a way to just refer to the previous or next float in the document. In org this could mean something like specifying #+AUTOLABEL and then some way of referring to the labels of the next and previous float (regardless of whether they would be automatically generated labels or standard named labels). Any support for this? Any ideas regarding the syntax? maybe you can use the property :CUSTOM_ID: ? Manual: Internal links hth, Giovanni
Re: [O] Allow org-agenda-text-search-extra-files to be a directory
Thanks suvayu, This works perfectly. -- Darlan At Sat, 10 Sep 2011 00:08:38 +0200, suvayu ali fatkasuvayu+li...@gmail.com wrote: On Fri, Sep 9, 2011 at 9:09 PM, Darlan Cavalcante Moreira darc...@gmail.com wrote: Is it possible to set org-agenda-text-search-extra-files with a directory so that all .org files in that directory are considered for text searches (similarly to how you can set org-agenda-files)? This should work: (directory-files ~/directory t ^[^.#].*\\.\\(org$\\|org_archive$\\)) -- Suvayu Open source is the future. It sets us free.
Re: [O] Org, latex and asymptote in a math project
2. At least for me, _by far_ the most common way of referring to a floating element (table or figure) is immediately before or after the latex code that defines the float. For this, having to generate a unique label for the float has always been an overkill, and I have wanted a way to just refer to the previous or next float in the document. In org this could mean something like specifying #+AUTOLABEL and then some way of referring to the labels of the next and previous float (regardless of whether they would be automatically generated labels or standard named labels). Any support for this? Any ideas regarding the syntax? May be you are actually suggesting that the LABELS[1] be generated automagically for you in much the same way that footnote numbers are generated. In case of OpenDocumentFormat, one can have the references generated in the Above/Below formats. This can be controlled purely by controlling the exporting backend WITHOUT ADDING any new Orgmode syntax. I am not much familiar with LaTeX. If I interpret what you are saying then you are suggesting that you have some control over how a given exporter generates label references. HTML is really not print oriented (whatever that means). May be the LABEL references \ref{LABEL} which looks to me to be LaTeX oriented syntax be re-defined to more Org-link like. Just my 2c, Jambunathan K. Footnotes: [1] I would like to view LABELS as below: LABEL := CATEGORY:SEQNO CATEGORY := string SEQNO := [0-9]+ (not sure whether a period could be included) CATEGORY could be used for Table, Illustration, Figure etc etc.
Re: [O] Org, latex and asymptote in a math project
Hi, Jarmo- Jarmo Hurri jarmo.hurri at syk.fi writes: 1. If I have understood correctly, in order for an asymptote image to be included as an inline image, one has to specify a file name at the beginning of the code block, as in #+CAPTION: A test caption. #+begin_src asymptote :file foo.pdf size (1cm, 0); filldraw (unitsquare, red); #+end_src It would be convenient if the user would not need to specify a (unique) invented file name for the inline image. Instead, in the case of an exported pdf, as an end user I would like for asymptote to generate a unique temporary pdf image file, which would be removed after the pdf corresponding to the complete document was complete. The case of exported html is not as clear to me yet; my current guess is that I would like the system to automatically generate a uniquely named image file (preferably an svg image, but not sure which browsers support these) which would then be inline included into the html page. I'm starting on a textbook project using a similar set of tools. I'm making progress, but am still finding lots of little snags; perhaps as we both proceed we can share what we've learned. In any case, using temporary file names is a good idea, which hadn't occurred to me. But I guess it's easy to do, using something like #+CAPTION: A test caption. #+begin_src asymptote :file (org-babel-temp-file figure- .pdf) size (1cm, 0); filldraw (unitsquare, red); #+end_src 2. At least for me, _by far_ the most common way of referring to a floating element (table or figure) is immediately before or after the latex code that defines the float. For this, having to generate a unique label for the float has always been an overkill, and I have wanted a way to just refer to the previous or next float in the document. In org this could mean something like specifying #+AUTOLABEL and then some way of referring to the labels of the next and previous float (regardless of whether they would be automatically generated labels or standard named labels). Any support for this? Any ideas regarding the syntax? How would one implement this behavior in LaTeX? 3. It seems that currently inline images generated by asymptote are included in the resulting latex file with a default size width=.9\linewidth. I prefer them to be included in their original size. To achieve this I first tried to define (setq org-export-latex-image-default-option ) This did not help: in the resulting latex file, the size was now defined as width=.7\textwidth, which seems to come from org-latex.el. Finally I obtained the wanted behaviour by artificially defining the option to some value that does not cause any harm; in my case (setq org-export-latex-image-default-option keepaspectratio=true) Like I said, this is artificial. Is there a more natural way to achieve the desired result, that is, inclusion of images in their original size? Would it be ok if the code were changed so that setting (setq org-export-latex-image-default-option ) would override the width=.7\textwidth coming from org-latex.el? This was one of the snags for me that I mentioned above. But this works: #+CAPTION: A test caption. #+Attr_LaTeX: width=\textwidth #+begin_src asymptote :file (org-babel-temp-file figure- .pdf) size (1cm, 0); filldraw (unitsquare, red); #+end_src 4. Let us say that in the math document there would be questions with corresponding answers and solutions. An answer would be just the result, while the solution would show the steps needed to obtain the result. In the org document I would like to write the question, the corresponding answer and the solution in one place, one after the other, while in the exported pdf / html I would like the answers and solutions to be at the end of the document, numbered according to the numbers of the questions. How could I achieve this? Haven't done this, but the LaTeX code could put the answers and solutions in a float, which could then be floated to the end of the document. -Ethan
[O] [patch][test] Remove jump.el dependency from test execution
Currently it is required to install the git submodule jump.el and dependencies to run tests, and yet these test helpers are not required in test execution. This patch removes this dependency, whilst loading the test helpers when they exist (git submodule init git submodule update). The idea is to document the test helper availability to aid development in the test documentation I am about to generate. Best, Martyn From b3111a4ea6b2e5b134634c7eebf27a210529df58 Mon Sep 17 00:00:00 2001 From: Martyn Jago martyn.j...@btinternet.com Date: Mon, 12 Sep 2011 16:50:28 +0100 Subject: [PATCH] Remove jump.el dependency from test execution * testing/org-test.el: Remove jump.el dependency from test execution removing the need for a user to install git submodules --- testing/org-test.el | 23 ++- 1 files changed, 14 insertions(+), 9 deletions(-) diff --git a/testing/org-test.el b/testing/org-test.el index a8b5b49..136a287 100644 --- a/testing/org-test.el +++ b/testing/org-test.el @@ -16,11 +16,13 @@ ;; called while in a `defun' all ert tests with names matching the ;; name of the function are run. -;;; Prerequisites: - -;; ERT and jump.el are both included as git submodules, install with -;; $ git submodule init -;; $ git submodule update +;;; Test Development +;; For test development purposes a number of navigation and test +;; function construction routines are available as a git submodule +;; (jump.el) +;; Install with... +;; $ git submodule init +;; $ git submodule update Code: @@ -38,13 +40,15 @@ (cons (expand-file-name jump org-test-dir) load-path +(require 'cl) (require 'ert) (require 'ert-x) -(require 'jump) -(require 'which-func) +(when (file-exists-p + (expand-file-name jump/jump.el org-test-dir)) + (require 'jump) + (require 'which-func)) (require 'org))) - (defconst org-test-default-test-file-name tests.el For each defun a separate file with tests may be defined. tests.el is the fallback or default if you like.) @@ -136,6 +140,7 @@ files. ;;; Navigation Functions +(when (featurep 'jump) (defjump org-test-jump ((lisp/\\1.el . testing/lisp/test-\\1.el) (lisp/\\1.el . testing/lisp/\\1.el/test.*.el) @@ -178,7 +183,7 @@ files. (should-error (error \errr...\)))\n\n\n (provide ' name )\n\n ;;; file-name ends here\n) full-path)) - (lambda () ((lambda (res) (if (listp res) (car res) res)) (which-function + (lambda () ((lambda (res) (if (listp res) (car res) res)) (which-function) (define-key emacs-lisp-mode-map \M-\C-j 'org-test-jump) -- 1.7.3.4 --- Org-mode version 7.7 (release_7.7.278.gb3111.dirty) GNU Emacs 24.0.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-08-21 on virtualmac.porkrind.org
[O] [patch][test] Add missing FSF / author headers / org-test dependency to test files
Add missing FSF / author headers and org-test dependency to some test files. Best, Martyn From 39d437176f288d56dfdb2ccfabbfb712f9ce8504 Mon Sep 17 00:00:00 2001 From: Martyn Jago martyn.j...@btinternet.com Date: Mon, 12 Sep 2011 17:07:21 +0100 Subject: [PATCH] Add missing FSF / author headers and org-test dependency to some test files * testing/lisp/test-ob-awk.el: * testing/lisp/test-ob-fortran.el: * testing/lisp/test-ob-lilypond.el: * testing/lisp/test-ob.el: * testing/lisp/test-org-exp.el: Add missing FSF / author headers and org-test dependency to some test files. --- testing/lisp/test-ob-awk.el | 16 testing/lisp/test-ob-fortran.el | 16 testing/lisp/test-ob-lilypond.el | 19 +-- testing/lisp/test-ob.el |1 - testing/lisp/test-org-exp.el | 15 +++ 5 files changed, 64 insertions(+), 3 deletions(-) diff --git a/testing/lisp/test-ob-awk.el b/testing/lisp/test-ob-awk.el index 018dec4..34752f5 100644 --- a/testing/lisp/test-ob-awk.el +++ b/testing/lisp/test-ob-awk.el @@ -1,3 +1,18 @@ +;;; test-ob-awk.el --- tests for ob-awk.el + +;; Copyright (c) 2010 Eric Schulte +;; Authors: Eric Schulte + +;; Released under the GNU General Public License version 3 +;; see: http://www.gnu.org/licenses/gpl-3.0.html + +(let ((load-path (cons (expand-file-name + .. (file-name-directory + (or load-file-name buffer-file-name))) + load-path))) + (require 'org-test) + (require 'org-test-ob-consts)) + (require 'ob-awk) (ert-deftest ob-awk/input-none () @@ -17,3 +32,4 @@ (org-test-at-id 9e998b2a-3581-43fe-b26d-07d3c507b86a (org-babel-next-src-block 3) (should (= 150 (org-babel-execute-src-block) + diff --git a/testing/lisp/test-ob-fortran.el b/testing/lisp/test-ob-fortran.el index c3bde0b..1b9fb75 100644 --- a/testing/lisp/test-ob-fortran.el +++ b/testing/lisp/test-ob-fortran.el @@ -1,3 +1,18 @@ +;;; test-ob-fortran.el --- tests for ob-fortran.el + +;; Copyright (c) 2010 Eric Schulte +;; Authors: Eric Schulte + +;; Released under the GNU General Public License version 3 +;; see: http://www.gnu.org/licenses/gpl-3.0.html + +(let ((load-path (cons (expand-file-name + .. (file-name-directory + (or load-file-name buffer-file-name))) + load-path))) + (require 'org-test) + (require 'org-test-ob-consts)) + (let ((load-path (cons (expand-file-name langs (expand-file-name @@ -11,6 +26,7 @@ (file-name-directory (or load-file-name buffer-file-name))) load-path))) + (require 'ob-fortran)) (ert-deftest ob-fortran/assert () diff --git a/testing/lisp/test-ob-lilypond.el b/testing/lisp/test-ob-lilypond.el index 8469823..2ca0597 100644 --- a/testing/lisp/test-ob-lilypond.el +++ b/testing/lisp/test-ob-lilypond.el @@ -1,11 +1,26 @@ +;;; test-ob-lilypond.el --- tests for ob-lilypond.el + +;; Copyright (c) 2010 Martyn Jago +;; Authors: Martyn Jago + +;; Released under the GNU General Public License version 3 +;; see: http://www.gnu.org/licenses/gpl-3.0.html + +(let ((load-path (cons (expand-file-name + .. (file-name-directory + (or load-file-name buffer-file-name))) + load-path))) + (require 'org-test) + (require 'org-test-ob-consts)) + +(require 'ob-lilypond) + (save-excursion (set-buffer (get-buffer-create test-ob-lilypond.el)) (setq ly-here (file-name-directory (or load-file-name (buffer-file-name) -(require 'ob-lilypond) - (ert-deftest ob-lilypond/assert () (should t)) diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el index d516798..1ed9474 100644 --- a/testing/lisp/test-ob.el +++ b/testing/lisp/test-ob.el @@ -12,7 +12,6 @@ load-path))) (require 'org-test) (require 'org-test-ob-consts)) - (require 'org-test) (ert-deftest test-org-babel/src-name-regexp () (should(equal ^[ \t]*#\\+\\(srcname\\|source\\|function\\):[ \t]* diff --git a/testing/lisp/test-org-exp.el b/testing/lisp/test-org-exp.el index b7d7387..348538f 100644 --- a/testing/lisp/test-org-exp.el +++ b/testing/lisp/test-org-exp.el @@ -1,3 +1,18 @@ +;;; test-org-exp.el --- tests for org-exp.el + +;; Copyright (c) 2010 Eric Schulte +;; Authors: Eric Schulte + +;; Released under the GNU General Public License version 3 +;; see: http://www.gnu.org/licenses/gpl-3.0.html + +(let ((load-path (cons (expand-file-name + .. (file-name-directory + (or load-file-name buffer-file-name))) + load-path))) + (require 'org-test) + (require 'org-test-ob-consts)) + (ert-deftest test-org-exp/stripping-commas () Test the stripping of commas from within blocks during export. (org-test-at-id 76d3a083-67fa-4506-a41d-837cc48158b5 -- 1.7.3.4 --- Org-mode version 7.7 (release_7.7.279.g39d43) GNU Emacs 24.0.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-08-21 on virtualmac.porkrind.org
Re: [O] Showing remaining time in agenda mode
Mats Kindahl mats.kind...@oracle.com writes: On 09/12/2011 01:14 PM, Bernt Hansen wrote: Mats Kindahl mats.kind...@oracle.com writes: Hi all, I have been using Org-Mode with great success over the last year (or so). There is a number of items that I need to handle, and I am reading through the code to try to figure out how to do the various items. However, recently I switched to using 7.7, which disabled a feature I use (but it seems to just be a matter of setting it up again) but also seem to have a lot of additions that I need. Beginning of each week, I plan the coming week using the agenda mode to sort out tasks over the week. To do this efficiently, I have been looking at Effort for each task and the summary for the day, and when the default column view for the agenda showed Effort and Clock, this worked quite well if you manage to complete the tasks during a week. However, quite often I run across tasks that I cannot easily split into smaller tasks and which take more than a week to complete (even though the tasks themselves might be small, I can just spend a few hours each week on them), which forces me to make the math in the head to distribute the right amount for each day. Now, the default column view changed with 7.7, so I have no idea on how to set up the agenda column view to show the following: * Each task line should show Item, Effort, Clock, and Clock - Effort * Each day line should show the summary of (at least) the Effort and the Clock - Effort Does anybody know how to set this up, or do I need to go digging the code? Best wishes, Mats Kindahl Hi Mats, Try customizing org-columns-default-format. Thanks Bernt, But how to define different formats for tasks and days and how to define the format for Clock - Effort? Hi Mats, I'm not sure what you need to put in for these requirements. I'm not sure if column mode can calculate Clock - Effort for you automatically (but maybe it can with some fancy extra table formula). I only use column view in a fairly basic mode - showing item, estimate, and clock time with the following setting. (setq org-columns-default-format %80ITEM(Task) %10Effort(Estimated Effort){:} %10CLOCKSUM) Regards, Bernt
Re: [O] Bug? Non org timestamp in a todo is interpreted as timestamp in agenda view
Rainer Stengele rainer.steng...@online.de writes: Hi all Having a todo like this: INARBEIT Test 2011/06/10 00:00:00 SCHEDULED: 2011-09-12 Mo results in this agenda entry: ADMIN: 0:00..Scheduled: INARBEIT Test 2011/06/10 :00 The time stamp 2011/06/10 00:00:00, neither an active nor an inactive org timestamp, because neither nor [] is used, is interpreted as time stamp and used strangely in the agenda entry, showing up as if the entry was clocked at 0:00 o'clock. This looks like unintended behaviour!? Best, Rainer Check out: ,[ C-h v org-agenda-search-headline-for-time RET ] | org-agenda-search-headline-for-time is a variable defined in `org-agenda.el'. | Its value is t | | Documentation: | Non-nil means search headline for a time-of-day. | If the headline contains a time-of-day in one format or another, it will | be used to sort the entry into the time sequence of items for a day. | Some people have time stamps in the headline that refer to the creation | time or so, and then this produces an unwanted side effect. If this is | the case for your, use this variable to turn off searching the headline | for a time. | | You can customize this variable. | | [back] ` HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.277.gc019c)
Re: [O] Showing remaining time in agenda mode
On 09/12/2011 06:18 PM, Bernt Hansen wrote: Mats Kindahl mats.kind...@oracle.com writes: On 09/12/2011 01:14 PM, Bernt Hansen wrote: Mats Kindahl mats.kind...@oracle.com writes: Hi all, I have been using Org-Mode with great success over the last year (or so). There is a number of items that I need to handle, and I am reading through the code to try to figure out how to do the various items. However, recently I switched to using 7.7, which disabled a feature I use (but it seems to just be a matter of setting it up again) but also seem to have a lot of additions that I need. Beginning of each week, I plan the coming week using the agenda mode to sort out tasks over the week. To do this efficiently, I have been looking at Effort for each task and the summary for the day, and when the default column view for the agenda showed Effort and Clock, this worked quite well if you manage to complete the tasks during a week. However, quite often I run across tasks that I cannot easily split into smaller tasks and which take more than a week to complete (even though the tasks themselves might be small, I can just spend a few hours each week on them), which forces me to make the math in the head to distribute the right amount for each day. Now, the default column view changed with 7.7, so I have no idea on how to set up the agenda column view to show the following: * Each task line should show Item, Effort, Clock, and Clock - Effort * Each day line should show the summary of (at least) the Effort and the Clock - Effort Does anybody know how to set this up, or do I need to go digging the code? Best wishes, Mats Kindahl Hi Mats, Try customizing org-columns-default-format. Thanks Bernt, But how to define different formats for tasks and days and how to define the format for Clock - Effort? Hi Mats, I'm not sure what you need to put in for these requirements. I'm not sure if column mode can calculate Clock - Effort for you automatically (but maybe it can with some fancy extra table formula). I only use column view in a fairly basic mode - showing item, estimate, and clock time with the following setting. (setq org-columns-default-format %80ITEM(Task) %10Effort(Estimated Effort){:} %10CLOCKSUM) Thanks Bernt, I'll try the format you suggest and see how it handles the day rows. I tried another format involving some other fields, but this caused it to not show the day summaries. For how to fix the Effort - Clock, I guess I have to go into the code and see what I can do to tweak it. Best wishes, Mats Kindahl
Re: [O] [patch][test] Remove jump.el dependency from test execution
Applied. Thanks! -- Eric Martyn Jago martyn.j...@btinternet.com writes: Currently it is required to install the git submodule jump.el and dependencies to run tests, and yet these test helpers are not required in test execution. This patch removes this dependency, whilst loading the test helpers when they exist (git submodule init git submodule update). The idea is to document the test helper availability to aid development in the test documentation I am about to generate. Best, Martyn From b3111a4ea6b2e5b134634c7eebf27a210529df58 Mon Sep 17 00:00:00 2001 From: Martyn Jago martyn.j...@btinternet.com Date: Mon, 12 Sep 2011 16:50:28 +0100 Subject: [PATCH] Remove jump.el dependency from test execution * testing/org-test.el: Remove jump.el dependency from test execution removing the need for a user to install git submodules --- testing/org-test.el | 23 ++- 1 files changed, 14 insertions(+), 9 deletions(-) diff --git a/testing/org-test.el b/testing/org-test.el index a8b5b49..136a287 100644 --- a/testing/org-test.el +++ b/testing/org-test.el @@ -16,11 +16,13 @@ ;; called while in a `defun' all ert tests with names matching the ;; name of the function are run. -;;; Prerequisites: - -;; ERT and jump.el are both included as git submodules, install with -;; $ git submodule init -;; $ git submodule update +;;; Test Development +;; For test development purposes a number of navigation and test +;; function construction routines are available as a git submodule +;; (jump.el) +;; Install with... +;; $ git submodule init +;; $ git submodule update Code: @@ -38,13 +40,15 @@ (cons (expand-file-name jump org-test-dir) load-path +(require 'cl) (require 'ert) (require 'ert-x) -(require 'jump) -(require 'which-func) +(when (file-exists-p +(expand-file-name jump/jump.el org-test-dir)) + (require 'jump) + (require 'which-func)) (require 'org))) - (defconst org-test-default-test-file-name tests.el For each defun a separate file with tests may be defined. tests.el is the fallback or default if you like.) @@ -136,6 +140,7 @@ files. ;;; Navigation Functions +(when (featurep 'jump) (defjump org-test-jump ((lisp/\\1.el . testing/lisp/test-\\1.el) (lisp/\\1.el . testing/lisp/\\1.el/test.*.el) @@ -178,7 +183,7 @@ files. (should-error (error \errr...\)))\n\n\n (provide ' name )\n\n ;;; file-name ends here\n) full-path)) - (lambda () ((lambda (res) (if (listp res) (car res) res)) (which-function + (lambda () ((lambda (res) (if (listp res) (car res) res)) (which-function) (define-key emacs-lisp-mode-map \M-\C-j 'org-test-jump) -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] [patch][test] Add missing FSF / author headers / org-test dependency to test files
I applied this patch, and then corrected some of the authors names. Thanks again -- Eric Martyn Jago martyn.j...@btinternet.com writes: Add missing FSF / author headers and org-test dependency to some test files. Best, Martyn From 39d437176f288d56dfdb2ccfabbfb712f9ce8504 Mon Sep 17 00:00:00 2001 From: Martyn Jago martyn.j...@btinternet.com Date: Mon, 12 Sep 2011 17:07:21 +0100 Subject: [PATCH] Add missing FSF / author headers and org-test dependency to some test files * testing/lisp/test-ob-awk.el: * testing/lisp/test-ob-fortran.el: * testing/lisp/test-ob-lilypond.el: * testing/lisp/test-ob.el: * testing/lisp/test-org-exp.el: Add missing FSF / author headers and org-test dependency to some test files. --- testing/lisp/test-ob-awk.el | 16 testing/lisp/test-ob-fortran.el | 16 testing/lisp/test-ob-lilypond.el | 19 +-- testing/lisp/test-ob.el |1 - testing/lisp/test-org-exp.el | 15 +++ 5 files changed, 64 insertions(+), 3 deletions(-) diff --git a/testing/lisp/test-ob-awk.el b/testing/lisp/test-ob-awk.el index 018dec4..34752f5 100644 --- a/testing/lisp/test-ob-awk.el +++ b/testing/lisp/test-ob-awk.el @@ -1,3 +1,18 @@ +;;; test-ob-awk.el --- tests for ob-awk.el + +;; Copyright (c) 2010 Eric Schulte +;; Authors: Eric Schulte + +;; Released under the GNU General Public License version 3 +;; see: http://www.gnu.org/licenses/gpl-3.0.html + +(let ((load-path (cons (expand-file-name + .. (file-name-directory + (or load-file-name buffer-file-name))) +load-path))) + (require 'org-test) + (require 'org-test-ob-consts)) + (require 'ob-awk) (ert-deftest ob-awk/input-none () @@ -17,3 +32,4 @@ (org-test-at-id 9e998b2a-3581-43fe-b26d-07d3c507b86a (org-babel-next-src-block 3) (should (= 150 (org-babel-execute-src-block) + diff --git a/testing/lisp/test-ob-fortran.el b/testing/lisp/test-ob-fortran.el index c3bde0b..1b9fb75 100644 --- a/testing/lisp/test-ob-fortran.el +++ b/testing/lisp/test-ob-fortran.el @@ -1,3 +1,18 @@ +;;; test-ob-fortran.el --- tests for ob-fortran.el + +;; Copyright (c) 2010 Eric Schulte +;; Authors: Eric Schulte + +;; Released under the GNU General Public License version 3 +;; see: http://www.gnu.org/licenses/gpl-3.0.html + +(let ((load-path (cons (expand-file-name + .. (file-name-directory + (or load-file-name buffer-file-name))) +load-path))) + (require 'org-test) + (require 'org-test-ob-consts)) + (let ((load-path (cons (expand-file-name langs (expand-file-name @@ -11,6 +26,7 @@ (file-name-directory (or load-file-name buffer-file-name))) load-path))) + (require 'ob-fortran)) (ert-deftest ob-fortran/assert () diff --git a/testing/lisp/test-ob-lilypond.el b/testing/lisp/test-ob-lilypond.el index 8469823..2ca0597 100644 --- a/testing/lisp/test-ob-lilypond.el +++ b/testing/lisp/test-ob-lilypond.el @@ -1,11 +1,26 @@ +;;; test-ob-lilypond.el --- tests for ob-lilypond.el + +;; Copyright (c) 2010 Martyn Jago +;; Authors: Martyn Jago + +;; Released under the GNU General Public License version 3 +;; see: http://www.gnu.org/licenses/gpl-3.0.html + +(let ((load-path (cons (expand-file-name + .. (file-name-directory + (or load-file-name buffer-file-name))) +load-path))) + (require 'org-test) + (require 'org-test-ob-consts)) + +(require 'ob-lilypond) + (save-excursion (set-buffer (get-buffer-create test-ob-lilypond.el)) (setq ly-here (file-name-directory (or load-file-name (buffer-file-name) -(require 'ob-lilypond) - (ert-deftest ob-lilypond/assert () (should t)) diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el index d516798..1ed9474 100644 --- a/testing/lisp/test-ob.el +++ b/testing/lisp/test-ob.el @@ -12,7 +12,6 @@ load-path))) (require 'org-test) (require 'org-test-ob-consts)) - (require 'org-test) (ert-deftest test-org-babel/src-name-regexp () (should(equal ^[ \t]*#\\+\\(srcname\\|source\\|function\\):[ \t]* diff --git a/testing/lisp/test-org-exp.el b/testing/lisp/test-org-exp.el index b7d7387..348538f 100644 --- a/testing/lisp/test-org-exp.el +++ b/testing/lisp/test-org-exp.el @@ -1,3 +1,18 @@ +;;; test-org-exp.el --- tests for org-exp.el + +;; Copyright (c) 2010 Eric Schulte +;; Authors: Eric Schulte + +;; Released under the GNU General Public License version 3 +;; see: http://www.gnu.org/licenses/gpl-3.0.html + +(let ((load-path (cons (expand-file-name + .. (file-name-directory +
Re: [O] Org-mode using enumerate properties to export to LaTeX
On 2011-09-12 11:30, Eric S Fraga wrote: Søren Mikkelsensorenaamikkel...@gmail.com writes: [...] Yes, it works perfectly when I export it into latex (and thank you for that). Just wondering if it was possible to do something similar within org-mode; a enumerate list with a prefix, e.g.: R1. One R2. Two Ah, now I understand. The answer is no and I imagine it would be difficult to define a regular expression to match such cases without catching all kinds of lines that were not intended to be lists (e.g. the last word in a sentence that happens to end up at the start of the line...). However, latex does allow you to manually over-ride any item label/number by simply specifying your own in square brackets. e.g. - [R1] one - [R2] two Org passes these through to the latex properly so this should do what you want but obviously you won't have any automated procedure for generating these labels. This is also a latex related question, however I think it extents the previous question. How to I make my counter of the enumeration-list start at a specific position. Like 1. Test 2. of Now I have something between the two enumerations 3. counters 4. in a 5. enumeration environment In latex I would insert \setcounter{enumi}{3} after starting a enumeration environment. -- /aagaard
[O] org-exp-bibtex.el patch for zotero-generated citekeys
Dear Taru and orgmode community, Org-mode export to HTML is a really useful thing, and I love the bibtex integration. I had a problem exporting from org-mode to HTML, with bibtex. I was able to fix it with a change to a regular expression org-exp-bibtex.el. The diff is shown below. (My bibtex citekeys were auto-created by zotero, and use underscores. Some even have dashes.) I thought this might be useful to others as well. Thanks, Nik --- a/contrib/lisp/org-exp-bibtex.el +++ b/contrib/lisp/org-exp-bibtex.el @@ -102,8 +102,9 @@ (save-match-data (insert-file-contents (concat file .html)) (goto-char (point-min)) - (while (re-search-forward a name=\\\(\\w+\\)\\\(\\w+\\) nil t) - (setq oebp-cite-plist (cons (cons (match-string 1) (match-string 2)) oebp-cite-plist))) + (while (re-search-forward a name=\\\([a-z0-9A-Z_\\-]+\\)\\\(\\w+\\) nil t) + (setq oebp-cite-plist (cons (cons (match-string 1) (match-string 2)) oebp-cite-plist)) + ) (goto-char (point-min)) (while (re-search-forward hr nil t) (replace-match hr/ t t))
Re: [O] Org-mode using enumerate properties to export to LaTeX
Søren Mikkelsen sorenaamikkel...@gmail.com writes: [...] This is also a latex related question, however I think it extents the previous question. How to I make my counter of the enumeration-list start at a specific position. Like 1. Test 2. of Now I have something between the two enumerations 3. counters 4. in a 5. enumeration environment In latex I would insert \setcounter{enumi}{3} after starting a enumeration environment. -- /aagaard From the manual: , | File: org, Node: Plain lists, Next: Drawers, Prev: Sparse trees, Up: Document Structure | | 2.7 Plain lists | === | | Within an entry of the outline tree, hand-formatted lists can provide | additional structure. They also provide a way to create lists of | checkboxes (*note Checkboxes::). Org supports editing such lists, and | every exporter (*note Exporting::) can parse and format them. | |Org knows ordered lists, unordered lists, and description lists. |* _Unordered_ list items start with `-', `+', or `*'(1) as bullets. | |* _Ordered_ list items start with a numeral followed by either a | period or a right parenthesis(2), such as `1.' or `1)'(3). If you | want a list to start with a different value (e.g. 20), start the | text of the item with `[@20]'(4). Those constructs can be used in | any item of the list in order to enforce a particular numbering. ` -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.280.gdbf0)
[O] agenda view: showing rows of a table with dates
Dear All, Suppose I have an entry with a table for a class schedule such as *** BM-1 2011-2012 schedule | Class | Group | Date | |-+---+--| | Presentation| All | 2011-09-26 Mon 09:30-11:00 | | Presentation Moodle | All | 2011-09-26 Mon 11:00-12:30 | | BLAST | A | 2011-09-28 Wed 11:00-12:30 | |-+---+--| Now, when I go to the agenda, what I see displayed is the BM-1 2011-2012 schedule. But I'd like to see the corresponding row in the table (so I know what I'm supposed to be talking about ;-). I think I recall reading something about this sometime in the past, but I do not seem to be able to find it in tutorials, the manual, or the mailing list. I guess an immediate solution is not to use a table to begin with. But I like the table because it lets me organize material nicely (group, lecturer, etc) and it is s easy to export and hand it to students. Am I missing something obvious? Thanks, R. -- Ramon Diaz-Uriarte Department of Biochemistry Universidad Autónoma de Madrid Spain http://ligarto.org/rdiaz Temporarily at: Structural Biology and Biocomputing Programme Spanish National Cancer Centre (CNIO) Phone: +34-91-732-8000 ext. 3019 Fax: +-34-91-224-6972
Re: [O] difference between #+source and #+srcname; passing parameters to Awk.
Hi Eric: Thanks a lot for your answers! Sorry for my late reply. Sincerely, Feiming Chen --- On Sun, 8/28/11, Eric Schulte schulte.e...@gmail.com wrote: From: Eric Schulte schulte.e...@gmail.com Subject: Re: [O] difference between #+source and #+srcname; passing parameters to Awk. To: Feiming Chen feimingc...@yahoo.com Cc: emacs-org-list emacs-orgmode@gnu.org Date: Sunday, August 28, 2011, 10:04 AM Feiming Chen feimingc...@yahoo.com writes: Hi, I'd like to ask two questions. 1. What's the difference between header options #+source and #+srcname? They seem to have identical utilities. No difference, these are synonyms for the same thing. 2. I'd like to pass parameters (filenames) to Awk (language) code block, but #+srcname: subset(file=~/tmp/a) #+begin_src awk #+end_src fails upon C-c C-v v (org-babel-expand-src-block) with error: wrong type argument: sequencep, file. So does: #+begin_src awk :var file=~/tmp/a #+end_src In comparison, it works with a Perl code block: #+srcname: subset(file=~/tmp/a) #+begin_src perl #+end_src Thanks a lot! This is actually a bug in ob-awk. I've just pushed up a fix so your example should work with the latest git HEAD. Thanks -- Eric -- Feiming Chen -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] FYI: Org mode testing framework, Emacs 23 and 22
At Sun, 11 Sep 2011 15:02:08 -0600, Eric Schulte wrote: The test result with failing tests for Emacs23 is attached. , | Passed: 101 | Failed: 8 (8 unexpected) | Total: 109/109 | | Started at: 2011-09-11 19:53:46+0200 | Finished. | Finished at: 2011-09-11 19:53:51+0200 ` 7 of the 8 are fortran-tests, the 8th is `org-babel-get-inline-src-block-matches'. I would imagine that the fortran tests are failing because you do not have the gfortran executable in your path. I had to apt-get install fortran for these tests to pass. m( indeed. After installing gfortran all but one run trough: , | Selector: \\(org\\|ob\\) | Passed: 108 | Failed: 1 (1 unexpected) | Total: 109/109 | | Started at: 2011-09-13 05:45:38+0200 | Finished. | Finished at: 2011-09-13 05:45:45+0200 | | F test-org-babel/org-babel-get-inline-src-block-matches |(void-function left-char) ` This is with GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpXhiZwrctYz.pgp Description: PGP signature