Re: [O] unintended strike-through in table
On Sat, Apr 21, 2012 at 1:13 AM, Bastien b...@altern.org wrote: Hi Skip, Skip Collins skip.coll...@gmail.com writes: I see little reason to continue to support +strike-through+ text. Perhaps the simplest solution would be to deprecate stricken text and disable it by default, allowing for an option to turn it on for backward compatibility. I agree. If no one object, I will make this change soon. Although I cannot recall myself having used strike-through text I wonder what the reason is for removing the functionality? Is it just this, that it (probably) isn't used much? Not a good argument in my book (especially due to the uncertainty in usage). Would it not be better to fix the problem at hand? Maybe by changing the symbol since + seems overloaded, would not - be a better choice? On a side-note, what is the intended behavior of bold, italic, strike-through etc. regarding line-breaks? Since a single long line has the same meaning in org as multiple consecutive short lines I think the markup-elements above also should support multiple lines of text (but not be valid between paragraphs) Regards Gustav
Re: [O] radiotables in LaTeX-document: export numbers from orgtbl with commas as decimal separators instead of periods; with MWE and lisp-code
On wednesday, 18. April 2012, 13:00:25 wrote AW: Dear all, Sorry for this attempt to insist on something else than buriel in the digital mass grave of gnu.org for my question. Maybe someone could have a look at it, it would be very usefull to me and probably to others: A comma is the decimal separator for amounts in money in continental europe. Without replacement of periods with commas _while exporting to LaTeX_ you can not use radiotables for any kind of accounting. If my question lacks sense or has other shortcomings, please tell me. Thank you very much. Regards, Alexander I'd like to use radiotables inside a LaTeX-document. Here is a minimal working example: --- \documentclass[pagesize, ngerman, fontsize=12pt]{scrartcl} \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc} \usepackage{babel, comment, array, booktabs} \title{Sicherheitsbestellung} \subtitle{gag} \begin{document} \maketitle \begin{tabular}{p{0.25\linewidth}p{0.5\linewidth}}%\toprule Bezeichnung Betrag \\ % BEGIN RECEIVE ORGTBL Kaufpreis Kaufpreis 10.00 \\ Darlehen -5000.00 \\ Summe 95000.00 \\ % END RECEIVE ORGTBL Kaufpreis \bottomrule \end{tabular} \begin{comment} #+ORGTBL: SEND Kaufpreis orgtbl-to-latex :splice t :skip 0 | Kaufpreis | 10.00 | | Darlehen | -5000.00 | | Summe | 95000.00 | #+TBLFM: @3$2=@1$2+@2$2;%.2f \end{comment} \end{document} --- I would like to have the LaTeX table with commas as decimal separators instead of periods, e.g.: »Kaufpreis 10,00\\« or even better »Kaufpreis 100\,000,00\\«. To avoid misunderstandigs: The change of all periods to commas should take place when the org-table is »transfered« to the LaTeX table, not earlier! I found a suggestion by Carsten Dominik here: http://permalink.gmane.org/gmane.emacs.orgmode/42000 --- (add-hook 'org-export-preprocess-hook 'org-use-comma-in-exported-tables) (defun org-use-comma-in-exported-tables () (goto-char (point-min)) (while (re-search-forward \\([0-9]\\)\\.\\([0-9]\\) nil t) (org-if-unprotected (when (save-match-data (org-at-table-p)) (replace-match \\1,\\2 t nil) --- I put that into my .emacs, restarted Emacs, but no result. I'm using Emacs 23.3 and Org-mode version 7.8.02. Please bear in mind that I'm may have made strange mistake, because I do neither have experience with radiotables nor understand lisp. Any help would be appreciated, thanks in advance. Kind regards, Alexander
Re: [O] org-program-exists vs executable-find
Sebastien Vauban writes: Why not replacing it simply by `executable-find': I don't see what it adds to it? I would not say so if it was some upper abstraction, but I do feel they're simply the same. In principle, executable-find should (only) be used if the program in question is called directly from Emacs. If you invoke a shell to call a program, then that shell might have a completely different idea of what your path is and see different executables, so you'd have to check via the shell in this instance or provide the full absolute filename that executable-find gave you to the shell (which may have other problems when the path in Emacs and shell are indeed different). Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] [PATCH] org-preview-latex-fragment not working with #+latex_header:\input{}
Bastien writes: Setting TEXINPUTS while creating formulas makes sense to me, so I'll be glad to have a patch for this. Actually, setting TEXINPUTS is fraught with peril and just setting it without checking if it already exists is risking to break some setups. If anything there should be a defcustom or better hook function to allow alteration of the environment (ostensibly not just for TEXINPUTS) before org calls external processes. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
Re: [O] Makefile restructuring
Achim's branch is now merged in Org's git master branch. Please test this and report any problem while using make to install Org. -- Bastien
[O] IMPORTANT: Back to the two-branches git workflow
Hi all, The one-month time frame for experimenting with the 3-branches git workflow is over and I decided to go back to the 2-branches model, using maint and master as we did before. Fixes go to maint and development goes to master. Here are the reasons: - The solution for doing the right thing while merging is not to multiply branches, but to clearly know whether you have to work on a private branch vs. a public one. The blog recently sent by Nick was very convincing wrt this, and it helped me understand Achim's advice to *never* commit directly on a public branch. - The two-way EmacsOrg syncing is not easier with 3 branches than it is with 2-branches. - Using a dedicated branch for releases is not *that* useful. Releasing using git hooks is not such a good idea: releasing from the server is simple enough. So I deleted the hotfix-7.8.06 branch. I cherry-picked useful fixes from there to the maint branch, which is now ahead of release_7.8.09 by a few commits and will be where I will release 7.8.10 from. Please do not rely on this branch anymore and update your refs with ~$ git remote update Thanks everyone to bare with me! Best, -- Bastien
Re: [O] [babel] would like to to do simple text block expansion with parameters or multiline macro replacement text
I think I will try to adapt m4 as org-language so that it can be used for executing src-blocks. m4 is no solution as it does not support multibyte character
Re: [O] Makefile restructuring
Hi, On Sat, Apr 21, 2012 at 12:39, Bastien b...@altern.org wrote: Achim's branch is now merged in Org's git master branch. Please test this and report any problem while using make to install Org. It works great with my setup; compile and use without installing it with other Emacs files. I love the modularity. :) Great work Achim. -- Suvayu Open source is the future. It sets us free.
Re: [O] Makefile restructuring
On 2012-04-21, Bastien b...@altern.org wrote: Please test this and report any problem while using make to install Org. I cannot report in a full way now, but Org does not make at all for me now. I do make cleanall and then make normally. Hope it helps despite the lack of a full report. I am reverting to a previous Org now. The first problem is that it now seems to expect texi2pdf. I can't get it for OS configuration reasons that I cannot fix. This was never a problem before. I tried the following patch, but it did not cause install.elc to be created. So maybe this is a bad fix or maybe there are other problems. Modified default.mk diff --git a/default.mk b/default.mk index 45e6fbf..7d0509c 100644 --- a/default.mk +++ b/default.mk @@ -61,7 +61,7 @@ ELCDIR= $(BATCH) \ ELC= $(BATCH) -f batch-byte-compile # How to make a pdf file from a texinfo file -TEXI2PDF = texi2pdf --batch --clean +TEXI2PDF = echo would do texi2pdf --batch --clean # How to make a pdf file from a tex file PDFTEX = pdftex
Re: [O] Makefile restructuring
Samuel Wales writes: I cannot report in a full way now, but Org does not make at all for me now. I do make cleanall and then make normally. I can't parse that sentence... The first problem is that it now seems to expect texi2pdf. I can't get it for OS configuration reasons that I cannot fix. This was never a problem before. Since all other methods of producing the documentation are not reliable, texi2pdf is the default now and has actually been for a while, independently of my other changes. You can override it if you don't have it, see below. If you don't care about getting all of the documentation, just do a make compile or make compile info, this would then not need texi2pdf at all. I tried the following patch, but it did not cause install.elc to be created. So maybe this is a bad fix or maybe there are other problems. Any adaptations to your local environment should be made in local.mk — that way it is ensured that changes in the defaults do not overwrite your local configuration. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada
Re: [O] Makefile restructuring
I use Windows and I never got texi2pdf to work properly. I was really stumped because I had no way to test/view my ODT changes in a pdf manual. Finally, I discovered texify. (I use MikTeX) texify --pdf %s So you can use this as the default setting or hint at this possibility (with a commented line) in your platform specific config file (if you have one). --
Re: [O] [bug] Can't find remote table when name is downcased
Hi Sébastien, can you test the attached patch? It takes care of matching #+tblname/#+name/#+tblfm along with #+TBLNAME/#+NAME/#+TBLFM. Please test it heavily -- I'm sure you have some secret stuff in your config to make it fail :) Thanks, From 4e107031ad81b368e407f0815132294024f43610 Mon Sep 17 00:00:00 2001 From: Bastien Guerry b...@altern.org Date: Sat, 21 Apr 2012 15:36:04 +0200 Subject: [PATCH] Match #+name/#+tblname/#+tblfm along with uppercase twins. * org.el: Use (case-fold-search t). (org-edit-special, org-ctrl-c-ctrl-c): Ditto. * org-table.el: (org-table-store-formulas, org-table-get-stored-formulas) (org-table-fix-formulas, org-table-edit-formulas) (org-old-auto-fill-inhibit-regexp, orgtbl-ctrl-c-ctrl-c) (orgtbl-toggle-comment, org-table-get-remote-range): Ditto. * org-footnote.el: (org-footnote-goto-local-insertion-point): Ditto. * org-exp.el: Ditto. * org-colview.el: (org-dblock-write:columnview, org-dblock-write:columnview): Ditto. * org-colview-xemacs.el: (org-dblock-write:columnview): Ditto. * org-clock.el (org-clocktable-write-default): Ditto. * org-capture.el (org-capture-place-table-line): Ditto. * ob.el (org-babel-data-names, org-babel-goto-named-src-block) (org-babel-src-block-names) (org-babel-where-is-src-block-result, org-babel-result-end) (org-babel-where-is-src-block-head) (org-babel-find-named-result, org-babel-result-names): Ditto. --- lisp/ob.el | 37 - lisp/org-capture.el|4 ++-- lisp/org-clock.el |3 ++- lisp/org-colview-xemacs.el |3 ++- lisp/org-colview.el|3 ++- lisp/org-exp.el|3 ++- lisp/org-footnote.el |2 +- lisp/org-table.el | 29 +++-- lisp/org.el| 10 ++ 9 files changed, 52 insertions(+), 42 deletions(-) diff --git a/lisp/ob.el b/lisp/ob.el index 160c63a..4332110 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -439,7 +439,7 @@ specific header arguments as well.) '((:session . none) (:results . replace) (:exports . results)) Default arguments to use when evaluating an inline source block.) -(defvar org-babel-data-names '(TBLNAME RESULTS NAME)) +(defvar org-babel-data-names '(tblname results name)) (defvar org-babel-result-regexp (concat ^[ \t]*#\\+ @@ -1464,7 +1464,7 @@ to the table for reinsertion to org-mode. Return the point at the beginning of the current source block. Specifically at the beginning of the #+BEGIN_SRC line. If the point is not on a source block then return nil. - (let ((initial (point)) top bottom) + (let ((initial (point)) (case-fold-search t) top bottom) (or (save-excursion ;; on a source name line or a #+header line (beginning-of-line 1) @@ -1501,6 +1501,7 @@ If the point is not on a source block then return nil. Go to a named source-code block. (interactive (let ((completion-ignore-case t) + (case-fold-search t) (under-point (thing-at-point 'line))) (list (org-icompleting-read source-block name: (org-babel-src-block-names) nil t @@ -1548,7 +1549,7 @@ org-babel-named-src-block-regexp. Returns the names of source blocks in FILE or the current buffer. (save-excursion (when file (find-file file)) (goto-char (point-min)) -(let (names) +(let ((case-fold-search t) names) (while (re-search-forward org-babel-src-name-w-name-regexp nil t) (setq names (cons (match-string 3) names))) names))) @@ -1571,23 +1572,24 @@ org-babel-named-src-block-regexp. Return the location of the result named NAME in the current buffer or nil if no such result exists. (save-excursion -(goto-char (or point (point-min))) -(catch 'is-a-code-block - (when (re-search-forward - (concat org-babel-result-regexp - [ \t] (regexp-quote name) [ \t\n\f\v\r]+) nil t) - (when (and (string= name (downcase (match-string 1))) - (or (beginning-of-line 1) - (looking-at org-babel-src-block-regexp) - (looking-at org-babel-multi-line-header-regexp))) - (throw 'is-a-code-block (org-babel-find-named-result name (point - (beginning-of-line 0) (point) +(let ((case-fold-search t)) + (goto-char (or point (point-min))) + (catch 'is-a-code-block + (when (re-search-forward + (concat org-babel-result-regexp + [ \t] (regexp-quote name) [ \t\n\f\v\r]+) nil t) + (when (and (string= name (downcase (match-string 1))) + (or (beginning-of-line 1) + (looking-at org-babel-src-block-regexp) + (looking-at org-babel-multi-line-header-regexp))) + (throw 'is-a-code-block (org-babel-find-named-result name (point + (beginning-of-line 0) (point)) (defun org-babel-result-names (optional file) Returns the names of results in FILE or the current buffer. (save-excursion (when file (find-file file)) (goto-char (point-min)) -(let (names) +(let ((case-fold-search t) names) (while (re-search-forward
Re: [O] Makefile restructuring
Hi Achim, On 2012-04-21, Achim Gratz strom...@nexgo.de wrote: Samuel Wales writes: I cannot report in a full way now, but Org does not make at all for me now. I do make cleanall and then make normally. I can't parse that sentence... Org broke. Due to make. Somehow. Since all other methods of producing the documentation are not reliable, texi2pdf is the default now and has actually been for a while, independently of my other changes. You can override it if you don't have it, see below. If you don't care about getting all of the documentation, just do a make compile or make compile info, this would then not need texi2pdf at all. I do not need pdf. I do need info. Are you saying I need to stop doing this: make cleanall;make And start doing this instead: make compile info ? Will that make org-install and also info? If so, what happens when makefiles change again and I will start missing something because I don't have it on the make line? Plain make worked before and would make anything new that people would add to the makefile. Is there a way to just get it to work the way it did before? Any adaptations to your local environment should be made in local.mk — that way it is ensured that changes in the defaults do not overwrite your local configuration. I have no idea of how to do this whatsoever. Hints appreciated. All I want is for Org to work as it did before. Thanks.
Re: [O] Makefile restructuring
Achim's branch is now merged in Org's git master branch. Please test this and report any problem while using make to install Org. -- Bastien It runs smoothly for me, using make clean, make, make doc, and make install (without local.mk, having yet no need of it). François.
Re: [O] unintended strike-through in table
Skip Collins skip.coll...@gmail.com writes: I do not believe this is intended behavior for +strike-through+ text. The + symbol serves triple duty in org syntax as a an indicator for +stricken words+, a line drawing symbol in tables, and a #+keyword prefix. It can also be an item which is a problem with LaTeX math. Example: \begin{equation} x + y wv - z \end{equation} is translated to \begin{equation} x \begin{itemize} \item y \end{itemize} wv \begin{itemize} \item z \end{itemize} \end{equation} I guess one could wrap it in #+begin_latex · #+end_latex, but that would be cubersome. –Rasmus -- In theory, practice and theory are the same. In practice they are not
Re: [O] Makefile restructuring
Samuel Wales writes: make compile info Will that make org-install and also info? If you don't install org (i.e. run it directly out of the Git worktree), that would be: make compile autoloads info If so, what happens when makefiles change again and I will start missing something because I don't have it on the make line? Plain make worked before and would make anything new that people would add to the makefile. Plain make now really makes everything except install as it is supposed to do (that is equivalent to make all). It didn't do the full documentation before. Is there a way to just get it to work the way it did before? That would be an uphill battle. You can define your own target for what you want to do in local.mk, say org and then do make org. BTW, you don't need cleanall anymore before compiling (it is now implicit); if you really want to compile without cleaning first, do a compile-dirty. Any adaptations to your local environment should be made in local.mk — that way it is ensured that changes in the defaults do not overwrite your local configuration. I have no idea of how to do this whatsoever. You just create a file local.mk, copy in the definitions from default.mk that you need to change (and only those) and then change them to suit your environment. Look up the examples posted earlier in this thread: http://article.gmane.org/gmane.emacs.orgmode/44567 You'd additionally want ---8-8--- .PHONY: org org:compile autoloads info ---8-8--- at the top of your local.mk (that needs to be a TAB after the colon) if you want to be able to say make org and have it do make compile autoloads info. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
[O] contrib/README update
Hello, This is a really non-urgent patch, proposing an update of the README file in org-mode contrib directory. Best, François. From c9f9149f358ac97352f2a752bad115705ed01fed Mon Sep 17 00:00:00 2001 From: François Allisson franc...@allisson.co Date: Sat, 21 Apr 2012 14:54:52 +0200 Subject: [PATCH] Update of contrib/README --- contrib/README | 34 -- 1 files changed, 24 insertions(+), 10 deletions(-) diff --git a/contrib/README b/contrib/README index 65a1459..bd8aff4 100644 --- a/contrib/README +++ b/contrib/README @@ -5,13 +5,14 @@ package. But the git repository for Org-mode is glad to provide useful way to distribute and develop them as long as they are distributed under a free software license. -Please put your contribution in one of these three directories: +Please put your contribution in one of these directories: LISP (emacs-lisp code) == htmlize.el --- Convert buffer text and decorations to HTML org2rem.el --- Convert org appointments into reminders org-annotate-file.el --- Annotate a file with org syntax +org-bibtex-extras.el --- Extras for working with org-bibtex entries org-bookmark.el --- Links to bookmarks org-checklist.el --- org functions for checklist handling org-choose.el--- Use TODO keywords to mark decision states @@ -20,46 +21,59 @@ org-contacts --- Contacts management org-contribdir.el--- Dummy file to mark the org contrib Lisp directory org-depend.el--- TODO dependencies for Org-mode org-drill.el --- Self-testing with org-learn -org-depend.el--- TODO dependencies for Org-mode +org-element.el --- Parser and applications for Org syntax org-elisp-symbol.el --- Org links to emacs-lisp symbols -org-eshell.el--- Support for links to working directories in eshell org-eval.el --- The lisp tag, adapted from Muse org-eval-light.el--- Evaluate in-buffer code on demand org-exp-bibtex.el--- Export citations to LaTeX and HTML org-expiry.el --- Expiry mechanism for Org entries +org-export.el--- Generic Export Engine For Org org-export-generic.el--- Export framework for configurable backends org-git-link.el --- Provide org links to specific file version org-interactive-query.el --- Interactive modification of tags query org-invoice.el --- Help manage client invoices in OrgMode org-jira.el --- Add a jira:ticket protocol to Org org-learn.el --- SuperMemo's incremental learning algorithm -org-lparse.el--- Library for building custom exporters org-mac-iCal.el --- Imports events from iCal.app to the Emacs diary org-mac-link-grabber.el --- Grab links and URLs from various Mac applications org-mairix.el --- Hook mairix search into Org for different MUAs org-man.el --- Support for links to manpages in Org-mode org-mime.el --- org html export for text/html MIME emails org-mtags.el --- Support for some Muse-like tags in Org-mode -org-odt.el --- OpenDocumentText exporter for Org-mode +org-notify.el--- Notifications for Org-mode +org-notmuch.el --- Support for links to notmuch messages org-panel.el --- Simple routines for us with bad memory org-registry.el --- A registry for Org links org-screen.el--- Visit screen sessions through Org-mode links org-secretary.el --- Team management with org-mode -org-special-blocks.el--- Turn blocks into LaTeX envs and HTML divs +org-static-mathjax.el--- Muse-like tags in Org-mode org-sudoku.el--- Create and solve SUDOKU puzzles in Org tables orgtbl-sqlinsert.el --- Convert Org-mode tables to SQL insertions org-toc.el --- Table of contents for Org-mode buffer org-track.el --- Keep up with Org development org-velocity.el --- something like Notational Velocity for Org -org-wikinodes--- CamelCase wiki-like links for Org +org-wikinodes.el --- CamelCase wiki-like links for Org + + +BABEL += +library-of-babel.org --- Documentation for the library of babel +langs/ob-fomus.el--- Org-babel functions for fomus evaluation +langs/ob-oz.el --- Org-babel functions for Oz evaluation -PACKAGES - +ODT (OpenDocumentText) +== +README.org --- Legacy documentation for Org ODT exporter + SCRIPTS (shell, bash, etc.) === dir2org.zsh --- Org compatible fs structure output -org2hpda --- Generate hipster pda style printouts from Org-mode ditaa.jar--- ASCII to PNG converter by Stathis Sideris, GPL +org2hpda --- Generate hipster pda style printouts from Org-mode +org-docco.org--- docco side-by-side
Re: [O] Makefile restructuring
Samuel Wales writes: Hints appreciated. All I want is for Org to work as it did before. I have just sent a patch to Bastien that makes this more easily possible. You still need a local.mk file then, but you only need to put a line oldorg: in it — I hope that addresses your concern. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
Re: [O] Makefile restructuring
On 2012-04-21, Achim Gratz strom...@nexgo.de wrote: If you don't install org (i.e. run it directly out of the Git worktree), that would be: make compile autoloads info Thanks. I will do this if there isn't a generic do everything except the thing that does not work option. Plain make now really makes everything except install as it is supposed to do (that is equivalent to make all). It didn't do the full documentation before. I checked and I actually did make cleanall;make all before. Thanks. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] Makefile restructuring
Achim Gratz strom...@nexgo.de writes: Samuel Wales writes: Hints appreciated. All I want is for Org to work as it did before. I have just sent a patch to Bastien that makes this more easily possible. You still need a local.mk file then, but you only need to put a line oldorg: in it — I hope that addresses your concern. The patch has been applied. -- Bastien
Re: [O] contrib/README update
François Allisson franc...@allisson.co writes: This is a really non-urgent patch, proposing an update of the README file in org-mode contrib directory. Applied, thanks! -- Bastien
Re: [O] Makefile restructuring
Samuel Wales writes: I checked and I actually did make cleanall;make all before. The all target did in fact not make everything there was to make with the old Makefile, hence the difference in behaviour. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ DIY Stuff: http://Synth.Stromeko.net/DIY.html
Re: [O] Adding the ability to archive into the datetree (updated)
Hi Andrew, Andrew Hyatt ahy...@gmail.com writes: I previously sent out a patch to add the ability to archive into the datetree. The ability to store finished items by date (along with any other journal-type entry) seems pretty useful to me, which is why I wrote this. Bernt Hansen did a review of my previous patch, and did a great job in testing it out, catching several issues. Thanks, Bernt! I've fixed all the reported issues, and am attaching the modified patch. I'd love for this to get into the next release. If anyone has a desire to try this out, I'd love to hear if it is clear how to use it, and if you encounter any issues. I've finally found time to review this and I applied your patch (with some minor modifications to prevent conflicts with current org-capture.el) Thanks! -- Bastien
[O] [bug] Regression due to relocation of org-export.el
Hi There's a small regression in org-export due to removal of EXPERIMENTAL / relocation. Best, Martyn From eb3c7717cdd4a4dc1e5f76da4746293ff6f40d17 Mon Sep 17 00:00:00 2001 From: Martyn Jago martyn.j...@btinternet.com Date: Sat, 21 Apr 2012 18:02:27 +0100 Subject: [PATCH] Fix require path due to removal of EXPERIMENTAL * contrib/lisp/org-export.el: path relative to org-export.el has changed due to relocation of org-e-publish.el (removal of EXPERIMENTAL) --- contrib/lisp/org-export.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/lisp/org-export.el b/contrib/lisp/org-export.el index 142b0fa..939a697 100644 --- a/contrib/lisp/org-export.el +++ b/contrib/lisp/org-export.el @@ -97,7 +97,7 @@ (require 'org-e-html ./org-e-html.el) (require 'org-e-latex ./org-e-latex.el) (require 'org-e-odt ./org-e-odt.el) -(require 'org-e-publish ../org-e-publish.el) +(require 'org-e-publish ./org-e-publish.el) -- 1.7.3.4
Re: [O] IDE tools for maintaining Emacs Lisp programs (Org in particular)
Jambunathan K kjambunat...@gmail.com writes: Jambunathan K kjambunat...@gmail.com writes: For all practical purposes, I find this be sufficient. (global-set-key (kbd C-c f) (lambda () (interactive) (require 'finder) (let ((thing (intern (thing-at-point 'symbol (if (functionp thing) (find-function thing) (find-variable thing) Put your cursor on a variable or a function, C-c f and you are staring right at the definition of the variable or function. For this to work, the library defining the function or variable should already be loaded. Just discovered this from find-func.el (require 'find-func) (find-function-setup-keys) will install the below keymap for you. Thanks for pointing this out, I have a feeling the find-func functionality will quickly become core to my elisp file navigation. To answer the original question, I also tend towards a minimal setup. I do all of my editing directly in elisp source files, and I don't use tags or etags or anything like that. I use the describe-function and describe-variable help functions with tab completion *very* frequently to find functions and variables relevant to my current task, and to then jump to their source. When drilling into either a bug or unfamiliar functionality I find edebug invaluable. Evaluating functions with a prefix argument C-u eval-defun instruments them for interactive step-by-step evaluation with edebug. Also, I highly recommend both paredit and the sexp-edit operations (kill-sexp, paredit-backward-up, paredit-forward, etc...) to anyone working on any lisp source code. -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] [babel] would like to to do simple text block expansion with parameters or multiline macro replacement text
Olaf.Hamann o.ham...@gmx.net writes: I think I will try to adapt m4 as org-language so that it can be used for executing src-blocks. m4 is no solution as it does not support multibyte character I missed the beginning of this thread, but would the following very simple support for text block evaluation be sufficient? #+begin_src emacs-lisp (defun org-babel-expand-body:text (body params) (mapc (lambda (pair) (let ((name (symbol-name (car pair))) (value (cdr pair))) (setq body (replace-regexp-in-string (concat \$ (regexp-quote name)) (if (stringp value) value (format %S value)) body (mapcar #'cdr (org-babel-get-header params :var))) body) (defun org-babel-execute:text (body params) (org-babel-expand-body:text body params)) #+end_src #+begin_src text :var name=Eric Hi, my name is $name. #+end_src #+RESULTS: : Hi, my name is Eric. -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] Makefile restructuring
Hi Achim François Allisson franc...@allisson.co writes: Achim's branch is now merged in Org's git master branch. Please test this and report any problem while using make to install Org. -- Bastien It runs smoothly for me, using make clean, make, make doc, and make install (without local.mk, having yet no need of it). François. Works nicely for me too, and I have a modified local.mk config for multiple Emacs versions and a non-default org location. Note: `make install check' will make, install, and run the tests! Thanks Achim. Best, Martyn
Re: [O] Makefile restructuring
oldorg: did not seem to fix anything. Cleaning and making both resulted in the attempt to make the pdf, which makes it error in both cases. make compile autoloads info now says this: make -C doc info make[1]: Nothing to be done for `info'. Thanks. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] Makefile restructuring
Samuel Wales writes: oldorg: did not seem to fix anything. Did you update to the latest version on master before trying? Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
Re: [O] Makefile restructuring
On 2012-04-21, Achim Gratz strom...@nexgo.de wrote: Did you update to the latest version on master before trying? Yes. I should say that it's not critical that I get the old way working, and I might even have a way to build info files manually in principle, but it might help others if this new makefile scheme works more smoothly. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] Makefile restructuring
Samuel Wales writes: On 2012-04-21, Achim Gratz strom...@nexgo.de wrote: Did you update to the latest version on master before trying? Yes. Then what exactly happens when you do make oldorg? If that is trying to make the PDF, I don't understand what is going on or you may have some local changes that you forgot to indicate. I should say that it's not critical that I get the old way working, and I might even have a way to build info files manually in principle, but it might help others if this new makefile scheme works more smoothly. That's why I'm asking if things are working for you now. If you have a local.mk, please post it's contents (or send it just to me if you don't want to post to the list). Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and User Sound Singles for Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Re: [O] Makefile restructuring
Martyn Jago writes: Works nicely for me too, and I have a modified local.mk config for multiple Emacs versions and a non-default org location. Note: `make install check' will make, install, and run the tests! Actually, make up2 will update all remotes, do a git pull on the current branch, compile and test and then finally install org all in one go. Once you have set things up the way you like, that's the fastest way to keep current. The real advantage however is that if there happens to be an error someplace, make is smart enough to stop right there and not install a not-quite working org over an older, but working version. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Re: [O] bug#11249: 24.1.50; Overlay with face property causes calendar buffer to scroll
On Fri, Apr 20, 2012 at 01:57:55PM +0200, Bastien wrote: Toby Cubitt ts...@cantab.net writes: On Mon, Apr 16, 2012 at 05:50:50AM +0300, Eli Zaretskii wrote: Date: Sun, 15 Apr 2012 23:04:16 +0200 Cc: 11...@debbugs.gnu.org, emacs-orgmode@gnu.org From: Toby Cubitt toby-dated-1335733484.f89...@dr-qubit.org The obvious solution is for org-mode to use a face that doesn't enlarge the characters. Another solution would be to enlarge the calendar window by one line. I've attached a patch that does exactly this. As expected, it fixes the bug for me. As discussed previously, the alternative solution would be to change the default face used to highlight the current date to something that doesn't set the :bold attribute (which would probably mean introducing a separate face for this, instead of reusing org-warning). But expanding the calendar window is a more general solution, as it fixes the problem for (almost) any face. I introduced a new face `org-date-selected' which is now the one in use in the calendar and which is not bold. Thanks for the fix. I notice that the new face's dosctring still says Face for deadlines and TODO keywords, which needs changing. Was there some reason to reject Eli's suggested fix of enlarging the calendar window by 1 line? As it stands, if anyone customizes the new org-date-selected face to be bold (the highlighted date *is* a little less visible now), it will cause the same problem as before. And the fact that it's caused by making the font bold is not at all obvious...at least, it wasn't obvious to me! Eli's fix works more generally. Anyway, since I now know how to patch things if I do decide I want a bold font, it's not a big issue for me. In the patch I posted, I also took the opportunity to set `cursor-type' to nil when opening the calendar in `org-read-date'. The cursor obscures one digit of the selected date, making that bit harder to read (as well as looking ugly). Did you intend to reject this change too? Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: ts...@cantab.net web: www.dr-qubit.org
[O] Babel: communicating irregular data to R source-code block
Greetings. I'm sitting in on a weekly, informal, brown-bag seminar on data technologies in statistics. There are more people attending the seminar than there are weeks in which to give talks, so I may get by with being my usual, passive-slug self. But I thought it might be useful to have a contingency plan and decided that giving a brief talk about Babel might be useful/instructive. I thought (and think) that mushing together (with attribution) some of the content of the paper [1] by The Gang of Four and the content of Eric's talk [2] might be a good approach. (BTW, if this isn't legal, desirable, permissible, etc., this would be a good time to tell me.) I liked the Pascal's Triangle example (which morphed from elisp to Python, or vice versa, in the two references), but I was afraid that the elisp routine pst-check, used as a check on the correctness of the previously-generated Pascal's triangle, might be too esoteric for this audience, not to mention me. (The recursive Fibonacci function is virtually identical in all languages, but the second part is more obscure.) I thought it should be possible to use R to do the same sanity check, as R would be much more-familiar to this audience (and its use would still demonstrate the meta-language feature of Babel). Unfortunately, I haven't been able to find a way to communicate the output of the Pascal's Triangle example to an R source-code block. The gist of the problem seems to be that regardless of how I try to grab the data (scan, readLines, etc.) Babel always ends up trying to read a data frame (table) and I get an error similar to: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 5 elements Enter a frame number, or 0 to exit 1: read.table(/tmp/babel-3780tje/R-import-3780Akj, header = FALSE, row.names = NULL, sep = If I construct a table by hand with all of the cells occupied, everything goes OK. For instance: #+TBLNAME: some-junk | 1 | 0 | 0 | 0 | | 1 | 1 | 0 | 0 | | 1 | 2 | 1 | 0 | | 1 | 3 | 3 | 1 | #+NAME: read-some-junk(sj_input=some-junk) #+BEGIN_SRC R rowSums(sj_input) #+END_SRC #+RESULTS: read-some-junk | 1 | | 2 | | 4 | | 8 | But the following gives the kind of error I described above: #+name: pascals_triangle #+begin_src python :var n=5 :exports none :return pascals_triangle(5) def pascals_triangle(n): if n == 0: return [[1]] prev_triangle = pascals_triangle(n-1) prev_row = prev_triangle[n-1] this_row = map(sum, zip([0] + prev_row, prev_row + [0])) return prev_triangle + [this_row] pascals_triangle(n) #+end_src #+RESULTS: pascals_triangle | 1 | | | | | | | 1 | 1 | | | | | | 1 | 2 | 1 | | | | | 1 | 3 | 3 | 1 | | | | 1 | 4 | 6 | 4 | 1 | | | 1 | 5 | 10 | 10 | 5 | 1 | #+name: pst-checkR(pas_inputs=pascals_triangle) #+BEGIN_SRC R rowSums(pas_inputs) #+END_SRC Note that I don't really want to do rowSums in this case. I'm just trying to demonstrate the error. Of course, it's clear that the first line does NOT contain five elements, nor does the second, etc., as all of the above-diagonal elements are blanks. But I've been unable to find an R input function that doesn't end up treating the source data as a table, i.e., in the context of Babel source blocks -- R is happy to read a lower-diagonal structure. See the appendix for an example. Any suggestions? Note that I'm happy to acknowledge that my own ignorance of R and/or Babel might be the source of the problem. If so, please enlighten me. Thanks. -- Mike [1] http://www.jstatsoft.org/v46/i03 [2] https://github.com/eschulte/babel-presentation appendix $ cat pascal.dat 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 $ R --vanilla pascal.R R version 2.15.0 (2012-03-30) Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-redhat-linux-gnu (64-bit) . . . x - readLines(pascal.dat) x [1] 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 str(x) chr [1:5] 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 y - scan(pascal.dat) Read 15 items y [1] 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 str(y) num [1:15] 1 1 1 1 2 1 1 3 3 1 ... z - read.table(pascal.dat, header=FALSE) Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 5 elements Calls: read.table - scan Execution halted
Re: [O] Makefile restructuring
Le samedi 21 avr 2012 à 20:30:49 (+0200), Achim Gratz a écrit : Martyn Jago writes: Works nicely for me too, and I have a modified local.mk config for multiple Emacs versions and a non-default org location. Note: `make install check' will make, install, and run the tests! Actually, make up2 will update all remotes, do a git pull on the current branch, compile and test and then finally install org all in one go. Once you have set things up the way you like, that's the fastest way to keep current. The real advantage however is that if there happens to be an error someplace, make is smart enough to stop right there and not install a not-quite working org over an older, but working version. Thanks Martyn and Achim for hints on make install check and make up2. The latter is exactly what I needed. Achim's restructuring made me just realise the utility and power of these Makefile rules... It's so nice to learn by using org. Best, François.
Re: [O] [PATCH] Add info when reference to remote table is not in the file
Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: That said, I still find we should be able to refer to tables names whose TBLNAME keyword could be spelled both: - in downcase version (#+tblname: abc) and - in uppercase version (#+TBLNAME: xyz). This should be doable -- please test this patch: http://patchwork.newartisans.com/patch/1294/ -- Bastien
Re: [O] Makefile restructuring
On 2012-04-21, Achim Gratz strom...@nexgo.de wrote: Then what exactly happens when you do make oldorg? If that is trying to make the PDF, I don't understand what is going on or you may have some local changes that you forgot to indicate. I ran make all, as I did not realize that you wanted me to do otherwise. :) make cleanall still has the pdf errors. Perhaps you don't need that anymore even for oldorg. make oldorg compiles but still has the info error. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] Makefile restructuring
On 2012-04-21, François Allisson franc...@allisson.co wrote: Actually, make up2 will update all remotes, do a git pull on the current branch, compile and test and then finally install org all in one go. Once you have set things up the way you like, that's the fastest way to keep current. The real advantage however is that if there happens to be an error someplace, make is smart enough to stop right there and not install a not-quite working org over an older, but working version. Wow! Is update the same thing without the install part? (Now I want this :), but I'm guessing the pdf and info problems would occur with it?) -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] Fast linking to files in private git repos through a hyperlink
Thanks for the link. I wasn't aware of that package. I see that I have a conflict in syntax as I used double colon for indicating the git repo while org-git-link.el used double colon for search pattern. Thus to join the packages I need to change the syntax. Which of the following would make more sense: git:@repo:file-in-repo::pattern-in-file git://repo/file-in-repo::pattern-in-file or perhaps some other syntax? Suggestions? Regards, Dov On Fri, Apr 20, 2012 at 15:01, Bastien b...@altern.org wrote: Hi Dov, Dov Grobgeld dov.grobg...@gmail.com writes: I thought I would share the following hack that I did with git. In my org-mode notebook I often find myself references files that reside in various private git repos. So far I have referenced these either by just writing their name or giving a full path. But giving the full path is disruptive and if the repo moves it will no longer work. So I added a hack to make the following hyperlink work git:myrepo::myfile . When opening it the following happens: - myrepo is looked up in the emacs hash my-git-repos and mapped to the path of a git repo root. - git-find-file-in-repo searches for the the file myfile in the the repo repo Here's the code for org-git-hyperlink.el: Nice. Can you try to merge these features with contrib/lisp/org-git-link.el from the current repo? Thanks! -- Bastien
Re: [O] [bug] Regression due to relocation of org-export.el
Hello, Martyn Jago martyn.j...@btinternet.com writes: There's a small regression in org-export due to removal of EXPERIMENTAL / relocation. Applied. Thank you for the patch. Regards, -- Nicolas Goaziou
[O] Bug in orgtbl export to LaTeX
Dear all, I guess I found a bug in the export function of orgtbl to LaTeX: The percentage sign (%) is not masked, it simply is transfered to LaTeX and thus destroys the table. Example below, beware, you will get an error, because of the said bug. For readers who are not familiar with LaTeX: % is the comment sign, after % LaTeX does not compile anything in this line. Here in the example the end of the current row is marked with \\, but due to the % LaTeX can not find any eol. Can the export function be amended? Any % inside the table (!) needs to be exported as \%. --- \documentclass[pagesize, fontsize=12pt, english]{scrartcl} \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc} \usepackage{babel, comment} \begin{document} \begin{tabular}{lr} % BEGIN RECEIVE ORGTBL percent \begin{tabular}{lr} Name Percent \\ Peter 75% \\ Paul 25% \\ Sum 1. \\ \end{tabular} % END RECEIVE ORGTBL percent \end{tabular} \begin{comment} #+ORGTBL: SEND percent orgtbl-to-latex :splice nil :skip 0 | Name | Percent | | Peter | 75% | | Paul | 25% | | Sum | 1. | #+TBLFM: @4$2=@-2+@-1 % $ \end{comment} \end{document} -- Org-version: 7.8.09 Regards, Alexander
Re: [O] radiotables in LaTeX-document: export numbers from orgtbl with commas as decimal separators instead of periods; with MWE and lisp-code = SOLVED
There is an easy solution on the LaTeX side: we simply have to use the package »numprint« and to wrap every number of the second column with »\numprint{number}«, then it will be printed in a suitable way. We get this by adding to the #+ORGTBL - line this code: :fmt (2 \\numprint{%s} EUR) So the whole line looks like this: #+ORGTBL: SEND anteile orgtbl-to-latex :splice t :skip 1 :fmt (2 \\numprint{%s} EUR) Sorry for the noise. Regards, Alexander Dear all, I'd like to use radiotables inside a LaTeX-document. Here is a minimal working example: --- \documentclass[pagesize, ngerman, fontsize=12pt]{scrartcl} \usepackage[T1]{fontenc}\usepackage[utf8]{inputenc} \usepackage{babel, comment, array, booktabs} \title{Sicherheitsbestellung} \subtitle{gag} \begin{document} \maketitle \begin{tabular}{p{0.25\linewidth}p{0.5\linewidth}}%\toprule Bezeichnung Betrag \\ % BEGIN RECEIVE ORGTBL Kaufpreis Kaufpreis 10.00 \\ Darlehen -5000.00 \\ Summe 95000.00 \\ % END RECEIVE ORGTBL Kaufpreis \bottomrule \end{tabular} \begin{comment} #+ORGTBL: SEND Kaufpreis orgtbl-to-latex :splice t :skip 0 | Kaufpreis | 10.00 | | Darlehen | -5000.00 | | Summe | 95000.00 | #+TBLFM: @3$2=@1$2+@2$2;%.2f \end{comment} \end{document} --- I would like to have the LaTeX table with commas as decimal separators instead of periods, e.g.: »Kaufpreis 10,00\\« or even better »Kaufpreis 100\,000,00\\«. To avoid misunderstandigs: The change of all periods to commas should take place when the org-table is »transfered« to the LaTeX table, not earlier! I found a suggestion by Carsten Dominik here: http://permalink.gmane.org/gmane.emacs.orgmode/42000 --- (add-hook 'org-export-preprocess-hook 'org-use-comma-in-exported-tables) (defun org-use-comma-in-exported-tables () (goto-char (point-min)) (while (re-search-forward \\([0-9]\\)\\.\\([0-9]\\) nil t) (org-if-unprotected (when (save-match-data (org-at-table-p)) (replace-match \\1,\\2 t nil) --- I put that into my .emacs, restarted Emacs, but no result. I'm using Emacs 23.3 and Org-mode version 7.8.02. Please bear in mind that I'm may have made strange mistake, because I do neither have experience with radiotables nor understand lisp. Any help would be appreciated, thanks in advance. Kind regards, Alexander
Re: [O] Makefile restructuring
Achim Gratz strom...@nexgo.de writes: Hi Achim Martyn Jago writes: Works nicely for me too, and I have a modified local.mk config for multiple Emacs versions and a non-default org location. Note: `make install check' will make, install, and run the tests! Actually, make up2 will update all remotes, do a git pull on the current branch, compile and test and then finally install org all in one go. Once you have set things up the way you like, that's the fastest way to keep current. The real advantage however is that if there happens to be an error someplace, make is smart enough to stop right there and not install a not-quite working org over an older, but working version. Regards, Achim. Very good! Is it documented? Love it. Best, Martyn
Re: [O] Org Clock Timer in Frame Title bug
Mike McLean mike.mcl...@pobox.com writes: It appears that there is a small problem with commit 37fafb7b9e4e8e1eeb6b8faa76a1621c28970ef5 (Option for clock and timer to be displayed in frame-title). The default value offrame-title-format in my setup is t and this causes an error when clocking in/out. I can confirm this bug. The problem is that org-clock-out calls a delq on frame-title-format regardless of the value of org-clock-clocked-in-display. This is a problem because frame-title-format can be either a list or a string. Note: the same problem will occur when calling org-clock-in if the value of frame-title-format is a string and if org-clock-clocked-in-display is set to 'frame-title. Best, Matt
Re: [O] Babel: communicating irregular data to R source-code block
Aloha Michael, Michael Hannon jm_han...@yahoo.com writes: Greetings. I'm sitting in on a weekly, informal, brown-bag seminar on data technologies in statistics. There are more people attending the seminar than there are weeks in which to give talks, so I may get by with being my usual, passive-slug self. But I thought it might be useful to have a contingency plan and decided that giving a brief talk about Babel might be useful/instructive. I thought (and think) that mushing together (with attribution) some of the content of the paper [1] by The Gang of Four and the content of Eric's talk [2] might be a good approach. (BTW, if this isn't legal, desirable, permissible, etc., this would be a good time to tell me.) I liked the Pascal's Triangle example (which morphed from elisp to Python, or vice versa, in the two references), but I was afraid that the elisp routine pst-check, used as a check on the correctness of the previously-generated Pascal's triangle, might be too esoteric for this audience, not to mention me. (The recursive Fibonacci function is virtually identical in all languages, but the second part is more obscure.) I thought it should be possible to use R to do the same sanity check, as R would be much more-familiar to this audience (and its use would still demonstrate the meta-language feature of Babel). Unfortunately, I haven't been able to find a way to communicate the output of the Pascal's Triangle example to an R source-code block. The gist of the problem seems to be that regardless of how I try to grab the data (scan, readLines, etc.) Babel always ends up trying to read a data frame (table) and I get an error similar to: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 5 elements Enter a frame number, or 0 to exit 1: read.table(/tmp/babel-3780tje/R-import-3780Akj, header = FALSE, row.names = NULL, sep = If I construct a table by hand with all of the cells occupied, everything goes OK. For instance: #+TBLNAME: some-junk | 1 | 0 | 0 | 0 | | 1 | 1 | 0 | 0 | | 1 | 2 | 1 | 0 | | 1 | 3 | 3 | 1 | #+NAME: read-some-junk(sj_input=some-junk) #+BEGIN_SRC R rowSums(sj_input) #+END_SRC #+RESULTS: read-some-junk | 1 | | 2 | | 4 | | 8 | But the following gives the kind of error I described above: #+name: pascals_triangle #+begin_src python :var n=5 :exports none :return pascals_triangle(5) def pascals_triangle(n): if n == 0: return [[1]] prev_triangle = pascals_triangle(n-1) prev_row = prev_triangle[n-1] this_row = map(sum, zip([0] + prev_row, prev_row + [0])) return prev_triangle + [this_row] pascals_triangle(n) #+end_src A few things are wrong at this point. It seems the JSS article has an error in the header of the pascals_triangle source block. AFAIK there is no header argument :return. I don't know how :return pascals_triangle(5) got there, but am fairly certain it shouldn't be. Second is the last line of the source block. It should read: return pascals_triangle(n) Third, in the JSS article the name of the source code block is pascals-triangle, to distinguish it from the name of the python function pascals_triangle (note the underscore in place of the hyphen). So, with these changes made, I have this, which works for me: #+name: pascals-triangle #+begin_src python :var n=5 :exports none def pascals_triangle(n): if n == 0: return [[1]] prev_triangle = pascals_triangle(n-1) prev_row = prev_triangle[n-1] this_row = map(sum, zip([0] + prev_row, prev_row + [0])) return prev_triangle + [this_row] return pascals_triangle(n) #+end_src #+RESULTS: pascals-triangle | 1 | ||| | | | 1 | 1 ||| | | | 1 | 2 | 1 || | | | 1 | 3 | 3 | 1 | | | | 1 | 4 | 6 | 4 | 1 | | | 1 | 5 | 10 | 10 | 5 | 1 | #+CALL: pascals-triangle(5) #+RESULTS: pascals-triangle(5) | 1 | ||| | | | 1 | 1 ||| | | | 1 | 2 | 1 || | | | 1 | 3 | 3 | 1 | | | | 1 | 4 | 6 | 4 | 1 | | | 1 | 5 | 10 | 10 | 5 | 1 | #+RESULTS: pascals_triangle | 1 | | | | | | | 1 | 1 | | | | | | 1 | 2 | 1 | | | | | 1 | 3 | 3 | 1 | | | | 1 | 4 | 6 | 4 | 1 | | | 1 | 5 | 10 | 10 | 5 | 1 | #+name: pst-checkR(pas_inputs=pascals_triangle) #+BEGIN_SRC R rowSums(pas_inputs) #+END_SRC I vaguely remember that it once was possible to pass variables in through the name line, but I couldn't find this syntax in some fairly recent documentation. It does appear to work still using a recent Org-mode. If I rename the results and then pass that to the source code block, all is well. #+RESULTS: pascals-tri | 1 | ||| | | | 1 | 1 ||| | | | 1 | 2 | 1 || | | | 1 | 3 | 3 | 1 | | | | 1 | 4 | 6 | 4 | 1 | | | 1 | 5 | 10 | 10 | 5 | 1 | #+name: pst-checkR(p=pascals-tri) #+BEGIN_SRC R p
Re: [O] bug with org-mode-hook and text-scale-set
Bastien b...@altern.org writes: Another question: is it customary for major modes to invoke buffer-face-mode? Emacs devs said using buffer-face-mode is obnoxious. So I buffer-face-mode is not turned on by default anymore. org-default is still the face for buffer-face-mode, though. Thanks, Bastien! Best, Matt
[O] About documents translation
Hello: everyone I want to translate org-mode documents into Chinese language when I have time. so I need some informations: 1. Should I use texi format to write translated documents? 2. Is it possible to write translated documents with org format? 3. Can texi format suppost chinese language very well? Thanks feng
[O] Org Mode new Makefile and el-get
If anyone uses el-get (https://github.com/dimitri/el-get) the recipe for building OrgMode broke with the recent Makefile changes. I submitted a patch to el-get to change the OrgMode build (https://github.com/dimitri/el-get/pull/719). Specifically, this patch references Samuel Wales’ message: http://permalink.gmane.org/gmane.emacs.orgmode/55022