Re: [O] Does anyone else have this table problem?
On Thursday, 19 Apr 2018 at 20:43, William Denton wrote: > I know this isn't a proper "emacs -q" bug report, but I'm not sure > what's causing a problem I have with tables. This is using the master > branch of the Org development tree and has been going on for a while. > > When I load this short file with one Org table: > > https://www.miskatonic.org/tmp/table-2.org > > and then run C-u C-c TAB, I see this: > > https://www.miskatonic.org/tmp/org-table.png > > Does anyone else have this? Yes, I get the same behaviour. -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-419-g52ba1a signature.asc Description: PGP signature
[O] Does anyone else have this table problem?
I know this isn't a proper "emacs -q" bug report, but I'm not sure what's causing a problem I have with tables. This is using the master branch of the Org development tree and has been going on for a while. When I load this short file with one Org table: https://www.miskatonic.org/tmp/table-2.org and then run C-u C-c TAB, I see this: https://www.miskatonic.org/tmp/org-table.png Does anyone else have this? Bill -- William Denton :: Toronto, Canada --- Listening to Art: https://listeningtoart.org/ https://www.miskatonic.org/ --- GHG.EARTH: http://ghg.earth/ Caveat lector. --- STAPLR: http://staplr.org/
Re: [O] [Documentation Bug?] Markdown export
Org tables get exported as an html table. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Apr 19, 2018 at 12:47 AM, Loris Bennettwrote: > Hi, > > On the page > > https://orgmode.org/manual/Markdown-export.html > > the second line reads: > > Since md is built on top of the HTML back-end, any Org constructs not > supported by Markdown, such as tables, the underlying html back-end > (see HTML export) converts them. > > My guess is that this should be > > Since md is built on top of the HTML back-end, any Org constructs not > supported by Markdown, such as tables, are converted by the underlying > html back-end (see HTML export). > > However, I still don't understand what it means, so maybe my guess is > incorrect. > > In any case, what will an Org table be converted to in the MD output? > > Cheers, > > Loris > > -- > Dr. Loris Bennett (Mr.) > ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de > > >
[O] [PATCH] migrate ob-clojure initiate session code from ob-clojure-literate.el into ob-clojure.el
Those code belongs to ob-clojure.el. From 7306147a55ea29be7a685cd7a92dc158612dfccd Mon Sep 17 00:00:00 2001 From: stardivinerDate: Thu, 19 Apr 2018 18:16:27 +0800 Subject: [PATCH] * ob-clojure.el: support `org-babel-initiate-session' to initialize. Migrate from ob-clojure-literate.el into ob-clojure.el. --- contrib/lisp/ob-clojure-literate.el | 56 - lisp/ob-clojure.el | 55 2 files changed, 55 insertions(+), 56 deletions(-) diff --git a/contrib/lisp/ob-clojure-literate.el b/contrib/lisp/ob-clojure-literate.el index e702582d9..ecf786df7 100644 --- a/contrib/lisp/ob-clojure-literate.el +++ b/contrib/lisp/ob-clojure-literate.el @@ -185,62 +185,6 @@ If it is a directory, `ob-clojure-literate' will try to create Clojure project a org-babel-default-header-args:clojure))) )) -;;; Support `org-babel-initiate-session' / [C-c C-v z] to initialize Clojure session. - -(defun org-babel-clojure-initiate-session ( session _params) - "Initiate a session named SESSION according to PARAMS." - (when (and session (not (string= session "none"))) -(save-window-excursion - (unless (org-babel-comint-buffer-livep session) -;; CIDER jack-in to the Clojure project directory. -(cond - ((eq org-babel-clojure-backend 'cider) - (require 'cider) - (let ((session-buffer (save-window-excursion - (cider-jack-in t) - (current-buffer -(if (org-babel-comint-buffer-livep session-buffer) -(progn (sit-for .25) session-buffer - ((eq org-babel-clojure-backend 'slime) - (error "Session evaluation with SLIME is not supported")) - (t - (error "Session initiate failed"))) -) - (get-buffer session) - ))) - -(defun org-babel-prep-session:clojure (session params) - "Prepare SESSION according to the header arguments specified in PARAMS." - (let* ((session (org-babel-clojure-initiate-session session)) - (var-lines (org-babel-variable-assignments:clojure params))) -(when session - (org-babel-comint-in-buffer session -(mapc (lambda (var) -(insert var) (comint-send-input nil t) - (org-babel-comint-wait-for-output session) - (sit-for .1) (goto-char (point-max))) var-lines))) -session)) - -(defun org-babel-clojure-var-to-clojure (var) - "Convert src block's `VAR' to Clojure variable." - (if (listp var) - (replace-regexp-in-string "(" "'(" var) -(cond - ((stringp var) - ;; wrap org-babel passed in header argument value with quote in Clojure. - (format "\"%s\"" var)) - (t - (format "%s" var - ) - -(defun org-babel-variable-assignments:clojure (params) - "Return a list of Clojure statements assigning the block's variables in `PARAMS'." - (mapcar - (lambda (pair) - (format "(def %s %s)" - (car pair) - (org-babel-clojure-var-to-clojure (cdr pair - (org-babel--get-vars params))) ;;; Support header arguments :results graphics :file "image.png" by inject Clojure code. (defun ob-clojure-literate-inject-code (args) diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el index 93674b552..f647a3282 100644 --- a/lisp/ob-clojure.el +++ b/lisp/ob-clojure.el @@ -211,6 +211,61 @@ using the :show-process parameter." (condition-case nil (org-babel-script-escape result) (error result) +(defun org-babel-clojure-initiate-session ( session _params) + "Initiate a session named SESSION according to PARAMS." + (when (and session (not (string= session "none"))) +(save-window-excursion + (unless (org-babel-comint-buffer-livep session) +;; CIDER jack-in to the Clojure project directory. +(cond + ((eq org-babel-clojure-backend 'cider) + (require 'cider) + (let ((session-buffer (save-window-excursion + (cider-jack-in t) + (current-buffer +(if (org-babel-comint-buffer-livep session-buffer) +(progn (sit-for .25) session-buffer + ((eq org-babel-clojure-backend 'slime) + (error "Session evaluation with SLIME is not supported")) + (t + (error "Session initiate failed"))) +) + (get-buffer session) + ))) + +(defun org-babel-prep-session:clojure (session params) + "Prepare SESSION according to the header arguments specified in PARAMS." + (let* ((session (org-babel-clojure-initiate-session session)) + (var-lines (org-babel-variable-assignments:clojure params))) +(when session + (org-babel-comint-in-buffer session +(mapc (lambda (var) +(insert var) (comint-send-input nil t) + (org-babel-comint-wait-for-output session) + (sit-for .1) (goto-char (point-max))) var-lines))) +session))
[O] [Documentation Bug?] Markdown export
Hi, On the page https://orgmode.org/manual/Markdown-export.html the second line reads: Since md is built on top of the HTML back-end, any Org constructs not supported by Markdown, such as tables, the underlying html back-end (see HTML export) converts them. My guess is that this should be Since md is built on top of the HTML back-end, any Org constructs not supported by Markdown, such as tables, are converted by the underlying html back-end (see HTML export). However, I still don't understand what it means, so maybe my guess is incorrect. In any case, what will an Org table be converted to in the MD output? Cheers, Loris -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de